Stein Guidance without Gradients: Discretization Uniform Diffusion Inference Time Scaling beyond Particle SMC

Youheng Zhu, Chenyang Wang, Minshuo Chen, Yiping LuarXiv 2026

It’s late, you’ve had a long day, and the last thing you want is a dry lecture on stochastic differential equations. But what if I told you there’s a way to steer diffusion models—those magical engines behind AI art and robot control—without ever having to calculate a single gradient?

In the world of generative AI, we often want to "guide" a model toward a specific goal (a "reward"). Maybe you want an image that isn't just a "cat," but a "cat wearing a tiny top hat that looks specifically like it was painted by Vermeer." Or maybe you want a robot arm to reach a goal while avoiding a glass of water.

The paper "Stein Guidance without Gradients" by Zhu et al. tackles a fundamental bottleneck in how we do this steering.

TL;DR

Steering diffusion models toward specific rewards usually requires expensive gradients or messy particle filters that become biased as you add more steps. This paper introduces Stein Guidance, a derivative-free method that uses a clever "centered" sampling trick and a final correction step to maintain high accuracy, no matter how many guidance steps you take.

What Problem Does This Paper Address?

When we guide a diffusion model, we are essentially trying to tilt its probability distribution toward higher rewards. The "gold standard" for this is something called Doob’s h-transform, which tells us exactly how to nudge the model at each step. The catch? It requires knowing the gradient of a value function, which is often intractable or computationally expensive to compute.

The current workaround is Sequential Monte Carlo (SMC). You simulate a bunch of "particles," reweight them based on the reward, and resample them. But SMC has a "depth-width" curse: as you increase the number of guidance steps (depth), the particles start sharing ancestors, noise accumulates, and you end up with a massive bias. To fix it, you have to increase the number of particles (width) linearly with the depth, which is a computational nightmare.

Figure 1: Guidance depth and efficient correction. (a) Repeated resampling accumulates population fluctuations; normalized weighting converts them into terminal bias. (b) Direct Doob guidance requires value gradients. (c) Centered Stein pools provide derivative-free guidance and low-variance estimates of local normalizers. The same queries give path weights for outer Metropolis- Hastings (MH) correction with independent complete proposals (top).

Methods

The authors propose a two-part solution: Stein Guidance (the nudge) and Metropolis-Hastings Correction (the fix).

  1. Stein Guidance (Derivative-Free): Instead of calculating a gradient $\nabla \log H$, they sample a small "pool" of $K$ candidate next-states. By weighting these candidates by their reward values, they show that the expected move of the model naturally recovers the gradient-based guidance. You get the benefits of a gradient without ever taking a derivative.
  2. The Centering Trick: This is the secret sauce. Instead of picking independent random noise for your candidates, you use "centered" noise—meaning the noise vectors sum to zero. This cancels out the "boring" first-order noise and lets the model focus on the "interesting" curvature of the reward function.
  3. Whole-Path MH Correction: After generating an entire path, they use a Metropolis-Hastings (MH) step to decide whether to keep it or stay with the previous one. Because they generate independent complete paths, they avoid the "shared ancestry" problem of SMC.
Table 1: Guidance and correction methods (conditions in Section G.4).

Datasets

The authors evaluated their method across three distinct domains:

  • Synthetic Benchmarks: 1D and 64D Brownian motion to test the mathematical limits of the theory.
  • Offline Reinforcement Learning (RL): The Hopper-medium-v2 task from the D4RL benchmark, where they steered a pre-trained policy toward higher-scoring actions.
  • Text-to-Image Generation: Using Stable Diffusion v1.5 on the GenEval benchmark (specifically the two-object subset) to see if the model could better follow complex prompts like "a book and a laptop."

Key Insights and Ideas

  • Two Queries are Better Than One (if they're centered): The authors found that a pool of just two centered candidates ($K=2$) is as efficient as 128 independent candidates. By simply looking in two opposite directions, you capture the essence of the gradient.
  • Breaking the Coupling: By moving the correction to the end of the path (whole-path MH) rather than resampling at every step, they decoupled the "depth" of guidance from the "width" of the particle pool. You can now have 1,000 guidance steps without needing 1,000 times more compute.
  • Superpolynomial Decay: They proved mathematically that the error of their method drops off incredibly fast (superpolynomially) as you increase the number of MH updates.

Key Results

  • In RL: Stein Guidance achieved the lowest Kolmogorov-Smirnov (KS) distance—a measure of how close the generated distribution is to the target—beating out standard SMC and other state-of-the-art methods like SVDD and DOIT.
  • In Image Gen: On the GenEval benchmark, Stein Guidance with $K=2$ achieved the highest scores across three major metrics: CLIP score (0.2961), HPSv2 (0.2622), and ImageReward (0.8290). It was significantly better at placing two distinct objects in a scene compared to the base model or other guidance techniques.
  • Efficiency: The method is highly parallelizable. Since each path is generated independently, you can spin up $m$ proposals at once on a GPU, run the MH checks, and get your result.

Limitations and Future Work

  • Smoothness Assumptions: The theoretical proofs rely on the reward and value functions being somewhat "well-behaved" (uniform value and spatial regularity). If your reward function is a jagged mess of spikes, the convergence might slow down.
  • Continuous vs. Discrete: The current theory is built for continuous state diffusion. Extending this to discrete diffusion (like for text or categorical data) is an open question.
  • Proposal Quality: While the MH step guarantees accuracy, if the initial "Stein-guided" proposal is very far from the high-reward region, the MH acceptance rate might be low, requiring more iterations to find a good sample.

Summary updated

Abstract

Reward-guided diffusion requires effective steering and correction of the bias introduced by approximate value functions. A Brownian example shows that SMC with full multinomial resampling at every step can require particle counts to grow linearly with guidance depth to maintain accuracy. We propose Stein Guidance, which combines derivative-free guidance with whole-path independence Metropolis-Hastings correction. Value-weighted selection from centered Gaussian candidates approximates gradient guidance in expectation, using as few as two queries per step. Centering stabilizes the local normalizer estimates, and the same queries yield an explicit path weight for correction. Under uniform value and spatial regularity bounds, we prove superpolynomial decay of finite-grid total variation error in the number of MH updates, with constants that do not grow with guidance depth. The error prefactor tends to zero as the value functions approach exact Doob values and the time grid is refined.
BibTeX
@misc{zhu2026stein,
  author = {Youheng Zhu and Chenyang Wang and Minshuo Chen and Yiping Lu},
  title = {{Stein Guidance without Gradients: Discretization Uniform Diffusion Inference Time Scaling beyond Particle SMC}},
  year = {2026},
  eprint = {2611.28654},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28654},
}
Figure