How Reliable are Intermediate Rewards for SMC-based Guidance in Masked Discrete Diffusion Models? A Closed-Form Analysis

Thomas Christie, Henry Moss, Carl Henrik Ek, Philipp HennigarXiv 2026

TL;DR

When steering discrete diffusion models to generate things like proteins or text, we rely on fast, independent token predictions to score half-finished drafts. By building an exact mathematical testbed free of neural network approximation errors, the authors show this standard shortcut fails catastrophically in strict scientific domains where invalid drafts yield zero signal. To actually guide generation in biology or chemistry, we either need rewards that grade broken sequences or we must spend extra compute to respect token dependencies during intermediate steps.

What Problem Does This Paper Address?

Diffusion models aren't just for continuous pixels anymore; masked discrete diffusion models generate sequences like text or amino acids by starting with a string of [MASK] tokens and iteratively revealing characters. Often, we want to guide this unmasking toward a specific goal—say, high binding affinity in a protein—without retraining the base model or needing gradients (which don't naturally exist for discrete tokens).

Enter Sequential Monte Carlo (SMC) methods, like Feynman-Kac (FK) steering. Think of SMC as survival of the fittest for drafts: you maintain a population of partially unmasked sequences ("particles") and periodically clone the promising ones while culling the duds.

Here’s the catch: most reward functions only know how to score a finished sequence, not a half-masked one. To peek ahead, standard algorithms cheaply "complete" the masked tokens using a single forward pass of the denoising network. For computational tractability, this network predicts all remaining masked tokens independently of one another—known as sampling from the factorised distribution—ignoring how tokens next to each other actually interact. Nobody had rigorously tested what happens to SMC guidance when those cheap, independent guesses clash with strict real-world validity rules.

Methods

To isolate the math of guidance from the messiness of neural network training errors, the authors constructed a closed-form masked discrete diffusion process.

Instead of training a deep network, they defined the underlying data distribution as a Markov chain, where valid ("feasible") sequences are generated step-by-step via a transition matrix, and invalid transitions have zero probability. By masking exactly one random token per forward step, they unlocked classic state-space algorithms—specifically the forward-backward algorithm and forward-filtering backward-sampling.

This clever setup lets them compute and sample from both the exact joint distribution (which respects how tokens depend on neighbors) and the exact factorised distribution (which unmasks tokens independently) cheaply and with zero approximation error. They then plugged both sampling strategies into standard FK steering, testing different ways of penalizing or scoring invalid completions along the way.

Datasets

Rather than static datasets, the paper evaluates on Ehrlich functions—synthetic benchmarks specifically engineered to mirror the tough constraints of biophysical sequence optimization (and known to correlate well with real-world biological tasks). Sequences are only "feasible" if they obey strict Markov transition rules, and valid sequences are scored in $[0, 1]$ based on the presence of specific target motifs, while infeasible sequences default to $-\infty$. The authors test two Newly configured diffusion variants: Ehr-Short (length $L = 32$) and Ehr-Long (length $L = 128$).

Key Insights and Ideas

  • Independent unmasking breeds gibberish: When a particle is heavily masked, filling in the blanks independently almost guarantees breaking sequence-level rules. You end up evaluating sequences outside the valid data distribution.
  • Dead-end rewards break SMC: In wet-lab science or physical simulations, an invalid molecule or un-foldable protein simply fails, returning no signal (like $-\infty$ or $0$). When factorised completions constantly hit this wall, SMC loses its compass—performing no better than, or even worse than, blind trial-and-error.
  • Why text steering gets away with it: If you can design a reward that grades broken sequences based on local, per-token traits (ignoring grammar or physical feasibility), cheap factorised sampling works brilliantly! As the authors point out, if you're steering an LLM toward or away from toxic text, spotting a single swear word in an ungrammatical completion is plenty of signal to steer by.

Key Results

Feasibility of intermediate completions and FK steering performance across joint and factorised distributions.

Figure 1: Left: As particles xt become more masked, completions sampled from the factorised distribution pfact(x0|xt) fall outside the support of p0 with increasing probability, unlike samples from the joint which are always feasible. Right: FK steering runs on Ehr-Long. Computing intermediate rewards via samples from the joint p(x0|xt), or designing rewards which are informative for infeasible sequences (e.g. the motif reward), substantially outperforms the other factorised variants.

As shown in Figure 1 (Left), completions from the joint distribution remain 100% feasible at every masking level. Meanwhile, factorised completions plummet into infeasibility as masking grows: on Ehr-Long, once 40% of positions are masked, fewer than 5% of factorised completions are valid; past 60%, virtually 0% are feasible.

In 16-particle FK steering runs on Ehr-Long (Figure 1, Right), an unguided best-of-16 baseline achieves a reward around 0.07. Using factorised completions with uninformative penalties for invalid sequences stalls out between ~0.06 ($-\infty$ penalty, worse than unguided!) and ~0.10 (scoring feasible completions only). Conversely, computing intermediate rewards via the joint distribution—or giving factorised samples a hypothetical per-token "motif reward" even when infeasible—rockets the best reward up to ~0.28 at tilting strength $\lambda = 10^3$.

Limitations and Future Work

While exact joint sampling is cheap in this Markovian sandbox, doing it with a real, pre-trained neural diffusion model is computationally painful: unmasking tokens sequentially to preserve joint dependencies requires many extra forward passes through the network just to score a single intermediate step.

To make scientific guidance practical without blowing up inference budgets, the authors suggest two paths forward: adopting accelerated parallel decoding methods to approximate the joint distribution faster, or avoiding heavily masked states altogether via local search—taking a known good sequence, partially re-noising a small fraction of tokens, and denoising from there.

Summary updated

BibTeX
@misc{christie2026how,
  author = {Thomas Christie and Henry Moss and Carl Henrik Ek and Philipp Hennig},
  title = {{How Reliable are Intermediate Rewards for SMC-based Guidance in Masked Discrete Diffusion Models? A Closed-Form Analysis}},
  year = {2026},
  eprint = {2611.40081},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.40081},
}
Figure