arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.17470cs.CVcs.AIcs.LG
收藏

面向视频扩散Transformer的精确缩放定律研究

Towards Precise Scaling Laws for Video Diffusion Transformers

University of Science and Technology of China(中国科学技术大学);Peking University(北京大学);Kuaishou Technology(快手科技)

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

AI总结:

本文系统分析并证实了视频扩散Transformer中缩放定律的存在,发现其对学习率和批量大小更敏感,提出可预测任意模型规模与计算预算下最优超参数的新缩放定律,在1e10 TFlops预算下相比传统方法降低40.1%推理成本,并建立了验证损失、模型规模与计算预算间的广义精确关系。

摘要:

由于视频扩散Transformer训练成本高昂,在给定的数据和计算预算内实现其最优性能至关重要。这要求在开展大规模训练之前,精确确定最优模型规模和训练超参数。尽管缩放定律已被用于语言模型中以预测性能,但它们在视觉生成模型中的存在性及精确推导仍未被充分探索。本文系统地分析了视频扩散Transformer的缩放定律,并证实了其存在。此外,我们发现,与语言模型不同,视频扩散模型对学习率和批量大小这两个通常未被精确建模的超参数更为敏感。为解决这一问题,我们提出了一种新的缩放定律,能够针对任意模型规模和计算预算预测最优超参数。在这些最优设置下,在1e10 TFlops的计算预算内,与传统缩放方法相比,我们取得了可比的性能,并将推理成本降低了40.1%。进一步地,我们在验证损失、任意模型规模与计算预算之间建立了更具普适性且更精确的关系。这使得对非最优模型规模的性能预测成为可能,在实际推理成本约束下,这类非最优规模也可能具有吸引力,从而实现更好的权衡。

英文摘要:

Achieving optimal performance of video diffusion transformers within given data and compute budget is crucial due to their high training costs. This necessitates precisely determining the optimal model size and training hyperparameters before large-scale training. While scaling laws are employed in language models to predict performance, their existence and accurate derivation in visual generation models remain underexplored. In this paper, we systematically analyze scaling laws for video diffusion transformers and confirm their presence. Moreover, we discover that, unlike language models, video diffusion models are more sensitive to learning rate and batch size, two hyperparameters often not precisely modeled. To address this, we propose a new scaling law that predicts optimal hyperparameters for any model size and compute budget. Under these optimal settings, we achieve comparable performance and reduce inference costs by 40.1% compared to conventional scaling methods, within a compute budget of 1e10 TFlops. Furthermore, we establish a more generalized and precise relationship among validation loss, any model size, and compute budget. This enables performance prediction for non-optimal model sizes, which may also be appealed under practical inference cost constraints, achieving a better trade-off.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑