Skip to main content
QUICK REVIEW

[Paper Review] Stochastic Gradient Descent, Weighted Sampling, and the Randomized Kaczmarz algorithm

Deanna Needell, Nathan Srebro|arXiv (Cornell University)|Oct 21, 2013
Stochastic Gradient Optimization TechniquesComputer Science40 references33 citations
TL;DR

This paper establishes a tighter convergence guarantee for stochastic gradient descent (SGD) on smooth, strongly convex problems by showing linear dependence on the condition number $L/\mu$ instead of quadratic, via importance sampling (weighted sampling). It connects SGD to the randomized Kaczmarz algorithm, enabling improved convergence rates and introducing a modified Kaczmarz method that converges to the true least squares solution with exponential rate using partially biased sampling.

ABSTRACT

We obtain an improved finite-sample guarantee on the linear convergence of stochastic gradient descent for smooth and strongly convex objectives, improving from a quadratic dependence on the conditioning $(L/μ)^2$ (where $L$ is a bound on the smoothness and $μ$ on the strong convexity) to a linear dependence on $L/μ$. Furthermore, we show how reweighting the sampling distribution (i.e. importance sampling) is necessary in order to further improve convergence, and obtain a linear dependence in the average smoothness, dominating previous results. We also discuss importance sampling for SGD more broadly and show how it can improve convergence also in other scenarios. Our results are based on a connection we make between SGD and the randomized Kaczmarz algorithm, which allows us to transfer ideas between the separate bodies of literature studying each of the two methods. In particular, we recast the randomized Kaczmarz algorithm as an instance of SGD, and apply our results to prove its exponential convergence, but to the solution of a weighted least squares problem rather than the original least squares problem. We then present a modified Kaczmarz algorithm with partially biased sampling which does converge to the original least squares solution with the same exponential convergence rate.

Motivation & Objective

  • To improve the finite-sample convergence rate of stochastic gradient descent (SGD) for smooth and strongly convex objectives.
  • To demonstrate that importance sampling (weighted sampling) is essential for further improving convergence beyond standard uniform sampling.
  • To establish a formal connection between SGD and the randomized Kaczmarz algorithm to transfer insights between the two methods.
  • To develop a modified Kaczmarz algorithm that converges to the true least squares solution with exponential rate using partially biased sampling.
  • To provide tighter theoretical bounds on iteration complexity that depend linearly on $L/\mu$ rather than quadratically.

Proposed method

  • Reformulate the randomized Kaczmarz algorithm as an instance of SGD on a weighted least squares objective.
  • Introduce importance sampling by reweighting the sampling distribution based on row norms (or Lipschitz constants) to minimize variance in gradient estimates.
  • Analyze the convergence of SGD under weighted sampling, deriving a bound with linear dependence on the condition number $L/\mu$.
  • Propose a modified Kaczmarz method with partially biased sampling that ensures convergence to the original least squares solution, not a weighted one.
  • Use the connection between SGD and Kaczmarz to transfer convergence guarantees, proving exponential convergence for both methods under appropriate sampling.
  • Establish theoretical bounds on expected suboptimality $\mathbb{E}\|\mathbf{x}_k - \mathbf{x}_\star\|^2$ that scale logarithmically in $1/\varepsilon$.

Experimental results

Research questions

  • RQ1Can the convergence rate of SGD for smooth and strongly convex problems be improved beyond the standard $ (L/\mu)^2 $ dependence on the condition number?
  • RQ2What is the role of importance sampling (weighted sampling) in enhancing the convergence of SGD beyond uniform sampling?
  • RQ3How can the randomized Kaczmarz algorithm be reinterpreted as a form of SGD to leverage existing SGD convergence theory?
  • RQ4Can a Kaczmarz variant be designed to converge to the true least squares solution while maintaining exponential convergence under non-uniform sampling?
  • RQ5Does the convergence rate of SGD depend linearly on the average smoothness or the worst-case smoothness, and how does importance sampling affect this?

Key findings

  • The paper establishes a linear dependence on the condition number $L/\mu$ in the convergence rate of SGD, improving upon the prior quadratic dependence $(L/\mu)^2$.
  • Importance sampling via reweighting the sampling distribution leads to a convergence bound that depends linearly on the average smoothness $\mathbb{E}[L_i^2]$, dominating previous results.
  • The randomized Kaczmarz method is recast as an SGD instance on a weighted least squares problem, enabling the derivation of exponential convergence to the weighted solution.
  • A modified Kaczmarz algorithm with partially biased sampling is proposed that converges to the original least squares solution with the same exponential rate as the standard method.
  • Numerical experiments confirm that weighted sampling ($\lambda = 0$) outperforms uniform sampling ($\lambda = 1$) when rows have varying norms, especially in high-noise regimes.
  • In low-noise and well-conditioned settings, pure weighted sampling is optimal, while intermediate sampling ($\lambda \in (0,1)$) performs best in medium- and high-noise regimes, validating the theoretical trade-off between convergence rate and initial error.

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.