NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improved Techniques for Training Score-Based Generative Models

Yang Song, Stefano Ermon

Score-based generative models—the intellectual cousins of the diffusion models that now power tools like Midjourney and DALL-E—were once considered "toys" limited to tiny 32x32 images. In this NeurIPS 2020 paper, researchers introduce NCSNv2, a suite of techniques that finally allowed these models to scale to high-resolution, high-fidelity image generation.

TL;DR

This paper identifies the theoretical and practical bottlenecks that prevented score-based models from scaling beyond low-resolution thumbnails. By introducing five key techniques—including automated noise scale selection and exponential moving averages—the authors produced the first score-based models capable of generating high-quality 256x256 images that rival the best GANs of the era.

What Problem Does This Paper Address?

Generative Adversarial Networks (GANs) dominated the 2010s but were notoriously difficult to train due to their "cat-and-mouse" adversarial nature. Score-based models offered a promising alternative: instead of a game, they learn a "score function"—a vector field pointing toward regions of high data density. To generate an image, you simply start with white noise and follow the vectors (a process called Langevin dynamics).

However, early versions (NCSN) had three major flaws:

  1. Resolution Limits: They worked on 32x32 images but failed miserably at higher resolutions.
  2. Manual Tuning: Choosing the "noise scales" (how much blur to add during training) was a dark art.
  3. Instability: Training was erratic, often producing images with weird color shifts or artifacts.

Methods

The authors propose NCSNv2, which incorporates five specific techniques to stabilize and scale the architecture:

  1. Initial Noise Scale ($\sigma_1$): They prove that the largest noise scale should be as large as the maximum distance between any two points in the dataset. This ensures the model can "see" the entire data manifold from any starting point.
Effect of initial noise scale
  1. Geometric Noise Progression: They provide a mathematical formula to choose the number of noise scales ($L$) and their ratio ($\gamma$) so that the blurred distributions overlap enough for the sampling process to transition smoothly.
  2. Rescaled Noise Conditioning: Instead of complex normalization layers, they simply divide the network's output by the current noise level ($\sigma$). This accounts for the fact that the "score" grows much larger when noise is small.
  3. Optimized Langevin Dynamics: They derive a way to analytically set the sampling step size and number of iterations, removing the need for trial-and-error.
  4. Exponential Moving Average (EMA): They maintain a running average of the model's weights during training, which significantly smooths out the generation quality.

Key Insights and Ideas

  • The Connectivity Problem: The "aha moment" regarding noise scales is that if your initial noise is too small, the score function only knows how to move toward the nearest data point. If you start far away, the model is "blind." Large initial noise creates a global gradient that guides the noise toward the data from anywhere in space.
  • The Overlap Requirement: For the sampling process (Annealed Langevin Dynamics) to work, the distribution at noise level $i$ must have significant overlap with level $i+1$. The authors used the "three-sigma rule" from statistics to ensure this overlap is mathematically guaranteed.
  • Stability via EMA: They discovered that while the training loss might look stable, the actual samples produced by the model fluctuate wildly in color and structure. Using an EMA of the weights acts as a temporal filter, "locking in" the best version of the model.

Key Results

  • State-of-the-Art Quality: On CIFAR-10, NCSNv2 achieved a Fréchet Inception Distance (FID) of 10.87, a massive improvement over the original NCSN's 25.32, and better than many GANs.
  • High Resolution: The paper demonstrated the first successful generation of 256x256 images (FFHQ) using score-based models, producing sharp, diverse, and realistic faces alongside high-quality scenes from LSUN.
High-resolution generated samples
  • No Adversarial Training: These results were achieved using a simple, stable objective (denoising score matching) rather than the unstable min-max game required by GANs.

Limitations and Future Work

  • Sampling Speed: While the images are high quality, generating them is still slow. It requires thousands of iterations of Langevin dynamics, whereas a GAN can generate an image in a single forward pass.
  • Simplified Theory: The theoretical derivations for noise scales were based on a simplified "mixture of Gaussians" model. While it works well in practice for images, more complex data manifolds might require even more sophisticated theory.
  • Future Directions: The authors suggest exploring non-Gaussian noise distributions and further optimizing the sampling speed—work that eventually helped spark the "diffusion" revolution we see today.

Summary updated

BibTeX
@inproceedings{song2020improved,
  author = {Yang Song and Stefano Ermon},
  title = {{Improved Techniques for Training Score-Based Generative Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=k3vG7wYtvTe},
}
Figure