# Test-time Scaling for Diffusion Language Models with Frequency-Aware Remasking

*Bowen Zuo, Yue Yu, Dongruo Zhou, Yinglun Zhu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155012) · [Open on the map](../papers.html#p155012)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Diffusion Language Model Sampling](../pgroup/72.md) · Type: new method · Keywords: diffusion language models, test-time scaling, frequency-aware remasking, adaptive sampling, reasoning benchmarks

## Summary
The paper introduces a two-stage adaptive DLLM sampling method with frequency-aware remasking that improves reasoning and code generation by allocating different decoding strategies to hard questions.

## Explained to a 5-year-old
Some computers make up sentences by slowly fixing mistakes, like cleaning a drawing step by step. They decide which words to lock in and which to keep changing to make the sentence better. For easy questions they use a fast trick to finish quickly. For hard questions they watch how often the word choices keep changing and give those words extra chances to be corrected. This helps them solve more tricky problems and answer better.

## Explained to a 5-year-old, longer
A computer program called a diffusion language model makes up text by repeatedly removing wrong parts, like erasing and rewriting a story. It picks some words to keep and some words to change, trying to make the final sentence make sense. Usually it uses the same way of picking words for every question, but sometimes the easy ones are solved quickly. For the questions it finds hard, the program uses a second step that looks at how often the word choices keep switching during the erasing process. If a word keeps changing a lot, the program gives it more chances to be corrected later. This extra watching helps the program find the right answer when the first method fails. The program also splits its work: a fast method handles the easy problems, while the careful watching method works on the tough ones. By using different strategies for different problems, the program can solve more difficult math and coding tasks. Tests show it gets better scores on math problems and can write more correct code than before. It also recovers answers for some problems that the original method could not solve even after many tries. This makes the computer smarter at handling new and challenging questions. Overall, the new way helps the model be more useful for people who need accurate answers.

## For a technical reader
The system first runs a lightweight sampler to quickly resolve straightforward queries. For remaining difficult inputs, it monitors how token predictions fluctuate across denoising steps and preferentially refines tokens that change frequently. This trajectory-level signal guides a second-stage remasking process that complements traditional confidence-based selection. Experiments show consistent gains on reasoning (MATH-500) and code generation (HumanEval) benchmarks over strong adaptive baselines.

## Problem
Diffusion language models apply a fixed decoding strategy to all inputs, but hard reasoning problems may need alternative strategies. Existing certainty-aware methods rely on local confidence signals that can be misleading, limiting test-time scaling effectiveness.

## Method
The approach tracks how often token predictions change across denoising steps and keeps frequently-changing tokens available for further refinement, providing a trajectory-level signal that complements confidence- and entropy-based remasking. It first uses a fast base sampler for easy inputs, then applies this signal to hard inputs.

## Results
The approach yields up to 3.8% absolute accuracy gains on MATH-500 (LLaDA) and 7.4% on Dream, and up to 11.18% coverage improvements on HumanEval (LLaDA) and 10.77% on Dream. It also recovers solutions for 6.25%-18.75% of examples that were unsolved after 100 samples.

## Contributions
A two-stage adaptive sampling framework that allocates different decoding strategies to hard questions and a trajectory-level frequency tracking signal to improve token refinement. Empirical results show consistent gains on reasoning and code generation benchmarks over strong baselines.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155012)
