Source-linked AI summary

Unified Convergence Analysis of Stochastic Momentum Methods for Convex and Non-convex Optimization

Tianbao Yang, Qihang Lin, Zhe Li

arXiv:1604.03257v2math.OCstat.ML

TL;DR

Stochastic momentum methods are widely used in deep-network training, but their convergence analysis, particularly for non-convex optimization, remains underexplored. The paper develops a unified analysis of stochastic heavy-ball and Nesterov methods; it establishes expected 1/t convergence results for convex objective values and non-convex gradients.

  • Problem

    Convergence analysis of stochastic momentum methods, especially for non-convex optimization, is lacking despite their widespread use in deep-network training.

    Source: §1 · p. 2
  • Method

    The paper analyzes stochastic heavy-ball and Nesterov methods in a unified framework that also encompasses gradient methods as special cases.

    Source: §2 · p. 4, §2.1 · p. 4, §5 · p. 11
  • Results

    Expected convergence is of order 1/t for convex objective values and for gradients of non-convex objectives with Lipschitz continuous gradients.

    Source: §1 · p. 2
  • Takeaways & Limitations

    A free parameter links gradient, Nesterov, and heavy-ball methods and may help explain corresponding changes in deep-learning testing-error behavior.

    Source: §1 · p. 2, §5 · p. 12

    The paper cautions that a convergence-bound constant may be an artifact of the analysis, and notes that refined analysis might improve bounds under a slightly different condition.

    Source: §3.1.1 · p. 6

Abstract

from arXiv · show

Recently, {\it stochastic momentum} methods have been widely adopted in training deep neural networks. However, their convergence analysis is still underexplored at the moment, in particular for non-convex optimization. This paper fills the gap between practice and theory by developing a basic convergence analysis of two stochastic momentum methods, namely stochastic heavy-ball method and the stochastic variant of Nesterov's accelerated gradient method. We hope that the basic convergence results developed in this paper can serve the reference to the convergence of stochastic momentum methods and also serve the baselines for comparison in future development of stochastic momentum methods. The novelty of convergence analysis presented in this paper is a unified framework, revealing more insights about the similarities and differences between different stochastic momentum methods and stochastic gradient method. The unified framework exhibits a continuous change from the gradient method to Nesterov's accelerated gradient method and finally the heavy-ball method incurred by a free parameter, which can help explain a similar change observed in the testing error convergence behavior for deep learning. Furthermore, our empirical results for optimizing deep neural networks demonstrate that the stochastic variant of Nesterov's accelerated gradient method achieves a good tradeoff (between speed of convergence in training error and robustness of convergence in testing error) among the three stochastic methods.

1. Introduction

Stochastic momentum methods are widely used in deep learning, but their convergence analysis—especially for non-convex optimization—remains underexplored. The paper analyzes stochastic heavy-ball and Nesterov methods in a unified framework that connects them with stochastic gradient methods.

1. Introduction

  • Stochastic heavy-ball and Nesterov methods are widely used in deep learning, where stochastic updates are more efficient than deterministic counterparts for training on large datasets.The introduction also notes that momentum is useful in deep-network training and more generally in non-convex optimization.Source: §1 · p. 2
  • For convex objectives, the analysis gives expected objective-value convergence of order 1/t; for non-convex objectives with Lipschitz continuous gradients, it gives expected gradient convergence of order 1/t.The paper presents these as basic convergence results for stochastic momentum methods.Source: §1 · p. 2
  • A free parameter in the unified framework connects the gradient method, Nesterov’s accelerated gradient method, and the heavy-ball method, and may help explain similar changes in deep-learning testing-error behavior.The paper identifies further quantitative analysis of momentum’s theoretical impact on generalization error as an open problem.Source: §1 · p. 2
  • The paper distinguishes its analysis from prior non-convex stochastic-gradient work because that work does not cover stochastic heavy-ball and is hard to explain within a momentum-method framework.Analyzing stochastic momentum with variance-reduced gradients for non-convex finite-sum problems is left for future work.Source: §1 · p. 2

2. Momentum Methods and their Stochastic variants

The paper reviews stochastic heavy-ball and Nesterov methods, then places them alongside gradient methods in a unified momentum framework. In that framework, the auxiliary sequence’s step size distinguishes the methods and recovers them as special cases.

2. Momentum Methods and their Stochastic variants

  • The paper motivates a unified treatment because the apparent difference between heavy-ball and Nesterov updates—the point where the gradient is evaluated—does not by itself provide the framework used for their joint analysis.The paper instead presents a unified view of the two methods.Source: §2 · p. 3
  • Stochastic heavy-ball and Nesterov updates replace the objective gradient or subgradient with an unbiased stochastic gradient or subgradient.When the momentum constant β is zero, both methods reduce to the gradient method.Source: §2 · p. 4

2.1. A Unified View of Stochastic Momentum Methods

  • Unified momentum (UM) places gradient, Nesterov, and heavy-ball methods in one framework, with the auxiliary sequence’s step size distinguishing their updates.The framework’s stochastic version is SUM; heavy-ball uses a zero auxiliary step, Nesterov uses the same step size as the main sequence, and the gradient method uses a larger one.Source: §2.1 · p. 4

3. Unified Convergence Analysis for Convex and Non-convex Optimization

This section presents basic convergence results and their analysis for stochastic momentum methods. It uses G_k to denote a stochastic gradient or stochastic subgradient.

3. Unified Convergence Analysis for Convex and Non-convex Optimization

  • The section’s focus is basic convergence results and analysis for stochastic momentum methods.It first states the main results and then presents the analysis.Source: §3 · p. 5
  • The section uses G_k to denote a stochastic gradient or stochastic subgradient.The passage identifies G_k as G(x_k; ξ_k).Source: §3 · p. 5
  • The analysis covers stochastic momentum methods, with the results stated before the analysis is presented.Source: §3 · p. 5

3.1. Main results

The section gives convex and non-convex convergence bounds for SUM variants, with stochastic-subgradient variation and variant-dependent terms distinguishing the results.

3.1.1. Convex Optimization

  • Theorem 1 gives a convex convergence bound for averaged iterates under bounded stochastic-gradient variance and bounded subgradients.The stated average is formed from x_0 through x_t, and x* is an optimal solution.Source: §3.1.1 · p. 6
  • For different variants of SUM, convergence bounds differ only by a constant factor 1 + 2sβ in the third term; the authors call this an analysis artifact, not evidence that SNAG or SG is worse than SHB.A refined analysis might achieve better convergence for SNAG, or more generally SUM when sβ ≥ 1/2, under a slightly different condition.Source: §3.1.1 · p. 6
  • For sβ≥1/2, Theorem 2's variation term V_t is at most 2M(t+1) in the worst case, while V_t=o(t) permits better convergence.The worst-case bound has a similar order to Theorem 1.Source: §3.1.1 · p. 6

3.1.2. Non-convex Optimization

  • Under non-convex L-smoothness and bounded stochastic-gradient noise and gradients, Theorem 3's variant term is Lβ² for SHB, Lβ⁴ for SNAG, and 0 for SG.Theorem 3 analyzes all variants using the same step size.Source: §3.1.2 · pp. 6–7
  • For non-convex optimization, Theorem 4 allows larger initial step sizes for SG and SNAG than for SHB.The paper's deep-learning experiments also demonstrate this point.Source: §3.1.2 · p. 7

3.2. Analysis

The analysis derives the stated convergence results by summing inequalities and applying the selected step size, while later proofs use lemmas and a related argument for the non-convex cases.

3.2.1. Proof of Thereom 1

  • Theorem 1's proof sums the inequalities and then substitutes the selected step size to complete the bound.The proof identifies z_0 with x_0.Source: §3.2.1 · pp. 7–8

3.2.2. Proof of Theorem 2

  • For Theorem 2, the proof continues from the Theorem 1 argument, applies an inequality valid for k≥0, and takes expectations.It uses sβ>1/2 and the bound ∥G_k∥≤M.Source: §3.2.2 · p. 8

3.2.3. Proof of Theorem 3

  • Theorem 3's proof introduces lemmas for z_k=x_k+p_k, combines them, and sums inequalities to bound expected squared gradient norms.The proof then uses z_0=x_0.Source: §3.2.3 · pp. 8–9

3.2.4. Proof of Theorem 4

  • Theorem 4 uses a modified lemma and a proof analysis similar to Theorem 3.The lemma again uses z_k=x_k+p_k.Source: §3.2.4 · p. 9

4. Empirical Studies

Across CIFAR-10 and CIFAR-100, the methods show similar training-error convergence but differ in testing-error oscillation. SNAG has the best testing performance on CIFAR-100, while varying SUM’s parameter changes the testing-error behavior.

Experimental setup

  • The CIFAR experiments compare SHB, SNAG, and SG on the same CNN with shared initialization, minibatch size 128, momentum β = 0.9, and weight regularization 0.0005.The study focuses on optimization rather than state-of-the-art prediction performance; step sizes are decreased when testing performance saturates.Source: §4 · p. 10

CIFAR-100 results

  • On CIFAR-100, the three methods have similar training-error convergence speed but differ in testing-error oscillation, while SNAG achieves the best prediction performance on the testing data.Source: §4 · p. 10

CIFAR-10 results

  • On CIFAR-10, testing-error oscillation decreases from SG to SNAG to SHB, while all three converge similarly in training error at step size 0.001.SG and SNAG also allow a larger initial step size of 0.01, yielding faster training-error convergence without obvious loss in testing performance.Source: §4 · p. 10, Figure 2 · p. 11

SUM variants

  • For CIFAR-100, reducing SUM’s s from 10 to 0 decreases testing-error oscillation, while s = 2 gives a slightly better testing-error solution.Training-error convergence is similar across the tested values, with s = 10 performing slightly worse.Source: §4 · p. 11

5. Conclusion

The paper presents a unified momentum framework covering heavy-ball, Nesterov accelerated gradient, gradient descent, and their stochastic variants. It reports basic convergence results for stochastic momentum methods and identifies an open question about generalization error.

Unified framework

  • The framework subsumes heavy-ball, Nesterov accelerated gradient, gradient descent, and their stochastic variants as special cases.Source: §5 · p. 11

Convergence results

  • The paper establishes basic convergence results for stochastic momentum methods in convex and non-convex optimization.Source: §5 · p. 11

Unified framework

  • The framework locates the methods’ difference in the momentum term between consecutive auxiliary points, the step size used to compute the auxiliary sequence.Source: §5 · p. 12

Open problem

  • The paper leaves open how to quantitatively analyze the effect of different momentum terms on deep-learning generalization-error convergence.Source: §5 · p. 12

Proof of Lemma 1

The proof defines its expectation notation and noise term, then uses the recursion and auxiliary sequence to derive an inequality under convexity and boundedness assumptions.

  • E_k denotes expectation over randomness through ξ_k, while E_{k|k−1} conditions on ξ_1 through ξ_{k−1}.Source: Proof of Lemma 1 · p. 14
  • The proof defines δ_k = G_k − ∂f(x_k) and applies recursion (12) with p_k from (14) for x ∈ R^d and k ≥ 1.Source: Proof of Lemma 1 · p. 14
  • Convexity and boundedness justify the inequality, which the proof extends to k = 0 by setting x_{−1} = x_0.Source: Proof of Lemma 1 · p. 15

Proof of Lemma 2

The proof invokes smoothness of f and then takes expectations on both sides.

Proof of Lemma 3

The proof recalls recursion (13), sets v0 = 0 and defines α̂ = α((1 − β)s − 1), then proceeds by induction.

  • The proof begins by recalling the recursion in (13).Source: Proof · p. 16
  • With v0 = 0 and α̂ = α((1 − β)s − 1), the proof proceeds by induction.Source: Proof · p. 16

Proof of Lemma 4

The proof follows the analysis used in the proof of Lemma 2.

Loading 1604.03257v2…