cs.LGOct 29, 2026

End-to-End Guarantees for Masked Diffusion Models under Conditional Mixing

Authors: Fareed Sheriff

Organizations: Massachusetts Institute of Technology

Abstract

Masked diffusion models train a denoiser on masked cross-entropy and generate by unmasking many positions in parallel. Existing MDM sampling bounds assume an exact denoiser or leave its error uncontrolled while training bounds cover only the masking distribution on which the model was trained. We present an end-to-end guarantee for a learned denoiser under conditional mixing (CM): stationary sources (e.g. floored order-rr Markov and two-sided-Doeblin hidden-Markov sources) for which revealing distant visible tokens moves a masked token's posterior on average exponentially little in the distance with correlation length τcτ_c. We show the empirical risk minimizer trained under any masking distribution attains per-token excess ε′\varepsilon' on that distribution from ε′−O(τclog⁡∣V∣)\varepsilon'^{-\mathcal{O}(τ_c\log|\mathcal{V}|)} training sequences, independent of sequence length NN -- one sample budget serves every decoding schedule when each schedule's denoiser is trained under its own weighting. We further show that the exponent's order Θ(τclog⁡∣V∣)Θ(τ_c\log|\mathcal{V}|) is minimax-optimal up to constants; more efficient rates require added structure. With this, we bound the end-to-end KL as KL(π∥palg)≤ε+Nε′\mathrm{KL}(π\Vert p_{\mathrm{alg}})\leq \varepsilon+N\varepsilon' under a dilated schedule of T=O(τclog⁡(N∣V∣/ε))T=\mathcal{O}(τ_c\log(N|\mathcal{V}|/\varepsilon)) denoising steps versus Ω(N)Ω(N) steps for a fixed random order on an explicit CM source. Finally, we show that block-autoregressive samplers chain across blocks with no added error and that a ΛΛ-looped order-rr message-passing class on order-rr sources achieves polynomial sample complexity, with approximation error improving per loop until saturation at Λr≈τclog⁡(1/ε′)Λr\approx τ_c\log(1/\varepsilon'). Experiments on released and retrained models support our results' qualitative predictions.

Figures & tables

Appendix figures & tables6 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

Oct 8, 2026

Transformer-Based Masked Diffusion Models Provably Learn Distributions with Latent Structure

Masked diffusion models (MDMs) generate discrete data by iteratively unmasking multiple tokens in parallel using a learned mask predictor. Their output carries two errors: parallelization error due to parallel sampling, and estimation error from the mask predictor learned with finite samples. Existing theory treats these errors separately, and the available statistical bounds typically scale with the number VLV^L of length-LL sequences over a vocabulary of size VV, suffering from the curse of dimensionality. In this work, we establish end-to-end statistical guarantees showing that transformer-based MDMs learn structured distributions with a sample complexity governed by their latent structure. Specifically, we model this structure through mixtures of hidden Markov trees, which capture latent dependencies within components and heterogeneity across components. When the data distribution is well approximated by such a mixture, a transformer-based MDM with parallel unmasking schedules achieves ε\varepsilon-accurate sampling in KL divergence with O~(LKpar/ε)\widetilde{O}(LK_{\mathrm{par}}/\varepsilon) training samples, where KparK_{\mathrm{par}} is polynomial in LL, VV, the number of hidden states, and the number of mixture components. The transformer network and sampling procedure require no knowledge of the tree topologies or component parameters, thereby adapting to the unknown latent structure automatically. Overall, our results provide theoretical justification for the empirical effectiveness of MDMs on real-world data.
Feb 20, 2026

Improving Sampling for Masked Diffusion Models via Information Gain

Masked Diffusion Models (MDMs) enable flexible decoding orders, yet existing samplers remain largely greedy, selecting locally certain tokens without accounting for their downstream effects. We show that this myopia can increase cumulative uncertainty and lead to suboptimal generation. To address this, we propose the Info-Gain Sampler, a training-free decoding method that uses the bidirectional structure of MDMs to balance immediate uncertainty with the information gained over remaining masked positions. Across reasoning, coding, creative writing, and image generation tasks, Info-Gain Sampler consistently outperforms existing MDM samplers, improving average reasoning accuracy by 2.9--11.6 percentage points and achieving a 62.8% average win rate in creative writing. The code is available at https://github.com/yks23/Information-Gain-Sampler.
Mar 2, 2026

DUEL: Exact Likelihood for Masked Diffusion via Deterministic Unmasking

Masked diffusion models (MDMs) generate text by iteratively selecting positions to unmask and then predicting tokens at those positions. Yet MDMs lack proper likelihood evaluation: the evidence lower bound (ELBO) is not only a loose bound on log-likelihood, but, as we show, is also computed under the training distribution rather than the test-time distribution. We resolve this within our DUEL framework, which unifies leading MDM sampling strategies that employ deterministic\textit{deterministic} position selection. We prove that DUEL samplers admit exact likelihood computation under the test-time distribution\textbf{exact likelihood computation under the test-time distribution} -- giving MDMs proper\textit{proper} likelihood, and hence proper perplexity, for the first time. This proper perplexity is the natural analogue of autoregressive perplexity and lets us revisit key questions about MDMs. MDMs are substantially better than previously thought\textbf{MDMs are substantially better than previously thought}: the MDM-autoregressive perplexity gap shrinks by up to 32%32\% on in-domain data and 82%82\% on zero-shot benchmarks. DUEL enables the first principled comparison of fast,parallel samplers across compute budgets -- an analysis impossible with the ELBO and unreliable with generative perplexity -- identifying a strong default method. Finally, oracle search over position orderings reveals MDMs can far surpass autoregressive models -- achieving 36.4736.47 vs. 52.1152.11 perplexity on AG News -- demonstrating the ceiling of MDM performance has not yet been reached.