betaFeedback

WorksComputer Science

Test-Time Scaling for Diffusion Language Models with Frequency-Aware Remasking

Abstract

Diffusion language models (DLMs) generate text through iterative denoising, where decisions about which tokens to commit or remask strongly affect output quality. Existing certainty-aware strategies rely on instantaneous confidence or entropy, but these local signals can be misleading on difficult reasoning problems. We formulate DLM test-time scaling as adaptive allocation of both inference compute and decoding strategies. Our two-stage approach uses a fast base sampler to solve easy questions, then applies frequency-aware remasking to the remaining hard questions. This strategy tracks how often each token's prediction changes across denoising steps and preferentially commits frequently changing tokens, encouraging samples to explore alternative reasoning paths rather than collapse onto the model's preferred trajectory. Experiments with LLaDA-8B-Instruct and Dream-7B-Instruct show consistent improvements over a strong adaptive allocation baseline, with absolute accuracy gains of up to 3.73 percentage points (LLaDA) and 7.33 percentage points (Dream) on MATH-500, and absolute coverage gains of up to 11.39 percentage points (LLaDA) and 10.98 percentage points (Dream) on HumanEval. On questions unsolved by the base certainty-aware strategy after 100 samples, frequency-aware remasking recovers solutions for 3.75% to 18.75% of examples.

Introduction

Diffusion language models (DLMs) have emerged as a promising alternative to autoregressive language models for text generation. Rather than generating tokens strictly from left to right, DLMs produce sequences through iterative denoising, where masked tokens are gradually unmasked into a complete response. This direction builds on discrete and masked diffusion formulations for language (Austin et al., [1]; Hoogeboom et al., [15]; Li et al., [20]; Sahoo et al., [31]), and recent large-scale DLMs such as LLaDA and Dream perform competitively with similarly sized autoregressive models (Nie et al., [29]; Ye et al., [41]).

A key design choice in DLM inference is the token update or remasking strategy. Existing methods typically use the model’s instantaneous predictive distribution to decide which tokens should be fixed and which should remain available for further processing (Nie et al., [29]; Li et al., [19]). For example, LLaDA uses confidence-driven remasking, where high-confidence tokens are progressively unmasked while low-confidence tokens remain masked longer (Nie et al., [29]). DREAM-style implementations commonly use entropy-based remasking, where high-entropy positions are treated as uncertain and kept active for additional denoising (Ben-Hamu et al., [3]; Gong et al., [14]). Recent fast inference frameworks further accelerate DLM decoding through confidence-thresholding or confidence-aware parallel decoding, committing tokens once their confidence exceeds a predefined threshold (Wu et al., [38]; Ma et al., [25]; Mohamed et al., [28]). These approaches improve inference efficiency, but they share a common principle: local certainty under the current predictive distribution is used as a proxy for whether a token has been correctly resolved. The choice of decoding strategy has a substantial effect on DLM performance. For Dream-7B-Instruct under a fixed 256-step budget, switching the decoding heuristic from low-confidence to entropy changes MATH-500 accuracy from 21.80% to 32.20% [18], and reported LLaDA-8B-Instruct baselines on MATH-500 range from roughly 26% to 42% depending on generation length, denoising steps, and decoding strategy [29, 2, 12, 45]. DLM performance should therefore not be characterized by a single fixed decoding run. More importantly, these observations point to a structural property of DLM decoding: different strategies can reach similar aggregate accuracy while solving different subsets of questions.

This complementary view motivates an adaptive view of DLM decoding. Rather than applying a fixed sampler uniformly to all inputs, the decoder should identify which questions a fast strategy solves and which need a different decoding behavior. We therefore study DLM test-time scaling as an adaptive allocation problem over both number of responses and decoding strategy. The remaining question is what that second decoding behavior should be.

Within this framing, we identify false confidence as a limitation of certainty-aware decoding: tokens can appear locally confident while still belonging to an incorrect reasoning trajectory. On hard reasoning problems, these confident commitments quietly steer every sample toward the model’s preferred reasoning path, so repeated samples from the same certainty-aware decoder converge to the same wrong answer. Local confidence and entropy alone cannot diagnose this failure, because they are snapshots of a single denoising step. To address this limitation, we propose frequency-aware remasking, which augments certainty-aware remasking with a trajectory-level signal based on how often token predictions change across denoising steps and reverses the usual commitment order: frequently changing tokens are committed first, so that different samples make different choices at the positions where the model is still undecided and go on to explore different solution paths. We incorporate this signal into a two-stage adaptive method: a fast base sampler first resolves easy questions, and frequency-aware remasking is then applied only to the remaining unresolved questions. We evaluate our approach on mathematical reasoning and code generation benchmarks, examining both standard test-time scaling behavior and the recovery of challenging questions left unresolved by certainty-based decoding. The results show that adaptive allocation and frequency-aware remasking improve the efficiency–accuracy tradeoff by combining the speed of certainty-based decoding with the robustness of frequency-aware remasking.

Our contributions are summarized as follows:

  • We formulate DLM test-time scaling as an adaptive allocation problem over the number of responses and decoding strategies, and propose a two-stage algorithm that switches decoding strategy for the questions the fast base sampler fails to solve.

  • We identify false confidence as a motivation for trajectory-level decoding signals, and introduce frequency-aware remasking to complement instantaneous confidence- and entropy-based token update rules.

  • We show that frequency-aware remasking recovers solutions for up to 18.75% of challenging reasoning questions, while also yielding up to 7.33% absolute accuracy gains on MATH-500 and 11.39% coverage gains on HumanEval.

Related Work

Test-Time Scaling for Language Models

Test-time compute scaling has proven effective for autoregressive models via best-of-NN sampling, beam search, chain-of-thought, tree search, and adaptive allocation [5, 32, 36, 40, 17, 23, 42]. Adapting these ideas to diffusion language models is less straightforward, as the natural scaling axis—denoising steps—is often already saturated. Wang et al. [34] establish a formal connection between remasking and inference-time scaling, showing that increasing sampling steps monotonically improves quality. Subsequent work scales along complementary axes: Prism [2] combines hierarchical search with self-verification; Bilal et al. [4] searches over denoising trajectories; RFG [7] provides reward-free guidance via log-likelihood ratios. These search-based methods scale compute along the width axis. For AR models, adaptive allocation—deciding where to spend compute rather than how many samples to draw—is a complementary and important scaling dimension ([35, 10, 13] (Zuo and Zhu 2026; Zuo et al. 2026)). In the DLM setting, this dimension remains underexplored. Liang et al. [21] identify rigid unmasking schedules as a key limitation, and propose adaptive NFE allocation through a redesigned training objective. Cholakov et al. [8] address the same problem at the scheduling level, learning via RL which token positions to denoise at each step. Our work targets this allocation problem from a complementary angle: rather than changing the training objective or learning a token-level denoising schedule, we adaptively allocate questions across decoding strategies at inference time.

Remasking Strategy and Efficient Sampling in Diffusion Language Models

A central design choice in DLM inference is the token update rule: which tokens should be fixed, and which should remain available for refinement. Standard masked diffusion decoders often treat unmasking as effectively irreversible: once a token is accepted, later steps focus on the remaining masked positions. This improves efficiency but can also lock in incorrect tokens. Recent work therefore studies remasking and refinement mechanisms that allow generated tokens to be reconsidered. Wang et al. [34] formulate remasking as inference-time scaling for masked diffusion models. Tian et al. [33] propose a two-stage fill-then-refine procedure, while Huang et al. [16] train the model to self-reflectively remask incorrect tokens using predicted confidence scores. Zhai et al. [44] target context-brittle tokens and argue that confidence alone is a poor proxy for correctness. Another line of work improves DLM sampling efficiency by reducing denoising steps, accelerating token updates, or designing better schedules. Fast-dLLM and dInfer accelerate decoding through confidence-based token selection and thresholding (Wu et al., 2026b,a; Ma et al., 2025). Recent information-gain-based sampling methods further suggest that token selection should account for the downstream effect of an update on future denoising uncertainty; we discuss this and other contemporary work in Appendix § 7.§ 1.

Our work shares some of the motivation of these remasking and efficient sampling methods, but differs in both signal and allocation target. Rather than applying remasking uniformly or learning a new schedule, we use a trajectory-level frequency signal and apply frequency-aware remasking only to challenging questions.

Problem Setting

We frame test-time scaling as an allocation problem over both compute and token update strategies. To design such an adaptive algorithm, we first formalize test-time scaling for DLMs in § 3.1. We then examine the principle shared by certainty-aware token update strategies and identify a failure mode that motivates allocating additional computation to hard questions in § 3.2.

Test-Time Scaling for Diffusion Language Models

Let V\mathcal{V} denote the token vocabulary and let [M][\mathrm{M}] be a special mask token. A diffusion language model generates a response y∈Vy \in\mathcal{V} for a question x∈Xx \in\mathcal{X} through iterative denoising. Starting from a partially or fully masked sequence, the model repeatedly predicts token distributions for masked positions conditioned on the current sequence state. At denoising step tt, let x(t)∈(V∪{[M]})L\mathbf{x}^{(t)} \in\left(\mathcal{V} \cup\{[\mathrm{M}]\}\right)^{L} denote the current response state, and let M(t)={i:xi(t)=[M]}\mathcal{M}^{(t)} = \{i : x_i^{(t)} = [\mathrm{M}]\} be the set of masked positions. The model outputs

pθ(xi∣x(t),x),i∈M(t),p_{\theta}(x_i \mid\mathbf{x}^{(t)}, x), \qquad i \in\mathcal{M}^{(t)},

for all currently masked positions. A decoding strategy π\pi then determines which token positions are committed and which positions remain masked for further processing. We write the resulting response as

y∼pθπ(⋅∣x;T),y \sim p_{\theta}^{\pi}(\cdot\mid x; T),

where TT is the number of denoising steps and π\pi specifies the token update rule.

Different token update rules induce different tradeoffs between inference cost and generation quality. Confidence-thresholding strategies ([38, 25]) commit tokens once their confidence exceeds a predefined threshold. Intuitively, at each denoising step, the decoder fixes tokens whose confidence is sufficiently high and leaves the remaining tokens available for later processing. We denote this rule abstractly as

commit token i ⟸ conf⁡i(t)≥δ,\text{commit token }i \ \Longleftarrow\ \operatorname{conf}_{i}^{(t)} \ge\delta,

where conf⁡i(t)\operatorname{conf}_{i}^{(t)} is the model’s confidence for position ii at step tt, and δ\delta is the commitment threshold. Since committed tokens do not need to be repeatedly reconsidered, these strategies can substantially reduce inference cost while maintaining strong average accuracy. In contrast, uncertainty-based remasking strategies, such as low-confidence or high-entropy remasking for LLaDA and Dream, keep uncertain positions active for further processing. These strategies can improve robustness on some hard questions, but they are often significantly slower than confidence-thresholding.

This creates a test-time scaling problem for diffusion decoding. Given a set of questions S={x1,…,xn}S = \{x_1, \ldots, x_n\} and an inference-time budget BB, we must decide how much compute to spend on each question and which token update strategy to use. Let cic_i denote the compute allocated to question xix_i, measured by inference-time cost such as denoising steps or equivalent forward-pass cost. Let πi∈Π\pi_i \in\Pi denote the strategy selected for question xix_i, where Π\Pi is the set of available token update strategies. The goal is to maximize task performance subject to a total compute constraint:

max⁡{ci,πi}i=1n1n∑i=1nPerf⁡(xi;ci,πi)\max_{\{c_i,\pi_i\}_{i=1}^{n}} \frac{1}{n}\sum_{i=1}^{n}\operatorname{Perf}(x_i;c_i,\pi_i)
s.t.∑i=1nci≤B,ci≥0,πi∈Π.(1)\text{s.t.}\quad\sum_{i=1}^{n}c_i \le B,\qquad c_i \ge0,\qquad\pi_i \in\Pi. \tag*{(1)}

Here, Perf⁡(xi;ci,πi)\operatorname{Perf}(x_i;c_i,\pi_i) denotes the evaluation metric, such as coverage or accuracy, obtained by applying strategy πi\pi_i to question xix_i with compute cic_i [10, 27]. Since the best decoding behavior is not known in advance, the problem is not to choose a single globally best strategy, but to adaptively decide when to spend additional compute and when to switch decoding behavior.

Certainty-Aware Token Updates

Within this test-time scaling framework, we identify a limitation of widely used certainty-aware token update strategies. A common design principle across diffusion language models and related inference frameworks is to use the model’s current predictive distribution to decide which positions should be fixed and which should remain masked for further processing. For each masked position i∈M(t)i \in\mathcal{M}^{(t)}, the model predicts

x^i(t)=arg⁡max⁡v∈V pθ(xi=v∣x(t),x),\hat{x}_{i}^{(t)} = \underset{v \in\mathcal{V}}{\arg\max}\ p_{\theta}(x_i = v \mid x^{(t)}, x),

and assigns the prediction a confidence score

conf⁡i(t)=pθ(xi=x^i(t)∣x(t),x).\operatorname{conf}_{i}^{(t)} = p_{\theta}(x_i = \hat{x}_{i}^{(t)} \mid x^{(t)}, x).

A token update strategy then ranks positions by certainty or applies a threshold to decide which positions are committed and which remain masked.

This formulation captures several existing decoding rules. In LLaDA, low-confidence remasking selects the most confident positions to unmask at each step [29]. Given a step-dependent number of tokens k(t)k^{(t)}, the selected positions are

T(t)=top-⁡ki∈M(t)(t)conf⁡i(t),\mathcal{T}^{(t)} = \operatorname{top-}k^{(t)}_{i \in\mathcal{M}^{(t)}} \operatorname{conf}_{i}^{(t)},

where T(t)\mathcal{T}^{(t)} is fixed in the sequence and M(t)∖T(t)\mathcal{M}^{(t)} \setminus\mathcal{T}^{(t)} remains masked for later processing. DREAM-style implementations often use entropy-based remasking [3, 14]. Here, token uncertainty is measured by the entropy

hi(t)=−∑v∈Vpθ(xi=v∣x(t),x)log⁡pθ(xi=v∣x(t),x),h_i^{(t)} = -\sum_{v \in\mathcal{V}} p_{\theta}(x_i = v \mid x^{(t)}, x)\log p_{\theta}(x_i = v \mid x^{(t)}, x),

where a higher hi(t)h_i^{(t)} indicates greater uncertainty, and such positions are kept masked for further processing. These methods therefore rely on instantaneous confidence or entropy as proxies for token certainty. However, local certainty need not imply global correctness: on hard reasoning problems, a token may appear confident because it is locally compatible with an incorrect partial trajectory. We refer to this failure mode as false confidence and analyze it in § 4.1.

Methods

We now present our two-stage adaptive sampling method and the frequency-aware remasking rule used in its second stage. We begin with an analysis of false confidence in § 4.1. We then define the trajectory-level frequency signal in § 4.2, introduce the SAFE commitment rule built on it in § 4.3, and describe how it is integrated into test-time scaling in § 4.4.

False Confidence Analysis

To analyze false confidence, we examine whether failures on hard questions are random or structured. We use LLaDA-8B-Instruct on GSM8K with low-confidence remasking for this analysis. GSM8K is well suited to this analysis because its answers are numerical, which makes final-answer extraction and grouping reliable. We use a diagnostic hard subset of GSM8K identified from failures of LLaDA with confidence-thresholding remasking within 100 samples. For each question in the diagnostic subset, we generate 32 fresh samples and group the extracted final answers after post-processing.

This behavior is consistent with false confidence: the model can settle into a locally coherent but globally incorrect reasoning path, causing repeated samples to confidently produce the same wrong final answer. Appendix § 8 provides a complementary diagnostic that further supports this interpretation. Such failures are difficult to address by simply drawing more samples from the same certainty-aware decoder.

Frequency-Aware Remasking

We attribute the failure above to the commitment order: a certainty-aware sampler commits the positions it is most sure about first, and these early commitments steer every sample down the same path. Frequency-aware remasking reverses this order. It tracks how often each position’s proposal changes across denoising steps and commits the frequently changing positions first, so that different samples make different choices at the positions where the model is still undecided and branch into different reasoning paths, while the positions the model has already settled on are filled in afterwards. The sampler first follows a certainty-aware warm-up rule during a per-block warm-up phase to collect this statistic, then applies Support-Aware Frequency Selection (SAFE) to choose the high-frequency positions to commit.

For each generated position ii, we record token proposals while that position remains masked. Let Ni(t)N_i^{(t)} denote the number of proposals observed up to denoising step tt, including the current proposal, and let x^i,j\hat{x}_{i,j} denote the jj-th observed proposal. We initialize x^i,0=[M]\hat{x}_{i,0} = [M] and define the change frequency as

fi(t)=∑j=1Ni(t)1[x^i,j≠x^i,j−1]max⁡(Ni(t),1).f_i^{(t)} = \frac{\sum_{j=1}^{N_i^{(t)}} \mathbf{1}[\hat{x}_{i,j} \ne\hat{x}_{i,j-1}]}{\max(N_i^{(t)}, 1)}.

This statistic includes the initial comparison against the mask token. A high frequency indicates that a position’s proposal changes often, while a low frequency indicates that it remains stable.

Frequency statistics are maintained independently for each generated response and accumulated across its denoising trajectory. They are not reset at block boundaries. Masked positions in future blocks also accumulate observations, although they are not yet eligible for commitment. Once a position is committed, its frequency statistics stop updating.

Warm-up phase. Let SS denote the prescribed number of denoising steps per block. We set the number of warm-up steps to

w=min⁡(S−1,max⁡(1,round⁡(ρS))).w = \min(S - 1, \max(1,\operatorname{round}(\rho S))).

During the first ww steps of each block, the sampler follows the warm-up rule while continuing to collect frequency statistics. For example, with 256 total denoising steps distributed evenly across eight blocks, S=32S = 32, so ρ=0.125\rho= 0.125 gives four warm-up steps per block. When S=1S = 1, we have w=0w = 0. The warm-up phase restarts at each block boundary, while the accumulated frequency history is retained. We use ρ=0.125\rho= 0.125 unless otherwise specified.

After warm-up, the sampler must decide which masked positions to commit using the accumulated frequencies fi(t)f_i^{(t)}. A natural choice is to commit every position whose frequency exceeds a fixed threshold. However, the scale of fi(t)f_i^{(t)} varies across blocks, steps, and tasks, so a fixed threshold requires tuning and may force a selection even when the frequencies show no meaningful separation. We therefore introduce SAFE in § 4.3, which chooses the high-frequency group adaptively from the observed frequency levels.

Support-Aware Frequency Selection (SAFE)

First, SAFE looks for a clear separation in the support of the frequency values: the high-frequency group is defined by the largest gap between adjacent raw frequency levels, subject to a size constraint. Second, it commits this group only when it is consistent with the group found at the preceding step in the same block. Whenever either check fails, SAFE falls back to the warm-up rule, so it only overrides that rule when the frequency signal is both well separated and stable.

Gap-based candidate selection. SAFE is applied after the current proposals have been incorporated into the cumulative frequency statistics. Let At\mathcal{A}_t denote the currently masked positions eligible for commitment in the active block, and let their distinct raw frequency values be

u1(t)<⋯<um(t).u_1^{(t)} < \cdots< u_m^{(t)}.

When m≥3m \ge3, SAFE forms a high-frequency candidate for each adjacent split:

Hj(t)={i∈At∣fi(t)≥uj+1(t)}.H_j^{(t)} = \left\{i \in\mathcal{A}_t \mid f_i^{(t)} \ge u_{j+1}^{(t)}\right\}.

Only splits with a nonempty tail containing at most half of the active positions are admissible:

Jt={j:1≤j<m, 0<∣Hj(t)∣≤∣At∣/2}.\mathcal{J}_t = \left\{j : 1 \le j < m,\ 0 < \lvert H_j^{(t)} \rvert\le\lvert\mathcal{A}_t\rvert/2\right\}.

If Jt\mathcal{J}_t is nonempty, SAFE selects

jt⋆∈arg⁡max⁡j∈Jt(uj+1(t)−uj(t)),Ht=Hjt⋆(t).j_t^\star\in\underset{j \in\mathcal{J}_t}{\arg\max}\left(u_{j+1}^{(t)} - u_j^{(t)}\right), \qquad H_t = H_{j_t^\star}^{(t)}.

Ties are resolved in favor of the larger split index, which produces the smaller high-frequency tail. If m<3m < 3 or Jt\mathcal{J}_t is empty, no valid candidate is formed, and SAFE uses the warm-up rule at that step.

Algorithm 1 Two-Stage Test-Time Scaling for DLM Sampling

Input: Question set SS, total generation rounds KK, base-stage rounds KbaseK_{\mathrm{base}}, correctness oracle O:X×Y→{0,1}O : \mathcal{X} \times\mathcal{Y} \to\{0,1\}, base sampler πbase\pi_{\mathrm{base}}, and frequency-aware sampler πfreq\pi_{\mathrm{freq}}.

  1. For each question x∈Sx \in S, maintain a response set g(x)g(x), a selected response yˇ(x)\check{y}(x), and its correctness value oˇ(x)\check{o}(x).

  2. Initialize g(x)←∅g(x) \leftarrow\varnothing, oˇ(x)←0\check{o}(x) \leftarrow0, and yˇ(x)←∅\check{y}(x) \leftarrow\varnothing for all x∈Sx \in S.

  3. Initialize the active set A←SA \leftarrow S.

  4. Stage 1: Base DLM sampling.

  5. for r=1r = 1 to KbaseK_{\mathrm{base}} do

  6. &nbsp;&nbsp;&nbsp;&nbsp;if ∣A∣=0\lvert A\rvert= 0 then

  7. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break

  8. &nbsp;&nbsp;&nbsp;&nbsp;for x∈Ax \in A do

  9. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generate one response y∼πbase(⋅∣x)y \sim\pi_{\mathrm{base}}(\cdot\mid x).

  10. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Update g(x)←g(x)∪{y}g(x) \leftarrow g(x) \cup\{y\}. // Fast stage: use the base sampler to solve easy questions.

  11. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if O(x,y)=1O(x,y) = 1 then

  12. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Update yˇ(x)←y\check{y}(x) \leftarrow y and oˇ(x)←1\check{o}(x) \leftarrow1.

  13. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Update A←A∖{x}A \leftarrow A \setminus\{x\}. // Eliminate once a correct response is found.

  14. Stage 2: Frequency-aware DLM sampling.

  15. for r=Kbase+1r = K_{\mathrm{base}} + 1 to KK do

  16. &nbsp;&nbsp;&nbsp;&nbsp;if ∣A∣=0\lvert A\rvert= 0 then

  17. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break

  18. &nbsp;&nbsp;&nbsp;&nbsp;for x∈Ax \in A do

  19. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generate one response y∼πfreq(⋅∣x)y \sim\pi_{\mathrm{freq}}(\cdot\mid x).

  20. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Update g(x)←g(x)∪{y}g(x) \leftarrow g(x) \cup\{y\}. // Frequency-aware stage: target unresolved questions.

  21. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if O(x,y)=1O(x,y) = 1 then

  22. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Update yˇ(x)←y\check{y}(x) \leftarrow y and oˇ(x)←1\check{o}(x) \leftarrow1.

  23. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Update A←A∖{x}A \leftarrow A \setminus\{x\}.

Output: For each x∈Sx \in S, output response set g(x)g(x) and selected response yˇ(x)\check{y}(x). // A question is solved once OO accepts a response; otherwise it remains unsolved.

Candidate consistency. Let Ht−1H_{t-1} be the valid candidate from the preceding eligible decision in the same block, and let

It=At∩At−1I_t = A_t \cap A_{t-1}

contain positions active at both decisions. SAFE accepts HtH_t only when a preceding candidate exists and

∣(Ht∩It)△(Ht−1∩It)∣≤1,\left|(H_t \cap I_t) \mathbin{\triangle} (H_{t-1} \cap I_t)\right| \leq1,

where △\triangle denotes symmetric difference. The test therefore allows at most one membership change among positions active at both decisions.

When the consistency test succeeds, SAFE commits all positions in HtH_t. Otherwise, it uses the commitment set of the warm-up rule for that step. The first valid candidate after warm-up establishes the comparison state and therefore uses the warm-up rule. A valid candidate is stored even when it fails the consistency test; if no valid candidate can be formed, the stored candidate is cleared. Candidate state is reset at each block boundary, while frequency statistics remain cumulative across the response.

If the warm-up rule selects no position in an unfinished block, it commits one position according to its own ranking to ensure progress. On the final scheduled step, all remaining positions in the block are committed. The complete per-step procedure is summarized in Algorithm 2 in Appendix § 9.

Adaptive Test-Time Scaling with Frequency-Aware Remasking

We now incorporate frequency-aware remasking into a two-stage test-time scaling procedure, shown in Algorithm 1. Let S={x1,…,xn}\mathcal{S} = \{x_1,\ldots,x_n\} denote the set of evaluation questions. For each question x∈Sx \in\mathcal{S}, we maintain a response set g(x)g(x) and a selected response y~(x)\tilde{y}(x). A correctness oracle O:X×Y→{0,1}O:\mathcal{X} \times\mathcal{Y} \to\{0,1\} determines whether a generated response correctly solves the question.

The first stage performs adaptive allocation ([27] (Zuo and Zhu 2026)) using a base DLM sampler πbase\pi_{\mathrm{base}}, instantiated as confidence-thresholding in our experiments. At each round, the algorithm samples one new response for every active question. If the oracle finds a correct response for a question, that question is removed from the active set. This stage exploits the efficiency of the base sampler and avoids spending additional compute on questions that are already solved.

The second stage applies the frequency-aware sampler πfreq\pi_{\mathrm{freq}} only to the remaining active questions. These questions were not solved in the base stage, so the base sampler’s commitment order is unlikely to reach a different reasoning path. The frequency-aware sampler πfreq\pi_{\mathrm{freq}} denotes a DLM sampler whose warm-up rule is an uncertainty-aware remasking rule (low-confidence for LLaDA, entropy-based for Dream) and which then applies SAFE (§ 4.3) in the remaining denoising steps of each block. Thus, frequency-aware remasking is reserved for unresolved questions, rather than being applied uniformly to all inputs. By default, the algorithm performs one inference per question per round, for a total of KK rounds.

Experiments

We describe the experimental setup in § 5.1. We then present test-time scaling results in § 5.2 and a challenging-question analysis in § 5.3. Ablation studies are provided in § 5.4, and additional experimental details and results are deferred to the Appendix.

Experimental Setup

Models, baselines, and metrics. We evaluate our approach on two representative diffusion language models: LLaDA-8B-Instruct and Dream-7B-Instruct. For brevity, we refer to them as LLaDA and Dream, respectively. These models allow us to study how different token update and remasking strategies affect iterative decoding under test-time scaling. We report two metrics: coverage@kk and accuracy. Coverage@kk measures whether at least one of the generated responses for a question is correct after kk rounds, as determined by a ground-truth checker. We report coverage rather than pass@kk ([6]) because our adaptive algorithm may allocate different numbers of inference calls to different questions, which violates the fixed-nn sampling assumption used by the unbiased pass@kk estimator. For mathematical reasoning, we report oracle-measured accuracy: the fraction of questions for which the correctness oracle accepts a response within the allocated budget. We use Gemini-2.5-Flash-Lite to judge each response independently. In Algorithm 1, the first accepted response becomes the selected answer and sampling stops for that question; questions with no accepted response count as unsolved. Thus, when the same oracle is used, this accuracy equals oracle-measured coverage rather than the accuracy of a separate candidate-ranking procedure. Additional oracle-related experiments are presented in Appendix § 12.

We evaluate compute budgets of K∈{10,20,30,40,50,60}K \in\{10, 20, 30, 40, 50, 60\} generation rounds per question, with each point in the figures corresponding to one value of KK. For Uniform, we report results at the same budgets for comparison. For Ours (Freq) and Ours (Cert), we set Kbase=0.7KK_{\mathrm{base}} = 0.7K for K∈{10,20,30}K \in\{10, 20, 30\} and Kbase=0.6KK_{\mathrm{base}} = 0.6K for K∈{40,50,60}K \in\{40, 50, 60\}, reserving a larger fraction of compute for the second stage at higher budgets. Results are averaged over three random runs, and shaded regions in plots denote ±0.5\pm0.5 standard deviations. Unless otherwise specified, we set the generation length to 256, the number of diffusion steps to 256, and the block length to 32. We compare against standard Uniform scaling and two adaptive baselines: Ours (Cert), a two-stage certainty-based variant that applies low-confidence remasking for LLaDA and entropy-based remasking for Dream in Stage 2, thereby isolating the contribution of frequency-aware remasking; and Elimination ((Zuo and Zhu, 2026)), a strong adaptive compute-allocation method.

Datasets. For the main test-time scaling experiments, we use MATH-500 ([22]), which contains 500 competition-level mathematics problems, and HumanEval ([6]), which contains 164 programming problems verified by execution tests. For the challenging-question analysis, we additionally use the GSM8K test set ([9]), which contains 1,319 grade-school math word problems, from which we derive a hard subset.

Scaling Results

MATH-500 results. We report MATH-500 results in Figure 1. Each point corresponds to a compute budget K∈{10,20,30,40,50,60}K \in\{10, 20, 30, 40, 50, 60\}. In this setting, we use an LLM-as-a-judge as the correctness oracle OO. Across both DLM backbones, Ours (Freq) outperforms the Elimination baseline. For LLaDA, we use a warm-up ratio of ρ=0.5\rho= 0.5. Ours (Freq) performs similarly to Elimination at smaller compute budgets, K∈{10,20}K \in\{10, 20\}, but shows increasing gains as the budget grows. For K∈{30,40,50,60}K \in\{30, 40, 50, 60\}, frequency-aware remasking provides a consistent advantage, with the largest improvement reaching an absolute accuracy gain of 3.73% at K=50K = 50. For Dream, we use a warm-up ratio of ρ=0.125\rho= 0.125. Here, the improvement appears earlier and is more pronounced. This is consistent with the observation that, for Dream, entropy-based remasking and confidence-thresholding can differ substantially in performance ([18]). In this case, Ours (Freq) achieves its largest gain at K=40K = 40, improving accuracy by an absolute 7.33% over Elimination. Compared with Ours (Cert), which shares the two-stage allocation but keeps the certainty-aware rule in Stage 2, Ours (Freq) is indistinguishable at small budgets and pulls ahead on LLaDA from K=40K = 40 onward while using fewer inferences. For Dream, the two variants remain within one standard deviation of each other at every budget, so the gain over Elimination on this benchmark comes mainly from the switch of the decoder.

Figure 1. Scaling results on MATH-500. Left: LLaDA. Right: Dream. Given Algorithm 1, different questions can receive different numbers of inferences under identical KK.

HumanEval results. We report HumanEval results in Figure 2. Since code generation is directly verifiable, we use the official code execution tests as the correctness oracle OO ([6]). Ours (Freq) outperforms Elimination on both DLM backbones. For LLaDA, we use a warm-up ratio of ρ=0.5\rho= 0.5. The gains are most pronounced at larger compute budgets: at K=60K = 60, Ours (Freq) achieves an absolute coverage gain of 11.39% over the baseline. For Dream, we use a warm-up ratio of ρ=0.125\rho= 0.125. In this setting, Ours (Freq) achieves its largest improvement at K=60K = 60, with an absolute coverage gain of 10.98% over Elimination. On HumanEval, Ours (Freq) also improves over Ours (Cert) at the larger budgets on both backbones, by about one coverage point at K=60K = 60, while using fewer inferences.

Figure 2. Scaling results on HumanEval. Left: LLaDA. Right: Dream. Given Algorithm 1, different questions can receive different numbers of inferences under identical KK.

Results on Challenging Questions

We further analyze whether frequency-aware remasking can solve challenging questions that remain unresolved under certainty-based decoding. For each dataset and model, we construct a challenging subset by generating 100 samples per question across three random seeds using the corresponding certainty-based strategy and selecting questions that remain unsolved. We then evaluate whether frequency-aware remasking can recover solutions on this subset with only 16 samples. For GSM8K, we use a generation length of 128, 128 diffusion steps, and a block length of 32. For each row, the frequency-aware variant retains the same certainty-based strategy during warm-up. The comparison therefore isolates the effect of adding frequency-aware remasking, which differs from our scaling setting. Results are shown in Table 2. Additional experimental details are provided in Appendix § 10.

DatasetModelBase strategyBase @100+ Freq. @16
MATH-500DreamEntropy0.0%3.75%
HumanEvalLLaDAConfidence-threshold0.0%10.39%
GSM8KLLaDALow-confidence0.0%18.75%

Table 2. Representative results on challenging questions. The frequency-aware variant uses the same base strategy as its warm-up strategy and is evaluated with 16 samples. Results are reported as coverage.

Table 2 shows that frequency-aware remasking solves challenging questions on all three benchmarks that the aligned certainty-aware strategy leaves unsolved even after 100 samples, with the largest gain for LLaDA on GSM8K. Random remasking solves almost none of these questions, except for HumanEval with LLaDA, where it reaches 2.60% coverage at 16 samples, so random exploration alone does not explain the gains. A comparison with temperature sampling and other second-stage alternatives on the GSM8K diagnostic subset, together with answer-diversity statistics, is reported in Table 5 and discussed in Appendix § 12.

MethodDistinct answersDominant share (%)Coverage@16 (%)
Low-confidence2.478.817.74
Temperature sampling (T=1.2T = 1.2)5.358.825.81
Low-frequency-first7.745.525.81
Confidence dynamics7.547.137.10
SAFE10.231.245.16

Table 5. Second-stage strategies on the GSM8K hard subset with LLaDA at 16 samples. Distinct answers: mean number of different final answers per question. Dominant share: mean fraction of samples giving the most common answer. Coverage@16: fraction of questions with at least one correct answer.

Ablation Studies

Warm-up ratio ρ\rho. The warm-up ratio ρ\rho controls the fraction of denoising steps that follow the base remasking rule before switching to frequency-aware remasking: a small ρ\rho leaves most steps to the frequency signal, while a large ρ\rho preserves a strong base decoder for longer. We study this tradeoff in two cases. First, LLaDA on the hard HumanEval subset with confidence-thresholding as the base strategy, where the base and frequency-aware rules behave differently and a larger ρ\rho may help preserve the base strategy. Second, Dream on the hard MATH-500 subset with entropy-based remasking, where the two samplers differ only by whether frequency-aware remasking is applied, which isolates the frequency signal. Results in Figure 3 show that ρ\rho provides a flexible way to balance base-strategy behavior with frequency-aware remasking.

Figure 3. Ablation studies. Left: Warm-up ratio ρ\rho, case 1. Middle: Warm-up ratio ρ\rho, case 2 (@16). Right: Frequency-aware remasking on a strong base strategy (@16).

Frequency-aware remasking on a strong base strategy. We further test whether frequency-aware remasking can complement an already strong base strategy. We focus on hard MATH-500 questions identified by running LLaDA with confidence-thresholding, and compare standard low-confidence remasking with the same strategy augmented by frequency-aware remasking. This setting tests whether the frequency signal can be added without disrupting the base sampler. Results in Figure 3 show that frequency-aware remasking preserves the strength of low-confidence remasking while further improving performance on challenging questions.

Discussion

We recast DLM test-time scaling as an adaptive allocation problem over two axes—how many responses to sample and which decoding strategy to apply—departing from the standard view of scaling only sample count under a fixed decoder. Our two-stage algorithm instantiates this view: a fast base stage resolves most questions cheaply, and frequency-aware remasking is applied only to those that remain unresolved. This requires a second-stage decoder that fails differently from the base decoder on the questions the base decoder misses. We identify one source of such failures, false confidence, and address it with frequency-aware remasking, a trajectory-level signal based on how often token predictions change across denoising steps. Committing the frequently changing positions first makes different samples branch at the positions where the model is still undecided instead of collapsing onto its preferred reasoning path, which is why the second stage recovers questions that further samples from the base decoder do not. Adapting both where compute is spent and how decoding is performed improves performance on difficult instances while preserving efficiency. The framework is training-free but introduces hyperparameters such as the warm-up ratio ρ\rho. In addition, our signal tracks only changes in token identity, so it is most effective when the difficulty stems specifically from false confidence. The two-stage formulation is agnostic to the second-stage decoder, leaving richer signals and more adaptive commitment rules to future work.

Extended Related Work

Additional Contemporary Work on DLM Sampling and Remasking

We also discuss several recent works that examine the limitations of local-certainty-based decoding in diffusion language models. Fang et al. [11] identify a quality–exploration dilemma: low-confidence remasking improves single-sample quality by prioritizing confident tokens, but can suppress exploration and limit multi-sample gains. Yang et al. [39] argue that greedy local-certainty heuristics ignore how current token choices affect future masked positions, and propose an information-gain sampler that balances immediate uncertainty with downstream uncertainty reduction. Olausson et al. [30] study diversity in DLM sampling and introduce tempered variants of confidence-based remasking heuristics to improve pass@k behavior while retaining efficient sampling. Yu et al. [43] instead improve pass@k and answer diversity of DLMs at training time through risk-sensitive GRPO.

These works are complementary to ours. They primarily design alternative token-level sampling rules to improve exploration, diversity, or future uncertainty reduction. In contrast, our work studies adaptive allocation across questions and decoding strategies: a fast base sampler is first used to resolve easy questions, and frequency-aware remasking is applied only to unresolved questions. At the token level, our method also uses a different signal—the observed frequency of token prediction changes across denoising steps—rather than only instantaneous confidence, entropy, or estimated information gain. Test-time improvement without additional supervision has also been studied beyond sampling, through self-training at test time (Zhu et al. [46]) and active evaluation under a labeling budget (Liu et al. [24]).

Additional false confidence analysis

To support our claim of false confidence, we conduct a diagnostic experiment that tests whether locally confident and stable tokens are always reliable candidates for commitment. Our hypothesis is that, on hard reasoning problems, a token can receive high confidence under the current predictive distribution while still belonging to an incorrect reasoning trajectory.

For each active token position ii, let conf⁡i\operatorname{conf}_i denote the model confidence and let fif_i denote the normalized change frequency of the predicted token across denoising steps. We consider the following confidence-frequency transfer score:

sitrans=(1−β)conf⁡i−βfi,s_i^{\mathrm{trans}} = (1-\beta)\operatorname{conf}_i - \beta f_i,

where β∈[0,1]\beta\in[0,1] controls the tradeoff between confidence and frequency. This score prioritizes tokens that are both high-confidence and low-frequency, i.e., tokens whose predictions are locally confident and stable across the denoising trajectory. If local confidence and trajectory stability were reliable indicators of correctness, then using this score for token commitment should preserve or improve decoding quality. We evaluate this setting using LLaDA on a hard subset of MATH-500 containing 150 questions, with confidence-thresholding as the base strategy and β=0.7\beta= 0.7.

As shown in Table 3, the stable-token commitment strategy fails to solve any question in this hard subset, while our frequency-aware remasking strategy solves 9.33% of the questions. This result suggests that stable high-confidence tokens are not always safe to commit: they may instead reflect locally coherent but globally incorrect reasoning paths. This supports our false-confidence claim and motivates our design choice of committing frequently changing tokens first during the frequency-aware phase, so that samples diverge at the undecided positions rather than collapsing onto the model’s preferred reasoning path.

MethodSolved
Stable-token commitment0.00%
Frequency-aware remasking (ours)9.33%

Table 3. Comparison between stable-token commitment and our approach.

Algorithm 2 SAFE Commitment at One Denoising Step

Input: Active positions AA; updated frequencies ff; warm-up commitment set B⊆AB \subseteq A; previous candidate H−H^{-} and active set A−A^{-}; warm-up and terminal-step flags.

  1. if A=∅A = \emptyset then

  2. return (∅,⊥,∅)(\emptyset, \bot, \emptyset)

  3. if terminal step then

  4. return (A,⊥,∅)(A, \bot, \emptyset)

  5. if warm-up step then

  6. return (B,⊥,∅)(B, \bot, \emptyset)

  7. U←BU \leftarrow B and H←⊥H \leftarrow\bot

  8. Sort distinct values {fi:i∈A}\{f_i : i \in A\} as u1<⋯<umu_1 < \cdots< u_m

  9. if m≥3m \ge3 then

  10. Hj←{i∈A:fi≥uj+1}H_j \leftarrow\{i \in A : f_i \ge u_{j+1}\} for j=1,…,m−1j = 1, \ldots, m - 1

  11. J←{j:0<∣Hj∣≤∣A∣/2}J \leftarrow\{j : 0 < |H_j| \le|A|/2\}

  12. if J≠∅J \ne\emptyset then

  13. j⋆←arg⁡max⁡j∈J(uj+1−uj)j^\star\leftarrow\arg\max_{j \in J}(u_{j+1} - u_j)

  14. Break ties using the larger jj

  15. H←Hj⋆H \leftarrow H_{j^\star}

  16. if H≠⊥H \ne\bot and H−≠⊥H^{-} \ne\bot then

  17. I←A∩A−I \leftarrow A \cap A^{-}

  18. if ∣(H∩I)△(H−∩I)∣≤1|(H \cap I) \mathbin{\triangle} (H^{-} \cap I)| \le1 then

  19. U←HU \leftarrow H

Output: Commitment set UU and next candidate state (H,A)(H, A)

Scope. This analysis also clarifies the scope of our method. Frequency-aware remasking is designed to address cases where the model has a viable path to the correct solution but becomes trapped by misleading local certainty during decoding. In such cases, committing the undecided positions first lets different samples branch away from the model’s preferred reasoning path. Thus, our method should be understood as a mechanism for recovering from false-confidence failures, rather than a solution for questions that are intrinsically unsolvable for the underlying model.

SAFE Algorithm

Algorithm 2 gives the per-step commitment procedure of SAFE described in § 4.3. It takes the frequency statistics after the current proposals have been incorporated, together with the warm-up commitment set BB and the candidate state from the preceding eligible step in the same block, and returns the positions to commit and the updated candidate state. The candidate state is reset to (⊥,∅)(\bot, \emptyset) at each block boundary.

Additional Experimental Settings

Hyperparameters and Setup

We use GSAI-ML/LLaDA-8B-Instruct and Dream-org/Dream-v0-Instruct-7B as the model backbones. Unless otherwise specified, we use a generation length of 256, a prescribed budget of 256 diffusion steps, and a block length of 32. For GSM8K, we use a generation length of 128 and 128 diffusion steps, with the same block length. We use two GSM8K hard subsets, constructed using different base remasking strategies: Table 1 and Table 5 use one subset, while the GSM8K results in Table 2 use the other. We set the sampling temperature to 0.3 in all experiments except HumanEval with Dream, for which we use 0.4, as discussed in Appendix § 11.

CriterionFraction of questions
Dominant wrong answer appears in at least 24/32 samples45.16%
Same wrong answer appears in all 32/32 samples14.52%

Table 1. Repeated convergence to wrong answers on unsolved GSM8K questions.

We run experiments using existing DLM inference frameworks. Specifically, we use dInfer ([25]) for the LLaDA MATH-500 scaling experiments and Fast-dLLM ((Wu et al., 2026)) for all remaining experiments. Most experiments are conducted on NVIDIA RTX 6000 Ada Generation GPUs with 48 GB of GPU memory. each. Due to GPU memory constraints, we use a batch size of 1 throughout. All evaluations are zero-shot, using either minimal task-specific instructions, such as requesting a boxed final answer, or the question alone.

For frequency-aware remasking, we use SAFE with raw cumulative change frequencies. SAFE does not apply min–max normalization or a fixed frequency threshold. We use ρ=0.5\rho= 0.5 for the LLaDA scaling experiments on MATH-500 and HumanEval, and ρ=0.125\rho= 0.125 for the corresponding Dream experiments. The challenging-question experiments use ρ=0.125\rho= 0.125 for both backbones; the warm-up ablations vary ρ\rho as shown in Figure 3. The warm-up length is computed from the prescribed per-block denoising-step budget using the rounding and clipping rule in § 4.2.

Frequency statistics are collected online and maintained independently for each generated response. For every masked generated position, we accumulate the number of observed proposals and the number of changes relative to the preceding proposal. The previous proposal is initialized to the mask token, so the initial mask-to-proposal comparison is included. The cumulative change frequency is the ratio of the accumulated change count to the accumulated observation count. Frequency statistics are initialized at the start of each response and retained across block boundaries. Masked positions in future blocks also accumulate observations, although they are not yet eligible for commitment. Once a position is committed, its statistics stop updating.

At the beginning of each block, the sampler follows the warm-up rule while continuing to update the frequency statistics. After warm-up, SAFE is evaluated at every nonterminal step. It selects a high-frequency candidate from the largest admissible gap between the observed raw frequency levels and commits the candidate only when it is consistent with the preceding candidate in the same block. Otherwise, it follows the warm-up rule. Candidate history is reset at each block boundary, while frequency statistics remain cumulative across the response. If the warm-up rule selects no position, one position is committed according to its ranking to ensure progress. On the final scheduled step, all remaining positions in the block are committed. Full SAFE details are provided in § 4.3, and the per-step procedure is given in Algorithm 2.

Prompt usage

MATH-500 Prompt

Put the final answer in \boxed{ }.
Problem:
{question}

Solution:

For Dream’s HumanEval setting, we use the official [38] setting, which is adapted from the official [41] GitHub repo.

LLaDA’s HumanEval Prompt

Complete the following Python function. Return only Python code.
{HumanEval prompt}

GSM8K Prompt

{question}

Observations from Our Experiments

Since DLMs are relatively new, there are still few well-established best practices for decoding and evaluation. We therefore summarize several observations from our experimental process. All observations are based on the settings described in Appendix § 10.

First, we find that LLaDA is relatively robust to temperature and confidence threshold choices compared with Dream. For confidence thresholds in the range 0.90–0.95, LLaDA shows stable single-sample performance, and we obtain results comparable to those reported in Nie et al. [29] on both HumanEval and MATH-500. In contrast, Dream is much more sensitive to the confidence threshold: changing the threshold from 0.90 to 0.95 can shift single-sample performance from roughly ∼ 20% to ∼ 30% in our setting.

We also observe that Dream is sensitive to temperature. Taking HumanEval as an example, we use the official evaluation script released in the Fast-dLLM GitHub repository, which is adapted from the official Dream model repository. Under this setting, temperature has an unexpected effect. When the temperature is set to 0, the model produces normal outputs. However, when the temperature is set in the range 0.1–0.3, the generation often collapses or fails to produce usable outputs, leaving coverage below 10% after post-processing. Interestingly, this issue diminishes when the temperature is increased to the range 0.4–1.0: although performance is lower, the outputs return to a reasonable range. This behavior may be related to how Dream handles temperature in its source code. Based on this observation, we use temperature 0.4 for this HumanEval setting only.

Additional Experimental Results

Oracle. Table 4 compares the ground-truth oracle with the LLM judge on MATH-500 with LLaDA. Agreement between the two oracles exceeds 93% for LLaDA and 95% for Dream, producing nearly identical baseline accuracy. Gemini-2.5-Flash-Lite ranks second on mathematics among reward models in Malik et al. [26], so we consider it a close proxy for ground-truth correctness. The LLM judge is slightly more lenient than the ground truth.

Method@10@20@30@40@50@60
Elim (GT)54.859.462.664.265.867.4
Elim (LLM)54.859.462.664.265.867.4
Ours (GT)54.259.864.868.269.471.0
Ours (LLM)53.260.064.868.469.671.4

Table 4.

Table 4: Oracle comparison for LLaDA on MATH-500: accuracy (%) under ground-truth (GT) and LLM judging. These results are reported separately from the three-run scaling averages in Figure 1. The ground-truth and LLM-judged results for Elimination coincide at every budget.

Second-stage alternatives on hard questions. We compare SAFE with four second-stage alternatives using LLaDA on the GSM8K diagnostic subset from § 4.1 (Table 5). Low-confidence is plain low-confidence remasking with no second-stage change, and serves as the reference for the other rows, all of which use it as their warm-up rule. Temperature sampling keeps low-confidence remasking and raises the sampling temperature to T=1.2T = 1.2. Low-frequency-first is a counterfactual that uses the same warm-up and commits the same number of positions per step as a fixed-threshold frequency rule, but draws them from the lowest-frequency positions instead of the highest. Confidence dynamics also matches the per-step commitment count of the frequency rule, but ranks positions by the mean absolute change of their top-1 confidence between consecutive steps rather than by how often their proposal changes. At 16 samples, SAFE achieves the highest coverage. Confidence dynamics is the strongest alternative, which indicates that committing positions whose predictions are still moving helps whether the movement is measured by proposal changes or by confidence changes, while committing the most stable positions first is no better than raising the temperature. The 18.75% recovery rate in Table 2 is measured on the separately derived recovery subset.

Answer diversity. Frequency-first commitment changes what the samples do, not only how many succeed. On the same diagnostic subset, we also count the distinct final answers among the 16 samples of each question and the share of samples that give the most common answer (Table 5). Low-confidence remasking produces few distinct answers and a dominant answer that most samples repeat, consistent with collapse onto the model’s preferred reasoning path. Temperature sampling, low-frequency-first commitment, and confidence dynamics each add diversity, while SAFE roughly quadruples the number of distinct answers and spreads the samples across them. Diversity alone is not sufficient: low-frequency-first produces as many distinct answers as confidence dynamics but recovers far fewer questions, so the branching must happen at positions where the model is still undecided.

References

  1. [1]Jacob Austin, Daniel D. Johnson, Jonathan Ho, Daniel Tarlow, and Rianne van den Berg. Structured denoising diffusion models in discrete state-spaces. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, 2021. URL https://openreview.net/forum?id=h7-XixPCAL.arxiv.org/abs/2107.03006
  2. [2]Jinbin Bai, Yixuan Li, Yuchen Zhu, Yi Xin, Qingyu Shi, Aosong Feng, Xiaohong Liu, Molei Tao, Jianru Xue, Xiangtai Li, and Ming-Hsuan Yang. Prism: Efficient test-time scaling via hierarchical search and self-verification for discrete diffusion language models, 2026. URL https://arxiv.org/abs/2602.01842.
  3. [3]Heli Ben-Hamu, Itai Gat, Daniel Severo, Niklas Nolte, and Brian Karrer. Accelerated sampling from masked diffusion models via entropy bounded unmasking. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=WBcBhT1NKO.
  4. [4]Ahsan Bilal, Muhammad Ahmed Mohsin, Muhammad Umer, Asad Aali, Muhammad Usman Khanzada, Muhammad Usman Rafique, Zihao He, Emily Fox, and Dean F. Hougen. s³: Stratified scaling search for test-time in diffusion language models, 2026. URL https://arxiv.org/abs/2604.06260.
  5. [5]Bradley Brown, Jordan Juravsky, Ryan Ehrlich, Ronald Clark, Quoc V. Le, Christopher Ré, and Azalia Mirhoseini. Large language monkeys: Scaling inference compute with repeated sampling, 2024. URL https://arxiv.org/abs/2407.21787.
  6. [6]Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Pondé, Jared Kaplan, Harrison Edwards, Yura Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mo Bavarian, Clemens Winter, Phil Tillett, Felipe Petroski Such, David W. Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William H. Guss, Alex Nichol, Igor Babuschkin, Suchir Balaji, Shantanu Jain, Andrew Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew M. Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code. ArXiv, abs/2107.03374, 2021. URL https://api.semanticscholar.org/CorpusID:235755472.arxiv.org/abs/2107.03374
  7. [7]Tianlang Chen, Minkai Xu, Jure Leskovec, and Stefano Ermon. RFG: Test-time scaling for diffusion large language model reasoning with reward-free guidance. In Workshop on Latent & Implicit Thinking – Going Beyond CoT Reasoning, 2026. URL https://openreview.net/forum?id=Q5YGlns7Bb.
  8. [8]Radostin Cholakov, Zeyneb N. Kaya, and Nicole H. Ma. Optimizing remasking schedules for reasoning in discrete diffusion models. In New Frontiers in Associative Memories - Workshop at ICLR 2026, 2026. URL https://openreview.net/forum?id=RiFPrkgX8A.
  9. [9]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems, 2021. URL https://arxiv.org/abs/2110.14168.
  10. [10]Mehul Damani, Idan Shenfeld, Andi Peng, Andreea Bobu, and Jacob Andreas. Learning how hard to think: Input-adaptive allocation of LM computation. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=6qUUgw9bAz.arxiv.org/abs/2410.04707
  11. [11]Liancheng Fang, Aiwei Liu, Henry Peng Zou, Yankai Chen, Enze Ma, Leyi Pan, Chunyu Miao, Wei-Chieh Huang, Xue Liu, and Philip S. Yu. Locally confident, globally stuck: The quality-exploration dilemma in diffusion language models, 2026. URL https://arxiv.org/abs/2604.00375.
  12. [12]Sicheng Feng, Zigeng Chen, Xinyin Ma, Gongfan Fang, and Xinchao Wang. dvoting: Fast voting for dllms, 2026. URL https://arxiv.org/abs/2602.12153.
  13. [13]Yichao Fu, Junda Chen, Siqi Zhu, Zheyu Fu, Zhongdongming Dai, Yonghao Zhuang, Yian Ma, Aurick Qiao, Tajana Rosin, Ion Stoica, and Hao Zhang. Efficiently scaling LLM reasoning programs with certaindex. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=nn51ewu5k2.DOI
  14. [14]Shanshan Gong, Ruixiang ZHANG, Huangjie Zheng, Jiatao Gu, Navdeep Jaitly, Lingpeng Kong, and Yizhe Zhang. Diffucoder: Understanding and improving masked diffusion models for code generation. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=58NA3unZj5.arxiv.org/abs/2506.20639
  15. [15]Emiel Hoogeboom, Didrik Nielsen, Priyank Jaini, Patrick Forré, and Max Welling. Argmax flows and multinomial diffusion: Learning categorical distributions. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, 2021. URL https://openreview.net/forum?id=6nbpPqUCIi7.
  16. [16]Zemin Huang, Yuhang Wang, Zhiyang Chen, and Guo-Jun Qi. Don’t settle too early: Self-reflective remasking for diffusion language models. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=BsZeTub5Fd.arxiv.org/abs/2509.23653
  17. [17]Noam Itzhak Levi. A simple model of inference scaling laws. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=5UlcAfXJzc.arxiv.org/abs/2410.16377
  18. [18]Ian Li, Zilei Shao, Benjie Wang, Rose Yu, Guy Van den Broeck, and Anji Liu. Breaking the factorization barrier in diffusion language models, 2026a. URL https://arxiv.org/abs/2603.00045.
  19. [19]Pengxiang Li, Yefan Zhou, Dilxat Muhtar, Lu Yin, Shilin Yan, Li Shen, Yi Liang, Soroush Vosoughi, and Shiwei Liu. Diffusion language model knows the answer before it decodes. In The Fourteenth International Conference on Learning Representations, 2026b. URL https://openreview.net/forum?id=g88nt4ieTG.
  20. [20]Xiang Lisa Li, John Thickstun, Ishaan Gulrajani, Percy Liang, and Tatsunori Hashimoto. Diffusion-LM improves controllable text generation. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho, editors, Advances in Neural Information Processing Systems, 2022. URL https://openreview.net/forum?id=3s9IrEsjLyk.arxiv.org/abs/2205.14217
  21. [21]Yihao Liang, Ze Wang, Hao Chen, Ximeng Sun, Jialian Wu, Xiaodong Yu, Jiang Liu, Emad Barsoum, Zicheng Liu, and Niraj K. Jha. Cd4lm: Consistency distillation and adaptive decoding for diffusion language models, 2026. URL https://arxiv.org/abs/2601.02236.
  22. [22]Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=v8L0pN6E0i.arxiv.org/abs/2305.20050
  23. [23]Runze Liu, Junqi Gao, Jian Zhao, Kaiyan Zhang, Xiu Li, Biqing Qi, Wanli Ouyang, and Bowen Zhou. Can 1b LLM surpass 405b LLM? rethinking compute-optimal test-time scaling. In Workshop on Reasoning and Planning for Large Language Models, 2025. URL https://openreview.net/forum?id=CvjX9Lhpze.arxiv.org/abs/2502.06703
  24. [24]Zeli Liu, Jiancheng Zhang, Cong Liu, and Yinglun Zhu. Active testing of large language models via approximate neyman allocation, 2026. URL https://arxiv.org/abs/2605.10075.
  25. [25]Yuxin Ma, Lun Du, Lanning Wei, Kun Chen, Qian Xu, Kangyu Wang, Guofeng Feng, Guoshan Lu, Lin Liu, Xiaojing Qi, Xinyuan Zhang, Zhen Tao, Haibo Feng, Ziyun Jiang, Ying Xu, Zenan Huang, Yihong Zhuang, HaoKai Xu, Jiaqi Hu, Zhenzhong Lan, Junbo Zhao, Jianguo Li, and Da Zheng. dinfer: An efficient inference framework for diffusion language models, 2025. URL https://arxiv.org/abs/2510.08666.
  26. [26]Saumya Malik, Valentina Pyatkin, Sander Land, Jacob Morrison, Noah A. Smith, Hannahé Hajishirzi, and Nathan Lambert. Rewardbench 2: Advancing reward model evaluation. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=fb0G86Dweb.arxiv.org/abs/2506.01937
  27. [27]Rohin Manvi, Anikait Singh, and Stefano Ermon. Adaptive inference-time compute: Llms can predict if they can do better, even mid-generation, 2024. URL https://arxiv.org/abs/2410.02725.
  28. [28]Amr Mohamed, Yang Zhang, Michalis Vazirgiannis, and Guokan Shang. Fast-decoding diffusion language models via progress-aware confidence schedules, 2025. URL https://arxiv.org/abs/2512.02892.
  29. [29]Shen Nie, Fengqi Zhu, Zebin You, Xiaolu Zhang, Jingyang Ou, Jun Hu, JUN ZHOU, Yankai Lin, Ji-Rong Wen, and Chongxuan Li. Large language diffusion models. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=KnqiC0znVF.arxiv.org/abs/2502.09992
  30. [30]Theo X. Olausson, Metod Jazbec, Xi Wang, Armando Solar-Lezama, Christian A. Naesseth, Stephan Mandt, and Eric Nalisnick. A tale of two temperatures: Simple, efficient, and diverse sampling from diffusion language models, 2026. URL https://arxiv.org/abs/2604.09921.
  31. [31]Subham Sekhar Sahoo, Marianne Arriola, Yair Schiff, Aaron Gokaslan, Edgar Marroquin, Justin T Chiu, Alexander Rush, and Volodymyr Kuleshov. Simple and effective masked diffusion language models, 2024. URL https://arxiv.org/abs/2406.07524.
  32. [32]Charlie Victor Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar. Scaling LLM test-time compute optimally can be more effective than scaling parameters for reasoning. In The Thirty-First International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=4FWAwZtd2n.
  33. [33]Runchu Tian, Junxia Cui, Xueqiang Xu, Feng Yao, and Jingbo Shang. Finish first, perfect later: Test-time token-level cross-validation for diffusion large language models, 2025. URL https://arxiv.org/abs/2510.05090.
  34. [34]Guanghan Wang, Yair Schiff, Subham Sekhar Sahoo, and Volodymyr Kuleshov. Remasking discrete diffusion models with inference-time scaling. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025a. URL https://openreview.net/forum?id=IJryQAOy0p.arxiv.org/abs/2503.00307
  35. [35]Xinglin Wang, Shaoxiong Feng, Yiwei Li, Peiwen Yuan, Yueqi Zhang, Chuyi Tan, Boyuan Pan, Yao Hu, and Kan Li. Make every penny count: Difficulty-adaptive self-consistency for cost-efficient reasoning. In Luis Chiruzzo, Alan Ritter, and Lu Wang, editors, Findings of the Association for Computational Linguistics: NAACL 2025, pages 6919–6932, Albuquerque, New Mexico, April 2025b. Association for Computational Linguistics. ISBN 979-8-89176-195-7. doi: 10.18653/v1/2025.findings-naacl.383. URL https://aclanthology.org/2025.findings-naacl.383/.DOI
  36. [36]Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed Chi, Quoc Le, and Denny Zhou. Chain-of-thought prompting elicits reasoning in large language models, 2023. URL https://arxiv.org/abs/2201.11903.
  37. [38]Chengyue Wu, Hao Zhang, Shuchen Xue, Zhijian Liu, Shizhe Diao, Ligeng Zhu, Ping Luo, Song Han, and Enze Xie. Fast-dLLM: Training-free acceleration of diffusion LLM by enabling KV cache and parallel decoding. In The Fourteenth International Conference on Learning Representations, 2026b. URL https://openreview.net/forum?id=3Z3Is6hnOT.arxiv.org/abs/2505.22618
  38. [39]Kaisen Yang, Jayden Teoh, Kaicheng Yang, Yitong Zhang, and Alex Lamb. Improving sampling for masked diffusion models via information gain, 2026. URL https://arxiv.org/abs/2602.18176.
  39. [40]Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Thomas L. Griffiths, Yuan Cao, and Karthik R Narasimhan. Tree of thoughts: Deliberate problem solving with large language models. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=5Xc1ecxO1h.arxiv.org/abs/2305.10601
  40. [41]Jiacheng Ye, Zhihui Xie, Lin Zheng, Jiahui Gao, Zirui Wu, Xin Jiang, Zhenguo Li, and Lingpeng Kong. Dream 7b: Diffusion large language models, 2025. URL https://arxiv.org/abs/2508.15487.
  41. [42]Yue Yu, Qiwei Di, Quanquan Gu, and Dongruo Zhou. On the limits of test-time compute: Sequential reward filtering for better inference. In Proceedings of the 43rd International Conference on Machine Learning, 2026a. URL https://proceedings.mlr.press/v306/yu26h.html.arxiv.org/abs/2512.04558
  42. [43]Yue Yu, Bowen Zuo, David Crandall, Yinglun Zhu, and Dongruo Zhou. Exploring more, reasoning better: Stepwise risk-sensitive grpo for diffusion language models, 2026b. URL https://arxiv.org/abs/2610.00661.
  43. [44]Kevin Zhai, Sabbir Mollah, Zhenyi Wang, and Mubarak Shah. Core: Context-robust remasking for diffusion language models, 2026. URL https://arxiv.org/abs/2602.04096.
  44. [45]Siyan Zhao, Devaansh Gupta, Qinqing Zheng, and Aditya Grover. d1: Scaling reasoning in diffusion large language models via reinforcement learning. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=7ZVRlBFuEv.arxiv.org/abs/2504.12216
  45. [46]Yinglun Zhu, Jiancheng Zhang, and Fuzhi Tang. Test-time matching: Unlocking compositional reasoning in multimodal models. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=wWxdT6LB2D.arxiv.org/abs/2510.07632

Paper details

vlnc:W_38c27mkz
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 11

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents