TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Analyzing and Improving the Training Dynamics of Diffusion...

Analyzing and Improving the Training Dynamics of Diffusion Models

Tero Karras, Miika Aittala, Jaakko Lehtinen, Janne Hellsten, Timo Aila, Samuli Laine

2023-12-05CVPR 2024 1PhilosophyImage Generation
PaperPDFCodeCode(official)CodeCodeCodeCodeCode

Abstract

Diffusion models currently dominate the field of data-driven image synthesis with their unparalleled scaling to large datasets. In this paper, we identify and rectify several causes for uneven and ineffective training in the popular ADM diffusion model architecture, without altering its high-level structure. Observing uncontrolled magnitude changes and imbalances in both the network activations and weights over the course of training, we redesign the network layers to preserve activation, weight, and update magnitudes on expectation. We find that systematic application of this philosophy eliminates the observed drifts and imbalances, resulting in considerably better networks at equal computational complexity. Our modifications improve the previous record FID of 2.41 in ImageNet-512 synthesis to 1.81, achieved using fast deterministic sampling. As an independent contribution, we present a method for setting the exponential moving average (EMA) parameters post-hoc, i.e., after completing the training run. This allows precise tuning of EMA length without the cost of performing several training runs, and reveals its surprising interactions with network architecture, training time, and guidance.

Results

TaskDatasetMetricValueModel
Image GenerationImageNet 512x512FID1.81EDM2-XXL
Image GenerationImageNet 512x512NFE126EDM2-XXL
Image GenerationImageNet 512x512FID1.85EDM2-XL
Image GenerationImageNet 512x512NFE126EDM2-XL
Image GenerationImageNet 512x512FID1.88EDM2-L
Image GenerationImageNet 512x512NFE126EDM2-L
Image GenerationImageNet 512x512FID2.01EDM2-M
Image GenerationImageNet 512x512NFE126EDM2-M
Image GenerationImageNet 512x512FID2.23EDM2-S
Image GenerationImageNet 512x512NFE126EDM2-S
Image GenerationImageNet 512x512FID2.91EDM2-XS
Image GenerationImageNet 512x512NFE126EDM2-XS

Related Papers

fastWDM3D: Fast and Accurate 3D Healthy Tissue Inpainting2025-07-17Synthesizing Reality: Leveraging the Generative AI-Powered Platform Midjourney for Construction Worker Detection2025-07-17FashionPose: Text to Pose to Relight Image Generation for Personalized Fashion Visualization2025-07-17A Distributed Generative AI Approach for Heterogeneous Multi-Domain Environments under Data Sharing constraints2025-07-17Pixel Perfect MegaMed: A Megapixel-Scale Vision-Language Foundation Model for Generating High Resolution Medical Images2025-07-17FADE: Adversarial Concept Erasure in Flow Models2025-07-16Streaming 4D Visual Geometry Transformer2025-07-15CharaConsist: Fine-Grained Consistent Character Generation2025-07-15