arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.08466cs.LGcs.AImath.STstat.MLstat.TH
收藏

线性回归中的缩放定律:计算、参数与数据

Scaling Laws in Linear Regression: Compute, Parameters, and Data

UC Berkeley(伯克利大学);Harvard University(哈佛大学);Google DeepMind(谷歌DeepMind);Princeton University(普林斯顿大学)

Licong Lin, Jingfeng Wu, Sham M. Kakade, Peter L. Bartlett, Jason D. Lee

AI总结:

本文在无限维线性回归中分析单遍 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.

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

↑