High-dimensional limit of one-pass SGD on least squares

Elizabeth Collins–Woodfin, Elliot Paquette

Abstract

We give a description of the high-dimensional limit of one-pass single-batch stochastic gradient descent (SGD) on a least squares problem. This limit is taken with non-vanishing step-size, and with proportionally related number of samples to problem-dimensionality. The limit is described in terms of a stochastic differential equation in high dimensions, which is shown to approximate the state evolution of SGD. As a corollary, the statistical risk is shown to be approximated by the solution of a convolution-type Volterra equation with vanishing errors as dimensionality tends to infinity. The sense of convergence is the weakest that shows that statistical risks of the two processes coincide. This is distinguished from existing analyses by the type of high-dimensional limit given as well as generality of the covariance structure of the samples.

Introduction

Stochastic Gradient Descent (SGD) is the fundamental engine behind modern machine learning. While traditional analysis often focuses on fixed-dimensional spaces over long horizons, modern applications frequently operate in "high-dimensional" regimes where the number of features ($d$) is comparable to the number of training samples ($n$).

A critical question in this regime is how the algorithm evolves in the "one-pass" or streaming setting, where each data point is used exactly once. Previous analyses often relied on simplifying assumptions, such as identity covariance matrices. This work addresses the more realistic case of general, complex covariance structures, providing a precise limit that describes the algorithm's trajectory as dimensionality tends toward infinity.

Methodology

The authors employ a technique called homogenization to bridge the gap between discrete algorithm updates and continuous mathematical models. The approach consists of three main components:

  1. Homogenized SGD: A Stochastic Differential Equation (SDE) is defined to serve as a continuous-time approximation of the discrete SGD updates.
  2. The Martingale Method: To prove the discrete SGD path remains close to the continuous SDE path, the authors use the martingale method for diffusion approximations. This involves decomposing the algorithm's error into predictable components and martingales (noise), demonstrating that noise accumulation does not derail the approximation in high dimensions.
  3. Volterra Equations: A convolution-type Volterra equation is derived to describe the evolution of the statistical risk. This allows for the calculation of expected performance at any point in time without requiring full-scale simulations.

Key Results

The core theoretical contribution is Theorem 1.5, which provides a mathematical bound showing that the discrepancy between the actual SGD state and the theoretical diffusion model vanishes as the dimension $d$ increases. Furthermore, the statistical risk of the SGD process is shown to converge to the solution of the derived Volterra equation.

Population risk evolution for multi-pass vs. streaming SGD. The theoretical Volterra predictions (solid lines) closely match the empirical simulations (noisy lines).

As illustrated in Figure 1, the theory accurately predicts the behavior of both streaming and multi-pass SGD. A significant insight is the performance gap: in the multi-pass setting (where data is reused), the algorithm eventually overfits to the specific training set, plateauing at a higher risk level (indicated by the "O-P Risk" dashed lines). In contrast, one-pass (streaming) SGD continuously learns from fresh data, following the population risk curve downward and avoiding the overfitting trap of finite datasets.

Discussion and Limitations

This work demonstrates that the complex, high-dimensional interaction of thousands of variables can be collapsed into a single-dimensional integral equation. However, several avenues for future work remain:

  • Loss Function Generality: The current analysis is restricted to linear regression with quadratic loss. Extending this to non-convex loss functions used in deep learning remains a significant challenge.
  • Model Linearity: The assumption of an underlying linear model is a simplification of real-world data complexities.
  • Step-size Scaling: The theory assumes a specific scaling of the step-size ($\gamma/d$). Exploring the impact of varying learning rate schedules, such as decay or warm-up, in the high-dimensional limit is an open research area.

Summary updated

Abstract

We give a description of the high-dimensional limit of one-pass single-batch stochastic gradient descent (SGD) on a least squares problem. This limit is taken with non-vanishing step-size, and with proportionally related number of samples to problem-dimensionality. The limit is described in terms of a stochastic differential equation in high dimensions, which is shown to approximate the state evolution of SGD. As a corollary, the statistical risk is shown to be approximated by the solution of a convolution-type Volterra equation with vanishing errors as dimensionality tends to infinity. The sense of convergence is the weakest that shows that statistical risks of the two processes coincide. This is distinguished from existing analyses by the type of high-dimensional limit given as well as generality of the covariance structure of the samples.
BibTeX
@inproceedings{collinswoodfin2024high,
  author = {Elizabeth Collins–Woodfin and Elliot Paquette},
  title = {{High-dimensional limit of one-pass SGD on least squares}},
  booktitle = {Electronic},
  year = {2024},
  doi = {10.1214/23-ecp571},
}
Figure