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.
Figures & tables
Figure 1: Illustration of different particle-based steering strategies. (Left) Best-of- n : independent proposals with selection based on exponentiated rewards. (Middle) Nested sequential importance sampling: particles propagate sequentially with weight updates but no resampling. (Right) Nested SMC: particle filtering approach where each outer particle spawns an inner SMC, approximating the locally optimal proposal distribution for improved effective sample size.
Algorithm 1 Nested Proposal
Algorithm 2 Nested SMC
Table 4Table 5
Figure 2: Comparison of intermediate rewards for toxicity steering.
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Algorithm 3 Bootstrap SMC
Algorithm 4 Fully-Adapted Nested SMC
Figure 3: Intermediate rewards under toxicity steering increase over time, with higher population size M , yielding better rewards but diminishing returns and a largely stable ranking across time steps.
Method
Distinct-1 ↑
Distinct-2 ↑
BoN
0.29
0.74
SMC
0.26
0.71
NSMC
0.26
0.70
FA-NSMC
0.26
0.71
Appendix
Table 5: Output diversity on the toxicity task (Distinct- n ; higher is more diverse) with N=8 , K=4 , λ=10 .
x0 samples
Particles
Inner particles
Toxic acc
Ext toxic acc
4
4
4
0.13
0.13
4
4
8
0.17
0.17
4
8
4
0.03
0.01
4
8
8
0.20
0.16
16
4
4
0.16
0.13
16
4
8
0.26
0.20
Appendix
Table 6: Toxicity rates for biased NSMC implementation according to Uehara et al. (2025) averaged over 10 repetitions ( λ=10 ).