TL;DR
Unlike standard left-to-right language models, diffusion language models (dLLMs) generate text like a crossword puzzle—filling in blank spaces in any order and multiple words at a time. When spending extra compute at inference time to generate multiple candidate answers, existing samplers struggle to explore diverse solutions without introducing cascading errors. This paper introduces SIGMA, a training-free, drop-in sampler that mathematically balances which blanks to fill and how creatively to fill them, yielding smarter answers for less compute.
What Problem Does This Paper Address?
Autoregressive models write strictly left-to-right. Diffusion language models (dLLMs) start with a row of masked [M] tokens and iteratively unmask them, conditioning on the entire bidirectional context at every step.
This unlocks a fascinating playground for test-time scaling (TTS)—spending extra compute to generate, search over, or aggregate multiple candidate answers. In dLLMs, diversity comes in two flavors: token-level (picking different words) and trajectory-level (unmasking positions in different orders). Because every committed word reshapes future context, these two axes are tightly coupled.
Existing samplers weren't built for this balancing act:
- Confidence-based decoding commits the surest tokens first. It is reliable for a single answer, but deterministic—run it ten times, and you get redundant clones.
- Global temperature scaling turns up randomness uniformly across all positions. Push it too far, and an uncertain position commits a bad token early, poisoning the bidirectional context for every step that follows.
- Random remasking erases already-committed words indiscriminately, wasting compute redoing high-confidence work while leaving risky guesses untouched.
How do we explore genuinely diverse trajectories and word choices without blowing up reliability?
Methods
Enter SIGMA (SIgmoid-Gated Masked sAmpler), a training-free drop-in sampler that treats every denoising step as a constrained budget-allocation problem.
Instead of rigid rules or uniform randomness, SIGMA makes two local decisions for every masked position:
- A Bernoulli Position Gate (Trajectory Diversity): Each blank gets a coin-flip probability of being committed right now, naturally varying the order in which sentences crystallize across runs.
- An Adaptive Local Temperature (Token Diversity): Rather than one global temperature knob, each position gets its own temperature $\tau_i$ to rescale its vocabulary distribution.
To keep things from going off the rails, SIGMA enforces a per-step commitment uncertainty budget ($\rho$). Because there is no ground truth at test time, uncertainty is measured via self-disagreement: the probability that a token drawn from the temperature-adjusted distribution disagrees with a token drawn from the model's raw distribution.
By maximizing decoding efficiency (unmasking more tokens per step) plus joint entropy (diversity) under this uncertainty budget, the math cleanly decouples across positions. Solving the Lagrangian yields a closed-form sigmoid gate for position selection alongside a lightweight grid search + bisection step for local temperatures.
Datasets
Because SIGMA is completely training-free, no training datasets are used. The authors evaluate two open-source dLLMs—LLaDA-8B-Instruct and Dream-v0-Instruct-7B—across four established reasoning and coding benchmarks (no new benchmarks are introduced):
- Math: GSM8K and MATH500
- Code Generation: HumanEval and MBPP
Key Insights and Ideas
- Where you apply randomness matters more than how much you apply: In an ablation, SIGMA achieved an average token temperature of ~0.97 while keeping quality-degradation probability near 0.02. A fixed global temperature of 1.0 caused degradation to spike to 0.45. Concentrating exploration only where self-disagreement is cheap prevents fragile positions from derailing the sequence.
- Standard threshold decoding is just SIGMA in disguise: When you dial SIGMA's diversity weight ($\lambda$) and minimum temperature down to zero, the sigmoid gate sharpens into a deterministic step function—recovering classic confidence-threshold decoding as a mathematical limiting case.
- Inner-loop smarts amplify outer-loop search: Higher-level TTS frameworks (like tree search or pruning) rely on an inner sampler to propose paths. Giving them diverse and reliable trajectories makes every unit of search compute go further.
Key Results
Compute cost in dLLMs is measured in NFEs (Number of Function Evaluations, i.e., forward passes through the network).
- Standalone Pareto Gains: Under a target budget of 500 NFEs on Dream-v0-Instruct-7B, SIGMA reaches 68.13% Pass@$k$ on MATH500 and 88.62% on HumanEval, outperforming threshold decoding (54.13% and 81.91%) and confidence decoding (45.13% and 67.48%).
- Plug-and-Play TTS Scaling: When slotted inside existing outer-search TTS pipelines (HEX and PRISM), SIGMA improved accuracy in 21 out of 24 paired comparisons while reducing total NFEs in 16 of them. For instance, on LLaDA-8B-Instruct,
HEX + SIGMAjumped MBPP accuracy from 40.60% to 50.80% while cutting denoising NFEs from 1,152 down to 972.
- Negligible Overhead: Because the per-position math vectorizes over logits the model already computed, SIGMA runs at 36.85 ms/NFE on GSM8K—matching greedy confidence decoding.
Limitations and Future Work
The authors note that their experiments are limited to two model families (LLaDA and Dream) at the 7B–8B parameter scale and four standard math/code benchmarks. Evaluating SIGMA across broader dLLM architectures and more complex, open-ended tasks remains a key direction for future work.
Summary updated