Masked Diffusion Models are secretly Learned-Order Autoregressive Models

Prateek Garg, Bhavya Kohli, Sunita Sarawagi

TL;DR

Standard masked diffusion models (MDMs) implicitly train across uniformly random generation orders, which can lead to suboptimal generation on data without a natural sequence (like tables or graphs). This paper proves that equipping MDMs with feature-specific (multivariate) noise schedules breaks schedule invariance, mathematically converting MDMs into autoregressive models with learnable generation orders.

What Problem Does This Paper Address?

Autoregressive models (ARMs) generate data step-by-step in a predefined sequence. While natural for text (e.g., left-to-right), fixed ordering is poorly suited for modalities like tabular data, graphs, and images, where no canonical order exists.

Masked Diffusion Models (MDMs) bypass fixed ordering by unmasking tokens iteratively. However, standard MDMs optimize equally across all permutations—effectively acting as any-order autoregressive models. In practice, generation quality heavily depends on decoding order, creating a mismatch: models are trained on uniformly random orders, even though certain orders yield much better generations at inference.

The authors investigate whether the masked diffusion objective can be modified to naturally discover and optimize an optimal, state-independent decoding order during training.

Methods

  • Multivariate Noise Schedules: Rather than applying a single shared noise schedule $\alpha_t$ across all sequence positions, the authors assign an independent schedule $\alpha_{t, \ell} = 1 - t^{w_\ell}$ to each dimension or feature $\ell$.
  • Autoregressive Loss Decomposition (Proposition 3.1): The authors prove that the continuous-time discrete diffusion ELBO decomposes into a weighted expectation of standard autoregressive log-likelihoods over permutation orders: $$\mathcal{L}(x_0^{1:L}) = -\mathbb{E}_{\pi} \left[ \sum_i \log \mu(x_{\pi(i)} \mid x_{\pi(<i)}; \theta) \right]$$ where the probability of a given decoding order $\pi$ is determined entirely by the joint distribution of transition times under the multivariate schedules: $$P(\pi) = \int_{\Omega_\pi} \left( \prod_\ell -\alpha'_{t,\ell} \right) dt$$
  • Order Sampling: By showing that a token’s transition time $t^*_\ell$ follows the cumulative distribution $P(t^*_\ell \le t) = 1 - \alpha_{t,\ell}$, generation orders can be sampled via inverse CDF sampling ($t_\ell = \alpha_\ell^{-1}(u)$ for $u \sim \text{Uniform}(0, 1)$) and sorted.
  • Optimization: To train the schedule parameters $w_\ell$ through the discrete masking process, the authors employ the REINFORCE Leave-One-Out (RLOO) gradient estimator, yielding their method, MDM(LS) (Masked Diffusion Model with Learned Schedules).

Datasets

The authors evaluate their approach on tabular data synthesis across six standard benchmarks:

  • Adult
  • Default
  • Beijing
  • Shoppers
  • Magic
  • News

No new benchmarks are introduced; datasets are evaluated against established tabular baselines: STaSy, CoDi, TabDDPM, TabSyn, and TabDiff.

Key Insights and Ideas

  • Diffusion Schedules Dictate Generation Order: In standard discrete diffusion, the continuous-time loss is invariant to monotonic reparameterizations of a single schedule. Giving each feature its own schedule breaks this invariance, directly linking the shape of each schedule to the probability distribution over decoding orders.
  • Diffusion as Order-Learning ARMs: The continuous-time MDM objective mathematically simplifies into learning-order autoregression (LO-ARM), proving that discrete diffusion models with feature-wise noise schedules are fundamentally autoregressive models that learn their own generation sequence.
  • Schedules Actually Update: Prior tabular diffusion models (notably TabDiff) attempted to learn schedules for discrete features but suffered from optimization stagnation where schedules barely shifted from initialization. MDM(LS) successfully learns distinct, non-linear schedules for each column.

Key Results

  • Lower Validation Loss: MDM(LS) consistently achieves lower validation negative log-likelihood compared to fixed linear schedules (MDM):
  • Default: $18.33$ vs. $19.42$
  • News: $48.94$ vs. $49.97$
  • Adult: $13.15$ vs. $13.19$
  • High Parameter Efficiency: With only $\sim\mathbf{86\text{K}}$ parameters, MDMs remain competitive on pairwise correlation (Trend) and marginal density (Shape) with state-of-the-art baselines like TabDiff, which uses over $\mathbf{10\text{M}}$ parameters (e.g., TabDiff achieves $0.9851$ Trend on Adult vs. $0.9778$ for MDM(LS) and $0.9747$ for linear MDM).
  • Fidelity Gap: Despite lower validation loss, downstream synthetic data fidelity metrics ($\alpha$-Precision, $\beta$-Recall, Trend, Shape) showed limited improvement over standard uniform MDM.

Limitations and Future Work

  • High Loss Variance: While learned schedules improve likelihood optimization, they introduce training variance across dimensions. In univariate discrete diffusion, linear schedules typically perform best downstream due to minimal gradient variance; the elevated variance of learned multivariate schedules likely explains why downstream fidelity gains remain modest.
  • State Independence: The learned order distribution is global and static across the dataset, rather than dynamically adapting per instance based on data context.
  • Future Directions: Developing variance-reduction techniques tailored for multivariate diffusion schedules, and investigating whether learned schedules can automatically discover causal or conditional dependencies among tabular features.

Summary updated

BibTeX
@inproceedings{garg2025masked,
  author = {Prateek Garg and Bhavya Kohli and Sunita Sarawagi},
  title = {{Masked Diffusion Models are secretly Learned-Order Autoregressive Models}},
  booktitle = {PriGM @ EurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=zXO7Af8DZd},
}
Figure