{"id": "http://arxiv.org/abs/2410.21357v4", "title": "Energy-Based Diffusion Language Models for Text Generation", "abstract": "Despite remarkable progress in autoregressive language models, alternative generative paradigms beyond left-to-right generation are still being actively explored. Discrete diffusion models, with the capacity for parallel generation, have recently emerged as a promising alternative. Unfortunately, these models still underperform the autoregressive counterparts, with the performance gap increasing when reducing the number of sampling steps. Our analysis reveals that this degradation is a consequence of an imperfect approximation used by diffusion models. In this work, we propose Energy-based Diffusion Language Model (EDLM), an energy-based model operating at the full sequence level for each diffusion step, introduced to improve the underlying approximation used by diffusion models. More specifically, we introduce an EBM in a residual form, and show that its parameters can be obtained by leveraging a pretrained autoregressive model or by finetuning a bidirectional transformer via noise contrastive estimation. We also propose an efficient generation algorithm via parallel important sampling. Comprehensive experiments on language modeling benchmarks show that our model can consistently outperform state-of-the-art diffusion models by a significant margin, and approaches autoregressive models' perplexity. We further show that, without any generation performance drop, our framework offers a 1.3$\\times$ sampling speedup over existing diffusion models. Reproduced code is available at https://github.com/MinkaiXu/Energy-Diffusion-LLM.", "published_at": "2024-10-28T17:25:56+00:00", "source_updated_at": null, "source_url": "https://arxiv.org/abs/2410.21357v4", "source_hash": "4feed4e35723bb8dc45b9145b73fe9d13dff76f740c38f1fa84c7d6f9d18770c", "source_version": "v4", "full_text_available": true, "evidence_kind": "full_text_excerpt", "analysis_scope": "full_text_excerpt", "scope": "core", "topics": ["discrete-diffusion", "inference-acceleration", "post-training"], "code_url": "https://github.com/MinkaiXu/Energy-Diffusion-LLM", "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": "4feed4e35723bb8dc45b9145b73fe9d13dff76f740c38f1fa84c7d6f9d18770c", "evidence_kind": "full_text_excerpt", "availability": "not_checked", "limited": false, "items": [{"origin": "source_excerpt", "evidence": "outperform state-of-the-art diffusion models by a signifi-\ncant margin, and approaches autoregressive models’ perplexity. We further show\nthat, without any generation performance drop, our framework offers a 1.3× sam-\npling speedup over existing diffusion models. Reproduced code is available at\nhttps://github.com/MinkaiXu/Energy-Diffusion-LLM.\n\n### 1 INTRODUCTION\n\nIn recent years, autoregressive (AR) models have achieved remarkable advances in modern large\nlanguage modeling (Vaswani et al., 2017; Wolf et al., 2020; Brown et al., 2020; Chowdhery et al.,\n2023; Touvron et al., 2023), showing impressive results in tasks such as expert-l", "url": "https://github.com/MinkaiXu/Energy-Diffusion-LLM", "kind": "code", "span": [1486, 2126], "evidence_hash": "c9d3f2d6013ec316b2a2ece1de8f50aefb010d26e08b43b04b806687bd9a4f65"}, {"origin": "source_excerpt", "evidence": "lel\ndecoding of conditional masked language models. In Proceedings of the 2019 Conference on\nEmpirical Methods in Natural Language Processing and the 9th International Joint Conference\non Natural Language Processing (EMNLP-IJCNLP), pp. 6112–6121, 2019.\n\nAaron Gokaslan and Vanya Cohen. Openwebtext corpus. http://Skylion007.github.io/\nOpenWebTextCorpus, 2019.\n\nAlex Graves, Rupesh Kumar Srivastava, Timothy Atkinson, and Faustino Gomez. Bayesian flow\nnetworks. arXiv preprint arXiv:2308.07037, 2023.\n\nJiatao Gu and Xiang Kong. Fully non-autoregressive neural machine translation: Tricks of the trade.\nIn Findings of the Association for Comp", "url": "http://Skylion007.github.io/", "kind": "project", "span": [47931, 48571], "evidence_hash": "379a7e948a8ee78cb918b57d6d354c607d197c4ec4f52ba3ac2433a9e41ffadd"}]}, "slug": "2410.21357-energy-based-diffusion-language-models-for-text-generation"}