English

Leveraging Pretrained Language Models as Energy Functions for Glauber Dynamics Text Diffusion

Machine Learning 2026-05-07 v1

Abstract

We present a discrete diffusion-based language model using Glauber dynamics from statistical physics. Our main insight is that instead of trying to train a discrete state space diffusion model using Glauber dynamics with a uniform transition kernel as the forward process, one can set up an ``energy function'' based on pretrained causal/masked language models. When viewed as the stationary distribution, this energy function allows us to significantly improve the quality of the generated text. Incorporating UL2 as the pretrained model into our diffusion pipeline, we outperform prior diffusion based LMs and perform competitively with autoregressive models of comparable model sizes. Furthermore, our models are competitive with or outperform prior diffusion models and GPT-2 style auto-regressive models on zero-shot common sense reasoning tasks as well as planning and search tasks like Sudoku and Zebra puzzles.

Keywords

Cite

@article{arxiv.2605.04291,
  title  = {Leveraging Pretrained Language Models as Energy Functions for Glauber Dynamics Text Diffusion},
  author = {Tarun Kathuria and Sachin Kumar},
  journal= {arXiv preprint arXiv:2605.04291},
  year   = {2026}
}

Comments

To appear in ACL 2026

R2 v1 2026-07-01T12:51:50.804Z