Abstract
Denoising diffusion models have been a mainstream approach for image generation, however, training these models often suffers from slow convergence. In this paper, we discovered that the slow convergence is partly due to conflicting optimization directions between timesteps. To address this issue, we treat the diffusion training as a multi-task learning problem, and introduce a simple yet effective approach referred to as Min-SNR-$\gamma$. This method adapts loss weights of timesteps based on clamped signal-to-noise ratios, which effectively balances the conflicts among timesteps. Our results demonstrate a significant improvement in converging speed, 3.4$\times$ faster than previous weighting strategies. It is also more effective, achieving a new record FID score of 2.06 on the ImageNet $256\times256$ benchmark using smaller architectures than that employed in previous state-of-the-art. The code is available at https://github.com/TiankaiHang/Min-SNR-Diffusion-Training.
Introduction
Denoising diffusion models have overtaken GANs as the gold standard for high-fidelity image generation. However, they come with a significant "training tax," often requiring thousands of GPU hours to converge. This research identifies a fundamental bottleneck in the training process: conflicting optimization directions.
Because diffusion models use shared weights to denoise images across all timesteps—from near-perfect images to pure static—the model is essentially performing thousands of tasks simultaneously. The authors discovered that optimizing for one noise level often inadvertently harms performance at others. These competing gradients cancel each other out, leading to the sluggish convergence observed in standard training regimes.
Methodology: Min-SNR-$\gamma$
The researchers reframe diffusion training as a multi-task learning (MTL) problem. To resolve gradient conflicts, they look toward the concept of Pareto optimality. While calculating exact Pareto-optimal weights for every timestep is computationally prohibitive, the authors derived a stationary approximation that balances task difficulty effectively.
They introduce the Min-SNR-$\gamma$ weighting strategy. The loss weight $w_t$ for any given timestep $t$ is defined as:
$$w_t = \min\{\text{SNR}(t), \gamma\}$$
Where:
- SNR(t) is the Signal-to-Noise Ratio at that specific timestep.
- $\gamma$ is a hyperparameter (clamping value), with 5 recommended as the default.
By clamping the SNR, the strategy prevents the model from over-focusing on "easy" low-noise timesteps (where SNR is high) while ensuring that "hard" high-noise timesteps provide enough signal to guide the model. This alignment of optimization directions allows the model to learn more efficiently across the entire noise spectrum.
Experimental Results
The authors evaluated Min-SNR-$\gamma$ on standard benchmarks, including CelebA 64×64 and ImageNet (64×64 and 256×256).
1. Accelerated Convergence
On the ImageNet 256×256 benchmark, the Min-SNR strategy achieved a high-quality FID (Fréchet Inception Distance) score of 10 over 3.4× faster than standard weighting baselines. Qualitative results confirm this: at just 200K iterations, Min-SNR-5 produces clear, recognizable objects, whereas traditional strategies still yield blurry, indistinct shapes.
2. New State-of-the-Art Performance
The method achieved a record-breaking FID of 2.06 on ImageNet 256×256. This result is particularly notable because it surpassed previous leaders, such as DiT-XL/2, while utilizing a smaller architecture and fewer training iterations.
3. Architecture and Target Agnosticism
A key strength of this strategy is its versatility. It is effective regardless of the model architecture (UNet or Vision Transformer) or the prediction target (original image $x_0$, noise $\epsilon$, or velocity $v$).
Key Insights
- Gradient Conflict Evidence: The authors proved that finetuning a model on a specific range of timesteps significantly increases the error for distant timesteps, confirming that noise levels are in direct competition for model capacity.
- Avoiding Pareto Sparsity: Unlike standard MTL algorithms that often result in "sparse" solutions (assigning zero weight to many tasks), Min-SNR-$\gamma$ ensures every timestep contributes to the learning process, which is essential for the iterative nature of diffusion generation.
Conclusion and Future Work
Min-SNR-$\gamma$ provides a simple, robust, and highly effective solution to the inefficiencies of diffusion training. By balancing the multi-task nature of the problem through SNR clamping, it offers a path toward training high-quality generative models with significantly lower computational overhead. Future research may explore dynamic adjustments of the $\gamma$ parameter or the application of this strategy to massive-scale text-to-video datasets.
Summary updated