Analyzing and Improving the Training Dynamics of Diffusion Models

By Tero Karras, Miika Aittala, Jaakko Lehtinen, Janne Hellsten, Timo Aila, Samuli Laine. Computer Vision and Pattern Recognition, 2023

442 citations recorded by the source corpus.

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 ex- pectation. We find that systematic application of this philoso- phy eliminates the observed drifts and imbalances, resulting in considerably better networks at equal computational com- plexity. 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.

Subfields: Computer Vision and Pattern Recognition, Statistical and Nonlinear Physics

View Paper: https://www.semanticscholar.org/paper/bb857c72e7c75fc3d4b44b1dcaa66c62ea10a2e1

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computer Vision and Pattern Recognition

  1. Robin Rombach
  2. Andreas Blattmann
  3. Dominik Lorenz
  4. Patrick Esser
  5. Axel Sauer
  6. Tim Dockhorn
  7. Luc Van Gool
  8. Chen Change Loy

In Statistical and Nonlinear Physics

  1. Tim Dockhorn
  2. Andreas Blattmann
  3. Robin Rombach
  4. Dominik Lorenz
  5. Ziyang Ma
  6. Jonas Muller
  7. Dustin Podell
  8. Kyle Lacey

Citations in the corpus