High-dimensional scaling limits and fluctuations of online least-squares SGD with smooth covariance

Ye He · DOI · OpenReview

Abstract

We derive high-dimensional scaling limits and fluctuations for the online least-squares Stochastic Gradient Descent (SGD) algorithm by taking the properties of the data generating model explicitly into consideration. Our approach treats the SGD iterates as an interacting particle system, where the expected interaction is characterized by the covariance structure of the input. Assuming smoothness conditions on moments of order up to eight orders, and without explicitly assuming Gaussianity, we establish the high-dimensional scaling limits and fluctuations in the form of infinite-dimensional Ordinary Differential Equations (ODEs) or Stochastic Differential Equations (SDEs). Our results reveal a precise three-step phase transition of the iterates; it goes from being ballistic, to diffusive, and finally to purely random behavior, as the noise variance goes from low, to moderate and finally to very-high noise setting. In the low-noise setting, we further characterize the precise fluctuations of the (scaled) iterates as infinite-dimensional SDEs. We also show the existence and uniqueness of solutions to the derived limiting ODEs and SDEs. Our results have several applications, including characterization of the limiting mean-square estimation or prediction errors and their fluctuations, which can be obtained by analytically or numerically solving the limiting equations.

Introduction

Stochastic Gradient Descent (SGD) is the fundamental optimization engine of modern machine learning. However, theoretical understanding of its behavior often relies on non-asymptotic bounds that, while mathematically rigorous, can be overly conservative. These bounds frequently fail to capture the nuanced dynamics of SGD in high-dimensional settings where the number of features ($d$) is comparable to or exceeds the number of observations ($n$).

This paper addresses this gap by deriving the "scaling limits" of SGD under a "smooth covariance" setting. Unlike previous studies that often assume isotropic data (where features are independent and identically distributed), this work considers more realistic scenarios where features exhibit complex, correlated relationships. By analyzing the path SGD takes as $d$ and $n$ tend toward infinity, the authors provide a continuous-time characterization of the algorithm's evolution.

Methodology: SGD as an Interacting Particle System

The researchers employ a novel perspective by treating the coordinates of the SGD weight vector as "particles" on a one-dimensional grid. As the algorithm updates, these particles "interact" with one another, with the nature of these interactions dictated by the covariance structure of the input data.

To bridge the gap between discrete algorithmic steps and continuous mathematical analysis, the study utilizes several sophisticated tools:

  1. Space-Time Interpolation: Piecewise linear interpolation transforms the sequence of discrete SGD iterates into a continuous random field evolving over time.
  2. Weak Convergence: Using the Skorokhod Representation Theorem and Kolmogorov tightness criteria, the authors prove that these interpolated paths converge to the solutions of specific infinite-dimensional equations (ODEs and SDEs).
  3. Relaxed Assumptions: Notably, the framework does not require the data to be Gaussian. It only assumes smoothness conditions on the data's moments up to the eighth order, significantly broadening the applicability of the results compared to prior literature.

The Three-Step Phase Transition

A central contribution of this work is the identification of a qualitative three-step phase transition in SGD behavior, determined by the noise variance ($\sigma^2$):

  • Low-Noise Regime (Ballistic): The iterates follow a deterministic path described by an infinite-dimensional Ordinary Differential Equation (ODE). In this regime, the signal dominates, and the weights move predictably toward the optimum.
  • Moderate-Noise Regime (Diffusive): The path is governed by a Stochastic Differential Equation (SDE). While the average movement remains visible, the trajectory is buffeted by a Gaussian random field, representing a balance between signal and noise.
  • High-Noise Regime (Purely Random): The signal is effectively lost. The iterates behave like pure random noise, and the algorithm fails to converge to a meaningful solution.

Because the covariance matrix is assumed to be "smooth," every coordinate (particle) effectively interacts with every other coordinate. This long-range interaction allows the system to be described by elegant, continuous equations rather than discrete, high-dimensional matrices.

Key Mathematical Results

The authors rigorously derive the limiting equations for each regime. For instance, in the low-noise setting, the evolution of the weights $\Theta(s, x)$ is governed by: $$\partial_s\Theta(s, x) = -\alpha \int_0^1 A(x, y)\Theta(s, y)dy$$ where $A(x,y)$ represents the continuous version of the data covariance matrix.

Furthermore, the paper provides explicit formulas for calculating the limiting Mean Squared Error (MSE) and Prediction Error (PE). In the low-noise case, the MSE is shown to decay exponentially: $MSE(\tau) \leq MSE(0) \exp(-2\alpha\lambda\tau)$. The authors also establish the existence and uniqueness of solutions for the derived SDEs, ensuring the mathematical stability of the framework.

Conclusion and Future Work

While this framework provides a powerful lens for understanding high-dimensional SGD, it relies on the "smooth covariance" assumption—the idea that correlations between features change slowly across indices. This is highly applicable to structured data like time-series or climate models but may not capture the "rough" or sparse covariance structures found in other domains.

The authors suggest that investigating "short-range" interactions, where the covariance matrix is rough or nearly diagonal, is a vital next step. Such settings may reveal different limiting behaviors, potentially linking SGD dynamics to the Kardar-Parisi-Zhang (KPZ) universality class observed in physical growth processes.

Summary updated

BibTeX
@article{he2025high,
  author = {Ye He},
  title = {{High-dimensional scaling limits and fluctuations of online least-squares SGD with smooth covariance}},
  journal = {The Annals of Applied Probability},
  year = {2025},
  doi = {10.1214/24-aap2123},
}
Figure