atlas

Research map / Probabilistic and scientific modeling / Molecules and proteins

Train for the Worst, Plan for the Best: Understanding Token Ordering in Masked Diffusions

ICML 2025 · Probabilistic and scientific modeling › Molecules and proteins · approach: Sparse concepts and hypothesis testing · 0 citations (OpenAlex)

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 train on computationally hard infilling subproblems, and that adaptive (top-probability-margin) unmasking order at inference lets pretrained MDMs solve Sudoku/Zebra puzzles and boost LLaDA 8B on coding/math, beating teacher-forced ARMs on logic puzzles.

Problem

Masked diffusion models must learn exponentially many infilling subproblems during training, and vanilla random-order inference evaluates poorly trained marginals; it is unclear whether MDMs' inference flexibility can outweigh training complexity.

Approach

Instead of retraining, choose which positions to unmask at inference adaptively using model confidence (top probability or top-probability margin), so the sampler sidesteps hard subproblems; theory based on planted CSP hardness shows why training on all masking problems is hard for order-agnostic learners.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace vanilla inference with adaptive inferenceMDM · L&O-NAE-SATaccuracy: 78.06% -> 93.76%; 75.70% -> 93.54%; 74.60% -> 92.21%; 67.94% -> 90.01%; 62.84% -> 88.91%Helped
use Top probability margin ordering instead of vanilla decoding6M MDM · Sudokuaccuracy: 6.88% -> 89.49%Helped
use Top probability ordering instead of vanilla decoding (ablation)6M MDM · Sudokuaccuracy: 6.88% -> 18.51%Helped
use Top probability margin ordering instead of Top probability ordering (ablation)6M MDM · Sudokuaccuracy: 18.51% -> 89.49%Helped
use Top probability ordering instead of vanilla decoding (ablation)19M MDM · Zebra puzzleaccuracy: 76.9 % -> 98.5 %Helped
use Top probability margin ordering instead of vanilla decoding19M MDM · Zebra puzzleaccuracy: 76.9 % -> 98.3 %Helped
use adaptive inference instead of vanilla inferenceLLaDa 8B · HumanEval-Multiaccuracy: 16.5% -> 20.8% (Top probability); 16.5% -> 25.4% (Top prob. margin)Helped
use Top probability margin instead of Top probability ordering (ablation)LLaDa 8B · Mathaccuracy: 31.3% -> 34.3%Helped
use Top probability ordering instead of vanilla inference (ablation)LLaDa 8B · MMLUaccuracy: 33.2% -> 36.5%Helped
use Top probability margin instead of vanilla inferenceLLaDa 8B · MMLUaccuracy: 33.2% -> 35.4%Helped
use Top probability ordering instead of vanilla inference (ablation)LLaDa 8B · ROCStoriesaccuracy: 21.23% -> 21.10%No clear effect
use Top probability margin instead of vanilla inferenceLLaDa 8B · ROCStoriesaccuracy: 21.23% -> 21.41%Helped

Surprising findings

Limitations

Experimental setup

Datasets: SlimPajama Sudoku puzzle dataset Zebra puzzle dataset L&O-NAE-SAT synthetic distribution

Benchmarks: Sudoku Zebra puzzle HumanEval MMLU Math ROCStories SlimPajama likelihood

Metrics: accuracy generative perplexity entropy log-likelihood scaling

Baselines: vanilla MDM inference ARM without ordering ARM with ordering LLaDA vanilla inference top probability

Builds on: masked diffusion models score-entropy loss SEDD LLaDA

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy