A PDE-based Explanation of Extreme Numerical Sensitivities and Edge of Stability in Training Neural Networks
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 1 paper in the map (data through 13 Oct 2026). Builds on 30 of its 59 references that are in the map. First posted on arXiv 4 Jun 2022.
Builds on
30 of 59 references.
References · 30
- 2015Deep Residual Learning for Image Recognitioncited by 51,950
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,321
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,317
- 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,328
- 2018Neural Ordinary Differential Equationscited by 3,750
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,500
- 2017DGM: A deep learning algorithm for solving partial differential equationscited by 676
- 2017Solving high-dimensional partial differential equations using deep learningcited by 550
- 2021Gradient Descent on Neural Networks Typically Occurs at the Edge of Stabilitycited by 419
- 2014SAGA: A Fast Incremental Gradient Method With Support for Non-Strongly Convex Composite Objectivescited by 401
- 2015Deep Learning with Limited Numerical Precisioncited by 372
- 2017Stable Architectures for Deep Neural Networkscited by 340
18 more
- 2017PDE-Net: Learning PDEs from Datacited by 306
- 2015A Differential Equation for Modeling Nesterov's Accelerated Gradient Method: Theory and Insightscited by 205
- 2018Deep Neural Networks Motivated by Partial Differential Equationscited by 187
- 2019Adaptive Gradient Methods with Dynamic Bound of Learning Ratecited by 183
- 2020The Break-Even Point on Optimization Trajectories of Deep Neural Networkscited by 150
- 2022Understanding Gradient Descent on Edge of Stability in Deep Learningcited by 128
- 2016A Variational Perspective on Accelerated Methods in Optimizationcited by 109
- 2017Stochastic gradient descent performs variational inference, converges to limit cycles for deep networkscited by 108
- 2020Towards a Mathematical Understanding of Neural Network-Based Machine Learning: what we know and what we don'tcited by 95
- 2022Understanding the unstable convergence of gradient descentcited by 85
- 2017Non-convex Finite-Sum Optimization Via SCSG Methodscited by 61
- 2015Equilibrated adaptive learning rates for non-convex optimizationcited by 42
- 2022Beyond the Quadratic Approximation: the Multiscale Structure of Neural Network Loss Landscapescited by 42
- 2016A Lyapunov Analysis of Momentum Methods in Optimizationcited by 28
- 2017Deep Relaxation: partial differential equations for optimizing deep neural networkscited by 27
- 2020Analysis of Stochastic Gradient Descent in Continuous Timecited by 24
- 2015Towards stability and optimality in stochastic gradient descentcited by 11
- 2020Channel-Directed Gradients for Optimization of Convolutional Neural Networkscited by 2
Built on by
Citing papers per year: 2024: 1.
1 paper.
- 2024Is Flash Attention Stable?cited by 10
- 2024Is Flash Attention Stable?5 May 2024