Diffusion models have revolutionized generative AI, but they have a well-known Achilles' heel: sampling speed. To get high-quality images, you often need hundreds of denoising steps. While many researchers focus on improving the "mean" of the denoising distribution, this paper argues that we’ve been neglecting the "variance."
By introducing a novel, unbiased objective called Optimal Covariance Matching (OCM), the authors show we can significantly boost sampling efficiency and model likelihood without the massive computational overhead of previous methods.
TL;DR
The authors introduce OCM, a new training objective that allows a neural network to accurately predict the optimal diagonal covariance of a diffusion model's denoising step. This method significantly reduces sampling error, allowing models to achieve high-quality results in as few as 10 steps while simultaneously improving the model's log-likelihood.
What Problem Does This Paper Address?
In a standard diffusion model, the "reverse process" tries to remove noise step-by-step. At each step $t$, the model predicts a Gaussian distribution. Most models focus heavily on predicting the mean ($\mu$) of this Gaussian, while using a simple heuristic or a fixed value for the covariance ($\Sigma$).
Poor covariance estimation leads to two major issues:
- Inefficiency: You need many more steps to "correct" the errors introduced by inaccurate variance.
- Poor Likelihood: If the variance is wrong, the model's assigned probability to the data (log-likelihood) suffers, which is critical for applications like data compression or importance sampling.
Previous attempts to learn the covariance either used biased estimators or required calculating the full Hessian matrix, which is computationally ruinous for high-dimensional data like images.
Methods: Optimal Covariance Matching
The core contribution is a mathematical bridge and a new training objective:
- Generalized Analytical Covariance Identity: The authors prove that the optimal covariance for a denoising step is directly related to the Hessian (the second-order derivative) of the log-density of the noisy data. Essentially, the "score function" contains all the information needed to find the perfect variance.
- Optimal Covariance Matching (OCM): Instead of calculating the expensive Hessian directly during sampling, they train a small auxiliary network to predict its diagonal.
- Unbiased Objective: Unlike previous "data-driven" approaches that can be noisy or biased, the OCM objective is a regression task that is theoretically unbiased. It uses a clever trick with Rademacher samples to estimate the Hessian diagonal efficiently during training.
Crucially, this auxiliary network shares most of its parameters with the main score-prediction network, adding less than 1% to the parameter count and negligible time to the inference process.
Key Insights and Ideas
- The Score is a Goldmine: We don't need to look at the raw data to find the best variance; we just need to look at the geometry of the score function we've already learned.
- Unbiasedness is Key: Previous methods suffered from "error amplification" because their objectives were quadratic in a way that exploded as the noise level approached zero. OCM avoids this by using a direct regression approach.
- Better Diversity (Recall): Better covariance estimation doesn't just make images look "sharper"—it significantly improves the Recall rate. This means the model is better at covering the entire data distribution rather than collapsing onto a few "safe" modes.
- Plug-and-Play: The method works for both Markovian (DDPM) and non-Markovian (DDIM) samplers, making it widely applicable to existing pipelines.
Key Results
The authors validated OCM across a wide range of standard benchmarks, including CIFAR-10, CelebA, LSUN Bedroom, and ImageNet.
- Sampling Speed: On ImageNet 256x256, OCM-DPM achieved an FID of 5.33 using only 10 steps. For comparison, standard DDPM requires 21 steps to reach a similar quality.
- Likelihood (NLL): OCM consistently achieved the best or second-best Negative Log-Likelihood across all datasets.
- Minimal Overhead: The additional network is tiny. For the DiT-XL/2 model, OCM adds only 2.67 million parameters to a 675 million parameter model (a ~0.4% increase).
Limitations and Future Work
- Diagonal Constraint: This paper focuses on diagonal covariance. While much better than a single scalar variance, it still misses the off-diagonal correlations between pixels.
- Training Requirement: While inference is fast, you still need to perform a separate training phase to "distill" the Hessian information into the covariance network.
- Future Directions: The authors suggest exploring low-rank or block-diagonal covariance structures to capture more complex pixel dependencies without the full $O(D^2)$ cost.
Summary updated