Skip to main content
QUICK REVIEW

[Paper Review] Gradient correlation is a key ingredient to accelerate SGD with momentum

Julien Hermant, Marien Renaud|arXiv (Cornell University)|Oct 9, 2024
Radiation Therapy and DosimetryMedicine1 citations
TL;DR

This paper identifies gradient correlation—quantified via the RACOGA measure—as a critical factor enabling acceleration in Stochastic Nesterov Accelerated Gradient (SNAG) over standard SGD in convex settings. By linking positive gradient correlation to the Strong Growth Condition (SGC), the authors theoretically justify SNAG's faster convergence and validate through experiments that SNAG avoids low-curvature, anti-correlated gradient traps that stall deterministic methods.

ABSTRACT

Empirically, it has been observed that adding momentum to Stochastic Gradient Descent (SGD) accelerates the convergence of the algorithm. However, the literature has been rather pessimistic, even in the case of convex functions, about the possibility of theoretically proving this observation. We investigate the possibility of obtaining accelerated convergence of the Stochastic Nesterov Accelerated Gradient (SNAG), a momentum-based version of SGD, when minimizing a sum of functions in a convex setting. We demonstrate that the average correlation between gradients allows to verify the strong growth condition, which is the key ingredient to obtain acceleration with SNAG. Numerical experiments, both in linear regression and deep neural network optimization, confirm in practice our theoretical results.

Motivation & Objective

  • To resolve the longstanding theoretical gap in explaining why momentum accelerates SGD in practice, despite skepticism in the literature.
  • To characterize the conditions under which Stochastic Nesterov Accelerated Gradient (SNAG) achieves acceleration over SGD in convex, interpolated settings.
  • To identify gradient correlation as a key enabler of the Strong Growth Condition (SGC), which is necessary for SNAG acceleration.
  • To analyze the impact of batch size on SNAG performance through the lens of gradient correlation.
  • To provide new almost sure convergence rates for SNAG under SGC, extending prior results.

Proposed method

  • Introduce RACOGA (Relative Average Correlation of Gradients) as a measure of average gradient correlation across data points.
  • Prove that positive RACOGA values imply satisfaction of the Strong Growth Condition (SGC), a known accelerator for SNAG.
  • Derive theoretical bounds linking RACOGA to convergence rates of SNAG, showing that higher gradient correlation improves acceleration.
  • Analyze the effect of batch size on RACOGA and thus on SNAG performance, showing that larger batches can enhance correlation and acceleration.
  • Use numerical experiments on linear regression and deep neural networks to validate that SNAG outperforms SGD when RACOGA is positive.
  • Demonstrate via trajectory visualization that SNAG avoids low-curvature, anti-correlated gradient regions where GD and NAG get trapped.

Experimental results

Research questions

  • RQ1Can gradient correlation explain the empirical acceleration of SNAG over SGD in convex optimization?
  • RQ2Under what conditions does the Strong Growth Condition (SGC) hold, and how is it related to gradient correlation?
  • RQ3How does batch size influence the correlation between gradients and thus the performance of SNAG?
  • RQ4Why does SNAG avoid getting trapped in low-curvature, anti-correlated gradient regions where deterministic methods fail?
  • RQ5Can RACOGA serve as a practical indicator of SNAG's potential acceleration in real-world optimization?

Key findings

  • RACOGA provides a new characterization of the Strong Growth Condition (SGC), showing that positive average gradient correlation implies SGC satisfaction.
  • Theoretical analysis confirms that higher RACOGA values lead to faster convergence rates for SNAG, especially under interpolation.
  • Numerical experiments show that SNAG outperforms SGD in both linear regression and deep neural network training when RACOGA is positive.
  • Trajectory visualizations demonstrate that SNAG avoids low-curvature, anti-correlated gradient regions where GD and NAG get trapped, due to stochasticity.
  • The paper establishes new almost sure convergence rates for SNAG under SGC, extending prior results by Vaswani et al. (2019) and Gupta et al. (2023).
  • Theoretical and empirical results show that batch size affects RACOGA, with larger batches increasing gradient correlation and potentially enhancing SNAG acceleration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.