Manuscript Offprint

arXiv:2610.25479

Test-Time Scaling of Text-to-Image Flow Matching Models with Noise-Rejuvenated Sequential Monte Carlo

Wenyi Lian, Zheng Zhao, Thomas B. Sch{ö}n

Abstract

Test-time scaling of diffusion models with sequential Monte Carlo (SMC) has become a promising strategy for sampling under user-specified rewards, such as human preference scores. However, the standard SMC framework typically relies on stochastic proposals and therefore does not directly transfer to flow matching models, in which inference is governed by deterministic ODEs. In this work, we introduce noise-rejuvenated SMC, an inference-time scaling method tailored for text-to-image flow matching models. Our key idea is to perturb each resampled particle by changing its source noise and constructing a new intermediate state using its current endpoint estimate. This moves the particle to another state that remains representable under the flow-matching interpolation form, enabling particle exploration without converting the sampler to an SDE. We further introduce a look-ahead mechanism to refine resampled particles before weighting. Experiments on Stable Diffusion 3, FLUX.1-dev, and Z-Image demonstrate consistent improvements in reward-guided generation, while ablation studies validate the contributions of noise rejuvenation and look-ahead refinement. Code is available at https://github.com/shermanlian/NR-SMC.

1 Introduction

Inference-time scaling of diffusion models has shown promising results by tilting the stochastic generation towards user-specified target distributions (Ben-Hamu et al., 2024; Eyring et al., 2024; Ma et al., 2025; Singhal et al., 2025) using explicitly defined reward signals such as the CLIP-score (Radford et al., 2021) and human preference scores (HPS, Xu et al., 2023; Wu et al., 2023b). Despite their strong performance, many prior methods (Ben-Hamu et al., 2024; Wang et al., 2025; Qi et al., 2024) require backpropagating reward gradients during inference and therefore assume differentiable reward functions. This increases inference cost and limits their applicability to large-scale models and complex or black-box reward signals.

Sequential Monte Carlo (SMC) methods offer a natural alternative by using reward evaluations only for reweighting and resampling particles, rather than for gradient-based optimization (Wu et al., 2023a; Zhao et al., 2025; Zhao, 2026; Singhal et al., 2025). As a result, SMC can guide diffusion sampling without differentiating through the reward function or performing test-time training. By maintaining multiple trajectories, SMC enables exploration and progressively twists the sampling process toward regions with higher user-specified rewards (Singhal et al., 2025; Ma et al., 2025). At the same time, standard SMC algorithms rely on stochastic sampling processes, and are therefore not directly applicable to flow matching (FM) models (Lipman et al., 2022; Liu et al., 2022), which have become an important class of generative models.

SD3

Ours

FLUX

Ours

Z-Image

Ours

Figure

"a red stop sign and a blue book"

"a yellow bicycle and a red motorcycle"

"a photo of three laptops"

Figure

"a bird below a skateboard"

"a computer keyboard above a snowboard"

Figure

"a photo of a cat below a backpack"

Figure

"a red bowl and a pink sink"

"a yellow sports ball and a green boat"

Figure

"a photo of a blue baseball bat and a pink book"

Figure 1: Qualitative comparison between vanilla sampling and our method on text-to-image generation using Stable Diffusion 3 (SD3) (Esser et al., 2024), FLUX.1 (Labs et al., 2025), and Z-Image (Team, 2025). Our method steers generation toward higher reward objectives, producing outputs that better align with the input prompts without additional training or gradient computation.

To obtain the stochastic transitions needed by SMC in deterministic FM samplers, a straightforward baseline is to perturb particle states directly, for example by injecting noise at each solver step. While this does introduce additional stochasticity, it also deviates from the flow matching ODE-based integration path:

z1=z0+∫01vθ(zt,t)dt,(1)z_{1}=z_{0}+\int_{0}^{1}v_{\theta}(z_{t},t)d t, \tag{1}

where z0z_0 and z1z_1 denote the source and target samples, respectively, and vθ(zt,t)=dzt/dtv_\theta(z_t, t) = dz_t/dt is the learned velocity field (Liu et al., 2022). In this scenario, adding noise to Equation (1) often degrades the generation quality and requires more sampling steps for denoising (Liu et al., 2022). As a consequence, most existing SMC approaches fail to improve the results in flow matching models, since they do not generate new paths.

To address this issue, we introduce noise-rejuvenated SMC, a resampling-time perturbation strategy for ODE-based flow matching samplers. Our method keeps the original flow matching solver for normal propagation and injects stochasticity only when particles are resampled. Specifically, after computing the current endpoint estimate from the current particle, we replace its source noise with newly sampled Gaussian noise and construct a rejuvenated intermediate state using the flow-matching interpolation parameterization. The resulting state is subsequently propagated using the original flow-matching solver. This operation constructs an alternative intermediate state compatible with the flow-matching interpolation parameterization, providing controlled exploration while avoiding the quality degradation caused by injecting noise at every solver step. We further introduce a look-ahead mechanism that refines the rejuvenated particles with an additional flow-matching update, leading to more informative resampling decisions.

We evaluate our approach on several state-of-the-art flow matching text-to-image models, including Stable Diffusion 3 (SD3) (Esser et al., 2024), Flux.1 (Labs et al., 2025), and Z-Image (Team, 2025). The results show that our method effectively steers generation toward user-specified reward objectives at inference time, without requiring additional training or gradient-based optimization. Figure 1 illustrates representative examples comparing vanilla sampling and our approach.

In summary, our contributions are as follows:

• We present a novel inference-time scaling method for flow matching based on sequential Monte Carlo. Our method enables particle exploration for diversity while preserving generation fidelity.

  • We introduce a resampling-time perturbation strategy, referred to as noise rejuvenation, which introduces stochasticity over the ODE path and thus unleashes the potential of SMC for flow matching applications.

• We integrate a look-ahead mechanism allowing for further refinement of the resampled particles.

• We empirically show that our proposed method is effective across various state-of-the-art text-to-image flow matching models.

References (69)