TL;DR
Diffusion Large Language Models (dLLMs) struggle with standard test-time scaling because their intermediate generation states are non-sequential and partially masked, making traditional step-by-step Process Reward Models (PRMs) unusable. Reward-Free Guidance (RFG) solves this without any extra training by deriving an implicit step-level process reward directly from the log-likelihood ratio of an off-the-shelf aligned policy and a base reference model. This simple logit-combination rule steers denoising trajectories toward correct reasoning paths, yielding absolute accuracy gains of up to 9.2%.
What Problem Does This Paper Address?
In autoregressive (AR) language models, test-time scaling—using additional inference compute to improve reasoning—often relies on Process Reward Models (PRMs) to score and guide intermediate steps. However, transferring PRMs to dLLMs (such as LLaDA and Dream) is non-trivial:
- Structural Incompatibility: AR models generate coherent, sequential prefixes that PRMs can evaluate. In contrast, dLLMs generate text non-sequentially through iterative unmasking, meaning intermediate states are fragmented sentences riddled with
[MASK]tokens. - Data Bottleneck: Training dedicated PRMs to evaluate arbitrary masked token states would require prohibitive amounts of dense, step-by-step human annotation.
As a result, dLLMs have largely lacked native, fine-grained test-time guidance mechanisms.
Methods
RFG introduces a training-free framework that borrows mathematical intuition from Classifier-Free Guidance (CFG) and preference optimization:
- Implicit Trajectory Reward: Following RL and preference optimization literature, the authors define a trajectory-level reward as the log-density ratio between an aligned policy $p_\theta$ and a base reference model $p_{\text{ref}}$: $$\log \frac{p_\theta(x_{0:T})}{p_{\text{ref}}(x_{0:T})}$$
-
Step-Wise Process Reward Decomposition: The authors prove theoretically (Proposition 3.1) that this trajectory reward cleanly decomposes into step-wise Q-values and marginal step rewards: $$r^t_\theta(x_{t-1} \mid x_t) = \beta \log \frac{p_\theta(x_{t-1} \mid x_t)}{p_{\text{ref}}(x_{t-1} \mid x_t)}$$ This yields an exact, implicit process reward for partially masked states without training an explicit PRM.
-
Guided Denoising Sampling: Sampling is reweighted using guidance strength $w$: $$\log \pi_{\text{RFG}} = (1 + w) \log p_\theta(x_{t-1} \mid x_t) - w \log p_{\text{ref}}(x_{t-1} \mid x_t)$$ At each reverse diffusion step, the model computes logits from both the policy and base models, contrasts them, and updates the token unmasking distribution.
Datasets
The authors evaluated zero-shot reasoning capabilities across four standard benchmarks (no new datasets were introduced):
- Mathematical Reasoning:
- GSM8K: Grade-school arithmetic word problems requiring multi-step derivations.
- MATH-500: A challenging 500-problem subset of competition-level mathematics.
- Code Generation:
- HumanEval: 164 handwritten Python programming problems with docstrings and unit tests.
- MBPP (sanitized): Everyday Python coding challenges with natural language prompts and test assertions.
Key Insights and Ideas
- Implicit PRMs for Masked States: By framing guidance as the log-likelihood difference between a post-trained checkpoint and its base reference, the need for dense intermediate step labeling on arbitrary mask patterns is bypassed entirely.
- Generalizing Beyond RL: While the mathematical justification assumes a policy fine-tuned via RL/preference optimization (e.g., GRPO, DPO), empirical results show that RFG works equally well when using standard Supervised Fine-Tuning (SFT / Instruct) models. The contrast $(1 + w)\log \pi_\theta - w \log \pi_{\text{ref}}$ essentially amplifies alignment-specific features over base capabilities.
- Principled Guidance vs. Compute Matching: The performance boost is not just an artifact of running two forward passes; RFG consistently outperforms a compute-matched Naive Ensemble baseline that merely averages base and policy logits.
Key Results
Evaluated on LLaDA (Instruct, d1-LLaDA, LLaDA-1.5) and Dream (Instruct, diffuCoder) across multiple generation lengths (128, 256, 512):
- Consistent Accuracy Gains: RFG boosts performance across all benchmarks and architectures. For instance, on HumanEval (seq len 512), RFG lifts diffuCoder from 69.5% to 78.7% (+9.2%), and Dream-Instruct from 61.0% to 66.5% (+5.5%) at seq len 256.
- Math Improvements: On MATH-500, RFG improves d1-LLaDA by up to +3.8% and LLaDA-1.5 by +2.0%.
- Accelerated Generation: When doubling the tokens unmasked per step (halving total denoising steps for faster inference), RFG preserves its gains (e.g., +5.1% on GSM8K for Dream-Instruct).
- Robustness to Hyperparameters: Varying guidance weight $w$ shows a wide, stable performance plateau rather than a fragile, narrow peak.
Limitations and Future Work
- Inference Compute Overhead: RFG requires forward passes through two models (the aligned policy and the reference base model) at each diffusion step, effectively doubling per-step latency compared to single-model generation.
- Scope of Evaluation: Experiments focus exclusively on code and math reasoning benchmarks.
- Future Directions: Applying test-time guidance to multimodal diffusion models (e.g., visual-language models) and extended agentic workflows, as well as optimizing inference efficiency through speculative decoding or reference caching.
Summary updated