· Masked / discrete diffusion, Controllability · Source

Self-Rewarding Sequential Monte Carlo for Masked Diffusion Language Models

SourceFull paper

Article overview

Verdict

The method provides convincing inference-time gains for masked diffusion LLMs: SR-SMC improves quality and diversity without retraining or an external reward model, but requires additional parallel computation, and model confidence is not a direct measure of correctness or preference.

Main idea

Run multiple diffusion-generation trajectories as particles and reallocate computation toward trajectories with high accumulated confidence, using that confidence as an implicit reward and importance weight.

Mechanism

A particle state is the current token sequence and its diffusion masking level. At each step, the reverse kernel preserves unmasked tokens, selects low-confidence tokens for remasking, and samples new values from model predictions. When the diffusion transition is used as the proposal, the incremental SMC weight equals the product of probabilities for the selected tokens; multiplying across steps yields trajectory confidence. The algorithm repeats: (1) compute confidences and choose a remasking subset, (2) resample when ESS falls below half the particle count, (3) propagate particles through the diffusion transition, (4) update weights, and (5) continue until the output is fully unmasked. Gumbel-Max controls categorical sampling temperature. Compute rises because particles run in parallel; the exact mask-subset selection rules and schedule parameters absent from the records require clarification. Reproduction requires a pretrained masked diffusion LLM, a baseline reverse/remasking sampler, multiple particles, confidence-product weighting, ESS-triggered resampling, and comparisons at matched NFE budgets.

What this is useful for

The method is most applicable to masked diffusion language models when inference budget permits multiple particles and the goal is to favor globally coherent trajectories without training a reward model. It is especially relevant to text generation, mathematical reasoning, and code, where later trajectory improvement can invalidate an early greedy choice.

Risks / not proven

Additional particles increase inference computation and NFE. Products of token confidence can amplify well-calibrated-looking but incorrect decisions; the method does not directly optimize correctness or human preference. Therefore, the reported gains should not be assumed to transfer to other models, lengths, budgets, or tasks without validation.

Full abstract

This work presents self-rewarding sequential Monte Carlo (SMC), an inference-time scaling algorithm enabling effective sampling of masked diffusion language models (MDLMs). Our algorithm stems from the observation that most existing MDLMs rely on a confidence-based sampling strategy, where only tokens with the highest prediction confidence are preserved at each step. This restricts the generation to a noise-sensitive, greedy decoding paradigm, resulting in an inevitable collapse in the diversity of possible paths. We address this problem by launching multiple interacting diffusion processes in parallel, referred to as particles, for trajectory exploration. Importantly, we introduce the trajectory-level confidence as a self-rewarding signal for assigning particle importance weights. During sampling, particles are iteratively weighted and resampled to systematically steer generation towards globally confident, high-quality samples. Our self-rewarding SMC is verified on various masked diffusion language models and benchmarks, achieving significant improvement without extra training or reward guidance, while effectively converting parallel inference capacity into improved sampling quality. Our code is available at https://github.com/Algolzw/self-rewarding-smc.

Source

Paper resources

Project

BibTeX · RIS · Markdown · JSON