本文在无限维线性回归中分析单遍 SGD 的缩放定律,证明在高斯先验和幂律协方差谱下,可约测试误差随参数 M 与数据 N 呈多项式下降,且隐式正则化消除了方差项的负面影响。
摘要:
从经验上看,大规模深度学习模型通常满足一种神经缩放定律:随着模型规模和数据规模增长,训练后模型的测试误差以多项式形式下降。然而,传统观点认为测试误差由近似误差、偏差误差和方差误差组成,其中方差误差会随模型规模增大而增加。这与神经缩放定律的一般形式相矛盾,后者预测增大模型规模会单调提升性能。我们在无限维线性回归设定中研究缩放定律理论。具体而言,我们将具有 M 个参数的模型视为草图协变量的线性函数。该模型使用 N 个数据,通过单遍随机梯度下降(SGD)训练。假设最优参数满足高斯先验,且数据协方差矩阵具有次数 a>1 的幂律谱,我们证明测试误差的可约部分为 Θ(M^{-(a-1)} + N^{-(a-1)/a})。随 M 增大而增加的方差误差,由于 SGD 的隐式正则化而被其他误差主导,因此从界中消失。我们的理论与经验性神经缩放定律一致,并通过数值模拟得到验证。
英文摘要:
Empirically, large-scale deep learning models often satisfy a neural scaling law: the test error of the trained model improves polynomially as the model size and data size grow. However, conventional wisdom suggests the test error consists of approximation, bias, and variance errors, where the variance error increases with model size. This disagrees with the general form of neural scaling laws, which predict that increasing model size monotonically improves performance.
We study the theory of scaling laws in an infinite dimensional linear regression setup. Specifically, we consider a model with $M$ parameters as a linear function of sketched covariates. The model is trained by one-pass stochastic gradient descent (SGD) using $N$ data. Assuming the optimal parameter satisfies a Gaussian prior and the data covariance matrix has a power-law spectrum of degree $a>1$, we show that the reducible part of the test error is $Θ(M^{-(a-1)} + N^{-(a-1)/a})$. The variance error, which increases with $M$, is dominated by the other errors due to the implicit regularization of SGD, thus disappearing from the bound. Our theory is consistent with the empirical neural scaling laws and verified by numerical simulation.
SGD in Multiclass Logistic Regression: Sequential Learning and Scaling Laws
University of Toronto(多伦多大学);Vector Institute(向量研究所);New York University(纽约大学);Flatiron Institute(熨斗研究所);University of British Columbia(不列颠哥伦比亚大学);Numurho
Neural Scaling Laws of Deep ReLU and Deep Operator Network: A Theoretical Study
Department of Mathematics, Hong Kong Baptist University(香港 Baptist 大学数学系);Department of ACMS, University of Notre Dame(Notre Dame 大学ACMS系);School of Mathematics, Georgia Institute of Technology(佐治亚理工学院数学系);Department of Mathematics, UCLA(加州大学洛杉矶分校数学系)
On the origin of neural scaling laws: from random graphs to natural language
Meta Superintelligence Labs, FAIR(Meta超智能实验室,FAIR);Department of Physics, University of Maryland, College Park(大学物理系,马里兰大学College Park分校);Joint Quantum Institute(联合量子研究所)
Institut für Theoretische Physik, Universität Heidelberg(海德堡大学理论物理研究所);Department of Physics, Harvard University(哈佛大学物理系);LPNHE, Sorbonne Université, Université Paris Cité, CNRS/IN2P3(巴黎大学LPNHE)
Sub-Scaling Laws: On the Role of Data Density and Training Strategies in LLMs
Meituan Inc.(美团公司);The University of Hong Kong(香港大学);Pennsylvania State University(宾夕法尼亚州立大学);Peking University(北京大学);The Hong Kong University of Science and Technology(香港科学与技术大学)
Reproducible scaling laws for contrastive language-image learning
LAION;UC Berkeley(加州大学伯克利分校);HuggingFace;University of Washington(华盛顿大学);Juelich Supercomputing Center (JSC)(于利希超级计算中心);Research Center Juelich (FZJ)(于利希研究中心)