Source-linked AI summary
Understanding the unstable convergence of gradient descent
Kwangjun Ahn, Jingzhao Zhang, Suvrit Sra
TL;DR
For general nonconvex costs, it is unclear whether the usual stable-regime step-size condition is required, despite observed unstable convergence in practice. The paper analyzes this regime and characterizes its features, while proving that under stated Hessian conditions, almost all initializations do not converge to stationary points.
Problem
For general nonconvex costs, it is unclear whether the stable-regime step-size condition is required or reasonable.
Source: §1 · p. 1Method
The paper examines causes of unstable convergence and characterizes how loss, iterates, and sharpness evolve with GD updates and relate to one another.
Source: §1 · p. 2Results
Theorem 1 shows that, under Assumption 1, almost all initializations avoid stationary points in X when each has λmin < 0 or λmax > 2η.
Source: §2 · p. 3Takeaways & Limitations
The characterized features provide alternative ways to identify unstable convergence in practice.
Source: §1 · p. 2The characterizations cover constant-step-size (S)GD; how they carry over to adaptive methods such as Adam and RMSProp is unclear.
Source: §6 · p. 9
Abstract
from arXiv · showhide
Most existing analyses of (stochastic) gradient descent rely on the condition that for $L$-smooth costs, the step size is less than $2/L$. However, many works have observed that in machine learning applications step sizes often do not fulfill this condition, yet (stochastic) gradient descent still converges, albeit in an unstable manner. We investigate this unstable convergence phenomenon from first principles, and discuss key causes behind it. We also identify its main characteristics, and how they interrelate based on both theory and experiments, offering a principled view toward understanding the phenomenon.
2. Unstable GD Can’t Reach Stationary Points
Under stated regularity and non-degeneracy assumptions, gradient descent does not converge to stationary points with negative curvature or sharpness above 2/η for almost all initializations. For quadratic costs, an eigenvalue above 2/η causes divergence; the theorem’s conclusion still applies when only one Hessian eigenvalue exceeds that threshold.
2. Unstable GD Can’t Reach Stationary Points
- A quadratic cost diverges under GD if any eigenvalue of P exceeds 2/η; for convex quadratics, this condition is necessary and sufficient.The example confirms convergence below 2/L and divergence above 2/L.Source: §2 · pp. 2–3
- For C2 functions on X, under Assumption 1, GD avoids convergence to any stationary point in X from all but a measure-zero set of initializations, if each has negative minimum curvature or maximum Hessian eigenvalue > 2η.Source: §2 · p. 3
- Negative curvature or an eigenvalue above 2/η makes the GD update Jacobian have an eigenvalue with absolute value greater than one.Consequently, each stationary point has an unstable direction, which underlies the measure-zero convergence result.Source: §2 · p. 3
- The theorem applies even when stationary points are not isolated, and its eigenvalue condition can be relaxed if the open cover includes all stationary points.It excludes convergence even when just one eigenvalue exceeds 2/η.Source: §2 · p. 3
3. How Can Unstable GD “Converge”?
Unstable GD can decrease training loss without converging to sharp stationary points: neural-network landscape structure can trigger instability, while flattening and activation functions can keep iterates from diverging. The section links these mechanisms to non-monotonic convergence in the unstable regime.
3.1. What Causes the Unstable Regime
- With weight decay and positive-homogeneous parameters, the loss has no stationary point when those parameters are nonzero; practical normalization can leave stationary points only near norm ε, with sharpness on the order of 1/ε.The authors conclude that a lack of flat, non-trivial stationary points near the GD trajectory can cause instability for practical step sizes.Source: §3.1 · p. 4
3.2. Causes for Convergence
- For the same unstable step size, applying tanh to a quadratic cost prevents divergence by flattening the landscape away from its minimum.This flattening makes a compact forward-invariant subset near the minimum possible.Source: §3.2 · p. 4
- In a single-neuron example, the linear network diverges, while the tanh network converges to a minimum whose sharpness is approximately 2/η.The authors suggest GD can travel along a valley of minima until it finds a flat enough minimum to stabilize.Source: §3.2 · p. 5
- On CIFAR-10, GD converges with tanh or ReLU activations but diverges without activations.The experiment uses full-batch GD with a fully connected network, two hidden layers of width 200, 5,000 examples, CrossEntropy loss, and η = 2/30.Source: §3.2 · p. 5
- Neural-network activation functions can create a compact forward-invariant set near minima, helping GD converge non-monotonically in the unstable regime.A forward-invariant set S satisfies F(S) ⊆ S for GD dynamics F(θ) = θ − η∇f(θ).Source: §3.2 · pp. 4–5
4. Characteristics of the Unstable Convergence
The section characterizes unstable convergence through loss changes and iterate movement, then relates them to explain relative progress and implications for sharpness. Its findings distinguish unstable behavior from the stable regime and connect it to edge-of-stability observations.
4.1.1. WARM-UP: THE STABLE REGIME
- In the stable-regime experiment, the relative progress ratio stays negative throughout, and the loss curve shows no non-monotonic behavior.The ratio's saturation around −1 was unexplained at first; the authors suspected rapid convergence of the GD trajectory to a single direction.Source: §4.1 · p. 5, §4.1.1 · p. 6
4.1.2. RELATIVE PROGRESS RATIO UNDER UNSTABLE CONVERGENCE
- In the unstable-regime experiment, the relative progress ratio saturates near zero, and larger step sizes appear to speed optimization, but η = 2/10 makes training loss diverge.The authors note that faster optimization under instability does not mean the step size can be increased without limit.Source: §4.1.2 · p. 6
4.2. Characteristics in Iterates Movement
- In the unstable regime, directional smoothness L(θt; η∇f(θt)) saturates around 2/η, indicating that gradient descent exhibits oscillating behavior.Source: §4.2 · p. 7
4.3. Relation between Relative Progress Ratio and Directionl Smoothness
- The single directional-smoothness value represents the weighted average well in Experiment 5, supporting the relation that oscillatory behavior produces a small relative progress ratio.The authors say this relation and experiment suggest that some form of Hessian Lipschitzness holds along the GD trajectory, even if gradient Lipschitzness is not a good neural-network assumption.Source: §4.3 · p. 7
- Under unstable convergence, RP(θt) oscillates near 0: it cannot stay positive because loss would not decrease in the long run, nor stay negative because GD iterates oscillate.Source: §4.3 · p. 8
4.3.1. ADDITIONAL EXPERIMENTS
- With ReLU activations and with two additional hidden layers, the results were largely similar to tanh experiments, and relation (4.3) held in all cases.Source: §4.3.1 · p. 8
4.4. Implications for Sharpness
- When the relative progress ratio oscillates around zero, the maximum sharpness along the iterate segment must frequently exceed 2/η, yielding the part A condition of edge of stability.Part B follows under the additional assumption that the gradient is approximately parallel to the Hessian's largest eigenvector.Source: §4.4 · p. 8
5. Relative Progress for SGD
Because SGD is random and its training loss need not decrease monotonically, the section uses expected relative progress to define its unstable regime. It relates that measure to an SGD analogue of an earlier relation and reports empirical support for the relation on CIFAR-10 networks.
- Because SGD’s randomness prevents monotonic loss decrease, the expected relative progress ratio provides a more transparent way to define its unstable regime.The section introduces this as an extension of the relative-progress approach discussed in Subsection 4.1.Source: §5 · p. 8
- SGD’s expected relative progress ratio is not negative for a majority of iterations, even as loss decreases in the long run, suggesting unstable behavior and echoing Cohen et al. (2021).The authors note that this apparent contradiction was also observed in Cohen et al. (2021, Appendix H; Figures 25 and 26).Source: §5 · p. 9
- The authors establish an SGD analogue of relation (4.3), stated as relation (5.1).The derivation is given in Appendix A.Source: §5 · p. 9
- For CIFAR-10 ReLU experiments at η = 2/50, 2/100, and 2/150, the LHS and RHS of (5.1) are very similar; tanh results are similar.The comparisons are made at the end of each epoch.Source: §5 · p. 9
6. Discussion and Future Directions
The paper identifies characteristics of unstable convergence that contrast sharply with stable convergence and uses them to motivate several future research directions.
Better optimizer?
- Adjacent iterates have nearly opposite gradients in the unstable regime, challenging variance-reduced methods and motivating optimizers designed for this geometry.This implication follows from the paper’s characterization based on directional smoothness.Source: §6 · p. 9
Faster training under unstable convergence?
- Unstable convergence appears to accelerate training-loss convergence, prompting study of whether the relative-progress characterization explains this faster optimization.The observed faster convergence is described as a feature to investigate, not an established explanation.Source: §6 · p. 9
What assumptions are valid for neural network optimization?
- The widespread η < 2 L condition cannot explain unstable convergence; gradient Lipschitzness may be unsuitable for neural networks, while some Hessian Lipschitzness may be valid.The possible role of Hessian Lipschitzness is suggested by Experiment 5.Source: §6 · p. 9
Unstable regime for adaptive methods?
- The characterizations cover only constant-step-size (S)GD, leaving unclear how they extend to adaptive methods such as Adam and RMSProp.Studying adaptive methods could clarify how they differ from (S)GD in neural-network optimization.Source: §6 · p. 9
A. Proof of Theorem 2
The proof derives Theorem 2’s relation by rearranging the preceding expression. For SGD, it follows a similar derivation and takes expectation over the stochastic-gradient randomness.
A. Proof of Theorem 2
- Rearranging the preceding expression yields the relation stated in Theorem 2.Source: A. Proof of Theorem 2 · p. 11
- The SGD case uses a similar derivation.Source: A. Proof of Theorem 2 · p. 11
- Taking expectation over stochastic-gradient randomness yields the desired equation after rearrangement.Source: A. Proof of Theorem 2 · p. 11
Related papers
This paper cites
- Neural Tangent Kernel: Convergence and Generalization in Neural Networks2018
- Wide Neural Networks of Any Depth Evolve as Linear Models Under Gradient Descent2019
- Learning Overparameterized Neural Networks via Stochastic Gradient Descent on Structured Data2018
- Gradient Descent on Neural Networks Typically Occurs at the Edge of Stability2021