TL;DR
Want to steer a frozen diffusion model toward specific rewards at test time without retraining, needing gradients, or watching all your outputs collapse into identical clones? RpCN achieves this by sneaking classic Markov Chain Monte Carlo (MCMC) machinery directly into the noise-residual space of each denoising step. The result is high-reward, richly diverse generation that works even on discontinuous, black-box objectives.
What Problem Does This Paper Address?
Diffusion models are fantastic priors over complex data, like natural images or physical trajectories. Often, however, we want to sample from a reward-tilted version of that prior—say, images that match human aesthetic preferences, or physical simulations where a rare event occurs—without retraining the massive underlying network.
Doing this at test time presents a frustrating dilemma:
- Gradient-based guidance (like Classifier Guidance or DPS) requires a differentiable reward function and delicate step-size tuning to keep things stable. If your reward is a black box or a discontinuous step function, you're out of luck.
- Gradient-free particle methods (like Feynman–Kac [FK] Steering) bypass gradients using Sequential Monte Carlo (SMC). They run a population of particles and repeatedly clone high-reward trajectories while pruning weak ones. Unfortunately, this evolutionary survival-of-the-fittest causes severe mode collapse: the entire population crowds onto a single high-reward peak, completely missing other valid solutions.
How do we steer diffusion models using any black-box reward while preserving the full diversity of valid answers?
Methods
The authors introduce Residual Preconditioned Crank–Nicolson Steering (RpCN), replacing destructive particle resampling with local MCMC exploration.
First, what's standard? In a reverse diffusion step, moving from noisy state $\mathbf{x}_{t+1}$ to cleaner state $\mathbf{x}_t$ is modeled as a Gaussian step: you jump to a predicted mean $\boldsymbol{\mu}_\theta$ and add Gaussian residual noise $\boldsymbol{\epsilon}$. Meanwhile, standard random-walk MCMC fails miserably in high dimensions because step sizes must shrink toward zero just to keep proposals from being rejected. Preconditioned Crank–Nicolson (pCN) is a classic MCMC algorithm designed to fix this when sampling against a Gaussian prior; it proposes new states that naturally respect the Gaussian geometry, keeping acceptance rates healthy regardless of dimension.
Here is what is new in RpCN:
- Residual-Space pCN: Instead of perturbing the state $\mathbf{x}_t$ directly, RpCN isolates the Gaussian residual noise $\boldsymbol{\epsilon}$ at each reverse diffusion step and applies pCN proposals there: $\hat{\boldsymbol{\epsilon}} = \sqrt{1 - \lambda^2}\boldsymbol{\epsilon} + \lambda \boldsymbol{\xi}$. Because this preserves the reverse kernel's Gaussian measure, the Metropolis–Hastings acceptance check simplifies cleanly to comparing expected terminal rewards—estimated cheaply via Tweedie's formula (predicting the clean $\mathbf{x}_0$ from $\mathbf{x}_t$).
- Parallel Tempering (PT): Local MCMC steps alone can still get trapped behind low-probability valleys. RpCN runs a ladder of $K+1$ replicas at different "temperatures" ($\beta_k$, controlling how strongly the reward tilts the prior). "Hot" replicas ($\beta_0 = 0$) explore freely using the base diffusion model, while "cold" replicas ($\beta_K = \beta$) lock onto high-reward peaks. Periodically swapping states between adjacent temperatures lets the final replica harvest globally diverse modes without biasing its target distribution.
Datasets
No new benchmarks are introduced; the authors evaluate RpCN across four existing domains:
- Synthetic 1D Task: Transporting a unimodal Gaussian prior to a bimodal target across low-density barriers.
- Text-to-Image Generation: Prompts from the ImageReward benchmark evaluated across Stable Diffusion v1.4, v1.5, and v2.1.
- Dynamical Systems: Simulated trajectories of the chaotic Lorenz ’63 attractor and the FitzHugh-Nagumo neuron spiking model (following Finzi et al.).
- Inverse Problems: 100 validation images ($256 \times 256$) from FFHQ tested on noiseless $4\times$ super-resolution, random inpainting, Gaussian deblurring, and motion deblurring.
Key Insights and Ideas
- Isolating the Gaussian residual unlocks dimension-free MCMC: By recognizing that every reverse diffusion transition has a built-in Gaussian noise residual, pCN becomes a plug-and-play tool. You get stable MCMC mixing in high-dimensional image latent spaces without needing reward gradients.
- Swapping beats cloning for diversity: SMC methods like FK Steering destroy diversity by overwriting low-weight particles. Parallel tempering keeps an unsteered "scout" replica alive at all times, feeding fresh modes up the temperature ladder.
- Theoretical guarantees decompose cleanly: Under idealized local mixing and bounded rewards, the authors prove that the KL divergence between RpCN's output and the true reward-tilted target is bounded by the sum of the diffusion model's score-matching error and the Tweedie reward-approximation error—converging to zero as both improve.
Key Results
- Image Generation: Steering Stable Diffusion with ImageReward, RpCN achieves over $3\times$ higher CLIP diversity than FK Steering while simultaneously beating it on reward alignment across SD v1.4, v1.5, and v2.1 (e.g., on SD 1.5, RpCN hits 1.046 ImageReward and 0.338 diversity vs. FK Steering's 0.898 and 0.104). Compare the collapsed outputs of FK Steering to RpCN's variety on the prompt "a coffee mug made of cardboard":
- Discontinuous Rare-Event Sampling: Using a non-differentiable
signreward to sample rare neuron-spiking trajectories in FitzHugh-Nagumo (base probability $\approx 1/30$), RpCN boosts the success rate to 75% with a 1.025 KL divergence to ground truth, outperforming FK Steering (35% SR) and PT baseline CREPE (73% SR). - Noiseless Inverse Problems: On FFHQ, RpCN takes first place on 11 of 16 operator–metric pairs. Averaged across all four restoration tasks, it improves PSNR by 3.8% and SSIM by 6.5% over DAPS, while slashing LPIPS by 52.5% and FID by 47.9%.
Limitations and Future Work
While the main text does not include a dedicated limitations section, two key constraints are apparent from the formulation and theory:
- Approximation bottlenecks: Computing the exact expected future reward from a noisy state $\mathbf{x}_t$ is intractable, forcing RpCN to rely on a point estimate via Tweedie's formula. Furthermore, the theoretical KL-divergence bound assumes idealized local pCN mixing and bounded rewards, whereas practical runs use a finite number of MCMC updates ($M$) per step.
- Dual-use and scientific directions: In their Broader Impacts discussion, the authors note that black-box steering carries dual-use risks if paired with malicious rewards, though they highlight promising future utility in constrained scientific discovery, such as in-silico drug design.
Summary updated