On Inference Stability for Diffusion Models
Viet Nguyen, Giang Vu, Tung Nguyen Thanh, Khoat Than, Toan Tran
TL;DR
The paper tackles inference stability in diffusion probabilistic models by identifying that sequential timestep correlations induce an accumulation of error during sampling. It introduces a Sequence-Aware (SA) loss, which constrains a local sum of prediction errors over K consecutive steps and is combined with the standard loss as $\mathcal{L}=\mathcal{L}_{simple}+\lambda\mathcal{L}_{sa}$; the authors prove that this SA loss provides a tighter upper bound on the total estimation gap than conventional losses. Empirically, SA-DPM yields significant improvements in FID and Inception Score on CIFAR10, CelebA, and CelebA-HQ, especially when sampling with few timesteps, and can further boost results when paired with covariance-estimation methods (Analytic-DPM, NPR-DPM, SN-DPM). The approach enhances sampling quality and stability, offering a practical path to more efficient and reliable diffusion-based generation, with code available for reproduction. Overall, the work presents a principled, theoretically grounded and empirically validated method to reduce inference gaps in diffusion models, enabling better generalization and faster sampling.
Abstract
Denoising Probabilistic Models (DPMs) represent an emerging domain of generative models that excel in generating diverse and high-quality images. However, most current training methods for DPMs often neglect the correlation between timesteps, limiting the model's performance in generating images effectively. Notably, we theoretically point out that this issue can be caused by the cumulative estimation gap between the predicted and the actual trajectory. To minimize that gap, we propose a novel \textit{sequence-aware} loss that aims to reduce the estimation gap to enhance the sampling quality. Furthermore, we theoretically show that our proposed loss function is a tighter upper bound of the estimation loss in comparison with the conventional loss in DPMs. Experimental results on several benchmark datasets including CIFAR10, CelebA, and CelebA-HQ consistently show a remarkable improvement of our proposed method regarding the image generalization quality measured by FID and Inception Score compared to several DPM baselines. Our code and pre-trained checkpoints are available at \url{https://github.com/VinAIResearch/SA-DPM}.
