Lune

NeurIPS2022Top-tier venue

Surprising Instabilities in Training Deep Networks and a Theoretical Analysis

Yuxin Sun, Dong Lao, Ganesh Sundaramoorthi, Anthony J. Yezzi

Abstract

We discover restrained numerical instabilities in current training practices of deep networks with stochastic gradient descent (SGD), and its variants. We show numerical error (on the order of the smallest floating point bit and thus the most extreme or limiting numerical perturbations induced from floating point arithmetic in training deep nets can be amplified significantly and result in significant test accuracy variance (sensitivities), comparable to the test accuracy variance due to stochasticity in SGD. We show how this is likely traced to instabilities of the optimization dynamics that are restrained, i.e., localized over iterations and regions of the weight tensor space. We do this by presenting a theoretical framework using numerical analysis of partial differential equations (PDE), and analyzing the gradient descent PDE of convolutional neural networks (CNNs). We show that it is stable only under certain conditions on the learning rate and weight decay. We show that rather than blowing up when the conditions are violated, the instability can be restrained. We show this is a consequence of the non-linear PDE associated with the gradient descent of the CNN, whose local linearization changes when over-driving the step size of the discretization, resulting in a stabilizing effect. We link restrained instabilities to the recently discovered Edge of Stability (EoS) phenomena, in which the stable step size predicted by classical theory is exceeded while continuing to optimize the loss and still converging. Because restrained instabilities occur at the EoS, our theory provides new insights and predictions about the EoS, in particular, the role of regularization and the dependence on the network complexity. 1

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Why ReLU? A Bit-Model Dichotomy for Deep Network Training cites On the Hardness of Training Deep Neural Networks Discretely
  • Gradient Descent on Neural Networks Typically Occurs at the Edge of Stability cites The Break-Even Point on Optimization Trajectories of Deep Neural Networks
  • Understanding the unstable convergence of gradient descent cites Gradient Descent on Neural Networks Typically Occurs at the Edge of Stability
  • Analyzing Sharpness along GD Trajectory: Progressive Sharpening and Edge of Stability cites Gradient Descent on Neural Networks Typically Occurs at the Edge of Stability
  • Analyzing Sharpness along GD Trajectory: Progressive Sharpening and Edge of Stability cites The Break-Even Point on Optimization Trajectories of Deep Neural Networks
  • Analyzing Sharpness along GD Trajectory: Progressive Sharpening and Edge of Stability cites Understanding the unstable convergence of gradient descent
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Bounded and Unbiased Composite Differential PrivacyKai Zhang, Yanjun Zhang, Ruoxi Sun, Pei-Wei Tsai et al.S&P 2024 · 54 citations
  2. Stabilizing the Optimization of Neural Signed Distance Functions and Finer Shape RepresentationHuizong Yang, Yuxin Sun, Ganesh Sundaramoorthi, Anthony J. YezziNeurIPS 2023 · 25 citations
  3. Understanding Adam Requires Better Rotation Dependent AssumptionsTianyue H. Zhang, Lucas Maes, Alan Milligan, Alexia Jolicoeur-Martineau et al.NeurIPS 2025 · 11 citations
  4. Why ReLU? A Bit-Model Dichotomy for Deep Network TrainingIlan Doron-Arad, Elchanan MosselICML 2026
  5. On the Hardness of Training Deep Neural Networks DiscretelyIlan Doron-AradAAAI 2025

Builds on6

  1. The Break-Even Point on Optimization Trajectories of Deep Neural NetworksStanislaw Jastrzebski, Maciej Szymczak, Stanislav Fort, Devansh Arpit et al.ICLR 2020 · 198 citations
  2. Understanding the unstable convergence of gradient descentKwangjun Ahn, Jingzhao Zhang, Suvrit SraICML 2022 · 89 citations
  3. Analyzing Sharpness along GD Trajectory: Progressive Sharpening and Edge of StabilityZixuan Wang, Zhouzi Li, Jian LiNeurIPS 2022 · 71 citations
  4. Stabilizing the Optimization of Neural Signed Distance Functions and Finer Shape RepresentationHuizong Yang, Yuxin Sun, Ganesh Sundaramoorthi, Anthony J. YezziNeurIPS 2023 · 25 citations
  5. Gradient Descent on Neural Networks Typically Occurs at the Edge of StabilityJeremy Cohen, Simran Kaur, Yuanzhi Li, J. Zico Kolter et al.ICLR 2021 · 22 citations

Related papers

  1. Understanding Edge-of-Stability Training Dynamics with a Minimalist ExampleXingyu Zhu, Zixuan Wang, Xiang Wang, Mo Zhou et al.ICLR 2023 · 1 citation
  2. Understanding the Evolution of the Neural Tangent Kernel at the Edge of StabilityKaiqi Jiang, Jeremy Cohen, Yuanzhi LiNeurIPS 2025 · 8 citations
  3. Variational Learning Finds Flatter Solutions at the Edge of StabilityAvrajit Ghosh, Bai Cong, Rio Yokota, Saiprasad Ravishankar et al.NeurIPS 2025 · 2 citations
  4. Gradient Descent Monotonically Decreases the Sharpness of Gradient Flow Solutions in Scalar Networks and BeyondItai Kreisler, Mor Shpigel Nacson, Daniel Soudry, Yair CarmonICML 2023 · 19 citations
  5. Learning Dynamics of Deep Matrix Factorization Beyond the Edge of StabilityAvrajit Ghosh, Soo Min Kwon, Rongrong Wang, Saiprasad Ravishankar et al.ICLR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines