SGD for Structured Nonconvex Functions: Learning Rates, Minibatching and Interpolation

Robert M. Gower, Othmane Sebbouh, Nicolas Loizou

Abstract

Stochastic Gradient Descent (SGD) is being used routinely for optimizing non-convex functions. Yet, the standard convergence theory for SGD in the smooth non-convex setting gives a slow sublinear convergence to a stationary point. In this work, we provide several convergence theorems for SGD showing convergence to a global minimum for non-convex problems satisfying some extra structural assumptions. In particular, we focus on two large classes of structured non-convex functions: (i) Quasar (Strongly) Convex functions (a generalization of convex functions) and (ii) functions satisfying the Polyak-Łojasiewicz condition (a generalization of strongly-convex functions). Our analysis relies on an Expected Residual condition which we show is a strictly weaker assumption than previously used growth conditions, expected smoothness or bounded variance assumptions. We provide theoretical guarantees for the convergence of SGD for different step-size selections including constant, decreasing and the recently proposed stochastic Polyak step-size. In addition, all of our analysis holds for the arbitrary sampling paradigm, and as such, we give insights into the complexity of minibatching and determine an optimal minibatch size. Finally, we show that for models that interpolate the training data, we can dispense of our Expected Residual condition and give state-of-the-art results in this setting.

Introduction

Standard optimization theory for SGD in non-convex settings is often pessimistic, predicting slow convergence to a stationary point rather than a global minimum. However, in practical fields like deep learning or matrix completion, SGD frequently finds global solutions quite efficiently. This paper seeks to bridge the gap by focusing on "structured" non-convexity—functions that are not convex but still possess global properties that facilitate optimization. By replacing restrictive assumptions like "bounded gradients" with a more flexible framework, the authors provide a more realistic description of modern machine learning models, especially those that interpolate their training data.

Theoretical Framework: The Expected Residual Condition

The core technical innovation of this work is the Expected Residual (ER) condition. The authors demonstrate that the ER condition serves as a "hierarchy-topper" in optimization theory. It is strictly weaker than common assumptions used in prior literature, such as the Strong Growth Condition (SGC), the Weak Growth Condition (WGC), or Expected Smoothness (ES).

Hierarchy of assumptions relating the Expected Residual (ER) condition to other common growth and smoothness conditions.

As illustrated in the hierarchy above, the ER condition unifies several disparate assumptions. For smooth functions, SGC implies WGC, which in turn implies ES, and finally ER. Furthermore, the framework accounts for the "interpolation" setting common in over-parameterized deep learning, where models achieve zero training error. In such cases, the ER condition is satisfied automatically for smooth functions, explaining why SGD performs exceptionally well in these environments without needing the restrictive assumptions of older theories.

Convergence Analysis and Minibatching

The authors analyze SGD under two primary structural assumptions: Quasar-Convexity (a generalization of convexity where the function is unimodal along lines passing through a minimizer) and the Polyak-Łojasiewicz (PL) condition (which allows for multiple local minima if the gradient grows sufficiently fast away from the global minimum).

They evaluate three distinct step-size regimes:

  1. Constant: Achieves fast convergence to a neighborhood of the minimum.
  2. Decreasing: Ensures exact convergence to the global minimum.
  3. Stochastic Polyak Step-size (SPS): An adaptive rule that adjusts the learning rate based on the current loss, requiring no manual tuning.

Additionally, the paper provides a formula for the optimal minibatch size ($b^*$). It reveals that for many problems, the optimal size is often either 1 (pure SGD) or $n$ (full Gradient Descent), depending on the ratio of maximum smoothness of individual data points to the average smoothness across the dataset.

Key Results

  • Quasar-Convex Rates: The authors achieve an $O(1/\sqrt{k})$ convergence rate without assuming bounded variance, representing a first in the field.
  • PL Condition Rates: They prove linear convergence to a neighborhood for constant steps and an $O(1/k)$ rate for decreasing steps.
  • SPS for Non-convexity: This work provides the first analysis of the Stochastic Polyak Step-size for non-convex functions, showing it can achieve global convergence to the exact minimum in interpolated models.

Discussion and Future Work

While this framework provides a powerful unified theory for structured non-convex functions, it does not solve the general non-convex case where "trap" local minima or massive plateaus may exist. Future research directions include verifying conjectures regarding the learning of linear dynamical systems without costly projection steps and refining adaptive methods to further reduce the need for pre-defined smoothness parameters.

Summary updated

BibTeX
@inproceedings{gower2021sgd,
  author = {Robert M. Gower and Othmane Sebbouh and Nicolas Loizou},
  title = {{SGD for Structured Nonconvex Functions: Learning Rates, Minibatching and Interpolation}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
  url = {https://openreview.net/forum?id=lOuMk2yb-rF},
}
Figure