Speed-accuracy relations for diffusion models: Wisdom from nonequilibrium thermodynamics and optimal transport
Organizations: Department of Mathematical Engineering and Information Physics, School of Engineering, The University of Tokyo, 7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033, Japan · Department of Earth and Planetary Physics, School of Science, The University of Tokyo, 7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033, Japan · Preferred Networks Inc., 1-6-1, Otemachi, Chiyoda-ku, Tokyo 100-0004, Japan · Universal Biology Institute, Graduate School of Science, The University of Tokyo, 7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033, Japan
Abstract
We discuss a connection between a generative model, called the diffusion model, and nonequilibrium thermodynamics for the Fokker-Planck equation, called stochastic thermodynamics. Using techniques from stochastic thermodynamics, we derive the speed-accuracy relations for diffusion models, which are inequalities that relate the accuracy of data generation to the entropy production rate. This relation can be interpreted as the speed of the diffusion dynamics in the absence of the non-conservative force. From a stochastic thermodynamic perspective, our results provide quantitative insight into how best to generate data in diffusion models. The optimal learning protocol is introduced by the geodesic of space of the 2-Wasserstein distance in optimal transport theory. We numerically illustrate the validity of the speed-accuracy relations for diffusion models with different noise schedules and different data. We numerically discuss our results for optimal and suboptimal learning protocols. We also demonstrate the applicability of our results to data generation from the real-world image datasets.
Figures & tables
| Initial conditions | Noise schedules | Values of |
|---|---|---|
| Gaussian distribution with a different mean | Cosine Cond-OT OT | |
| Gaussian distribution with a different variance | Cosine Cond-OT OT | |
| Gaussian mixture distribution | Cosine Cond-OT OT | |
| Uniform distribution | Cosine Cond-OT OT |
| Initial conditions | Noise schedules | Values of |
|---|---|---|
| Gaussian distribution with a different variance | OT |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Initial conditions | Probability density functions |
|---|---|
| Gaussian distribution with a different mean | |
| Gaussian distribution with a different variance | |
| Gaussian mixture distribution | |
| Uniform distribution |
Diffusion Models
Diffusion models learn to reverse gradual data corruption, enabling flexible generation, editing, forecasting, and inference.
See all 1,192 papers