Skip to main content
QUICK REVIEW

[Paper Review] Barzilai-Borwein Step Size for Stochastic Gradient Descent

Conghui Tan, Shiqian Ma|ArXiv.org|May 13, 2016
Stochastic Gradient Optimization TechniquesComputer Science26 references70 citations
TL;DR

This paper proposes SGD-BB and SVRG-BB, which use the Barzilai-Borwein (BB) method to automatically compute step sizes in stochastic gradient descent and its variance-reduced variant. The authors prove linear convergence of SVRG-BB for strongly convex functions and demonstrate through experiments that the methods match or exceed the performance of SGD and SVRG with hand-tuned step sizes on standard machine learning datasets.

ABSTRACT

One of the major issues in stochastic gradient descent (SGD) methods is how to choose an appropriate step size while running the algorithm. Since the traditional line search technique does not apply for stochastic optimization algorithms, the common practice in SGD is either to use a diminishing step size, or to tune a fixed step size by hand, which can be time consuming in practice. In this paper, we propose to use the Barzilai-Borwein (BB) method to automatically compute step sizes for SGD and its variant: stochastic variance reduced gradient (SVRG) method, which leads to two algorithms: SGD-BB and SVRG-BB. We prove that SVRG-BB converges linearly for strongly convex objective functions. As a by-product, we prove the linear convergence result of SVRG with Option I proposed in [10], whose convergence result is missing in the literature. Numerical experiments on standard data sets show that the performance of SGD-BB and SVRG-BB is comparable to and sometimes even better than SGD and SVRG with best-tuned step sizes, and is superior to some advanced SGD variants.

Motivation & Objective

  • To address the challenge of step size selection in stochastic gradient descent (SGD), where fixed or diminishing step sizes are commonly used but suboptimal.
  • To develop an automatic step size selection mechanism that avoids manual tuning and does not rely on line search, which is infeasible in stochastic settings.
  • To extend the Barzilai-Borwein method to stochastic optimization, specifically to SGD and SVRG, resulting in SGD-BB and SVRG-BB.
  • To prove linear convergence of SVRG-BB and, as a by-product, establish the missing linear convergence proof for SVRG with Option I.
  • To evaluate the performance of the proposed methods empirically on logistic regression and SVM problems, comparing them to state-of-the-art SGD variants.

Proposed method

  • The Barzilai-Borwein (BB) method is adapted to compute step sizes in SGD and SVRG by using the difference of iterates and gradients from two consecutive iterations.
  • For each iteration, the BB step size is computed as $ \eta_t = \frac{\|s_{t-1}\|^2}{\langle s_{t-1}, y_{t-1} \rangle} $, where $ s_{t-1} = x_t - x_{t-1} $ and $ y_{t-1} = \nabla f_{i_t}(x_t) - \nabla f_{i_{t-1}}(x_{t-1}) $.
  • A smoothing technique is introduced to stabilize the BB step sizes in SGD-BB, using a moving average of past step sizes to prevent oscillations.
  • The BB method is also extended to the SAG framework, resulting in SAG-BB, which inherits the variance-reduction property while adapting step sizes dynamically.
  • The algorithms are designed to maintain the same per-iteration computational cost as standard SGD and SVRG, ensuring practical efficiency.
  • Theoretical convergence analysis is conducted for SVRG-BB, proving linear convergence under strong convexity and smoothness assumptions.

Experimental results

Research questions

  • RQ1Can the Barzilai-Borwein method be effectively adapted to stochastic gradient descent to automatically compute step sizes without line search?
  • RQ2Does SVRG-BB achieve linear convergence for strongly convex functions, and can this be rigorously proven?
  • RQ3Is the convergence of SVRG with Option I (SVRG-I) provably linear, given that it was previously unproven in the literature?
  • RQ4How does the performance of SGD-BB and SVRG-BB compare to SGD and SVRG with best-tuned step sizes on real-world machine learning problems?
  • RQ5Can the BB step size mechanism be successfully extended to other variance-reduced SGD variants like SAG?

Key findings

  • SVRG-BB converges linearly for strongly convex objective functions, establishing a theoretical guarantee for the proposed method.
  • As a by-product, the paper proves the linear convergence of SVRG with Option I, which was previously missing in the literature.
  • Numerical experiments show that SGD-BB performs comparably to or better than SGD with best-tuned step sizes on logistic regression and SVM tasks.
  • SVRG-BB achieves performance on par with or better than SVRG using the best-tuned step size, demonstrating the effectiveness of automatic step size selection.
  • The smoothing technique stabilizes the step sizes in SGD-BB, enabling them to follow a decreasing trend similar to optimal diminishing step sizes after a few epochs.
  • In comparisons with AdaGrad, SAG with line search (SAG-L), and oLBFGS, SGD-BB and SAG-BB consistently outperform or match these advanced methods in terms of convergence speed and sub-optimality.

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.