Adaptive Non-Uniform Timestep Sampling for Accelerating Diffusion Model Training

Myunsoo Kim, Donghyeon Ki, Seong-Woong Shim, Byung-Jun Lee

Abstract: As a highly expressive generative model, diffusion models have demonstrated exceptional success across various domains, including image generation, natural language processing, and combinatorial optimization. However, as data distributions grow more complex, training these models to convergence becomes increasingly computationally intensive. While diffusion models are typically trained using uniform timestep sampling, our research shows that the variance in stochastic gradients varies significantly across timesteps, with high-variance timesteps becoming bottlenecks that hinder faster convergence. To address this issue, we introduce a non-uniform timestep sampling method that prioritizes these more critical timesteps. Our method tracks the impact of gradient updates on the objective for each timestep, adaptively selecting those most likely to minimize the objective effectively. Experimental results demonstrate that this approach not only accelerates the training process, but also leads to improved performance at convergence. Furthermore, our method shows robust performance across various datasets, scheduling strategies, and diffusion architectures, outperforming previously proposed timestep sampling and weighting heuristics that lack this degree of robustness.

The Inefficiency of Uniform Sampling

Diffusion models, the backbone of modern generative AI like DALL-E and Stable Diffusion, are notoriously expensive to train, often requiring tens of thousands of GPU hours. Traditionally, these models are trained by picking a random "timestep" (a specific level of noise) from a uniform distribution.

However, this paper identifies a fundamental inefficiency: not all timesteps are created equal. Empirical evidence shows that "gradient variance"—a measure of how much the model's internal updates fluctuate—is significantly higher at certain timesteps, particularly at lower noise levels. Uniform sampling ignores this imbalance, wasting compute on "easy" timesteps while the model struggles to converge on these high-variance bottlenecks.

Adaptive Timestep Sampling Framework

The core contribution of this work is a non-uniform timestep sampler that learns which noise levels to prioritize in real-time. Instead of a fixed rule, the authors use a small neural network to parameterize a flexible Beta distribution, allowing the sampler to shift its focus as training progresses.

Overview of the adaptive timestep sampling framework. The sampler $\pi_\phi$ is updated to maximize the estimated reduction in the objective, focusing on critical timesteps identified through an efficient look-ahead mechanism.

The sampler is trained alongside the diffusion model with the goal of selecting timesteps that maximize the reduction in the Variational Lower Bound (VLB). To solve the "look-ahead" challenge—knowing which timestep will reduce loss the most without performing a trial update for every possibility—the method tracks the impact of recent updates on a small subset of representative timesteps to estimate global impact efficiently.

Experimental Results and Robustness

The researchers evaluated their method on standard benchmarks including CIFAR-10, CelebA-HQ, and ImageNet. A key finding is that timesteps are interdependent; updating the model at one noise level affects its performance at others. By accounting for these "ripples" across the noise schedule, the adaptive sampler outperforms hand-designed heuristics like P2 or Min-SNR.

Training efficiency comparison on CIFAR-10. The proposed method (Ours) achieves lower FID scores significantly faster than standard uniform sampling (Baseline) and existing heuristics like P2 and Min-SNR.

As shown in the results, the method achieves significantly faster convergence and superior final image quality. For instance, on CelebA-HQ, it achieved an FID of 6.62 after 300 epochs, outperforming the standard Latent Diffusion Model (8.72). Crucially, because the method learns the optimal sampling distribution, it remains robust across different noise schedules (Linear, Cosine, Quadratic) where fixed heuristics often fail.

Conclusion

By moving away from uniform sampling and toward an adaptive, learning-based approach, this research provides a more efficient path for training large-scale diffusion models. While the sampler introduces a small computational overhead per iteration, the net gain in training speed and final model quality is substantial. Future work may extend this framework to other modalities like video generation and discrete state-spaces for text.

Summary updated

BibTeX
@inproceedings{kim2025adaptive,
  author = {Myunsoo Kim and Donghyeon Ki and Seong-Woong Shim and Byung-Jun Lee},
  title = {{Adaptive Non-Uniform Timestep Sampling for Accelerating Diffusion Model Training}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=Bi66jA54ru},
}
Figure