Lune

NeurIPS2024Top-tier venue

The Sample Complexity of Gradient Descent in Stochastic Convex Optimization

Roi Livni

Abstract

We analyze the sample complexity of full-batch Gradient Descent (GD) in the setup of non-smooth Stochastic Convex Optimization. We show that the generalization error of GD, with common choice of hyper-parameters, can be Θ~(d/m+1/m)\tilde \Theta(d/m + 1/\sqrt{m}), where dd is the dimension and mm is the sample size. This matches the sample complexity of worst-case empirical risk minimizers. That means that, in contrast with other algorithms, GD has no advantage over naive ERMs. Our bound follows from a new generalization bound that depends on both the dimension as well as the learning rate and number of iterations. Our bound also shows that, for general hyper-parameters, when the dimension is strictly larger than number of samples, T=Ω(1/ϵ4)T=\Omega(1/\epsilon^4) iterations are necessary to avoid overfitting. This resolves an open problem by Schlisserman et al.23 and Amir er Al.21, and improves over previous lower bounds that demonstrated that the sample size must be at least square root of the dimension.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Information Theoretic Lower Bounds for Information Theoretic Upper Bounds cites Never Go Full Batch (in Stochastic Convex Optimization)
  • Information Theoretic Lower Bounds for Information Theoretic Upper Bounds cites Stability of Stochastic Gradient Descent on Nonsmooth Convex Losses
  • Never Go Full Batch (in Stochastic Convex Optimization) cites Stability of Stochastic Gradient Descent on Nonsmooth Convex Losses
  • Thinking Outside the Ball: Optimal Learning with Gradient Descent for Generalized Linear Stochastic Convex Optimization cites Never Go Full Batch (in Stochastic Convex Optimization)
  • Thinking Outside the Ball: Optimal Learning with Gradient Descent for Generalized Linear Stochastic Convex Optimization cites Stability of Stochastic Gradient Descent on Nonsmooth Convex Losses
  • Thinking Outside the Ball: Optimal Learning with Gradient Descent for Generalized Linear Stochastic Convex Optimization cites SGD: The Role of Implicit Regularization, Batch-size and Multiple-epochs
  • Rapid Overfitting of Multi-Pass SGD in Stochastic Convex Optimization cites Stability of Stochastic Gradient Descent on Nonsmooth Convex Losses
  • All ERMs Can Fail in Stochastic Convex Optimization Lower Bounds in Linear Dimension cites Information Theoretic Lower Bounds for Information Theoretic Upper Bounds
  • All ERMs Can Fail in Stochastic Convex Optimization Lower Bounds in Linear Dimension cites Never Go Full Batch (in Stochastic Convex Optimization)
  • All ERMs Can Fail in Stochastic Convex Optimization Lower Bounds in Linear Dimension cites Thinking Outside the Ball: Optimal Learning with Gradient Descent for Generalized Linear Stochastic Convex Optimization
  • All ERMs Can Fail in Stochastic Convex Optimization Lower Bounds in Linear Dimension cites Rapid Overfitting of Multi-Pass SGD in Stochastic Convex Optimization
  • All ERMs Can Fail in Stochastic Convex Optimization Lower Bounds in Linear Dimension cites SGD: The Role of Implicit Regularization, Batch-size and Multiple-epochs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Flat Minima and Generalization: Insights from Stochastic Convex OptimizationMatan Schliserman, Shira Vansover-Hager, Tomer KorenICML 2026 · 2 citations
  2. Rapid Overfitting of Multi-Pass SGD in Stochastic Convex OptimizationShira Vansover-Hager, Tomer Koren, Roi LivniICML 2025
  3. All ERMs Can Fail in Stochastic Convex Optimization Lower Bounds in Linear DimensionTal Burla, Roi LivniICML 2026

Builds on5

  1. Stability of Stochastic Gradient Descent on Nonsmooth Convex LossesRaef Bassily, Vitaly Feldman, Cristóbal Guzmán, Kunal TalwarNeurIPS 2020 · 240 citations
  2. SGD: The Role of Implicit Regularization, Batch-size and Multiple-epochsAyush Sekhari, Karthik Sridharan, Satyen KaleNeurIPS 2021 · 36 citations
  3. Information Theoretic Lower Bounds for Information Theoretic Upper BoundsRoi LivniNeurIPS 2023 · 19 citations
  4. Never Go Full Batch (in Stochastic Convex Optimization)Idan Amir, Yair Carmon, Tomer Koren, Roi LivniNeurIPS 2021 · 17 citations
  5. Thinking Outside the Ball: Optimal Learning with Gradient Descent for Generalized Linear Stochastic Convex OptimizationIdan Amir, Roi Livni, Nati SrebroNeurIPS 2022 · 7 citations

Related papers

  1. Beyond Lipschitz: Sharp Generalization and Excess Risk Bounds for Full-Batch GDKonstantinos E. Nikolakakis, Farzin Haddadpour, Amin Karbasi, Dionysios S. KalogeriasICLR 2023 · 3 citations
  2. The Complexity of Finding Stationary Points with Stochastic Gradient DescentYoel Drori, Ohad ShamirICML 2020 · 73 citations
  3. Toward a Unified Theory of Gradient Descent under Generalized SmoothnessAlexander TyurinICML 2025
  4. On the Convergence to a Global Solution of Shuffling-Type Gradient AlgorithmsLam M. Nguyen, Trang H. TranNeurIPS 2023 · 5 citations
  5. Last Iterate Risk Bounds of SGD with Decaying Stepsize for Overparameterized Linear RegressionJingfeng Wu, Difan Zou, Vladimir Braverman, Quanquan Gu et al.ICML 2022 · 38 citations
Dusk over the sea between two cliffs drawn in fine vertical lines