Connective Viewpoints of Signal-to-Noise Diffusion Models

Khanh Doan, Long Tung Vuong, Tuan Nguyen, Anh Tuan Bui, Quyen Tran, Thanh-Toan Do, Dinh Phung, Trung LearXiv 2024

Abstract

Diffusion models (DM) have become fundamental components of generative models, excelling across various domains such as image creation, audio generation, and complex data interpolation. Signal-to-Noise diffusion models constitute a diverse family covering most state-of-the-art diffusion models. While there have been several attempts to study Signal-to-Noise (S2N) diffusion models from various perspectives, there remains a need for a comprehensive study connecting different viewpoints and exploring new perspectives. In this study, we offer a comprehensive perspective on noise schedulers, examining their role through the lens of the signal-to-noise ratio (SNR) and its connections to information theory. Building upon this framework, we have developed a generalized backward equation to enhance the performance of the inference process.

Introduction

Diffusion models have revolutionized generative AI, yet the mathematical frameworks describing them—ranging from Stochastic Differential Equations (SDEs) to variational inference and information theory—often remain fragmented. Signal-to-Noise (S2N) models, which include popular variants like DDPM, EDM, and Stable Diffusion, represent a powerful class that lacks a cohesive, unified treatment. This study bridges these gaps, providing a "grand unified theory" for S2N models and introducing a generalized backward equation that improves sampling performance without requiring additional training.

Methodology: A Unified Framework

We derive several "connective viewpoints" to harmonize the field:

  1. SDE Unification: We derive a forward SDE for S2N models, proving its mathematical consistency with existing continuous variational models. This demonstrates that SDE and variational approaches are two sides of the same mathematical coin.
  2. The Generalized Backward Equation: We introduce a new inference formula for the transition from noise back to data. This formula incorporates two tunable hyperparameters, $\gamma$ and $\delta$. Standard models like DDIM are shown to be specific cases of this equation (e.g., where $\gamma=1$ and $\delta=1$).
  3. Information-Theoretic Mapping: By projecting S2N models into a specialized "signal-to-noise space," we link the diffusion process to fundamental concepts like Minimum Mean Square Error (MMSE) and mutual information, providing theoretical justification for the learning process.

Experimental Results

Our generalized sampling approach was evaluated on standard benchmarks including CIFAR-10, FFHQ, AFHQv2, and ImageNet using pre-trained checkpoints from EDM and Song et al. (2020b).

Performance "Free Lunch"

A key finding is that image quality, measured by Fréchet Inception Distance (FID), can be improved simply by tuning $\gamma$ and $\delta$ during inference. For instance, on the AFHQv2 (VE) dataset, our tuned solver reduced the FID from 2.58 to 2.27 compared to the traditional Euler solver.

The Sharpness Trade-off

The parameter $\gamma$ serves as a dial for image clarity. Small positive values (typically around 0.026) often produce sharper, higher-quality images than the standard baseline ($\gamma=0$). However, excessively high values can lead to pixel distortion.

FID performance across various CIFAR-10 configurations as a function of the hyperparameter γ. The U-shaped curves demonstrate that optimal performance is achieved at small positive γ values rather than the standard baseline.

As shown in the figure above, our tuned solver consistently outperforms the traditional Euler solver across different noise schedules (Variance Preserving vs. Variance Exploding) and both conditional and unconditional settings. On CIFAR-10 (VP), a grid search for the optimal $(\gamma, \delta)$ pair yielded significantly better FID scores than the traditional inference baseline.

Conclusion

This work provides a powerful unified framework for S2N diffusion models, offering both theoretical clarity and practical performance gains. By leveraging the generalized backward equation, researchers can optimize pre-trained models for better image quality without the cost of retraining. Future work will explore automating hyperparameter selection and extending these insights to audio and other data modalities.

Summary updated

BibTeX
@misc{doan2024connective,
  author = {Khanh Doan and Long Tung Vuong and Tuan Nguyen and Anh Tuan Bui and Quyen Tran and Thanh-Toan Do and Dinh Phung and Trung Le},
  title = {{Connective Viewpoints of Signal-to-Noise Diffusion Models}},
  year = {2024},
  eprint = {2408.04221},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.04221},
}
Figure