Transformer-Based Masked Diffusion Models Provably Learn Distributions with Latent Structure
cs.LG, cs.IT, math.IT, math.ST, stat.ML, stat.TH
Submitted: 2026-10-08
Updated: 2026-10-08
License: http://creativecommons.org/licenses/by/4.0/
The gist: Masked diffusion models (MDMs) generate discrete data by iteratively unmasking multiple tokens in parallel using a learned mask predictor.
Terminology
Abstract
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 V L of length- L sequences over a vocabulary of size V, 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 epsilon-accurate sampling in KL divergence with (LK par/epsilon) training samples, where K par is polynomial in L, V, 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.
Sources
- Convergence of Diffusion Models Under the Manifold Hypothesis in High-Dimensions
- Minimax Optimality of the Probability Flow ODE for Diffusion Models
- Confidence-Based Decoding is Provably Efficient for Diffusion Language Models
- Sampling is as easy as learning the score: theory for diffusion models with minimal data assumptions
- Optimal Inference Schedules for Masked Diffusion Models
- Parallelism, critical windows, and separations among diffusion language models
- Efficient Sampling with Discrete Diffusion Models: Sharp and Adaptive Guarantees
- From optimal score matching to optimal sampling
- Optimal estimation of a factorizable density using diffusion models with ReLU neural networks
- Generalization Bounds for Transformer-Based Next-Token Prediction in a Language Model
- Error Bounds and Optimal Schedules for Masked Diffusions with Factorized Approximations
- Transformers Meet In-Context Learning: A Universal Approximation Theory
- Muon is Scalable for LLM Training
- Decoupled Weight Decay Regularization
- Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution
- Schedule optimization for tau-leaping in masked discrete diffusion
- Score-Based Generative Modeling through Stochastic Differential Equations
- Discrete State Diffusion Models: A Sample Complexity Perspective
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks