Speed-Accuracy Relations for Diffusion Models: Wisdom from Nonequilibrium Thermodynamics and Optimal Transport

Kotaro Ikeda, Tomoya Uda, Daisuke Okanohara, Sosuke ItoPhysical 2025

TL;DR

This paper bridges diffusion models (powerful generative AI) with nonequilibrium thermodynamics, deriving "speed-accuracy relations." These relations show that the accuracy of generated data is fundamentally limited by the thermodynamic "dissipation" (entropy production) during the diffusion process, offering a new lens for optimizing generative models.

What Problem Does This Paper Address?

Diffusion models have achieved state-of-the-art results in generating realistic data, but their underlying mechanisms and theoretical limits are not fully understood, especially concerning the trade-off between generation speed and accuracy. While diffusion models are inspired by physical processes, the connection to established thermodynamic principles like entropy production and optimal transport has been underexplored. This paper aims to bridge this gap by applying concepts from stochastic thermodynamics and optimal transport to derive fundamental limits on the speed and accuracy of diffusion models.

Methods

The core of this work lies in applying techniques from stochastic thermodynamics and optimal transport theory to diffusion models. Specifically, the authors derive speed-accuracy relations, which are inequalities linking the accuracy of data generation to the entropy production rate during the forward diffusion process. This is achieved by:

  • Connecting diffusion models to Fokker-Planck equations: The forward diffusion process is modeled using Fokker-Planck equations, a standard tool in nonequilibrium thermodynamics.
  • Leveraging optimal transport: The 2-Wasserstein distance, a key concept in optimal transport, is used to quantify the difference between probability distributions and to define an "optimal protocol" for data generation.
  • Deriving thermodynamic inequalities: The authors derive inequalities analogous to thermodynamic uncertainty relations and speed limits, but adapted to the context of diffusion models. These inequalities relate the accuracy of the generated data (measured by changes in Wasserstein distance and Pearson's $\chi^2$-divergence) to thermodynamic quantities like entropy production and diffusion speed.

Datasets

The paper uses several datasets for numerical experiments and validation:

  • Synthetic Datasets:
    • 1-dimensional Gaussian mixture distributions.
  • 2-dimensional Swiss-roll dataset.
  • Real-world Image Datasets:
    • CelebA HQ dataset (downscaled version).
  • LSUN bedroom dataset.

The authors also mention using trained flow matching models on these datasets.

Key Insights and Ideas

  • Thermodynamic Limits on Generative AI: The paper establishes that the accuracy of diffusion models is not arbitrary but is fundamentally constrained by thermodynamic principles, specifically the entropy production during the forward diffusion process. This provides a theoretical upper bound on how accurately data can be generated.
  • Optimal Transport as an Optimal Protocol: The geodesic path in the space of 2-Wasserstein distance, derived from optimal transport theory, is identified as the optimal learning protocol for diffusion models. This suggests that structuring the diffusion process along this path leads to the most accurate data generation.
  • Speed-Accuracy Trade-off: The derived speed-accuracy relations quantify a trade-off: increasing the "speed" of the diffusion process (related to diffusion speed cost) can lead to decreased accuracy, and vice-versa. This offers a principled way to understand and potentially tune this trade-off.
  • Suboptimality of Common Noise Schedules: Existing noise schedules like the cosine and conditional optimal transport (cond-OT) schedules are shown to be suboptimal compared to the theoretically derived optimal transport schedule, particularly when data dimensions are large.

Key Results

  • Speed-Accuracy Relations: The paper derives inequalities that bound the estimation error (accuracy) of diffusion models by thermodynamic quantities like entropy production and diffusion speed. For instance, Eq. (79) states that the squared change in 1-Wasserstein distance (related to accuracy) is bounded by the integral of the squared diffusion speed (related to speed cost).
  • Optimal Noise Schedule: The optimal noise schedule for diffusion models is identified as one that follows the geodesic in the 2-Wasserstein distance space, corresponding to optimal transport.
  • Numerical Validation: Experiments on synthetic and real-world image datasets (CelebA HQ, LSUN bedrooms) confirm the validity of the derived speed-accuracy relations and demonstrate that the optimal transport schedule leads to more accurate data generation compared to cosine and cond-OT schedules.
  • Effect of Non-Conservative Forces: The study shows that non-conservative forces in the diffusion process increase the sensitivity of data generation, making it more susceptible to initial perturbations but also potentially allowing for more diverse data generation.

Limitations and Future Work

  • Computational Complexity of Optimal Transport: While optimal transport is theoretically optimal, its computational cost for high-dimensional data remains a challenge, motivating the use of approximate schedules like cond-OT.
  • Generalization to Other Metrics: The authors suggest extending the framework to other estimation error metrics like FID and IS, which are commonly used but may require new theoretical approaches.
  • Incomplete Estimation: The paper provides a generalization of the main result for cases where the velocity field estimation is incomplete, suggesting that noise schedules close to optimal transport might still be beneficial.
  • Path Probability Methods: Reconsidering path probability-based methods from a thermodynamic perspective is suggested as a future direction, potentially offering more scalable methods for graph-based diffusion processes.
  • Exploiting Non-Optimality: The authors propose that deliberately introducing non-conservative forces or estimation errors could be a strategy to increase data generation sensitivity and create novel data, a direction that could be further explored.

Summary updated

BibTeX
@inproceedings{ikeda2025speed,
  author = {Kotaro Ikeda and Tomoya Uda and Daisuke Okanohara and Sosuke Ito},
  title = {{Speed-Accuracy Relations for Diffusion Models: Wisdom from Nonequilibrium Thermodynamics and Optimal Transport}},
  booktitle = {Physical},
  year = {2025},
  doi = {10.1103/x5vj-8jq9},
}
Figure