arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.05782cs.LGstat.ML
收藏

统一神经网络缩放定律与尺度-时间等价性

Unified Neural Network Scaling Laws and Scale-time Equivalence

Massachusetts Institute of Technology(麻省理工学院)

Akhilan Boopathy, Ila Fiete

AI总结:

本文提出模型规模与训练时间成比例等价的理论,并结合双下降分析建立统一缩放定律,可跨架构和视觉基准解释数据需求、噪声敏感性及规模失效现象。

摘要:

随着神经网络规模持续增长,而数据集可能不会同步增长,理解能够预期多少性能提升至关重要:扩大网络规模与增加数据量究竟哪个更重要?因此,刻画测试误差如何随网络规模和数据量变化的神经网络缩放定律变得日益重要。然而,现有缩放定律通常只适用于有限区间,且往往不能纳入或预测双下降等著名现象。本文提出一种新的理论刻画,说明模型规模、训练时间和数据量这三个因素如何相互作用并决定深度神经网络的性能。我们首先在理论和实验上建立了扩大神经网络规模与按比例增加其训练时间之间的等价性。尺度-时间等价性挑战了当前让大模型接受短时间训练的做法,并表明经过更长时间训练的较小模型可能达到与大模型相当的效果。它还带来一种新方法:可由经过更多 epoch 训练的小规模网络预测大规模网络的性能,反之亦然。随后,我们将尺度-时间等价性与针对双下降的线性模型分析相结合,得到统一的理论缩放定律,并在多个视觉基准和网络架构上通过实验加以验证。这些定律解释了若干此前无法解释的现象:较大模型实现泛化所需的数据更少,过参数化模型对标签噪声更敏感,以及增大模型尺度并不一定提升性能的情形。我们的发现对神经网络的实际部署具有重要意义,为训练和微调大型模型提供了一条更易实现且更高效的路径。

英文摘要:

As neural networks continue to grow in size but datasets might not, it is vital to understand how much performance improvement can be expected: is it more important to scale network size or data volume? Thus, neural network scaling laws, which characterize how test error varies with network size and data volume, have become increasingly important. However, existing scaling laws are often applicable only in limited regimes and often do not incorporate or predict well-known phenomena such as double descent. Here, we present a novel theoretical characterization of how three factors -- model size, training time, and data volume -- interact to determine the performance of deep neural networks. We first establish a theoretical and empirical equivalence between scaling the size of a neural network and increasing its training time proportionally. Scale-time equivalence challenges the current practice, wherein large models are trained for small durations, and suggests that smaller models trained over extended periods could match their efficacy. It also leads to a novel method for predicting the performance of large-scale networks from small-scale networks trained for extended epochs, and vice versa. We next combine scale-time equivalence with a linear model analysis of double descent to obtain a unified theoretical scaling law, which we confirm with experiments across vision benchmarks and network architectures. These laws explain several previously unexplained phenomena: reduced data requirements for generalization in larger models, heightened sensitivity to label noise in overparameterized models, and instances where increasing model scale does not necessarily enhance performance. Our findings hold significant implications for the practical deployment of neural networks, offering a more accessible and efficient path to training and fine-tuning large models.

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

↑