Skip to main content
QUICK REVIEW

[Paper Review] SGD: General Analysis and Improved Rates

Robert M. Gower, Nicolas Loizou|arXiv (Cornell University)|Jan 27, 2019
Stochastic Gradient Optimization TechniquesComputer Science41 references41 citations
TL;DR

The paper introduces a general theorem for SGD under arbitrary sampling via an expected smoothness framework, derives exact stepsize formulas and optimal minibatch sizes, and proves linear convergence without requiring convexity of all components.

ABSTRACT

We propose a general yet simple theorem describing the convergence of SGD under the arbitrary sampling paradigm. Our theorem describes the convergence of an infinite array of variants of SGD, each of which is associated with a specific probability law governing the data selection rule used to form mini-batches. This is the first time such an analysis is performed, and most of our variants of SGD were never explicitly considered in the literature before. Our analysis relies on the recently introduced notion of expected smoothness and does not rely on a uniform bound on the variance of the stochastic gradients. By specializing our theorem to different mini-batching strategies, such as sampling with replacement and independent sampling, we derive exact expressions for the stepsize as a function of the mini-batch size. With this we can also determine the mini-batch size that optimizes the total complexity, and show explicitly that as the variance of the stochastic gradient evaluated at the minimum grows, so does the optimal mini-batch size. For zero variance, the optimal mini-batch size is one. Moreover, we prove insightful stepsize-switching rules which describe when one should switch from a constant to a decreasing stepsize regime.

Motivation & Objective

  • Motivate a universal convergence framework for SGD beyond uniform variance assumptions.
  • Introduce the expected smoothness concept to relate sampling schemes with function smoothness.
  • Provide a generic convergence theorem valid for arbitrary sampling distributions.
  • Derive exact stepsize expressions and optimal mini-batch sizes.
  • Show conditions under which SGD matches gradient descent as batch size grows.

Proposed method

  • Reformulate SGD with a sampling vector v drawn from a distribution D with E[v_i]=1, yielding an unbiased estimator f_v(x) of f(x).
  • Adopt the expected smoothness assumption (ES(L)) linking E[||∇f_v(x)−∇f_v(x*)||^2] to f(x)−f(x*) via a constant L.
  • Bound gradient noise via finite σ^2 = E[||∇f_v(x*)||^2], allowing convergence analysis without uniform gradient variance bounds.
  • Prove Theorem 3.1: with a constant step γ ∈ (0, 1/(2L)], SGD converges linearly up to an additive noise term, i.e., E||x^k−x*||^2 ≤ (1−γμ)^k||x^0−x*||^2 + 2γσ^2/μ.
  • Provide a decreasing stepsize schedule (Theorem 3.2) achieving improved rates, with explicit formula for γ^k.
  • Bound L and σ^2 for common samplings (Theorem 3.6, Theorem 3.9) and discuss independent, τ-nice, and partition samplings.
  • Discuss optimal mini-batch size by plugging L and σ into the iteration complexity, yielding closed-form criteria (Section 4).
  • Relate the analysis to zero-gradient-noise over-parameterized settings, recovering known GD rates when the batch size is n.
  • Outline practical importance sampling schemes for single-element and minibatch settings (Section 5).

Experimental results

Research questions

  • RQ1How can SGD be analyzed under arbitrary data sampling distributions using a single generic framework?
  • RQ2How do the expected smoothness constant L and gradient noise σ^2 depend on the sampling scheme, and how can we compute or bound them for common samplings?
  • RQ3What is the optimal mini-batch size and learning rate schedule that minimizes overall complexity for different sampling schemes?
  • RQ4Under what conditions does SGD attain the gradient descent rate (as batch size equals n) and how does variance affect convergence?

Key findings

  • SGD converges linearly under μ-quasi-strong convexity with an additive noise floor proportional to γσ^2/μ, under the ES(L) framework.
  • The analysis yields explicit stepsize choices that depend on the mini-batch size and sampling method, including a decreasing stepsize regime with provable rates.
  • Closed-form bounds for the expected smoothness L and gradient noise σ^2 are derived for independent sampling, τ-nice sampling, single-element sampling, and partition sampling, enabling practical parameter tuning.
  • When the gradient noise σ^2 = 0, the framework recovers the gradient-descent rate L/μ up to constants, and as mini-batch size grows to n, the method approaches the GD rate.
  • The optimal mini-batch size and stepsize balance noise and smoothness, and the results explain why larger mini-batches help up to an optimal point, then the advantage saturates.
  • Experiments corroborate the theoretical claims across ridge regression, logistic regression, and PCA settings, demonstrating the practicality of the ES framework.

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.