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 \emph{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.
Given pretrained model $p_\theta(\mathbf{x}_t)$ and a mask set $\mathcal{M}_t \triangleq \{\ell: \mathbf{x}_t(\ell)=\mathtt{[MASK]}\}$ at time $t$. For each token $\mathbf{x}_{t-1}(j)$, we directly define its confidence as the model probability on $j$, as
In summary, the reverse transition distribution of each token $\mathbf{x}_t (j)$ can be formulated by
Proposition 3.1. Given a pretrained diffusion model $p_\theta$, let $\{\tilde\pi_t(\mathbf{x}_{t:T})\}_{t=0}^T$ denote the unnormalized path measures defined by a Feynman--Kac recursion. If the sequential proposal in SMC is chosen to be the diffusion transition kernel, i.e., $q_{t-1}(\mathbf{x}_{t-1} \mid \mathbf{x}_t) = K_t(\mathbf{x}_t,\mathbf{x}_{t-1})$, then the incremental importance weights at step $t-1$ is given by
SMC maintains multiple diffusion processes, called particles, to explore the sampling trajectories in parallel. At each iteration, we take three steps: resample, propagate, and re-weight, to perform as an interactive optimization process. Importantly, traditional diffusion sampling only considers token-level confidence, while our algorithm uses the trajectory-level confidence as importance weights to select globally confident outputs.
If our code helps your research or work, please consider citing our paper. The following are BibTeX references:
@article{luo2026self,
title={Self-Rewarding Sequential Monte Carlo for Masked Diffusion Language Models},
author={Luo, Ziwei and Jin, Ziqi and Lei, Wang and Bing, Lidong and Sch{\"o}n, Thomas B},
journal={arXiv preprint arXiv:2602.01849},
year={2026}
}