A Guide Through the Zoo of Biased SGD

Yury Demidovich, Grigory Malinovsky, Igor Sokolov, Peter Richtárik

TL;DR

This paper brings order to the "zoo" of conflicting assumptions used to analyze Stochastic Gradient Descent (SGD) with biased gradients. By introducing a new, provably weaker framework called Biased ABC, the authors provide a unified convergence analysis that covers a wider range of practical algorithms—from communication-efficient compression to zeroth-order optimization—while matching or improving upon existing theoretical rates.

The Problem: A "Zoo" of Assumptions

Stochastic Gradient Descent (SGD) is the undisputed workhorse of modern machine learning. Usually, theoretical analyses assume our gradient estimates are "unbiased"—meaning that, on average, they point in the exact direction of the true gradient. However, in many modern applications, we intentionally use biased gradients to save on computational or communication costs:

  • Communication Efficiency: In distributed training, we might only send the largest coordinates of a gradient (Top-$k$ sparsification) to save bandwidth.
  • Zeroth-Order Optimization: When we can't calculate gradients directly (e.g., black-box models), we estimate them using function evaluations, introducing inherent bias.
  • Subsampling: If we don't know the exact probabilities of our data samples, our mini-batch gradients become biased.

The core issue is that the theoretical literature for "Biased SGD" is highly fragmented. Every new paper relies on a different, often incompatible set of assumptions. This makes it nearly impossible to compare methods or guarantee if a new algorithm will actually converge. This paper seeks to build a "map" of this zoo and provide a single, flexible framework to unify them all.

Methods: The Biased ABC Framework

The authors' primary contribution is the Biased ABC assumption. It consists of two conditions on the gradient estimator $g(x)$:

  1. First Moment (Direction): The estimator must generally point in the right direction (the inner product with the true gradient is bounded below).
  2. Second Moment (Variance/Magnitude): The expected squared norm of the estimator is bounded by a combination of the current function value gap ($A$), the true gradient norm ($B$), and a constant noise term ($C$).

The "ABC" name comes from these three constants. What makes this novel is the inclusion of the $A(f(x) - f^*)$ term. Most previous work ignored this, but the authors prove it is essential for capturing the behavior of biased subsampling.

The authors perform a rigorous mathematical "audit" of existing literature, creating a hierarchy that proves Biased ABC is the most general (weakest) assumption available.

Hierarchy of assumptions in Biased SGD

Key Insights and Ideas

  • The Hierarchy of Assumptions: The paper proves that almost all popular assumptions in the literature (like "Strong Growth" or "Contractive" properties) are just special, more restrictive cases of Biased ABC.
  • The Power of Weakness: In optimization theory, a "weaker" assumption is better because it requires fewer conditions to be true. By proving convergence under the weakest possible assumptions, the authors ensure their results apply to the largest possible "zoo" of algorithms.
  • Biased Can Be Better: The authors highlight that biased estimators (like Top-$k$) often outperform their unbiased counterparts (like Rand-$k$) in practice, especially when data is heterogeneous. Their framework finally provides the theoretical tools to explain why.
  • Subsampling is Unique: They demonstrate that biased independent sampling doesn't fit into old frameworks (like BND or FSML) but fits perfectly into Biased ABC thanks to the $A$ term.
Estimators and the assumptions they satisfy

Key Results and Validation

To validate their theory, the authors performed experiments using standard binary classification benchmarks from the LibSVM library (splice, a9a, w8a) applied to a logistic regression problem with a non-convex regularizer.

  • Unified Convergence Rates: The authors provide convergence proofs for three major settings: General Non-convex, Polyak–Łojasiewicz (PŁ) conditions, and Strongly Convex.
  • Matching the State-of-the-Art: Despite using more general assumptions, they recovered the optimal convergence rates previously found only under much stricter conditions.
  • Experimental Validation: Using "Biased SGD-ind" (a specific biased sampling method), they showed that increasing the sampling probability $p$ allows for larger stepsizes, which directly leads to faster convergence—exactly as their Biased ABC theory predicts.

Limitations and Future Work

  • Pessimistic Constants: When converting existing assumptions into the Biased ABC framework, the resulting constants ($A, B, C$) can be "pessimistic" (larger than necessary). Calculating these constants directly for specific algorithms would yield even tighter bounds.
  • Exponential Blow-up: In the general non-convex case, the error term can technically grow exponentially if the stepsize isn't carefully controlled. Finding more "relaxed" conditions to avoid this remains an open challenge.
  • Extension to Momentum: This paper focuses on "vanilla" SGD. Extending the Biased ABC framework to include momentum-based methods (like Adam or RMSProp) is a logical next step for the research community.

Summary updated

BibTeX
@inproceedings{demidovich2023guide,
  author = {Yury Demidovich and Grigory Malinovsky and Igor Sokolov and Peter Richtárik},
  title = {{A Guide Through the Zoo of Biased SGD}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=OCtv4NyahI},
}
Figure