Large Diffusion Models Need More Than EMA
Organizations: Tsinghua University · Shanghai Qi Zhi Institute · The Hong Kong University of Science and Technology
Abstract
Large-scale diffusion models are commonly trained with a constant learning rate (LR) and exponential moving average (EMA), despite the strong performance of LR decay and Schedule-Free optimization in training large language models. We study whether EMA is uniquely suited to diffusion training, or whether stronger alternatives have been underexplored. Our theory shows that averaging a constant-step trajectory has an inherent optimization limitation, whereas LR decay and Schedule-Free optimization admit vanishing stationarity guarantees under standard nonconvex assumptions. Empirically, LR decay and EMA provide complementary benefits: combining decay with EMA further improves the standard baseline at most tested starting points, although the gain remains sensitive to when decay begins. Schedule-Free avoids this timing requirement and consistently outperforms EMA with a constant LR across training stages, achieving both lower fixed-evaluation objectives and better generation quality. Our analysis further shows that all three strategies substantially reduce parameter variability, yet stronger stabilization is not always better: EMA with a constant LR retains comparatively higher parameter variability, while aggressive decay combined with EMA achieves the lowest checkpoint variability but also weakens continued optimization. Schedule-Free substantially reduces parameter variability while preserving more late-stage progress, providing a better balance between parameter stability and continued optimization. Finally, the benefits of Schedule-Free extend beyond pretraining to ReFL and generator-side DMD, demonstrating its transferability across distinct diffusion optimization settings. Overall, our results suggest that large diffusion models need more than parameter averaging alone: effective optimization requires balancing variance reduction with continued optimization.
Figures & tables
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Optimizer | Base LR | Warmup | LR schedule | EMA |
|---|---|---|---|---|---|
| Constant LR + EMA | AdamW | 1e-4 | None | Constant | 0.9999 |
| Decay + EMA | AdamW | 1e-4 | None | cosine to 1e-6 | 0.9999 |
| Schedule-Free | SF-AdamW | 4e-4 | 5k linear | Schedule-Free | None |
| Method / sequence | Checkpoint variability (trace variance, ) |
|---|---|
| Constant-LR online | 7.1611709595e+00 (100%) |
| Schedule-Free averaged | 1.4373749495e-03 (0.0201%) |
| Constant-LR EMA | 5.5516868830e-03 (0.0775%) |
| Cosine-decay model | 7.3927e-04 (0.0103%) |
| Cosine-decay EMA | 1.1807e-04 (0.0016%) |
| Run | Weights | 400–401k | 401–402k | 402–403k | 403–404k | 404–405k | Mean |
|---|---|---|---|---|---|---|---|
| AdamW baseline | model | 69.953 | 68.033 | 68.007 | 68.192 | 68.026 | 68.442 |
| AdamW baseline | EMA | 12.636 | 12.700 | 12.683 | 12.676 | 12.669 | 12.673 |
| Schedule-Free | 6.5643 | 6.5572 | 6.5492 | 6.5408 | 6.5326 | 6.5488 | |
| 40k cosine decay | model | 0.909307 | 0.843436 | 0.831407 | 0.827545 | 0.820779 | 0.846495 |
| 40k cosine decay | EMA | 1.794585 | 1.624687 | 1.471350 | 1.333021 | 1.208285 | 1.486386 |
| Method | 400k | 401k | 402k | 403k | 404k | 405k |
|---|---|---|---|---|---|---|
| Constant LR + EMA | .43738 | .43736 | .43732 | .43729 | .43726 | .43723 |
| Schedule-Free | .43461 | .43460 | .43457 | .43454 | .43451 | .43447 |
| 40k Cosine Decay model | .43696 | .43735 | .43745 | .43754 | .43752 | .43760 |
| 40k Cosine Decay + EMA | .43691 | .43691 | .43693 | .43695 | .43697 | .43699 |
| Training reward | Orthogonal evaluation rewards | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Run | HPSv3 | Pick | CLIP | HPSv2.1 | Aes | ImgR | HPSv3++ | Uni IAA | Uni IQA | Uni ISTA |
| Z-Image base (no RL) | 6.2544 | 22.8690 | 0.2754 | 0.2962 | 5.4118 | 0.9947 | 12.0641 | 60.9511 | 75.0656 | 37.7925 |
| AdamW , wu0 | 6.3500 | 22.8766 | 0.2754 | 0.2971 | 5.4177 | 0.9959 | 12.1271 | 60.7050 | 74.8078 | 38.3209 |
| SF-AdamW , wu5 | 6.8626 | 22.8921 | 0.2748 | 0.2995 | 5.4456 | 1.0150 | 12.3485 | 60.6995 | 75.2258 | 38.3189 |
| SF-AdamW , wu5 | 9.6134 | 22.8341 | 0.2807 | 0.3123 | 5.7066 | 1.1197 | 12.0347 | 51.5663 | 67.4061 | 41.7878 |
| Method | Ckpt | FID-5K | sFID | IS | Precision | Recall |
|---|---|---|---|---|---|---|
| AdamW baseline | 1k | 10.126 | 35.310 | 248.559 | 0.7886 | 0.7395 |
| Gen SF-AdamW + Gui AdamW | 1k | 9.988 | 35.733 | 236.856 | 0.7850 | 0.7401 |
| Gen AdamW + Gui SF-AdamW | 1k | 10.199 | 35.584 | 256.577 | 0.7970 | 0.7210 |
| AdamW baseline | 2k | 9.757 | 34.865 | 242.844 | 0.7814 | 0.7497 |
| Gen SF-AdamW + Gui AdamW | 2k | 9.573 | 35.261 | 256.355 | 0.7950 | 0.7451 |
| Gen AdamW + Gui SF-AdamW | 2k | 9.882 | 35.529 | 245.570 | 0.7848 | 0.7395 |
| Method | Checkpoint / branch | FID-5K | IS | sFID |
|---|---|---|---|---|
| Schedule-Free AdamW | 320k | 9.3722 | 232.5443 | 35.1116 |
| 340k | 9.2903 | 236.6247 | 35.1530 | |
| 360k | 9.1916 | 238.2731 | 35.1622 | |
| 380k | 9.1237 | 240.8229 | 35.1441 | |
| 400k | 9.0504 | 245.7993 | 35.1334 | |
| Constant LR + EMA | 320k | 9.4972 | 227.6105 | 35.0881 |
| Timestep | Constant + EMA | Schedule-Free | Relative improvement |
|---|---|---|---|
| random | 0.766211 | 0.765308 | 0.12% |
| 1.016053 | 1.013539 | 0.25% | |
| 0.949475 | 0.947750 | 0.18% | |
| 0.868994 | 0.867809 | 0.14% | |
| 0.796613 | 0.795586 | 0.13% | |
| 0.709609 | 0.708319 | 0.18% |
Deep Learning Optimization
Deep learning optimization develops algorithms and training strategies that help neural networks converge, generalize, and use compute efficiently.
See all 205 papers