Large Stepsize Gradient Descent for Non-Homogeneous Two-Layer Networks: Margin Improvement and Fast Optimization
Yuhang Cai, Jingfeng Wu, Song Mei, Michael Lindsey, Peter L. Bartlett
TL;DR
The paper analyzes large-stepsize gradient descent for non-homogeneous two-layer networks under the logistic loss, revealing a two-phase training dynamic: an initial edge-of-stability phase with oscillatory empirical risk, followed by a stable phase where risk decreases and margins grow. It proves that the stable phase emerges once the sublevel risk falls below a stepsize-dependent threshold, and that the normalized margin increases nearly monotonically in this phase, indicating an implicit bias toward margin maximization for non-homogeneous predictors. Under linear separability and bounded activation derivatives, the first phase ends in finite time and the authors show a faster $\tilde{O}(1/t^2)$ decay in empirical risk with large stepsizes, contrasted with $\Omega(1/t)$ for monotone descent. The theory extends margin and optimization results beyond linear and mean-field/NTK regimes to networks of any width, and is corroborated by experiments on CIFAR-10 subsets and XOR data, demonstrating margin growth and accelerated convergence with large learning rates. Overall, the work provides a unified framework for understanding and leveraging large stepsize GD in training non-homogeneous neural networks, with practical implications for training efficiency and generalization.
Abstract
The typical training of neural networks using large stepsize gradient descent (GD) under the logistic loss often involves two distinct phases, where the empirical risk oscillates in the first phase but decreases monotonically in the second phase. We investigate this phenomenon in two-layer networks that satisfy a near-homogeneity condition. We show that the second phase begins once the empirical risk falls below a certain threshold, dependent on the stepsize. Additionally, we show that the normalized margin grows nearly monotonically in the second phase, demonstrating an implicit bias of GD in training non-homogeneous predictors. If the dataset is linearly separable and the derivative of the activation function is bounded away from zero, we show that the average empirical risk decreases, implying that the first phase must stop in finite steps. Finally, we demonstrate that by choosing a suitably large stepsize, GD that undergoes this phase transition is more efficient than GD that monotonically decreases the risk. Our analysis applies to networks of any width, beyond the well-known neural tangent kernel and mean-field regimes.
