Skip to main content
QUICK REVIEW

[Paper Review] Efficient Diffusion Training via Min-SNR Weighting Strategy

Tiankai Hang, Shuyang Gu|arXiv (Cornell University)|Mar 16, 2023
Domain Adaptation and Few-Shot LearningComputer Science5 citations
TL;DR

This paper proposes Min-SNR-γ, a simple yet effective loss weighting strategy that treats diffusion training as a multi-task learning problem by assigning timestep-specific weights based on clamped signal-to-noise ratios (SNR), significantly accelerating convergence and achieving a new SOTA FID score of 2.06 on ImageNet 256×256 with smaller models.

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-$γ$. 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$ imes$ faster than previous weighting strategies. It is also more effective, achieving a new record FID score of 2.06 on the ImageNet $256 imes256$ 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.

Motivation & Objective

  • To address the slow convergence in denoising diffusion model training, which stems from conflicting optimization directions across timesteps.
  • To reframe diffusion training as a multi-task learning problem where each timestep is treated as an individual task.
  • To develop a stable, efficient, and scalable loss weighting strategy that avoids the instability and computational cost of adaptive Pareto optimization.
  • To improve training efficiency and generation quality without architectural modifications, achieving state-of-the-art performance on ImageNet benchmarks.

Proposed method

  • Treat each denoising timestep as an individual task in a multi-task learning framework.
  • Introduce Min-SNR-γ, a predefined global loss weighting strategy that uses a clamped signal-to-noise ratio (SNR) as the weighting factor.
  • Apply a clamp function to the SNR to prevent extreme weights, stabilizing training and reducing gradient conflicts.
  • Use a hyperparameter γ to control the clamp intensity, enabling robustness across different training settings.
  • Avoid run-time adaptive weighting by using a fixed, step-wise loss weight schedule, improving efficiency and stability.
  • Train models using standard architectures (UNet, ViT) with the new loss weighting, without architectural modifications.

Experimental results

Research questions

  • RQ1Why does diffusion training converge slowly despite shared model weights across timesteps?
  • RQ2Can the conflicting optimization directions between timesteps be mitigated through a principled loss weighting strategy?
  • RQ3How does a global, predefined loss weighting strategy compare to adaptive multi-task learning methods like Pareto optimization in diffusion training?
  • RQ4Can a simple SNR-based weighting scheme outperform existing baselines in convergence speed and FID score?
  • RQ5Does Min-SNR-γ generalize across different architectures and generation targets (e.g., ε vs. x₀ prediction)?

Key findings

  • Min-SNR-γ achieves 3.4× faster convergence than previous weighting strategies, significantly accelerating training.
  • The method achieves a new state-of-the-art FID score of 2.06 on the ImageNet 256×256 benchmark, outperforming prior SOTA methods.
  • Even with smaller models (e.g., 395M parameters), the method achieves a FID of 2.81 on ImageNet 256×256, outperforming larger models like DiT-XL-2.
  • The ViT-XL model trained with Min-SNR-5 reaches FID 2.08 in only 2.1M iterations, 3.3× faster than DiT.
  • The method improves performance across both UNet and ViT backbones, and works effectively for both ε and x₀ prediction targets.
  • Ablation studies show the method is robust to hyperparameter γ, with minimal performance drop across different settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.