Skip to content
AI.info

Research

Lookahead Sample Reward Guidance for Test-Time Scaling of Diffusion Models

Lookahead Sample Reward Guidance for Test-Time Scaling of Diffusion Models Overview Research area: Generative machine learning, specifically reward-guided test-time scaling of diffusion models for tex

arXiv
2602.03211
Published
2026-02-03
Authors
Yeongmin Kim, Donghyeok Shin, Byeonghu Na, Minsang Park, Richard Lee Kim, Il-Chul Moon

AI summary

Lookahead Sample Reward Guidance for Test-Time Scaling of Diffusion Models

Overview

  • Research area: Generative machine learning, specifically reward-guided test-time scaling of diffusion models for text-to-image generation (with extensions to flow matching and discrete diffusion).
  • Technical level: Advanced. The paper is built around stochastic differential equations, Stein scores, reward-tilted distributions, and convergence proofs, though the central idea is intuitive once the notation is unpacked.
  • Scope in one sentence: The paper derives a closed-form, backpropagation-free approximation of the Expected Future Reward (EFR) for intermediate diffusion particles, then uses it in a "lookahead sample reward guidance" (LiDAR) sampler that matches state-of-the-art gradient-guidance quality at a fraction of the inference cost.

What This Paper Is About

Diffusion models generate images that often fail to match what a user asked for, and one common fix is test-time scaling: nudging the sampling process toward samples that score highly under a reward model reflecting human intent. Doing this well requires estimating the Expected Future Reward (EFR) of an intermediate noisy particle, which prior methods either compute with prohibitively expensive per-timestep rollouts, with inaccurate Taylor approximations that force backpropagation through neural networks, or with Sequential Monte Carlo (SMC) methods whose quality collapses when few particles are used. This paper shows the EFR can be rewritten purely in terms of marginal samples from the pre-trained model and the forward perturbation kernel, which yields an exact closed-form guidance term requiring no differentiation through any network.

Key Contributions

  1. A new EFR formulation (Theorem 3.1): The Expected Future Reward at any intermediate particle xt is expressed only through final marginal samples x0 drawn from the pre-trained model conditioned on the prompt, with the dependency between xt and x0 mediated solely by the forward perturbation kernel p(xt | x0). The authors call this forward rollout, and it detaches xt from the neural networks entirely.
  2. Efficient lookahead sampling (Section 3.2, Algorithm 1): Instead of sampling marginals with the full target sampler, LiDAR pre-generates a small set of "lookahead" samples using a few-step solver (e.g., a 3-step ODE solver, or distillation models such as LCM and DMD) and annotates each with a reward value.
  3. Derivative-free closed-form guidance (Theorem 3.3, Section 3.3, Algorithm 2): The gradient of the empirical lookahead reward has an exact closed form — a weighted sum of the lookahead samples scaled by σt², with softmax weights that favor high-reward, close-by lookahead samples. No backpropagation through the score network, decoder, or reward model is needed.
  4. Probabilistic scaling laws (Theorems 3.4 and 3.5): The gap to the true target distribution shrinks as O(1/√δ) in the lookahead discretization steps δ, and the empirical estimate of the lookahead reward is asymptotically normal with variance decreasing in the number of lookahead samples n.

Main Findings

  • LiDAR beats gradient guidance on quality and cost: On SD v1.5 with DDPM 100 steps, LiDAR (DPM-5, n=50) reaches IR 0.384, CLIP 0.278, HPS 0.276, GenEval 0.478 at 13.41 sec and 8.90 GiB, versus DATE's IR 0.364, CLIP 0.274, HPS 0.267, GenEval 0.438 at 32.89 sec and 24.71 GiB, and UG's IR 0.326, CLIP 0.262, HPS 0.236, GenEval 0.355 at 58.36 sec and 28.16 GiB.
  • SDXL results and the headline speedup: On SDXL with DDPM 100 steps, LiDAR (DMD-1, n=100) achieves IR 1.006, CLIP 0.285, HPS 0.302, GenEval 0.598 in 78.67 sec, and LiDAR (DPM-8, n=50) achieves IR 0.994, GenEval 0.585 in 97.99 sec, compared with DATE's IR 0.960 and GenEval 0.570 in 272.32 sec. The authors state that LiDAR matches the GenEval performance of the latest gradient guidance method for SDXL with a 9.5× speedup, and that DATE's peak SDXL performance is reached approximately 9.5× faster.
  • Memory stays at vanilla levels: LiDAR's target sampling stage uses 8.90 GiB on SD v1.5 and 33.84 GiB on SDXL, matching vanilla sampling, whereas UG and DATE require roughly 3× more memory (28.16 GiB and 24.71 GiB on SD v1.5) and hit out-of-memory errors on SDXL.
  • Diversity is preserved, unlike SMC: The paper argues that SMC-based methods collapse to nearly identical samples because importance resampling happens in high-dimensional image space, whereas the direct score-based sampling used by LiDAR gives consistent gains independent of the number of target particles.
  • Scaling is smooth in n and δ: Figure 3 shows empirical scaling behavior as the number of lookahead samples n and the lookahead accuracy δ increase, with better lookahead solvers (DPM-δ) improving results over the vanilla Stein score alone.
  • Lookahead sample count drives results (SD v1.5, DPO comparison): Table 5 shows that with DPM-5 and n=50, LiDAR on a plain SD v1.5 reaches IR 0.384 and GenEval 0.478, and on a DPO-tuned SD v1.5 reaches IR 0.445 and GenEval 0.489; fine-tuning and test-time scaling are described as orthogonal and complementary.
  • Works on flow matching: On FLUX (Table 3), GenEval rises from 0.645 at n=0 to 0.663 at n=3, 0.668 at n=50, and 0.667 at n=100, while IR rises from 1.019 to 1.198.
  • Works on discrete diffusion: On UDLM trained on QM9 with a ring count reward (Table 4), novel molecules rise from 130 (n=0) to 205 (n=16), 251 (n=1024) and 257 (n=4096), with novel ring count rising from 2.192 to 4.128 at n=4096 and total ring count from 1.753 to 3.393 at n=1024.
  • Comparisons to other sample-based guidance: Table 7 reports LiDAR at IR 0.384, CLIP 0.278, HPS 0.276, against Safe-D at IR -0.001, CLIP 0.271, HPS 0.262 and SR at IR 0.014, CLIP 0.272, HPS 0.263, all using DPM-5 lookahead with n=50.
  • Reward mixing works: With a weighted ImageReward/CLIP mix at DPM-5 and n=50 (Table 6), a 40%/60% ImageReward/CLIP split gives the best GenEval of 0.476 with CLIP 0.2799, while the 100%/0% split gives the best IR of 0.384.

Methodology in Plain English

The target is a "reward-tilted" distribution: the pre-trained model's output distribution reweighted by exp(λ·r(x0, c)), so that higher-reward images are more likely. Sampling from it requires adding the gradient of the Expected Future Reward to the model's usual score at each step.

The key move is algebraic. Rather than asking "if I keep denoising from this noisy xt, what reward will I get?" — which forces a fresh rollout at every timestep and backpropagation through every network — the authors rewrite the EFR as an average over complete final samples x0 drawn from the prompt alone, reweighted by how likely each x0 is to have produced the current xt under the known forward noise kernel. Because xt never enters a neural network, that average can be differentiated analytically, giving a closed-form guidance direction with zero backpropagation.

To make this cheap, they do not draw those final samples with the full sampler. Instead they run a short-cut generator (a few-step DPM solver, or a distilled model like LCM-LoRA at 4 steps or DMD at 1 step) to produce n "lookahead" samples per prompt, and score each with the reward function once. During actual sampling, each intermediate particle is pushed toward lookahead samples with high rewards and away from low-reward ones, using softmax weights that combine the reward value and the squared distance between the current particle and the lookahead sample. A scalar weight s on the guidance term, borrowed from weak-to-strong generalization, controls how strongly this signal is applied.

Why This Matters

  • Research impact: The paper argues that direct score-based guidance is fundamentally better behaved than SMC — it does not depend on how many target particles you generate, and it avoids the particle collapse that afflicts importance resampling in high dimensions. It also removes the Taylor approximation error that grows with the guidance strength λ, which the paper links to reward hacking in gradient guidance methods.
  • Real-world applications:
    • Text-to-image services where prompt adherence is the main quality complaint, deployed without any additional model training.
    • Commercial image generation APIs that must control memory and latency per request, since LiDAR keeps memory at vanilla levels.
    • Scientific and molecular design pipelines: the QM9/UDLM experiment uses a simple ring-count reward to increase novel chemical structures.
    • Any pipeline with a non-differentiable or black-box reward, because LiDAR only evaluates the reward and never differentiates through it.
  • Industry relevance: Test-time scaling is valued commercially because it improves output quality without retraining costs, but it multiplies inference cost. A method that matches the leading gradient-guidance quality while cutting runtime and keeping memory flat directly improves the cost-per-quality trade-off that determines whether such methods are deployable at scale, and the paper's efficiency-performance curves show LiDAR continuing to scale where DATE cannot.

Future Directions

  • Better and larger lookahead budgets: Since performance improves with the number of lookahead samples n and with more accurate lookahead solvers δ, an open question is how far this scaling continues and whether distillation models can push the efficiency frontier further.
  • Reward design beyond a single objective: The paper already shows that mixing ImageReward and CLIP changes the balance of metrics; selecting or composing rewards to avoid hacking remains an open design question.
  • Bridging the theoretical gap to the true target: Theorems 3.4 and 3.5 bound the gap only up to O(1/√δ) and describe asymptotic variance in n, so finite-sample behavior and tighter bounds on the lookahead approximation error are natural next steps.
  • Broader modalities: The paper demonstrates extension to flow matching (FLUX) and discrete diffusion (UDLM), so applying the same forward-rollout EFR to video, language, and other domains listed as diffusion-model applications is a logical extension.

Target Audience

Researchers and practitioners working on diffusion model inference, guidance, and test-time scaling; engineers building text-to-image or scientific generation systems who care about latency, memory, and GPU cost; and readers interested in reward-driven generation, weak-to-strong generalization, or sequential Monte Carlo methods in high dimensions. The derivations require comfort with score-based diffusion and stochastic processes, so a beginner will need to focus on Sections 1, 3.1–3.3, and the experimental tables rather than the proofs.

Authors’ abstract

Diffusion models have demonstrated strong generative performance; however, generated samples often fail to fully align with human intent. This paper studies an efficient test-time scaling method for sampling from regions with higher human-aligned reward values. Existing methods for computing the expected future reward (EFR) face important limitations: backward rollout incurs prohibitively high sampling costs, while Tweedie-based approaches, including Sequential Monte Carlo and gradient guidance, suffer from bias and inherent sampling issues. We show that the EFR at any $\mathbf{x}_t$ can be computed using only marginal samples from a pre-trained diffusion model, enabling closed-form reward guidance without neural backpropagation. To further improve efficiency, we introduce a few-step lookahead sampling and an accurate solver that guides particles toward high-reward lookahead samples. We refer to this sampling scheme as LiDAR sampling. LiDAR achieves the same GenEval performance as the latest gradient guidance method for SDXL with a 9.5x speedup. We release the code at https://github.com/aailab-kaist/Diffusion-LiDAR-Sampling.

Read the original paper