Energy-Based Diffusion Language Models for Text Generation

Minkai Xu, Tomas Geffner, Karsten Kreis, Weili Nie, Yilun Xu +3 more
2/12/2026

No official code found. Best implementation: MinkaiXu/Energy-Diffusion-LLM (69 stars, MIT, last commit 2025-07-22). 1 more below.

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.

View on arXivView PDF

Code Implementations(2)

MIT

Reproducing results of "Xu et al. (2025). Energy-Based Diffusion Language Models for Text Generation. https://arxiv.org/abs/2410.21357"

00Python, Jupyter NotebookApr 23, 20251 years agoMIT
MIT

Reproduce ICLR2025 Energy-Based Diffusion Language Models for Text Generation

6910Shell, PythonMar 7, 20251 years agoMIT

Similar Papers

Cite this paper

@article{xu2026energybased,
  title  = {Energy-Based Diffusion Language Models for Text Generation},
  author = {Minkai Xu and Tomas Geffner and Karsten Kreis and Weili Nie and Yilun Xu and J. Leskovec and Stefano Ermon and Arash Vahdat},
  year   = {2026},
  eprint = {2410.21357},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.21357},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.21357.svg)](https://codeofpaper.com/paper/2410.21357)

Discussion