{"id": "http://arxiv.org/abs/2406.07524v2", "title": "Simple and Effective Masked Diffusion Language Models", "abstract": "While diffusion models excel at generating high-quality images, prior work reports a significant performance gap between diffusion and autoregressive (AR) methods in language modeling. In this work, we show that simple masked discrete diffusion is more performant than previously thought. We apply an effective training recipe that improves the performance of masked diffusion models and derive a simplified, Rao-Blackwellized objective that results in additional improvements. Our objective has a simple form -- it is a mixture of classical masked language modeling losses -- and can be used to train encoder-only language models that admit efficient samplers, including ones that can generate arbitrary lengths of text semi-autoregressively like a traditional language model. On language modeling benchmarks, a range of masked diffusion models trained with modern engineering practices achieves a new state-of-the-art among diffusion models, and approaches AR perplexity. We provide the code, along with a blog post and video tutorial on the project page: https://s-sahoo.com/mdlm", "published_at": "2024-06-11T17:51:40+00:00", "source_updated_at": null, "source_url": "https://arxiv.org/abs/2406.07524v2", "source_hash": "20547fdd3e45ce419ac8aac2e4334309ce053d2cfc342e92c5ac9cc3f9fc883b", "source_version": "v2", "full_text_available": true, "evidence_kind": "full_text_excerpt", "analysis_scope": "full_text_excerpt", "scope": "core", "topics": ["discrete-diffusion"], "code_url": "https://github.com/kuleshov-group/mdlm", "has_code": true, "indexable": true, "authors": [], "related_ids": ["http://arxiv.org/abs/2609.00495v1", "http://arxiv.org/abs/2608.30922v1", "http://arxiv.org/abs/2608.20123v1"], "related_work": {"version": "related-work-v1", "status": "not_assessed", "reason": "missing_context", "items": []}, "review": null, "full_text_brief": null, "explanations": {}, "resources": {"version": "paper-resources-v1", "source_hash": "20547fdd3e45ce419ac8aac2e4334309ce053d2cfc342e92c5ac9cc3f9fc883b", "evidence_kind": "full_text_excerpt", "availability": "not_checked", "limited": false, "items": [{"origin": "source_excerpt", "evidence": "s.\n\nIn this work, we show that simple masked diffusion language modeling (MDLM) combined with\neffective training recipes is more performant than previously thought [1, 26, 69]. We develop a well-\nengineered MDLM implementation that significantly improves discrete diffusion log-likelihood; we\n\n1code: https://github.com/kuleshov-group/mdlm\n2tutorial: http://youtu.be/WjAUX23vgfg\n\n38th Conference on Neural Information Processing Systems (NeurIPS 2024).\n\n### arXiv:2406.07524v2 [cs.CL] 10 Nov 2024\n\n## Page 2\n\nFigure 1: (Left) Our proposed masked diffusion language model (MDLM) is trained using a weighted\naverage of masked cross entropy lo", "url": "https://github.com/kuleshov-group/mdlm", "kind": "code", "span": [2449, 3089], "evidence_hash": "a2a1c37d0a27bcdd76aec7cb43901ff6d301c2fa9c257562458a85a359c015b1"}]}, "slug": "2406.07524-simple-and-effective-masked-diffusion-language-models"}