Towards Precise Scaling Laws for Video Diffusion Transformers

Yuanyang Yin, Yaqi Zhao, Mingwu Zheng, Ke Lin, Jiarong Ou, Rui Chen, Victor Shea-Jay Huang, Jiahao Wang, Xin Tao, Pengfei Wan, Di Zhang, Baoqun Yin, Wentao Zhang, Kun Gai · DOI

TL;DR

This paper introduces precise scaling laws for video diffusion transformers, revealing that optimal hyperparameters (batch size and learning rate) are crucial and depend on model size and training data. By accounting for these optimal hyperparameters, the authors achieve comparable performance with significantly reduced computational costs and more accurate predictions for model scaling.

What Problem Does This Paper Address?

Training large-scale video diffusion models is computationally expensive, making it critical to determine the optimal model size and training configurations before committing to massive training runs. While scaling laws have been successful in predicting the performance of language models based on model size and training data, their application to visual generation models, especially video diffusion transformers, remains underexplored. Existing approaches often overlook the impact of hyperparameters like batch size and learning rate, leading to inaccurate predictions and suboptimal resource allocation. This paper aims to fill this gap by developing precise scaling laws for video diffusion transformers that incorporate optimal hyperparameter selection.

Methods

The authors systematically investigate scaling laws for video diffusion transformers, confirming their existence. A key contribution is the development of new scaling laws specifically for optimal hyperparameters (batch size and learning rate). Unlike previous work that often used fixed or suboptimal hyperparameters, this paper derives relationships that predict the optimal values based on model size ($N$) and training tokens ($T$). They propose a generalized formulation for predicting validation loss ($L$) as a function of training tokens and model size, incorporating these optimal hyperparameters. This approach allows for more accurate performance predictions, even for non-optimal model sizes, enabling better trade-offs between performance and computational cost.

Datasets

Not discussed in the paper. The paper focuses on analyzing the scaling behavior of existing video diffusion transformer architectures and does not introduce new datasets.

Key Insights and Ideas

  • Hyperparameters Matter (A Lot): Video diffusion models are surprisingly sensitive to batch size and learning rate. Simply scaling up models without considering optimal hyperparameters leads to significant performance degradation and inaccurate scaling predictions.
  • Optimal Hyperparameters are Model- and Data-Dependent: The ideal batch size and learning rate aren't static; they change with the model's size and the amount of training data. This dependency is crucial for accurate scaling.
  • Beyond Optimal Size: While predicting performance at the optimal model size is valuable, the paper also enables accurate predictions for non-optimal model sizes. This is critical for real-world scenarios where hardware constraints or inference costs might prevent using the absolute best size.
  • Cost Savings are Real: By leveraging these precise scaling laws with optimal hyperparameters, the authors demonstrate significant reductions in computational cost (e.g., 40.1% inference cost reduction within a 1e10 TFlops budget) while maintaining comparable performance.

Key Results

  • The paper confirms the existence of scaling laws in video diffusion transformers.
  • They establish new scaling laws for optimal hyperparameters (batch size and learning rate), enabling precise predictions for any model size and compute budget.
  • Using optimal hyperparameters, they achieve comparable performance with a 40.1% reduction in inference costs compared to conventional scaling methods, within a compute budget of 1e10 TFlops.
  • Their generalized relationship for validation loss, model size, and compute budget allows for accurate performance prediction for non-optimal model sizes, offering a better trade-off.
  • When comparing empirical and predicted optimal model size scaling laws, using optimal hyperparameters reduced the slope deviation from 30.26% to 3.57%.

Limitations and Future Work

  • Constant Learning Rate: The study primarily focused on a constant learning rate, acknowledging that investigating learning rate decay could yield different results but would require more computational resources.
  • Validation Loss Metric: The evaluation relied on validation loss, as a standard metric for video generation quality is lacking. Developing robust evaluation metrics for video quality is suggested for future research.
  • Model Scale and Resolution: The current findings on low-resolution, smaller models might not directly apply to higher-resolution, larger models, necessitating new fitting for such cases.
  • Video Resolution and Frame Rate: The impact of video resolution and frame rate on scaling laws was not explored and is suggested as a future research direction.

Summary updated

BibTeX
@inproceedings{yin2025towards,
  author = {Yuanyang Yin and Yaqi Zhao and Mingwu Zheng and Ke Lin and Jiarong Ou and Rui Chen and Victor Shea-Jay Huang and Jiahao Wang and Xin Tao and Pengfei Wan and Di Zhang and Baoqun Yin and Wentao Zhang and Kun Gai},
  title = {{Towards Precise Scaling Laws for Video Diffusion Transformers}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01692},
}
Figure