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

跨层学习率平衡:线性神经网络中的精确两步动力学与最优缩放

Balancing Learning Rates Across Layers: Exact Two-Step Dynamics and Optimal Scaling in Linear Neural Networks

Dartmouth College(达特茅斯学院);Stanford University(斯坦福大学)

Tianyu Pang, Vignesh Kothapalli, Shenyang Deng, Haohui Wang, Dawei Zhou, Yaoqing Yang

AI总结:

本文通过精确推导线性神经网络在梯度下降两步后的梯度和测试损失闭式表达式,研究了层间学习率的最优选择,揭示了初始步骤不等学习率可最小化测试损失而后续步骤等学习率最优的早期训练机制。

摘要:

我们研究了两层和三层线性神经网络在学习线性目标函数时的最优学习率选择。特别地,我们推导了梯度下降一步和两步后梯度和测试损失的精确闭式表达式,从而能够精确刻画早期训练动态。我们描述了在前两步梯度近似下学习率应如何缩放,并证明使用该近似进行更新可得到一个具有紧密小近似误差的可处理替代损失。这一公式使得层间学习率的理论分析成为可能,并揭示了一个独特的早期训练机制:在初始步骤中,不等学习率可以最小化测试损失,而在后续步骤中,等学习率变得最优。我们的数值实验验证了该理论,并证明了在训练早期平衡层间学习率的重要性。代码可在 https://github.com/TDCSZ327/Layer-Balancing 获取。

英文摘要:

We study optimal learning-rate selection in two-layer and three-layer linear neural networks trained to learn linear target functions. In particular, we derive the exact closed-form expressions for the gradients and test loss after one and two steps of gradient descent, enabling a precise characterization of early training dynamics. We characterize how learning rates should scale under the gradient approximation in the first two steps, and prove that performing updates with this approximation yields a tractable surrogate loss with a tight, small approximation error. This formulation enables the theoretical analysis of layer-wise learning rates and reveals a distinct early-training regime: test loss can be minimized by unequal learning rates at the initial step, while equal learning rates become optimal in subsequent steps. Our numerical experiments validate the theory and demonstrate the importance of balancing layer-wise learning rates early during training. The code is available at: https://github.com/TDCSZ327/Layer-Balancing.

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

↑