TL;DR
Why do diffusion models need a seemingly arbitrary "guidance scale" (like $w=7.5$ in Stable Diffusion) to generate crisp images instead of blurry mush? This paper discovers that guidance doesn't actually make a model's step-by-step predictions more accurate—instead, it restores the natural variance lost when a model only predicts an average. Using this insight, the authors derive a simple formula that predicts the exact, hand-tuned guidance scales of eleven popular AI models across images, video, and audio—without generating a single test sample.
What Problem Does This Paper Address?
If you ask a diffusion model to clean up a noisy image, it faces a fundamental dilemma: many different crisp images could have degraded into that exact same static. Trained to minimize squared error, the model hedges its bets and predicts the average of all plausible clean images (the posterior mean). Averaging washes out variance, leaving generations dull.
To fix this, practitioners use guidance—combining a strong prediction (say, conditioned on a text prompt) with a weaker one (unconditioned), and extrapolating away from the weak one by a scale $w$.
For years, the community assumed guidance works either by amplifying the prompt's signal or by canceling out shared errors between the two predictions. Neither holds up: guidance works even without prompts (autoguidance), and the large $w$ scales used in practice actually make single-step denoising errors up to $4\times$ worse. Because nobody knew why guidance worked, finding $w$ meant running expensive grid searches or eyeballing thousands of outputs—with different quality metrics wildly disagreeing on the "best" number.
Methods
The authors reframe what an ideal diffusion sampler should do when taking finite steps: instead of stepping toward the blurry mean of plausible clean data, it should step toward a sample that also captures their spread (posterior covariance).
How do you get covariance from models trained only to predict the mean? Through their mistakes! Because neural networks see finite data in random orders, a trained model misses the true posterior mean by a tiny random error. Crucially, the authors show these errors naturally scatter in the exact shape of the posterior covariance, just scaled down. A weaker model scatters more widely in that exact same shape. Subtracting the two predictions and scaling the difference by $w$ stretches this tiny error scatter right back up to the full posterior covariance.
To find $w$ in practice without knowing the true posterior, the authors introduce Variance-Matched Guidance (VMG). By the law of total covariance, if guided predictions capture the missing posterior variance, their total variance across noisy inputs must match the variance of clean real data. Setting the two variances equal yields a simple quadratic equation for $w$. You just feed a couple hundred forward-noised real examples through both models, measure the output variances, and solve for $w$ in closed form—either as a single global constant or a dynamic, per-noise-level schedule. No sampling loops or metric sweeps required.
Datasets
The authors evaluate eleven pretrained models across five modalities (image, video, audio, motion, and world models), alongside controlled experiments:
- Synthetic & ImageNet-64: A 2D mixture of ten Gaussians and ImageNet-64 (for training EDM2 models and testing theoretical predictions).
- COCO: Used for held-out captions and calibration photos in text-to-image evaluations and human preference studies on Stable Diffusion (SD).
- Modality-specific calibration/eval data: Disjoint forward-noised calibration sets and standard evaluation protocols for video (SVD, Wan2.1, CogVideoX-2B), world models (Cosmos-Predict2.5), audio (AudioLDM 2, Stable Audio Open), and human motion (MDM), though the exact dataset names for these non-image modalities are deferred to the appendix. No new benchmarks are introduced.
Key Insights and Ideas
- Guidance trades denoising accuracy for variance: Scales that minimize actual denoising error sit at $w \le 1$ (interpolation), whereas good visual generation requires $w \gg 1$ (extrapolation). Guidance intentionally sacrifices point-wise accuracy to inject properly shaped variance.
- Guidance works in both directions: Because VMG's variance-matching equation is quadratic in $w$, it often has both a positive and a negative root. Extrapolating a weak model away from a strong one ($w < 0$) restores the exact same covariance! Testing two distinct models (SD 1.5 and CommonCanvas), extrapolating in either direction improved image quality, whereas blending them ($0 < w < 1$) made things worse. Bidirectional guidance improving FID and FD_DINOv2
- Early checkpoints need a harder push: Guiding a model using its own earlier checkpoint (standard in autoguidance) requires a larger $w$ than guiding it with an independently trained weak model, because shared training history cancels out part of the error difference. Checkpoint vs. independent weak model scale ratios
- Why guidance kills diversity: A fixed pair of networks has smooth, correlated errors across nearby noisy inputs. Amplifying that shared error pushes neighboring trajectories into the exact same mode rather than letting them draw independent samples.
Key Results
- Uncanny prediction of hand-tuned scales: With zero tuning or generation, VMG recovers the published, human-picked scales across 11 models with a Spearman correlation of $\rho = 0.96$ (e.g., predicting $w=7.44$ vs. the famous $7.5$ for SD 1.5, and $4.14$ vs. $4.5$ for SD 3.5 Medium). Calibration takes just 256 photos ($\pm 0.06$ std. dev.). Predicted vs. published guidance scales across 11 models
- Humans prefer VMG over metric-tuned scales: On SD 3.5 Medium, optimizing for FID picks $w=1.6$, while CLIP picks $11.5$. In a blind study (1,458 votes from 41 raters), VMG's constant ($w=4.14$, Elo 1048) handily beat both FID-optimal ($874$) and $\text{FD}_{\text{DINOv2}}$-optimal ($w=2.4$, Elo $985$) scales. Visual samples comparing metric-optimal scales to VMG
- Zero-hyperparameter schedules win: Applying VMG per noise level achieved the highest human rating overall (Elo 1088), beating hand-crafted schedules like TV-CFG ($1054$), Interval ($992$), and Linear ($959$), while improving video FVD on SVD (141.2 $\to$ 113.7) and Wan2.1 (261.0 $\to$ 220.0).
Limitations and Future Work
- Conditioning is ignored: VMG models Classifier-Free Guidance purely through the lens of prediction error variance (strong vs. weak), ignoring the semantic prompt information separating the two branches. This unmodeled prompt push likely explains why negative scales don't work for standard CFG.
- Pair compatibility: Bidirectional guidance doesn't work for every pair of models; figuring out what separates compatible pairs from incompatible ones remains an open question for future work.
Summary updated