NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Demystifying the Myths and Legends of Nonconvex Convergence of SGD

Aritra Dutta, El houcine Bergou, Soumia Boucherouite, Nicklas Werge, Melih Kandemir, Xin Li · Submission to ICLR 2024 · Withdrawn

TL;DR

Existing theory for stochastic gradient descent (SGD) on nonconvex problems only guarantees that some iterate among all $T$ iterations is an $\epsilon$-stationary point, leaving a gap with practical machine learning where practitioners routinely return the very last iterate. This paper proves that $\epsilon$-stationary points are guaranteed to exist within the final tail of iterates, and that their density in the tail approaches 1 as $T \to \infty$ at the optimal $O(1/\sqrt{T})$ rate.

What Problem Does This Paper Address?

In convex optimization, the convergence of the final iterate of SGD is well established. For nonconvex objectives (such as deep neural networks), classical theory tells a much weaker story: standard convergence bounds only show that the minimum gradient norm over all $T$ steps approaches zero ($\min_{t \in [T]} \mathbb{E}[\|\nabla F(x_t)\|] \to 0$), or that an iterate randomly sampled from history is near-stationary.

This theoretical narrative fails to explain common practice:

  1. Why do practitioners almost universally pick the last iterate of SGD rather than a random historic checkpoint?
  2. Why does running SGD for more iterations empirically improve solution quality if the theoretical guarantee is merely that a good point existed somewhere along the path?

The authors aim to bridge this theory-practice gap by analyzing the concentration of near-stationary points specifically in the "tail" (the final $\eta T$ steps) of the SGD trajectory.

Methods

Rather than analyzing the global minimum over all steps $t \in [T]$, the authors decompose standard descent recurrences under the Expected Smoothness condition (a weak second-moment bound on stochastic gradients) into early iterates and tail iterates:

  • Tail-Iterate Bounds: By splitting the unrolled recurrence at step $k = (1 - \eta)T$ for any fraction $\eta \in (0, 1]$, they lower-bound the sum of squared gradient norms over the final $\eta T$ iterations.
  • Density Quantification: The authors track the set of $\epsilon$-stationary points in the tail, $S_{\epsilon, \eta} = \{t \in [(1-\eta)T, T] : \mathbb{E}[\|\nabla F(x_t)\|^2] \le \epsilon\}$, and lower-bound the fraction of good steps, $|S_{\epsilon, \eta}| / (\eta T)$.
  • Stepsize Regimes: They provide explicit bounds for both constant learning rates ($\gamma \sim 1/\sqrt{T}$) and decreasing schedules ($\gamma_t = \gamma_0/\sqrt{t+1}$).

Datasets

The authors evaluated their claims on standard nonconvex optimization benchmarks:

  • LIBSVM a1a dataset ($n = 1{,}605$ samples, $d = 123$ features): Evaluated on smooth logistic regression with a nonconvex penalty ($\lambda = 0.5$).
  • MNIST ($n = 42{,}000$ samples): Evaluated on a nonconvex, nonsmooth feed-forward neural network (FNN) with one hidden layer (256 ReLU units) and a 10-class softmax output under cross-entropy loss.

No new benchmark datasets were introduced.

Key Insights and Ideas

  • Stationary Points Flock to the Tail: For any chosen fraction $\eta \in (0, 1]$, an $\epsilon$-stationary point is guaranteed to appear in the final $\eta T$ iterations for sufficiently large $T$, maintaining the optimal $O(1/\sqrt{T})$ convergence rate without extra structural assumptions.
  • Tail Density Approaches 100%: Crucially, the proportion of iterates in the tail that are $\epsilon$-stationary satisfies: $$\frac{|S_{\epsilon, \eta}|}{\eta T} \ge 1 - O\left(\frac{1}{\sqrt{T}}\right)$$ As training runs longer, the tail is not merely sprinkled with a few stationary points—it becomes almost entirely composed of them. This rigorously justifies taking the final iterate.

  • Demystifying Myths:

  • Descent Inequality Limits: You cannot prove convergence for a fixed constant window from the end ($k = T - C$) using standard descent lemmas; the tail must scale with $T$.
  • Stepsize Over-engineering: Exotic learning rate schedules offer only marginal improvements within standard nonconvex theory, as the primary barrier lies in the fundamental descent inequality itself.

Key Results

  • Tail Guarantee: For constant step size $\gamma = \sqrt{\frac{\ln 3}{(T+1)LA}}$, whenever $T \ge \Omega\left(\max\left\{\frac{1}{\eta}, \frac{1}{\eta^2 \epsilon^2}\right\}\right)$, there exists at least one iterate in $[(1-\eta)T, T]$ satisfying $\mathbb{E}[\|\nabla F(x_t)\|^2] \le \epsilon$.
  • Tail Concentration: In both constant and decreasing step-size settings, $|S_{\epsilon, \eta}|/(\eta T) \to 1$ as $T \to \infty$.
  • Empirical Confirmation: In logistic regression with nonconvex regularization ($\epsilon = 10^{-2}, \eta = 0.2$), experiments confirmed that the tail density $|S_{\epsilon, \eta}|/(\eta T)$ steadily climbs toward 1.0 as iterations increase across various minibatch sizes (e.g., $B=32$ and $B=128$).

Limitations and Future Work

  • Not a Strict Last-Iterate Convergence: The theorem proves high concentration in the final $\eta T$ slice, but does not strictly guarantee that step $t = T$ itself is stationary without altering the SGD algorithm.
  • Descent Lemma Bottleneck: If the tail length is fixed to a constant ($k = T - C$), the convergence rate vanishes under current descent techniques, pointing to the need for fundamentally new descent inequalities.
  • Open Questions Raised:
  • How can practitioners detect the first $\epsilon$-stationary iterate or design adaptive stopping criteria without pre-specifying a fixed budget $T$?
  • Beyond dissipative objectives, what minimal structural conditions on $F$ allow true last-iterate convergence guarantees?

Summary updated

BibTeX
@misc{dutta2023demystifying,
  author = {Aritra Dutta and El houcine Bergou and Soumia Boucherouite and Nicklas Werge and Melih Kandemir and Xin Li},
  title = {{Demystifying the Myths and Legends of Nonconvex Convergence of SGD}},
  year = {2023},
  eprint = {2310.12969},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.12969},
}
Figure