SIGMA: A Sigmoid-Gated Sampler for Test-Time Scaling in Diffusion Language Models

Ziwen Zhang, Yuyan Zhou, Yichen Zhu, James Kwok, Weiyu ChenNeurIPS 2026

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.

Figure 1: An illustration of the proposed SIGMA sampler.

Instead of rigid rules or uniform randomness, SIGMA makes two local decisions for every masked position:

  1. 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.
  2. 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 + SIGMA jumped MBPP accuracy from 40.60% to 50.80% while cutting denoising NFEs from 1,152 down to 972.
Table 3: SIGMA composed with HEX and PRISM on LLaDA-8B-Instruct and Dream-v0-Instruct-7B. For each TTS configuration we report accuracy (%) and total NFE, written as a+b where a is the sum of per-path denoising NFEs and b is the reward-model selection overhead. Parentheses after HEX denote (#block lengths × #seeds); after PRISM they denote the survivor count k. Shaded rows insert SIGMA as the inner sampler of the same TTS wrapper. Within each paired block, bold marks the better accuracy and underline marks the lower total NFE.
  • 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

Abstract

Autoregressive language models generate under a fixed left-to-right order, whereas diffusion language models (dLLMs) denoise masked tokens through flexible any-order trajectories that may commit multiple positions per step. This makes dLLMs a distinctive setting for test-time scaling: additional inference compute can diversify both token choices and the order in which positions are committed. Existing samplers do not explicitly allocate these two sources of diversity. Confidence-based decoding is reliable but often redundant, while global temperature sampling and random remasking inject stochasticity without distinguishing useful exploration from unreliable commitments. We propose SIGMA, a training-free sampler that formulates each denoising step as a constrained allocation problem over decoding efficiency, token-level diversity, trajectory-level diversity, and model-internal commitment uncertainty. The resulting objective decomposes joint sampling entropy into token and trajectory terms, yielding a sigmoid-form stochastic gate for position selection and an adaptive per-position temperature for token sampling. Experiments on LLaDA and Dream across math and code benchmarks show that SIGMA improves the accuracy--cost Pareto frontier and can be integrated into existing dLLM test-time scaling pipelines. Our code is available at: \url{https://github.com/zzwwayne/SIGMA/}.
BibTeX
@inproceedings{zhang2026sigma,
  author = {Ziwen Zhang and Yuyan Zhou and Yichen Zhu and James Kwok and Weiyu Chen},
  title = {{SIGMA: A Sigmoid-Gated Sampler for Test-Time Scaling in Diffusion Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=QeHRu4aPnt},
}
Figure