arXiv:2610.06120cs.LGOct 2026

Manuscript Offprint

arXiv:2610.06120

Mind the Drift: Diagonal Linear Networks Under Large Learning Rates

Aniket Sanyal, Tom Jacobs, Rebekka Burkholz

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large learning rates can qualitatively change the trajectory of neural network training, often pushing optimization into regimes far from classical gradient-flow behavior. The Edge of Stability (EoS) offers a valuable lens on the dynamics such learning rates induce. We study corresponding dynamics in diagonal linear networks, where we uncover a competition between two distinct implicit biases that jointly determine the sparsity of the recovered solution in regression settings. Complementary to the Gain, which captures the average discretization error accumulated by Gradient Descent relative to Gradient Flow, we derive a closely associated but overlooked quantity: the Drift. Under large learning rates, it describes an imbalance between different discretization errors and represents a systematic shift in the optimization trajectory. While the Gain grows monotonically in certain regimes, and can bias towards denser, flatter interpolators, the impact of the Drift depends on its alignment with potential solutions, which can either counteract or reinforce the effect of the Gain. Consequently, its behavior drives model selection, particularly during early training epochs. To validate our theoretical insights, we introduce an intervention that actively steers the Gain to recover sharper, sparser solutions. Thus, our analysis reveals that large learning rates do not universally hinder the recovery of sparse solutions. On the contrary, they can be harnessed to control the implicit bias of training.

1 Introduction

Large learning rates play an important role in the success of deep learning. In overparameterized models, where many solutions fit the training data, this raises a fundamental question: How does the learning rate influence which solution is selected? For small learning rates, gradient flow provides a useful approximation for understanding the implicit regularization governing this selection. At larger learning rates, however, training can deviate substantially from gradient-flow behavior. Progressive sharpening (Damian et al., 2022) can bring training to the Edge of Stability (Cohen et al., 2021), where sharpness fluctuates around the stability threshold and the loss exhibits persistent oscillations. Understanding how these dynamics affect implicit regularization at large learning rates, requires accounting for the discretization effects of gradient descent relative to gradient flow, that persist throughout training.

These persistent discretization effects can be explicitly characterized in diagonal linear networks. Under gradient flow, the initialization determines the implicit regularizer, which approaches an ℓ1\ell_{1}-bias at small initialization scales and an ℓ2\ell_{2}-bias at large scales (Woodworth et al., 2020). For discrete training, Even et al. (2023) characterize changes to the effective initialization scale through

Figure

Figure 1. A diagonal linear network with learning rate γ=0.3\gamma = 0.3 and 0.4 to show the evolution of the predictor coefficient. The smaller step size does not reach the Edge of Stability regime, while the larger one does. We recover a sparser solution for the former.

the so-called Gain. Under gradient descent, this Gain can accumulate heterogeneously across features, with larger values on support coordinates increasing their relative implicit penalty. Consequently, the resulting bias can favor denser solutions and hinder sparse recovery. Their convergence guarantees, however, require step-size restrictions that do not cover the Edge-of-Stability regime.

At large learning rates, a second effect can overturn the preference suggested by Gain alone and restore sparse recovery. We isolate this effect as the Drift, which captures the contribution of the shifted reference point in the implicit regularizer. While Gain changes the relative penalties on features, Drift introduces a directional preference among interpolating solutions. When suitably aligned, it can offset the penalty on support coordinates and favor a sharper, sparser solution over a flatter, denser one. Understanding solution selection at large learning rates therefore requires understanding the competition between Gain and Drift. This leads to the central question of this work: How do Gain and Drift interact during training, and when does their competition favor sparse recovery in selecting a final solution?

Concretely, we show that their relative influence changes across phases associated with the Edge of Stability regime. Under progressive sharpening, the Drift can accumulate significantly. In the oscillatory regime, it saturates, while the Gain can still accumulate. At sufficiently large learning rates, the Drift can compete with the Gain by shifting the preference among interpolating solutions, either promoting or hindering sparse recovery. Note that even in a minimal sparse regression problem (Fig. 1) gradient descent with large learning rates can recover sharper, sparser solutions despite the opposing bias of Gain.

This perspective also suggests a way to control solution selection. We introduce a modification of gradient descent that changes how the Gain is distributed across coordinates, using only the observed gradients. In our sparse-recovery setting, this intervention counteracts the relative penalization of support coordinates and improves recovery where ordinary gradient descent would favor a denser solution. This shows that large learning rates need not uniformly undermine sparse recovery. Their effect depends on the joint evolution and alignment of the discretization corrections.

References (79)