Variance-Reduction Guidance: Sampling Trajectory Optimization for Diffusion Models
Shifeng Xu, Yanzhu Liu, Adams Wai-Kin Kong
TL;DR
Diffusion-model sampling suffers from cumulative prediction error that degrades sample quality. The paper introduces Variance-Reduction Guidance (VRG), a training-free, model-agnostic method that optimizes the sampling trajectory to minimize the weighted sum of per-step prediction-error variances, leveraging a learned mapping fΔ from noise levels to error variance. VRG formalizes the objective as a constrained optimization over the trajectory, solved via projected gradient descent with a regularizer to stay close to the original trajectory; it is applicable to continuous/discrete-time and conditional/unconditional generation. Empirical results across seven baselines and five datasets show robust improvements in FID and related quality metrics, while ablations provide practical guidance on hyperparameters. The approach offers a scalable, plug-and-play enhancement for diffusion-model sampling with real-world impact on speed-accuracy trade-offs in generative systems.
Abstract
Diffusion models have become emerging generative models. Their sampling process involves multiple steps, and in each step the models predict the noise from a noisy sample. When the models make prediction, the output deviates from the ground truth, and we call such a deviation as \textit{prediction error}. The prediction error accumulates over the sampling process and deteriorates generation quality. This paper introduces a novel technique for statistically measuring the prediction error and proposes the Variance-Reduction Guidance (VRG) method to mitigate this error. VRG does not require model fine-tuning or modification. Given a predefined sampling trajectory, it searches for a new trajectory which has the same number of sampling steps but produces higher quality results. VRG is applicable to both conditional and unconditional generation. Experiments on various datasets and baselines demonstrate that VRG can significantly improve the generation quality of diffusion models. Source code is available at https://github.com/shifengxu/VRG.
