Analysis of biased stochastic gradient descent using sequential semidefinite programs

Bin Hu, Peter Seiler, Laurent Lessard

TL;DR

This paper provides a rigorous mathematical framework to analyze Biased Stochastic Gradient Descent (SGD)—where gradient updates are corrupted by numerical errors or quantization. By borrowing tools from control theory (specifically Linear Matrix Inequalities), the authors derive analytical bounds that reveal the fundamental trade-offs between convergence speed, final optimization accuracy, and robustness to noise.

What Problem Does This Paper Address?

In the ideal world of machine learning theory, Stochastic Gradient Descent (SGD) uses an "unbiased" estimate of the gradient. In the real world, gradients are often biased. This happens due to:

  • Numerical inaccuracies: Round-off errors in low-precision hardware.
  • Communication efficiency: Quantization or sparsification used to speed up distributed training.
  • Inexact solvers: Using approximate methods to compute sub-problems.

Standard SGD analysis doesn't easily translate to these biased scenarios. Specifically, while standard SGD can often reach the exact optimum by decaying the stepsize, biased SGD typically hits a "noise floor"—a region around the optimum it can never leave. This paper seeks to quantify exactly how large that floor is and how fast the algorithm gets there under a unified error model.

Methods

The authors treat the optimization algorithm as a dynamical system and apply tools from Robust Control Theory.

  1. Unified Error Model: They define a noise term $e_k$ that accounts for both relative error (proportional to the gradient size) and absolute error (a constant background noise).
  2. Quadratic Constraints: They translate assumptions about the objective function (like strong convexity and smoothness) into "quadratic constraints."
  3. Linear Matrix Inequalities (LMIs): The core contribution is a small (4x4) LMI. If you can find a feasible solution to this LMI, you have a guaranteed upper bound on the convergence rate. This turns a difficult theoretical analysis into a solvable convex optimization problem.
  4. Sequential Minimization: To handle time-varying stepsizes, they develop a recursive approach that finds the tightest possible bound at each iteration, essentially solving a sequence of tiny SDPs (Semidefinite Programs).

Datasets

This is a purely theoretical paper focused on mathematical proofs and convergence analysis. Consequently, no empirical datasets (like MNIST or CIFAR) were used. The authors validate their findings using numerical simulations of synthetic optimization problems to compare the tightness of different theoretical bounds.

Key Insights and Ideas

  • The "Uncontrollable" Bias: The paper proves that there is a specific component of the optimization error that cannot be eliminated by simply decreasing the stepsize. This "bias floor" is explicitly quantified based on the noise parameters ($\delta$ and $c$).
  • Control Theory Meets Optimization: By viewing SGD through the lens of control theory, the authors can handle "adversarial" noise—noise that is specifically designed to slow down the algorithm—rather than just simple random noise.
  • Computational Analysis: Instead of relying solely on "pen-and-paper" proofs for every specific case, researchers can plug their problem parameters into the authors' LMI framework and use a computer to generate a custom convergence proof.
  • Robustness Limits: The analysis provides "breakdown points"—specific levels of gradient bias beyond which the algorithm is no longer guaranteed to converge at all.

Key Results

  • Analytical Rate Bounds: For a constant stepsize $\alpha$, the iterates converge linearly to a ball around the optimum. The convergence factor is approximately $\rho^2 \approx 1 - \frac{m^2 - \tilde{M}\delta^2}{m}\alpha$.
  • The Noise Floor: The radius of the final error ball is roughly proportional to $\frac{c^2 + 2\delta^2 G^2}{m^2 - \delta^2 \tilde{M}}$. This formula shows exactly how the absolute error ($c$) and relative error ($\delta$) contribute to the final inaccuracy.
  • Adaptive Stepsize: The authors show that even with an optimally tuned time-varying stepsize, biased SGD still only achieves a $O(1/k)$ convergence rate to the noise floor, mirroring the behavior of standard SGD but with a permanent residual error.

Limitations and Future Work

  • Parameter Knowledge: The proposed LMI requires knowing (or estimating) constants like the strong convexity parameter ($m$) and the noise bounds ($\delta, c$). In many deep learning tasks, these are notoriously difficult to calculate.
  • Worst-Case Pessimism: Because the framework uses robust control tools, the bounds are "worst-case." If the gradient noise in a real application is "friendly" or purely random, these bounds might be significantly more conservative than what is observed in practice.
  • Extension to Complex Algorithms: While the paper covers basic SGD, future work could extend this LMI approach to more complex variance-reduced methods (like SVRG or SAGA) or momentum-based optimizers (like Adam) under biased conditions.

Summary updated

Abstract

We present a convergence rate analysis for biased stochastic gradient descent (SGD), where individual gradient updates are corrupted by computation errors. We develop stochastic quadratic constraints to formulate a small linear matrix inequality (LMI) whose feasible points lead to convergence bounds of biased SGD. Based on this LMI condition, we develop a sequential minimization approach to analyze the intricate trade-offs that couple stepsize selection, convergence rate, optimization accuracy, and robustness to gradient inaccuracy. We also provide feasible points for this LMI and obtain theoretical formulas that quantify the convergence properties of biased SGD under various assumptions on the loss functions.
BibTeX
@inproceedings{hu2021analysis,
  author = {Bin Hu and Peter Seiler and Laurent Lessard},
  title = {{Analysis of biased stochastic gradient descent using sequential semidefinite programs}},
  booktitle = {Math. Program},
  year = {2021},
  url = {https://openreview.net/forum?id=5DwTxEKZu43},
}

Loading related content...

Figure