Good regularity creates large learning rate implicit biases: edge of stability, balancing, and catapult

Yuqing Wang, Zhenghao Xu, Tuo Zhao, Molei Tao

TL;DR

When gradient descent is run with large learning rates, it exhibits surprising implicit biases—such as the Edge of Stability (EoS), layer balancing, and loss catapulting. This paper shows that these phenomena are connected manifestations of the same underlying mechanism and are fundamentally governed by the objective function's regularity (its asymptotic growth rate).

What Problem Does This Paper Address?

In deep learning practice, practitioners often employ large learning rates ($h > 2/L$, where $L$ is the local Lipschitz constant of the gradient) because they empirically guide optimizers toward flatter minima that generalize better. Along the way, gradient descent (GD) exhibits exotic dynamical behaviors:

  • Edge of Stability (EoS): Sharpness (the maximum eigenvalue of the Hessian) progressively rises during training until it stabilizes near the stability boundary $2/h$.
  • Balancing: The norms of weight matrices across layers equalize over time, favoring balanced, flatter solutions.
  • Catapult: The loss initially shoots up (escapes a sharp region) before dropping to a flatter minimum.

Despite extensive empirical observations, theory has lagged behind: When and why do these phenomena occur, and are they connected? Crucially, existing theory rarely explains why some architectures or loss functions display strong EoS and balancing dynamics while others completely fail to do so.

Methods

The authors formulate a unifying property called the degree of regularity: $$\text{dor}(F) = \inf \left\{ n : |F(s)| \le C_1 |s|^n \text{ for } |s| \ge C_0 \right\}$$ A lower $\text{dor}(F)$ signifies "good" (slower/tame) polynomial growth at infinity, whereas a high $\text{dor}(F)$ indicates "poor" regularity.

To rigorously analyze GD dynamics without assuming unrealistic global smoothness, the authors study two minimalist non-convex benchmark objectives $f(x, y) = F(xy)$ designed for a fair comparison (both have global minima at $xy = 1$ and Hessian sharpness $x^2 + y^2$ at the minimizer):

  1. Good regularity ($\text{dor} = 1$): A softplus-like objective, $f_{\text{good}}(x, y) = 2\left(\log(e^{xy-1}+1) + \log(e^{1-xy}+1)\right)$.
  2. Bad regularity ($\text{dor} = 6$): A polynomial objective, $f_{\text{bad}}(x, y) = \frac{1}{18}(1 - (xy)^3)^2$.

The authors prove global convergence theorems under large learning rates ($2/L < h \lesssim 4/L$) and inspect whether EoS and balancing emerge. They then extend this principle to multi-layer neural networks, noting that the overall regularity combines the loss and activation regularities: $\text{dor}(F) = \text{dor}(\mathcal{L}) \times \text{dor}(\sigma)$.

Datasets

  • CIFAR-10 (a subset of 1,000 randomly selected examples, input dimension $32 \times 32 \times 3 = 3072$)
  • MNIST (a subset of 1,000 randomly selected examples, input dimension $28 \times 28 = 784$)

No new benchmark datasets were created; standard vision datasets were used in subsampled regimes to empirically test neural network training dynamics.

Key Insights and Ideas

  • Different tips of the same iceberg: EoS, balancing, and catapult are driven by the same core drive: large learning rates pushing gradient descent away from sharp regions into flatter basins.
  • Regularity governs the dynamics:
  • With good regularity ($\text{dor} = 1$), GD enters an early de-sharpening phase (pre-EoS/catapult), undergoes progressive sharpening, and lands at a limiting sharpness tightly bounded near $2/h$. Layer weights balance automatically.
  • With bad regularity ($\text{dor} = 6$), GD still converges under large step sizes, but enters a state of one-sided stability: limiting sharpness remains bounded well below $1/h$ (far below the $2/h$ edge of stability), and weights do not balance.
  • Architectural control over implicit bias: Because $\text{dor}(F) = \text{dor}(\mathcal{L}) \cdot \text{dor}(\sigma)$, practitioners can directly manipulate large-LR implicit bias through their choice of loss function and activation. For instance, Huber loss + ReLU ($\text{dor} = 1$) induces EoS and balancing, whereas $\ell_2$ loss + cubic ReLU ($\text{dor} = 6$) suppresses them.

Key Results

  • Theorem 1 (Good Regularity): For $f_{\text{good}}$, gradient descent converges to a global minimum $(x_\infty, y_\infty)$ satisfying:
  • Limiting sharpness: $\frac{2}{h} - \tilde{\mathcal{O}}(h) \le S_\infty \le \frac{2}{h}$.
  • De-sharpening (pre-EoS): Sharpness at intermediate step $N$ drops below limiting sharpness: $S_N \lesssim \frac{1}{4}(6-C)S_\infty < S_\infty$.
  • Balancing: $(x_\infty - y_\infty)^2 \le \frac{2}{C}(x_0 - y_0)^2 + 2(x_0y_0 - 1)$.
  • Theorem 2 (Bad Regularity): For $f_{\text{bad}}$, GD converges, but:
  • No EoS: Sharpness stays far below the boundary: $S_\infty \le \frac{1}{h}$.
  • No Balancing: $(x_\infty - y_\infty)^2$ is strictly bounded from below, preventing GD from finding flatter, balanced minima.
  • Neural Network Verification: Experiments with 1-hidden-layer networks on MNIST and CIFAR-10 confirmed that Huber + ReLU yielded progressive sharpening to $2/h$ and balanced weights $\|W_1\|_F \approx \|W_2\|_F$, while $\ell_2$ + cubic ReLU showed flat sharpness trajectories far below $2/h$ and diverging weight gaps.

Limitations and Future Work

  • Simplified Theoretical Models: The mathematical proofs focus on 2D scalar/matrix-factorization-style objectives ($f(x, y) = F(xy)$). While the intuitions transfer to neural nets empirically, formal proofs for deep, multi-layer architectures remain an open challenge.
  • Full-Batch GD vs. SGD: The theoretical analysis and experiments focus on full-batch gradient descent without momentum or weight decay. Incorporating mini-batch stochastic noise and common optimizers (e.g., Adam) is left for future research.

Summary updated

BibTeX
@inproceedings{wang2023good,
  author = {Yuqing Wang and Zhenghao Xu and Tuo Zhao and Molei Tao},
  title = {{Good regularity creates large learning rate implicit biases: edge of stability, balancing, and catapult}},
  booktitle = {M3L @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=6O15A3h2yl},
}

Loading related content...

Figure