Information-Theoretic Scaling Laws for Generative Diffusion Training
Organizations: UC Berkeley · Radboud University · HKU, UC Berkeley
Abstract
Diffusion models trained on increasingly large datasets sampled from the same data distribution will converge to the same learned distribution. However, in practice, a model trained on finite data depends on the particular training dataset; this dependence is reflected in properties of the model's outputs, such as memorization and sample quality. To understand this dependence through an information-theoretic lens, we study model information, a computationally tractable measure of how much samples from the trained model depend on the particular training dataset. We explore its scaling behavior as model size and training dataset size vary. Specifically, we uncover two qualitatively distinct scaling regimes: (1) a nonlinear model information regime marking the transition from pure memorization to imperfect generalization, and (2) a generalization regime characterized by linear scaling of the model information and progressively improved generalization and sample quality. We then posit an information-theoretically principled scaling law to quantify these two regimes, and show that this law yields induced scaling laws for memorization and sample quality. We finally demonstrate that these induced scaling laws extrapolate well outside the fit's domain. Our results demonstrate information-theoretic principles for memorization and sample quality scaling laws in diffusion models. Our code is publicly available on GitHub.
Figures & tables
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| dataset | resolution | values | depths | / | |||||
|---|---|---|---|---|---|---|---|---|---|
| ImageNet | 12288 | 0.55 | 12 | 100,000 | 1,271,167 | 2,3,4,5 | 4 | / 2 | |
| CIFAR-10 | 3072 | 0.52 | 14 | 50,000 | 50,000 | 1,2,3,4,5 | 4 | / 2 | |
| Fashion-MNIST | 3072 | 0.80 | 7 | 60,000 | 60,000 | 1,2,4 | 10 | / 5 | |
| FFHQ | 12288 | 0.55 | 7 | 60,000 | 60,000 | 1,2,4 | 4 | / 2 |
| dataset | pairs | log RMSE | error | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ImageNet UNet | 48 | 7.51 | 0.483 | 603 | 0.345 | 0.622 | 13.75 | 220.1 | 40.4 | 0.80 | 0.112 | 0.088 | |
| CIFAR-10 UNet | 65 | 0.911 | 0.518 | 1330 | 0.409 | 0.503 | 16.59 | 110.0 | 3.00 | 0.101 | 0.066 | ||
| Fashion-MNIST UNet | 18 | 0.0942 | 0.378 | 1093 | 0.314 | 0.642 | 148.41 | 101.4 | 0.223 | 0.074 | 0.746 | ||
| FFHQ UNet | 18 | 4.41 | 0.598 | 485 | 0.488 | 0.571 | 36.18 | 182.5 | 484 | 0.24 | 0.109 | 0.297 |
| variant | ImageNet | CIFAR-10 | Fashion-MNIST | FFHQ |
|---|---|---|---|---|
| ( 14 ) | 0.112 | 0.101 | 0.074 | 0.109 |
| single group size, | 0.249 | 0.159 | — | — |
| fixed | 0.242 | 0.246 | 0.161 | 0.224 |
| correction switched | 0.112 | 0.103 | 0.074 | 0.108 |
| dataset | predicted | fitted | ratio | ||
|---|---|---|---|---|---|
| ImageNet | 12288 | – | 1.21–1.70 | 0.14 | |
| CIFAR-10 | 3072 | – | 1.44–2.30 | 0.11 | |
| Fashion-MNIST | 3072 | – | 1.12–1.41 | 0.06 | |
| FFHQ | 12288 | – | 1.34–2.01 | 0.11 |
| dataset | architecture | ||||||||
| ImageNet UNet | 350 | 5.47 | 93683 | 361.7 | 330.1 | 0.4% | 0.027 | ||
| ImageNet UNet | 511 | 5.33 | 80611 | 279.2 | 266.1 | 0.3% | 0.022 | ||
| ImageNet UNet | 673 | 5.26 | 72264 | 251.4 | 225.7 | 0.3% | 0.018 | ||
| ImageNet UNet | 836 | 5.23 | 66303 | 239.1 | 218.2 | 0.3% | 0.018 | ||
| CIFAR-10 UNet | 410 | 12.82 | 31282 | 165.8 | 148.2 | 0.5% | 0.048 | ||
| CIFAR-10 UNet | 850 | 13.28 | 25731 | 110.2 | 109.8 | 0.4% | 0.036 |
| dataset | form | params | log RMSE | BIC | largest | large | |
|---|---|---|---|---|---|---|---|
| ImageNet | MP | 9 | 0.112 | 0.088 | 0.183 / 0.143 | 0.950 / 0.072 | |
| ImageNet | sigmoid–log | 9 | 0.141 | 0.544 | 0.221 / 0.173 | 1.529 / 0.085 | |
| ImageNet | sigmoid–power | 10 | 0.142 | 2.407 | 0.223 / 0.170 | 1.500 / 0.089 | |
| CIFAR-10 | MP | 9 | 0.101 | 0.066 | 0.189 / 0.123 | 0.105 / 0.068 | |
| CIFAR-10 | sigmoid–log | 9 | 0.102 | 0.047 | 0.200 / 0.142 | 0.205 / 0.069 | |
| CIFAR-10 | sigmoid–power | 10 | 0.104 | 0.074 | 0.204 / 0.146 | 0.189 / 0.071 |
| dataset | memorization ratio | FID maximum | info–mem. correlation |
|---|---|---|---|
| ImageNet | 0.22–0.28 | 1.1–1.5 | 0.927 |
| CIFAR-10 | 0.36–0.42 | 0.84–2.2 | 0.965 |
| Fashion-MNIST | 0.29–0.36 | 1.7 ( ) | 0.952 |
| FFHQ | 0.14–0.24 | 0.64–1.6 | 0.844 |
| statistic | value |
| Pearson correlation, model information and memorization ratio (48 pairs) | 0.93 |
| mean absolute error of the logistic fit to the memorization ratio | 0.020 |
| Spearman correlation, model information and FID, regime (24 pairs), each model size | |
| of ( 159 ) | 0.95 |
| , in ( 159 ) | 0.12, |
| of ( 159 ) with measured in place of | 0.91 |
| model information (nats) | memorization ratio | FID | |
| 10 | / | 0.85 / 0.88 | — |
| 400 | / | 0.22 / 0.17 | — |
| 630 | / | 0.033 / 0.027 | — |
| 1000 | / | 0.001 / 0.004 | — |
| 4000 | / | 0 / 0 | 58.2 / 59.9 |
| 16,000 | / | 0 / 0 | 46.1 / 46.5 |
| dataset | model information | memorization (MAE) | correlation | FID (pairs) |
|---|---|---|---|---|
| ImageNet | 0.183 / 0.143 | 0.009 / 0.008 | 0.999 | 0.066 / 0.052 (5) |
| CIFAR-10 | 0.189 / 0.123 | 0.022 / 0.009 | 0.991 | 0.120 / 0.098 (7) |
| Fashion-MNIST | 0.278 / 0.078 | 0.039 / 0.033 | 0.989 | 0.569 / (1) |
| FFHQ | 0.400 / 0.110 | 0.026 / 0.017 | 0.997 | 0.075 / 0.066 (1) |
| all four | — | 0.021 | 0.993 | — |
| fitted | estimate at | slope | mem. ratio | FID peak | |||
|---|---|---|---|---|---|---|---|
| 2 | 350 | 362 | 330 | 0.26 | 1.14 | ||
| 3 | 511 | 279 | 266 | 0.28 | 1.23 | ||
| 4 | 673 | 251 | 226 | 0.26 | 1.49 | ||
| 5 | 836 | 239 | 218 | 0.22 | 1.20 |
| dataset | estimator | log RMSE | ||||||
|---|---|---|---|---|---|---|---|---|
| ImageNet | model-free | 1 | 0.348 | 0.619 | — | — | — | — |
| ImageNet | model-free | 2 | 0.345 | 0.622 | 13.75 | 0.483 | 0.112 | |
| CIFAR-10 | model-free | 1 | 0.402 | 0.502 | 15.85 | 0.502 | 0.1015 | |
| CIFAR-10 | model-free | 2 | 0.409 | 0.500 | 16.20 | 0.519 | 0.1009 | |
| FFHQ | model-free | 1 | 0.508 | 0.503 | 15.39 | 0.631 | 0.1304 | |
| FFHQ | model-free | 2 | 0.509 | 0.505 | 15.10 | 0.625 | 0.1205 |
| models per | mean ratio | log RMSE | |||||
|---|---|---|---|---|---|---|---|
| 4 | 1.07 | 0.383 | 0.510 | 11.50 | 0.449 | 0.1296 | |
| 6 | 1.04 | 0.382 | 0.529 | 12.05 | 0.441 | 0.1276 | |
| 8 | 1.02 | 0.397 | 0.519 | 11.80 | 0.472 | 0.1312 | |
| 10 | 1 | 0.358 | 0.513 | 11.64 | 0.420 | 0.1026 |
Diffusion Models
Diffusion models learn to reverse gradual data corruption, enabling flexible generation, editing, forecasting, and inference.
See all 1,176 papers