Diffusion Steering via Adaptive Reward Estimation and Resampling

Abinitha Gourabathina, Sana Tonekaboni, Marzyeh Ghassemi, Akbar RafieyarXiv 2026

TL;DR

Ask a diffusion model for "a blue bird and a yellow canary," and you’ll frequently get a single, confused blue-and-yellow mutant bird. TrailMix fixes this without any model retraining by running parallel generation paths, taking cheap "lookahead" peeks into the future of each path, and dynamically reallocating compute to the most promising ones. It’s a smarter way to spend inference-time compute that nails complex, multi-object prompts and precise image edits while keeping the model's natural output quality intact.

What Problem Does This Paper Address?

Text-to-image diffusion models are astonishing artists, yet surprisingly bad listeners. While they easily grasp broad vibes, they frequently drop the ball on strict semantic requirements—like exact object counts ("four stop signs"), spatial relationships ("a dining table above a suitcase"), or rare combinations of objects.

To fix this without expensive fine-tuning (which can degrade general image quality), researchers use inference-time steering. One brute-force approach is Best-of-$N$: generate $N$ full images and have an external "reward model" (an AI judge) pick the best one. Unfortunately, this wastes massive compute finishing terrible images.

Smarter "particle-based" methods (like Feynman-Kac, or FK, steering) run parallel denoising trajectories—or particles—and periodically prune bad ones mid-generation while duplicating good ones. The catch? Judging an image halfway through denoising relies on blurry, one-step guesses of the final outcome. Early in generation, these noisy previews lack the fine semantic detail needed to tell if a complex prompt is actually being satisfied.

Methods

TrailMix builds on the parallel-trajectory framework of FK steering, introducing two clever upgrades to guide Stable Diffusion (v1.4 and XL) at inference time:

Figure 1. Method overview. For the prompt “a blue bird and a yellow canary,” we compare three strategies. Best-of-N selects the highest- scoring final sample, while Feynman-Kac (FK) resamples particles during denoising using one-step reward predictions. TRAILMIX uses inexpensive lookahead previews to identify promising trajectories and adaptive steering strength to produce the most aligned images.
  1. Inexpensive Lookahead Previews: Instead of judging blurry, one-step intermediate predictions at each checkpoint, TrailMix branches off and runs a fast, coarse $L$-step denoising continuation (e.g., $L=8$ DDIM steps) for each parallel "trail." An external judge (like ImageReward or Qwen2.5-VL) scores these clear previews, and the model returns to the checkpoint armed with reliable estimates of where each trajectory is actually headed.
  2. Adaptive Steering Strength: Standard steering uses a fixed hyperparameter to decide how aggressively to favor high-scoring trails. TrailMix adapts on the fly. At each checkpoint, it calculates the minimum steering strength ($\beta$) required to push the population's expected reward up to a target threshold $\tau$. Mathematically, this finds the target distribution closest (in KL divergence) to the base model's natural behavior. Easy prompts get a gentle nudge, preserving diversity; stubborn prompts get a firm shove.

Datasets

Because TrailMix is training-free, datasets are used strictly for evaluation:

  • Text-to-Image Generation: Evaluated on GenEval (object counts, colors, positions), T2I-CompBench++ (attribute binding, spatial relationships, numeracy), and RareBench (unusual single- and multi-object combinations).
  • Image Editing: Evaluated on PIE-Bench (700 real images with edit masks) and a newly introduced benchmark, SEAM-Bench (Semantic Editing and Attribute Maintenance). Existing editing benchmarks rely on broad visual similarity metrics to check if the unedited parts of an image stayed the same. SEAM-Bench improves on this with 316 controlled prompt pairs and targeted VLM questions to explicitly verify whether changing one attribute (e.g., material or action) accidentally alters other specific, unrelated attributes. It also includes a 192-edit cohort testing counter-stereotypical edits (e.g., changing a male bricklayer to a woman, or a young surfer to an elderly one).

Key Insights and Ideas

  • Blurry guesses aren't enough for complex scenes: Ablations show that 4- to 8-step lookaheads dramatically outperform 1-step predictions—especially early in the denoising process, where structural layout and multiple objects are decided, and before fine details emerge in naive previews.
  • Don't steer harder than you have to: Different benchmarks prefer different fixed steering strengths, normally requiring tedious tuning. Adaptive steering automatically matches the best fixed setting across benchmarks by backing off when the base model is already succeeding, retaining more diverse trajectories.
  • Steering beats biases: Diffusion models cling to training-set stereotypes. By actively resampling rare but valid trajectories, TrailMix overcomes stereotypical priors, making edits against stereotypes nearly as reliable as edits toward them.

Key Results

Across both SDv1.4 and SDXL, 4-particle TrailMix outperforms 4-particle baselines (FK steering, LiDAR, Best-of-4, and tree-search methods) across compositional benchmarks.

Wait—let's look at the concrete numbers:

  • Punching above its compute weight: On RareBench multi-object prompts with SDXL, 4-particle TrailMix scores 69.0, handily beating 8-particle Best-of-8 (62.7) while using 42% fewer U-Net evaluations (928 vs. 1600).
  • Superior scaling: On GenEval, TrailMix with 16 particles roughly matches the performance of Best-of-$N$ and FK steering at 64 particles.
Figure 3. Scaling with particle count. GENEVAL performance as the number of particles increases. TRAILMIX leads FK steering and Best-of-N at every tested count from 4 to 64.
  • Clean, unbiased edits: On SEAM-Bench (SDXL), TrailMix hits a 97.8% edit success rate with 0.0% subject loss. On counter-stereotypical SDXL edits, it boosts success to 90.0% (vs. 83.3% for the best baseline) and slashes directional asymmetry down to just 1.4 percentage points.

Limitations and Future Work

While TrailMix is compute-efficient at 4 particles and above, it underperforms Best-of-$N$ and FK steering at a tiny budget of $n=2$ particles (likely because two samples give a poor estimate of the reward distribution). Additionally, when resampling duplicates a winning particle, the copies share an intermediate state, which can reduce final diversity. In image editing on PIE-Bench with the older SDv1.4 backbone, several guidance baselines achieved higher raw edit rates than TrailMix, though often at the cost of distorting image structure. Finally, while TrailMix cuts U-Net denoising steps compared to Best-of-8, its intermediate lookaheads require more calls to the reward judge (12 vs. 8)—meaning if you use a massive VLM as your judge, judging itself can become the latency bottleneck.

Summary updated

Abstract

Text-to-image diffusion models can generate images that satisfy complex prompts, yet often produce images that omit requested objects, attributes, or relationships. We ask if models can more reliably generate text-aligned images by redistributing probability toward their more successful outcomes. We propose TrailMix, a training-free method that uses the base model's distribution of possible outcomes to adaptively guide generation toward better text alignment. During denoising, TrailMix generates inexpensive lookahead images from parallel trajectories (trails) and scores their alignment with the prompt using an external judge. The resulting distribution of reward scores allows us to estimate how strongly to steer generation toward a desired alignment level. We use these estimates to reweight and resample trajectories, favoring more promising outcomes. Across three text-to-image benchmarks, TrailMix outperforms existing baselines, with particularly strong gains on rare multi-object compositions. We further extend TrailMix to targeted image editing and introduce SEAM-Bench (Semantic Editing and Attribute Maintenance), a systematic benchmark evaluating whether semantic edits preserve other image content. Experiments on SEAM-Bench and existing benchmark PIE-Bench demonstrate the effectiveness of our approach for controlled image editing. Our results show how a model's own possible outcomes can inform reliable and controllable generation.
BibTeX
@misc{gourabathina2026diffusion,
  author = {Abinitha Gourabathina and Sana Tonekaboni and Marzyeh Ghassemi and Akbar Rafiey},
  title = {{Diffusion Steering via Adaptive Reward Estimation and Resampling}},
  year = {2026},
  eprint = {2611.34839},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34839},
}
Figure