Exact Risk Curves of signSGD in High-Dimensions: Quantifying Preconditioning and Noise-Compression Effects

Ke Liang Xiao, Noah Marshall, Atish Agarwala, Elliot Paquette

TL;DR

This paper provides the first exact theoretical analysis of signSGD in high dimensions, deriving continuous stochastic and deterministic equations (SDEs and ODEs) that precisely track its risk dynamics. By directly comparing signSGD to vanilla SGD, the authors mathematically isolate and quantify four core mechanisms: effective learning rate, noise compression, diagonal preconditioning, and gradient noise reshaping. This framework successfully predicts optimization performance on both synthetic and real-world datasets, offering a major stepping stone toward a rigorous understanding of complex adaptive optimizers like Adam.

What Problem Does This Paper Address?

Modern deep learning relies heavily on adaptive optimizers like Adam, yet their theoretical properties remain notoriously difficult to analyze due to complex features like running exponential moving averages. To gain insight, researchers often study signSGD, a simpler variant that updates weights using only the sign ($\pm 1$) of the stochastic gradient.

While the machine learning community generally agrees that signSGD acts as a preconditioner and alters gradient noise, we have lacked a precise, quantitative framework to measure these effects in theoretically solvable settings. This paper bridges that gap by analyzing signSGD in a high-dimensional limit ($d \to \infty$), providing an exact mathematical description of how data and noise distributions dictate its trajectory.

Methods

The authors analyze signSGD under a one-pass (streaming) linear regression setup where data samples are never reused. To model the algorithm's high-dimensional dynamics, they introduce two novel mathematical limits:

  1. Sign-Homogenized SGD (SIGNHSGD): A continuous stochastic differential equation (SDE) that captures the stochastic behavior of signSGD.
  2. SIGNODE: A deterministic system of coupled ordinary differential equations (ODEs) derived via concentration of measure that tracks the exact evolution of the population risk over time.

To achieve a fair, "apples-to-apples" comparison with vanilla SGD, the authors design a risk-dependent learning rate schedule for SGD that mirrors signSGD's inherent adaptive scheduling. This allows them to cleanly isolate and analyze four distinct phenomena: effective learning rate, $\epsilon$-compression (noise compression), diagonal preconditioning, and gradient noise reshaping.

Datasets

The theoretical framework is validated using both synthetic and real-world datasets:

  • Synthetic Data: Gaussian data features ($d=500$) combined with either standard Gaussian label noise or heavy-tailed, non-centered Cauchy noise.
  • CIFAR10: Transformed into a binary classification task (animals vs. vehicles) and processed through a random features model ($d=400$).
  • IMDB Movie Reviews: Text data embedded using GloVe vectors and regularized via a two-layer random features model ($d=50$).

Key Insights and Ideas

  • Implicit Diagonal Preconditioning: The paper proves that signSGD automatically applies a diagonal preconditioner $D^{-1}$ based on the data covariance matrix $K$ (where $D_{ii} = \sqrt{K_{ii}}$). This explains why signSGD achieves massive speedups on coordinate-aligned or diagonally dominant optimization landscapes.
  • The Power of Noise Symmetrization ($\epsilon$-compression): The label noise distribution scales the optimization's drift term through a factor $\psi(R)$. For heavy-tailed noise (like Student's-t or Cauchy), $\psi(R)$ becomes large, meaning signSGD inherently exploits extreme noise to accelerate learning.
  • Catastrophic Noise Floors: Conversely, if the noise is bounded away from zero (e.g., Rademacher noise), $\psi(R)$ drops exponentially to zero as the risk decreases. In these scenarios, signSGD hits an artificial performance floor, making it vastly inferior to SGD late in training.
  • Risk-Dependent Learning Rate: Without an explicit decay schedule, signSGD naturally slows down when far from the optimum and accelerates as it approaches it. While counterproductive in simple convex settings, this behavior might dynamically help optimizers navigate complex non-convex loss landscapes.

Key Results

  • High-Fidelity Tracking: The deterministic SIGNODE accurately predicts empirical risk curves across both synthetic and real-world datasets (CIFAR10 and IMDB), even at moderate dimensions like $d=500$.
Figure 1: Dynamics of the risk under SIGNSGD and SIGNHSGD on synthetic and real datasets. SIGNHSGD and its deterministic equivalent ODE are good models for the risk dynamics even for d = 500 (a, b) or on real datasets (c, d). The convergence of SIGNSGD for Cauchy noise (b) is remarkable given that SGD fails to converge there. The usefulness of the ODE on CIFAR10 and IMDB movie reviews is remarkable due to the non-Gaussian nature of the data, and the significant estimation of key quantities like θ∗or ϵ. For the CIFAR10 dataset, we validate the results of Theorem 3 which gives the limit risk of SIGNODE under Gaussian data. We include the deterministic equivalent for SGD (VANILLAODE) for reference. Details of these experiments may be found in Appendix I.
  • Robustness to Heavy Tails: In environments plagued by Cauchy noise—where vanilla SGD completely fails to converge—signSGD successfully minimizes risk, closely adhering to the theoretical SIGNODE trajectory (as shown in Figure 1b above).
  • Exact Stationary Risk: For a constant learning rate $\eta$ and Gaussian noise, the authors derive an exact closed-form formula for the limiting risk ($R_\infty$), explicitly showing how performance plateaus based on dimensionality, learning rate, and noise variance.

Limitations and Future Work

  • Linear/Quadratic Constraints: The rigorous proofs are currently tied to mean-squared error loss and linear regression. Extending these high-dimensional concentration results to non-linear architectures (like neural networks) remains an open challenge.
  • Gaussian Feature Assumption: Although experiments on CIFAR10 and IMDB demonstrate universality (meaning the theory holds even when data is non-Gaussian), the mathematical proofs strictly assume Gaussian data features.
  • The Path to Adam: The authors conclude with a heuristic derivation suggesting that Adam shares a similar homogenized process to signSGD. Fully formalizing this connection is a prominent direction for future research.

Summary updated

BibTeX
@inproceedings{xiao2025exact,
  author = {Ke Liang Xiao and Noah Marshall and Atish Agarwala and Elliot Paquette},
  title = {{Exact Risk Curves of signSGD in High-Dimensions: Quantifying Preconditioning and Noise-Compression Effects}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=MQpAF3Z1YD},
}
Figure