Research map / Image generation / Fast diffusion sampling
Masked Diffusion Models are Secretly Time-Agnostic Masked Models and Exploit Inaccurate Categorical Sampling
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Shows masked diffusion models (MDMs) are theoretically time-agnostic masked models, proposes a 20x faster first-hitting sampler, and identifies a float32 Gumbel truncation issue that lowers effective temperature and inflates generative perplexity comparisons vs. ARMs.
Problem
Whether masked diffusion models truly outperform autoregressive models in text generation, and whether MDM training and sampling require continuous time and are efficient; prior evaluations rely on generative perplexity which may be distorted by numerical issues.
Approach
Reformulates the MDM NELBO as a partition over number of masked tokens (time-agnostic), derives a first-hitting sampler that analytically samples unmasking times and only does one categorical draw per step, and shows float32 Gumbel-max sampling truncation distorts categorical probabilities, reducing token diversity and making Gen PPL misleadingly low.
Key results
- With float32 Gumbel sampling, MDM generative perplexity drops below 15 at ~50k steps while entropy keeps decreasing; switching to 64-bit raises Gen PPL to ~126 with entropy ~5.66, and truncation-matched 64-bit gives Gen PPL 28.64.
- The first-hitting sampler is up to 20x faster in wall-clock time than previous MDM sampling strategies, and after fixing precision the true MDM Gen PPL is around 100 versus below 40 for ARMs.
- Theory shows MDM training objective is a time-agnostic ELBO over the number of masked tokens, so the time-independent network is theoretically optimal.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Switch categorical sampling from 32-bit to 64-bit floating point precision (ablation) | MDLM sampling on OpenWebText · OpenWebText generation (2048 steps) | Gen PPL and entropy: Gen PPL 31.24 -> 126.11; entropy 5.17 -> 5.66 | Hurt |
| Manually truncate 64-bit uniform samples to mimic 32-bit Gumbel truncation (ablation) | MDLM 64-bit categorical sampling · OpenWebText generation (2048 steps) | Gen PPL and entropy: Gen PPL 126.11 -> 28.64; entropy 5.66 -> 5.12 | Helped |
| Use the first-hitting sampler with 64-bit precision (after fixing numerics) versus original MDM sampler | MDLM · OpenWebText | sampling wall-clock time: up to 20x faster | Helped |
| Fix categorical sampling to 64-bit precision, so truncation is negligible | MDMs evaluated on OpenWebText · OpenWebText generation | Gen PPL vs ARMs: true MDM Gen PPL around 100 vs ARM below 40 | Hurt |
| Trade-off by manually tuning temperature in [0.8,1.0] with correct 1024-step high-order sampler | MDMs · OpenWebText generation | Gen PPL vs entropy trade-off | Mixed |
Surprising findings
- Low generative perplexity (<15) for MDMs at high step counts is an artifact of float32 truncated Gumbel sampling that reduces token diversity.
- Caching-based MDM sampling NFE scales with batch size rather than being bounded by sequence length in batched sampling.
Limitations
- Text experiments may inherently favor ARMs since text follows left-to-right order.
- Speedup of 20x may not hold in other settings.
- Experiments use a single pretrained codebase (MDLM/SEDD) on OpenWebText with generative perplexity as main metric.
Experimental setup
Datasets: OpenWebText
Benchmarks: OpenWebText
Metrics: generative perplexity entropy wall-clock time NFE
Baselines: SEDD Absorb MDLM autoregressive model (AR) MDLM with caching strategy
Builds on: MDLM SEDD D3PM DDPM MaskGIT
Closest papers by meaning
- Scaling up Masked Diffusion Models on Text (ICLR 2025 · similarity 0.94)
- Theoretical Benefit and Limitation of Diffusion Language Model (NeurIPS 2025 · similarity 0.93)
- Simple and Effective Masked Diffusion Language Models (NeurIPS 2024 · similarity 0.93)
- Accelerated Sampling from Masked Diffusion Models via Entropy Bounded Unmasking (NeurIPS 2025 · similarity 0.92)
- Beyond Masked and Unmasked: Discrete Diffusion Models via Partial Masking (NeurIPS 2025 · similarity 0.92)
- Breaking AR’s Sampling Bottleneck: Provable Acceleration via Diffusion Language Models (NeurIPS 2025 · similarity 0.92)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
