Skip to content
AI.info

Research

Unifying Masked Diffusion Models with Various Generation Orders and Beyond

Unifying Masked Diffusion Models with Various Generation Orders and Beyond Overview Research area: Generative modeling for language — specifically masked diffusion models (MDMs) and the role of genera

arXiv
2602.02112
Published
2026-02-02
Authors
Chunsan Hong, Sanghyun Lee, Jong Chul Ye

AI summary

Unifying Masked Diffusion Models with Various Generation Orders and Beyond

Overview

Research area: Generative modeling for language — specifically masked diffusion models (MDMs) and the role of generation order (the sequence in which masked positions are unmasked) in determining sample quality.

Technical level: Advanced. The paper is built around a generalized continuous-time evidence lower bound (NELBO), free-form noise schedulers, velocity parameterizations, and a two-network training scheme.

Scope: The paper proposes a single mathematical framework (OeMDM) that expresses autoregressive models, standard masked diffusion, block diffusion, and vocabulary-scheduled diffusion as special cases of one generalized masked-diffusion objective, and then uses that framework to build LoMDM, a model that learns its own context-dependent generation order jointly with the diffusion backbone.

What This Paper Is About

Masked diffusion models are a candidate alternative to autoregressive models (ARMs) for language generation, but their output quality depends heavily on the order in which tokens are generated. Existing approaches either hard-code an ordering (for example, blockwise left-to-right) or train a separate ordering policy on top of an already-trained MDM, which adds cost and can land on suboptimal solutions because the backbone and the ordering are optimized in two stages. The paper's goal is to show that essentially all of these orderings can be written as one generalized masked-diffusion objective, and then to learn the ordering and the diffusion model together in a single training run, from scratch.

Key Contributions

  1. Order-expressive masked diffusion model (OeMDM). A generalized masked-diffusion framework built on a class of "free-form" noise schedulers with domain condition set ℐ. It shows that order-aware training requires sampling masked sequences from an order-induced corruption distribution rather than from uniform random masking, and it provides a generalized NELBO for this setting.

  2. A decomposition of the generalized NELBO into a reconstruction term (ℒ_main, structurally identical to the MDLM loss) and a mismatch term (ℒ_velocity) that measures the gap between the forward corruption velocity and the reverse unmasking velocity. ℒ_velocity is non-negative and equals zero exactly when A = Â.

  3. A unifying lens. OeMDM is shown to contain MDLM, ARMs (Proposition 3.3, plus Corollary D.4 for any fixed ordering), block diffusion / BD3LM (Appendix D.2), and GenMD4 (Appendix D.3, the vocabulary-wise scheduler case α_{ℱ[𝒳]}) under one formulation.

  4. Learnable-order masked diffusion model (LoMDM). A model that parameterizes a position-dependent, full-context-conditioned scheduler and trains the ordering and the diffusion backbone jointly by minimizing a single NELBO, so the learned scheduler is used directly at generation time to decide where to unmask next.

Main Findings

  • MDLM is the trivial special case. Setting both the forward scheduler and the reverse scheduler to α_mdlm(t) = 1 − t gives ℒ_velocity = 0 and reduces ℒ_OeMDM to ℒ_mdlm exactly.

  • Position-invariant schedules cause random ordering. Because MDLM uses one shared scheduler across all positions, the denoising ratio (α_s − α_t)/(1 − α_t) is equal everywhere, which is why the fundamental generation order is completely random. Modeling generation order therefore requires rethinking the forward noise scheduler itself, not just the sampler.

  • ARMs fall out as a limiting case. With a time-agnostic x_θ and a specific scheduler α_{arm,ε} ∈ ℱ[∅], the induced generative distribution equals the autoregressive product ∏ ⟨x_θ^(i)(y_i), x^(i)⟩ + O(ε), where y_i = [x^(1:i−1) : m^(L−i+1)], and OeMDM converges to ARM as ε → 0+. OeMDM's NELBO becomes the ARM negative log-likelihood.

  • The scheduler is the modeling object. Instantiating u from {x, x^(i), ∅} gives a fully input-dependent, coordinate-wise, or input-agnostic scheduler respectively; the reverse process analogously chooses û from {z_t, z_t^(i), x_θ(z_t,t), ∅}. A separate velocity A(u,t) = −∂_t α ⊘ (1 − α) makes explicit that the scheduler decides which positions are denoised earlier.

  • LoMDM beats discrete diffusion baselines. The paper reports that LoMDM achieves lower test perplexity than a range of discrete diffusion baselines including BD3LM and GenMD4, and that it substantially outperforms MDLM within the same trained hours.

  • LoMDM costs more per step but trains better per hour. Compared with conventional MDLM, LoMDM requires one extra forward pass of θ and two extra forward/backward passes of φ and ψ (each composed of 1 transformer layer plus 1 MLP layer), so tokens seen per second is slightly lower.

  • Not reported in the available content: the specific benchmark dataset names, dataset sizes, perplexity values, model parameter counts, and the exact number of trained hours are all absent from the truncated text, so no figures can be given here.

Methodology in Plain English

The starting observation is that a masked diffusion model's noise schedule is a single function of time shared by every position in the sentence. That uniformity is what forces random generation order. The authors therefore generalize the schedule so that each position i can have its own noise level α^(i)(u, t), where u is whatever information the designer allows the scheduler to see (the full clean sentence x, a single token x^(i), or nothing at all). They define an admissible class of these "free-form" schedulers with boundary conditions α(u,0) = 1, α(u,1) = 0 and a strictly decreasing profile in time.

They then derive the true reverse posterior and a model-parameterized reverse process for this generalized schedule, and prove the corresponding NELBO. Because the forward process is now scheduler-specific, training has to draw masked sequences from the scheduler's own corruption distribution rather than from uniform random masking. The resulting bound splits into a reconstruction term weighted by the position's velocity, plus a mismatch term that is minimized when the corruption velocity and the unmasking velocity agree.

To make this concrete, LoMDM lets the forward scheduler depend on the full clean sentence (ℐ = 𝒳^L) and the reverse scheduler depend on the current noisy state (Î = 𝒵_t^L). Both schedulers are parameterized as α^(i) = 1 − t^(c₁ + c₂·[NormSig(g(f(·)))]_i), with c₁ > c₂ to keep the NELBO finite, and the corresponding velocities follow analytically. Rather than adding large new networks, LoMDM reuses the diffusion transformer's own layers as a frozen feature extractor (via stop-gradient) and attaches a single transformer layer plus an MLP for each of φ and ψ. Because the forward scheduler appears inside the expectation, the authors use a two-sample, low-variance RLOO-style estimator to get a usable gradient for φ.

Why This Matters

Impact on research. The paper reframes generation order in masked diffusion not as a sampler-level add-on but as a property of the noise scheduler itself, and demonstrates that a single NELBO covers MDLM, ARMs, BD3LM, and GenMD4. That gives researchers a shared notation and a diagnostic (ℒ_velocity) for comparing ordering strategies, and it removes the two-stage optimization that earlier ordering-policy work relied on. It also gives ARM-style left-to-right generation a diffusion interpretation rather than treating the two families as unrelated.

Potential real-world applications (these are applications of the model class, not claims made in the paper's text):

  • Interactive text assistants and completion systems, where the model can commit to confident tokens first and delay uncertain ones.
  • Constrained or infilling-heavy generation such as editing, redrafting, or filling in masked spans, where a fixed left-to-right order is a poor fit.
  • Structured generation where part of the content is already known and the model must generate around it in a context-dependent order.
  • Any deployment that has already invested in masked diffusion infrastructure and wants better sample quality without adding a separate ordering module.

Industry relevance. The work comes from KAIST's Graduate School of AI with co-authorship from KRAFTON, and is tagged with ICML and a public code release (the paper points to a code link, though the URL is not reproduced in the available text). The practical pitch is that a learnable ordering can be added to a masked diffusion model by reusing the backbone's own features, keeping added parameters to two small per-branch heads. The trade-off — slightly lower throughput measured in tokens per second, but better results within the same trained hours — is the kind of result that matters to teams choosing between diffusion and autoregressive decoding.

Future Directions

  • Scale LoMDM to larger backbones and longer sequences, and compare directly against strong autoregressive baselines rather than only against discrete diffusion baselines.
  • Understand what order the learned schedulers actually discover: whether context-dependent orderings differ meaningfully from left-to-right or blockwise patterns, and whether ℒ_velocity is a useful diagnostic for when learning has stalled.
  • Extend the OeMDM formulation to other forward corruption families (for example uniform-corruption discrete diffusion, which the paper lists as the alternative to masking corruption) and to modalities beyond text.
  • Reduce the training overhead: the extra forward pass of θ and the extra passes of φ and ψ lower tokens per second, so cheaper estimators or amortized scheduling are natural follow-ups.
  • Since the unified NELBO is shown to cover fixed orderings such as ARM (Corollary D.4) and BD3LM, an open question is whether parts of the ordering can be hand-specified and parts learned within a single objective.

Target Audience

Researchers and graduate students working on discrete diffusion and language modeling who want a single theoretical framework for generation order; practitioners who already run masked diffusion models and are deciding whether a learned ordering is worth the extra compute; and anyone comparing autoregressive and diffusion approaches to text generation who needs to see the formal relationship between the two. Readers without a background in diffusion ELBOs and continuous-time Markov processes will find the theory sections demanding, though the framing and the empirical claims are accessible on their own.

Authors’ 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.

Read the original paper