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

Tianyu Pang, Vignesh Kothapalli, Shenyang Deng, Haohui Wang, Dawei Zhou +1 more
5/29/2026
1 citation
cs.LG

Official code: TDCSZ327/Layer-Balancing (6 stars, Python, last commit 2026-05-27).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

60PythonSep 7, 20256 months ago

Similar Papers

Cite this paper

@article{pang2026balancing,
  title  = {Balancing Learning Rates Across Layers: Exact Two-Step Dynamics and Optimal Scaling in Linear Neural Networks},
  author = {Tianyu Pang and Vignesh Kothapalli and Shenyang Deng and Haohui Wang and Dawei Zhou and Yaoqing Yang},
  year   = {2026},
  eprint = {2606.00340},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.00340v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.00340.svg)](https://codeofpaper.com/paper/2606.00340)

Discussion