arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.16859cs.LGhep-thstat.ML
收藏

神经网络缩放定律的一个可解模型

A Solvable Model of Neural Scaling Laws

McGill University(麦吉尔大学);Massachusetts Institute of Technology(麻省理工学院);Salesforce(赛富时);University of British Columbia(不列颠哥伦比亚大学);Anthropic

Alexander Maloney, Daniel A. Roberts, James Sully

摘要:

具有大量参数的大语言模型,当在接近互联网大小的令牌上进行训练时,已被经验证明遵守神经缩放定律:具体而言,它们的性能在参数或数据集大小方面表现为可预测的幂律,直到被其他资源检查。为了更好地理解这一点,我们首先确定了允许这种缩放定律出现的必要属性,然后提出了一个统计模型--一个联合生成数据模型和随机特征模型--它捕捉了这种神经缩放现象。通过在大训练集大小和大量参数的双重限制下求解该模型,我们可以深入了解(i)导致缩放定律的数据集和任务的统计结构,(ii)非线性特征映射(如神经网络提供的那些)在这些数据集上训练时启用缩放定律的方式,(iii)训练集和参数的等参数化缩放的最优性,以及(iv)这种缩放定律是否会失效,以及当它们失效时它们的表现如何。主要发现是自然数据集统计中出现的幂律通过非线性随机特征映射扩展,然后转化为测试损失的幂律缩放的方式,以及数据的谱幂律的有限范围如何导致模型的性能达到平台。

英文摘要:

Large language models with a huge number of parameters, when trained on near internet-sized number of tokens, have been empirically shown to obey neural scaling laws: specifically, their performance behaves predictably as a power law in either parameters or dataset size until bottlenecked by the other resource. To understand this better, we first identify the necessary properties allowing such scaling laws to arise and then propose a statistical model -- a joint generative data model and random feature model -- that captures this neural scaling phenomenology. By solving this model in the dual limit of large training set size and large number of parameters, we gain insight into (i) the statistical structure of datasets and tasks that lead to scaling laws, (ii) the way nonlinear feature maps, such as those provided by neural networks, enable scaling laws when trained on these datasets, (iii) the optimality of the equiparameterization scaling of training sets and parameters, and (iv) whether such scaling laws can break down and how they behave when they do. Key findings are the manner in which the power laws that occur in the statistics of natural datasets are extended by nonlinear random feature maps and then translated into power-law scalings of the test loss and how the finite extent of the data's spectral power law causes the model's performance to plateau.

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

↑