Skip to main content
QUICK REVIEW

[Paper Review] When Does Stochastic Gradient Algorithm Work Well?

Lam M. Nguyen, Nam Nguyen|arXiv (Cornell University)|Jan 18, 2018
Stochastic Gradient Optimization TechniquesComputer Science8 references8 citations
TL;DR

This paper introduces a novel assumption on the objective function under which stochastic gradient descent (SGD) with a fixed, large step size achieves improved convergence rates to a neighborhood of the optimal solution. The key contribution is showing that when most component functions have small gradients at the solution (i.e., low variance in stochastic gradients), SGD behaves like full gradient descent, explaining its empirical success in deep learning and classification models.

ABSTRACT

In this paper, we consider a general stochastic optimization problem which is often at the core of supervised learning, such as deep learning and linear classification. We consider a standard stochastic gradient descent (SGD) method with a fixed, large step size and propose a novel assumption on the objective function, under which this method has the improved convergence rates (to a neighborhood of the optimal solutions). We then empirically demonstrate that these assumptions hold for logistic regression and standard deep neural networks on classical data sets. Thus our analysis helps to explain when efficient behavior can be expected from the SGD method in training classification models and deep neural networks.

Motivation & Objective

  • To explain the empirical success of stochastic gradient descent (SGD) with fixed step size in training deep neural networks and classification models.
  • To identify conditions under which SGD achieves fast convergence despite high variance in stochastic gradients.
  • To propose a new theoretical assumption that characterizes when SGD behaves efficiently without variance reduction.
  • To empirically validate that the proposed assumption holds in standard deep learning setups, including logistic regression and DNNs on MNIST, SVHN, CIFAR10, and CIFAR100.
  • To bridge the gap between the practical performance of SGD and theoretical convergence rates by analyzing gradient variance at stationary points.

Proposed method

  • Proposes a new assumption: that 1−ε fraction of component functions have gradients with squared norm below ε at the solution, ensuring low variance in stochastic gradient estimates.
  • Introduces a quantity $ r_t = \frac{\frac{1}{t+1}\sum_{k=0}^{t}\left(\frac{1}{n}\sum_{i=1}^{n}\|\nabla f_i(\mathbf{w}_k) - \nabla f_i(\mathbf{w}_*)\|\right)}{\frac{1}{t+1}\sum_{k=0}^{t}\|F(\mathbf{w}_k)\|^{2}} $ to empirically verify the assumption by monitoring the ratio of gradient deviation to objective value.
  • Uses numerical experiments to estimate $ N $, a bound on $ r_t $, which quantifies the stability of gradient estimates near the solution.
  • Employs standard deep learning architectures (FFN, CNN) and datasets (MNIST, SVHN, CIFAR10, CIFAR100) to test the assumption under Adam and SGD.
  • Applies Lemma 1 to show that increasing minibatch size reduces gradient variance, making the assumption more likely to hold.
  • Analyzes convergence behavior by measuring the percentage $ p_\epsilon $ of component functions with $ \|\nabla f_i(\mathbf{w})\| \leq \epsilon $ at the final solution, indicating low-variance gradient behavior.

Experimental results

Research questions

  • RQ1Under what conditions does SGD with a fixed, large step size converge quickly to a neighborhood of the optimal solution?
  • RQ2Why does SGD often outperform variance-reduction methods in practice despite theoretical sublinear convergence rates?
  • RQ3To what extent do the gradients of individual component functions remain small at the solution in real deep learning models?
  • RQ4How can the behavior of stochastic gradients near stationary points explain the robustness of SGD in nonconvex optimization?
  • RQ5Can a theoretical assumption be formulated that captures the empirical success of SGD without requiring adaptive or diminishing step sizes?

Key findings

  • For logistic regression and standard deep neural networks on MNIST, SVHN, CIFAR10, and CIFAR100, over 99.5% of component functions have gradients below $ \epsilon = 10^{-7} $ at the final solution, confirming the proposed assumption holds empirically.
  • In all tested setups, $ p_\epsilon \geq 99.42\% $ for $ \epsilon = 10^{-7} $, indicating that the majority of component gradients are negligible at convergence.
  • The ratio $ r_t $, which measures the relative deviation of stochastic gradients from their true mean, remains bounded above by a constant across iterations, supporting the validity of the proposed assumption.
  • The value of $ N $, an upper bound on $ r_t $, is estimated to be small (e.g., $ 2.1 \times 10^{-8} $ for MNIST-FFN), indicating stable gradient estimates near the solution.
  • The convergence rate of SGD with fixed step size matches that of full gradient descent when the gradient variance is low, as predicted by the new assumption.
  • Larger minibatch sizes reduce gradient variance, making the condition $ 1 - p_\epsilon \leq \epsilon $ more likely, and in the limit, SGD approaches the behavior of full gradient descent.

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.