Lipschitz Singularities in Diffusion Models
Zhantao Yang, Ruili Feng, Han Zhang, Yujun Shen, Kai Zhu, Lianghua Huang, Yifei Zhang, Yu Liu, Deli Zhao, Jingren Zhou, Fan Cheng
TL;DR
This work identifies and theoretically proves that diffusion models can exhibit infinite Lipschitz constants with respect to the time variable near the zero point $t=0$, threatening stability during training and sampling. To address this, the authors propose E-TSDM, which shares timestep conditions within a near-zero interval by partitioning $[0, ilde{t})$ into $n$ sub-intervals and using a fixed left-end timestep per sub-interval, thereby reducing Lipschitz constants without altering the forward process or network architecture. Empirically, E-TSDM delivers consistent improvements over DDPM baselines across unconditional and conditional generation, as well as faster sampling scenarios, and shows favorable generalization to continuous-time diffusion and various noise schedules. These results offer both a deeper understanding of the diffusion process and a practical method to enhance stability and performance in diffusion-based generation systems.
Abstract
Diffusion models, which employ stochastic differential equations to sample images through integrals, have emerged as a dominant class of generative models. However, the rationality of the diffusion process itself receives limited attention, leaving the question of whether the problem is well-posed and well-conditioned. In this paper, we explore a perplexing tendency of diffusion models: they often display the infinite Lipschitz property of the network with respect to time variable near the zero point. We provide theoretical proofs to illustrate the presence of infinite Lipschitz constants and empirical results to confirm it. The Lipschitz singularities pose a threat to the stability and accuracy during both the training and inference processes of diffusion models. Therefore, the mitigation of Lipschitz singularities holds great potential for enhancing the performance of diffusion models. To address this challenge, we propose a novel approach, dubbed E-TSDM, which alleviates the Lipschitz singularities of the diffusion model near the zero point of timesteps. Remarkably, our technique yields a substantial improvement in performance. Moreover, as a byproduct of our method, we achieve a dramatic reduction in the Fréchet Inception Distance of acceleration methods relying on network Lipschitz, including DDIM and DPM-Solver, by over 33%. Extensive experiments on diverse datasets validate our theory and method. Our work may advance the understanding of the general diffusion process, and also provide insights for the design of diffusion models.
