· Masked / discrete diffusion, Post-training, Controllability · Source · Code (Mention in inspected excerpt)

Entropy Aware Reward Guidance for Diffusion Language Model Alignment

SourceFull paper

Article overview

Verdict

EntRGi is a convincing entropy-adaptive reward-guidance method for discrete diffusion language models: it generally outperforms APS, Best-of-N, and other tested methods for test-time steering, while RGRL improves post-training over diffu-GRPO. Practical value is constrained by the need for a differentiable reward model, extra backpropagation, and reward-hacking risk.

Main idea

The method chooses how much to mix a token’s soft expected representation with its sampled hard token according to predictive entropy. Confident positions use mostly soft representations, while uncertain positions use hard tokens. RGRL transfers such reward-guided completions into diffusion-model self-distillation.

Mechanism

For position l with distribution q_l, the method uses e_l=e_soft+sg(w_l(e_hard−e_soft)), where w_l=H(q_l)/log K; sg blocks gradients through the hard component. At each denoising step, M updates are applied to masked-position logits using the reward-model gradient, then selected tokens are committed; the main experiments use M=3. Tokens mismatched between tokenizers receive zero reward-model embedding contributions. RGRL generates N EntRGi- or APS-guided completions and minimizes their negative log-likelihood under the dLLM, using LoRA. Reproduction: (1) obtain q_l and soft/hard embedding representations; (2) compute normalized entropy and mix representations; (3) perform M reward-gradient updates before each unmasking; (4) sample and commit tokens; (5) for RGRL, distill N completions through NLL. The records do not specify the optimizer form or exact update parameterization.

What this is useful for

The method suits discrete diffusion LLMs when a differentiable reward model is available and controllability, multi-criteria quality, or dense generation feedback matters. It is especially useful for test-time steering and for transferring reward-guided behavior into post-training through RGRL. Robustness to tokenizer mismatch supports use with models having different vocabularies, but zero contributions for mismatched tokens remain a tradeoff.

Risks / not proven

The method requires a differentiable reward model and backpropagation during generation or training, so wall-clock latency may not improve despite throughput parity with APS. Too many reward-gradient steps can cause overoptimization and reward hacking; the best M is dataset-dependent. Tokenizer mismatch reduces gains, and RGRL was faster than diffu-GRPO in only one of four tested settings. Transfer to nondifferentiable rewards, other model scales, or independent human evaluation is not established.

Full abstract

Reward guidance, also known as posterior sampling, is a popular method for test-time adaptation and post-training in continuous diffusion models. In this paper, we study reward guidance for discrete diffusion language models; now, one cannot differentiate through the natural outputs of the model because they are discrete tokens. We introduce a novel mechanism called EntRGi (Entropy aware Reward Guidance) to address this issue. EntRGi dynamically interpolates between continuous token relaxations and sampled hard tokens, on a token-by-token basis, using the diffusion model's predictive entropy. We demonstrate that EntRGi maintains both reward model reliability and optimization accuracy, while existing approaches sacrifice one for the other. We empirically validate our approach on 7B-parameter diffusion language models across two settings: (1) test-time adaptation, and (2) RGRL (Reward Guided Reinforcement Learning), our recipe for post-training on reward-guided data, showing consistent improvements over state-of-the-art methods. Our code is available at https://atutej.github.io/entrgi-rgrl

Source

Paper resources

Code

Project

BibTeX · RIS · Markdown · JSON