Analysis of Biased Stochastic Gradient Descent Using Sequential Semidefinite Programs

Bin Hu, Peter Seiler, Laurent Lessard · DOI

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.

Introduction

In the ideal world of machine learning theory, Stochastic Gradient Descent (SGD) assumes an unbiased estimate of the gradient. However, in practical applications, gradients are frequently biased due to numerical inaccuracies in low-precision hardware, communication-efficient quantization/sparsification in distributed training, or the use of inexact solvers for sub-problems.

Standard SGD analysis often fails in these biased scenarios. While unbiased SGD can reach the exact optimum by decaying the stepsize, biased SGD typically hits a "noise floor"—a region around the optimum it cannot leave. This paper provides a rigorous mathematical framework to quantify this floor and the convergence rate toward it using tools from control theory.

Methodology: Optimization as a Dynamical System

The authors treat the optimization algorithm as a dynamical system and apply tools from Robust Control Theory. The core of the approach involves:

  1. Unified Error Model: A noise term $e_k$ accounts for both relative error (proportional to gradient size) and absolute error (constant background noise).
  2. Quadratic Constraints: Assumptions about the objective function (e.g., strong convexity, smoothness) are translated into quadratic constraints.
  3. Linear Matrix Inequalities (LMIs): The primary contribution is a small (4x4) LMI. Finding a feasible solution to this LMI provides a guaranteed upper bound on the convergence rate. This transforms theoretical analysis into a solvable convex optimization problem.
Table 1: Assumptions on objective functions and corresponding matrix parameters for the LMI framework.

Key Results and Convergence Analysis

The framework allows for the derivation of analytical bounds that reveal fundamental trade-offs between convergence speed, final optimization accuracy, and robustness to noise.

  • Analytical Rate Bounds: For a constant stepsize $\alpha$, 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 proportional to $\frac{c^2 + 2\delta^2 G^2}{m^2 - \delta^2 \tilde{M}}$. This formula explicitly shows how absolute error ($c$) and relative error ($\delta$) contribute to final inaccuracy.
  • Adaptive Stepsize: Even with optimally tuned time-varying stepsizes, biased SGD only achieves a $O(1/k)$ convergence rate to the noise floor, mirroring standard SGD but with a permanent residual error.
Table 2: Derived parameters used to calculate convergence rates and noise floors across different objective function cases.

This is a purely theoretical paper; no empirical datasets were used. The findings were validated through numerical simulations of synthetic optimization problems to compare the tightness of various theoretical bounds.

Discussion and Limitations

While the LMI framework provides a powerful automated way to generate convergence proofs, it has certain limitations:

  • Parameter Knowledge: The LMI requires knowing constants like the strong convexity parameter ($m$) and noise bounds ($\delta, c$), which are difficult to calculate in deep learning.
  • Worst-Case Pessimism: As a robust control tool, the bounds are "worst-case." If gradient noise is "friendly" or purely random, these bounds may be more conservative than practical observations.
  • Future Extensions: Future work could extend this approach to variance-reduced methods (SVRG, 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},
}
Figure