· Masked / discrete diffusion · Source

Discrete Diffusion Inference-Time Control with Nested Sequential Monte Carlo

SourceFull paper

Article overview

Verdict

The paper presents a well-motivated method for inference-time steering of discrete diffusion language models. NSMC, and especially FA-NSMC, improve controllability and sample efficiency over bootstrap SMC at a matched forward-pass budget, but the evidence is limited to toxicity, perplexity, and one base model.

Main idea

Instead of bootstrap proposals based only on current information, nested SMC estimates locally optimal reward-aware proposals using lookahead to future exponential reward. FA-NSMC additionally selects parents using predictive potentials, preserving diversity among descendants.

Mechanism

The state is a partial discrete-diffusion trajectory x_t and its x₀ reconstruction; the target measure is the reward-tilted distribution weighted by exp(λr(x₀)). The ideal potential is G⋆_{t−1}(x_{t−1},x_t)=E[exp(λr(x₀))|x_{t−1}]/E[exp(λr(x₀))|x_t]; products of potentials telescope to the terminal reward tilt. At each outer step, NSMC forms M inner lookahead candidates, computes their importance weights, averages them into a predictive normalizer, and samples a child categorically. FA-NSMC first resamples parents using accumulated weight times the lookahead normalizer, then propagates distinct children. K controls reconstruction/evaluation count, N the outer particle count, and M the inner population; N provides the largest gains while M saturates quickly. Reproduction: (1) specify the reverse diffusion kernel and reward r; (2) construct surrogate x₀ and estimate reward-conditioned lookahead weights; (3) run M inner SMC candidates per outer state; (4) update predictive and outer weights; (5) for FA-NSMC, resample parents before propagation; (6) compare methods at a matched forward-pass budget. Exact reward-model architecture, SMC implementation details, and diffusion schedule are absent from the records.

What this is useful for

The method applies when generation proceeds through discrete diffusion steps, reward can be evaluated on reconstructed x₀, and extra forward passes are available for lookahead. It is most useful for inference-time toxicity, perplexity, and similar sequence-level objectives without fine-tuning the base model.

Risks / not proven

Evidence comes from one base model and two steering task types. Robustness across other diffusion models, reward functions, λ values, sequence lengths, and compute budgets is not established. Nested SMC increases computational cost; M saturates quickly, and FA-NSMC’s benefits may depend on lookahead quality. The reported numbers should not be treated as universal.

Full abstract

We study inference-time control for text generation in discrete diffusion language models, where the goal is to steer sampling toward sequence-level rewards without retraining. Prior work in this domain has focused on particle-based methods such as best-of-$n$ sampling and bootstrap sequential Monte Carlo, which may suffer from overoptimism and weight degeneracy, respectively. We address these limitations using \emph{nested} sequential Monte Carlo methods. We formulate nested SMC (NSMC) and fully-adapted nested SMC (FA-NSMC) for Feynman--Kac steering, identifying and correcting errors in prior formulations that lead to biased final estimates. We evaluate these methods on toxicity and fluency steering tasks, showing that NSMC and FA-NSMC consistently outperform best-of-$n$ and bootstrap SMC.

Source

Paper resources

Model

BibTeX · RIS · Markdown · JSON