arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.02157stat.MLcs.LG
收藏

在线学习与信息指数:关于批量大小及时间/复杂度权衡的重要性

Online Learning and Information Exponents: On The Importance of Batch size, and Time/Complexity Tradeoffs

Ecole Polytechnique Fédérale de Lausanne(洛桑联邦理工学院);École Normale Supérieure - PSL(巴黎高等师范学院-PSL大学);CNRS(法国国家科学研究中心)

Luca Arnaboldi, Yatin Dandi, Florent Krzakala, Bruno Loureiro, Luca Pesce, Ludovic Stephan

AI总结:

本文研究批量大小对两层神经网络单遍 SGD 训练时间的影响,刻画了基于信息指数的最优批量大小,并提出相关损失 SGD 突破大批量限制,用低维 ODE 系统刻画训练动态并通过实验验证。

摘要:

我们研究批量大小 $n_b$ 对使用单遍随机梯度下降(SGD)在各向同性协变量的多指标目标函数上训练两层神经网络的迭代时间 $T$ 的影响。我们将最小化迭代时间的最优批量大小刻画为目标难度的函数,该难度由信息指数表征。我们证明,使用大批量 $n_b \lesssim d^{\frac{\ell}{2}}$ 执行梯度更新可以在不改变总样本复杂度的情况下最小化训练时间,其中 $\ell$ 是要学习的目标的信息指数(参见 \citep{arous2021online}),$d$ 是输入维度。然而,大于 $n_b \gg d^{\frac{\ell}{2}}$ 的批量大小对改善 SGD 的时间复杂度是有害的。我们通过一种不同的训练协议——相关损失 SGD(Correlation loss SGD)可证明地克服了这一根本限制,该协议抑制损失函数中的自相关项。我们证明可以通过一个低维常微分方程(ODE)系统来跟踪训练进展。最后,我们通过数值实验验证了我们的理论结果。

英文摘要:

We study the impact of the batch size $n_b$ on the iteration time $T$ of training two-layer neural networks with one-pass stochastic gradient descent (SGD) on multi-index target functions of isotropic covariates. We characterize the optimal batch size minimizing the iteration time as a function of the hardness of the target, as characterized by the information exponents. We show that performing gradient updates with large batches $n_b \lesssim d^{\frac{\ell}{2}}$ minimizes the training time without changing the total sample complexity, where $\ell$ is the information exponent of the target to be learned \citep{arous2021online} and $d$ is the input dimension. However, larger batch sizes than $n_b \gg d^{\frac{\ell}{2}}$ are detrimental for improving the time complexity of SGD. We provably overcome this fundamental limitation via a different training protocol, \textit{Correlation loss SGD}, which suppresses the auto-correlation terms in the loss function. We show that one can track the training progress by a system of low-dimensional ordinary differential equations (ODEs). Finally, we validate our theoretical results with numerical experiments.

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

↑