Unifying Masked Diffusion Models with Various Generation Orders and Beyond
Chunsan Hong, Sanghyun Lee, Jong Chul Ye
TL;DR
This work tackles the dependence of generation quality on unmasking order in masked diffusion models (MDMs) by introducing order-expressive masked diffusion models (OeMDM) and a learnable-order variant (LoMDM). OeMDM provides a generalized NELBO that treats the generation order as a learnable scheduler, enabling unmasking strategies that unify autoregressive, block-diffusion, and diffusion-based decoding within a single framework. LoMDM extends this by jointly learning a context-aware forward scheduler and a diffusion backbone via a single objective, yielding order-aware training and inference with improved sample quality. Empirically, LoMDM achieves lower perplexities than BD3LM, GenMD4, and MDLM across LM1B and OpenWebText, shows strong zero-shot generalization, and attains MDLM-level performance after roughly 18% of the training steps, highlighting substantial efficiency gains and practical impact for discrete diffusion-based language modeling.
Abstract
Masked diffusion models (MDMs) are a potential alternative to autoregressive models (ARMs) for language generation, but generation quality depends critically on the generation order. Prior work either hard-codes an ordering (e.g., blockwise left-to-right) or learns an ordering policy for a pretrained MDM, which incurs extra cost and can yield suboptimal solutions due to the two-stage optimization. Motivated by this, we propose order-expressive masked diffusion model (OeMDM) for a broad class of diffusion generative processes with various generation orders, enabling the interpretation of MDM, ARM, and block diffusion in a single framework. Furthermore, building on OeMDM, we introduce learnable-order masked diffusion model (LoMDM), which jointly learns the generation ordering and diffusion backbone through a single objective from scratch, enabling the diffusion model to generate text in context-dependent ordering. Empirically, we confirm that LoMDM outperforms various discrete diffusion models across multiple language modeling benchmarks.
