Abstract
Diffusion models (DMs) have revolutionized generative modeling, yet their performance often hinges on heuristically chosen noise schedules. This paper introduces a theoretical framework for analyzing the DM inference process through a spectral lens. By assuming a Gaussian data distribution, we derive a closed-form spectral transfer function that characterizes how signals evolve from initial noise. This perspective allows for the principled design of data-dependent noise schedules that minimize discretization errors. Our results provide a theoretical justification for popular heuristics and demonstrate superior performance, especially in low-step sampling regimes.
Introduction
The success of Diffusion Models (DMs) in generating high-fidelity images and audio is undeniable. However, a critical component of their architecture—the noise schedule—remains largely empirical. Practitioners typically choose between linear, cosine, or sigmoid schedules based on trial and error. Furthermore, while the continuous-time formulation of diffusion is well-understood, the practical discrete-time inference introduces errors that are often overlooked. This work addresses these gaps by providing a spectral analysis of the discrete inference process, transforming the "black magic" of schedule design into a rigorous optimization problem.
Methodology: The Spectral Perspective
The core of our approach is treating the reverse diffusion process as a linear transfer function. To make this analysis tractable, we assume the target data follows a Gaussian distribution $\mathcal{N}(\mu_0, \Sigma_0)$. By projecting the diffusion steps onto the eigenbasis of the covariance matrix $\Sigma_0$—a process we call "spectral migration"—we decouple the high-dimensional diffusion process into a set of independent scalar equations.
As shown in Figure 5, the optimal noise schedule is inherently tied to the spectral content of the data. Large eigenvalues (corresponding to low-frequency, high-amplitude components) and small eigenvalues (high-frequency details) follow different optimal paths. We derive closed-form expressions for both deterministic (DDIM) and stochastic (DDPM) frameworks, allowing us to formulate an optimization problem that minimizes the distance (e.g., Wasserstein-2) between the generated and true distributions.
Results and Schedule Optimization
Using Sequential Least Squares Programming (SLSQP), we solve for the optimal schedule $\bar{\alpha}$ for various datasets, including CIFAR-10, AFHQv2, and MUSIC.
Our findings, summarized in Figure 3, reveal several key insights:
- Convergence and Monotonicity: The optimized schedules naturally exhibit a monotonically decreasing structure, validating the "gradual denoising" intuition. Moreover, the schedule shape remains consistent as the number of sampling steps increases.
- Superior Performance: The proposed spectral schedules consistently outperform standard heuristics like linear or cosine schedules. This advantage is most pronounced in "fast" sampling scenarios (10–50 steps), where discretization errors typically degrade performance.
- Theoretical Justification: The derived schedules often resemble existing heuristics like the Sigmoid or Cosine curves, providing the first formal theoretical explanation for their empirical success.
Discussion: Coarse-to-Fine Dynamics
The spectral perspective illuminates the underlying dynamics of diffusion. It explains the "coarse-to-fine" behavior: low-frequency components (large eigenvalues) are reconstructed early in the reverse process, while high-frequency details are refined toward the end. By tailoring the schedule to the specific eigenvalues of a dataset, we ensure that each component is denoised at the optimal rate.
Conclusion
This work provides a principled theoretical backbone for noise schedule design in diffusion models. By moving from heuristics to spectral optimization, we can achieve better generation quality with fewer sampling steps. While the current framework relies on a Gaussianity assumption, its success on complex image and audio datasets suggests broad applicability. Future work will explore extending this analysis to non-Gaussian distributions and accounting for the approximation errors of real-world neural network denoisers.
Summary updated