A Sketch-and-Project Analysis of Subsampled Natural Gradient Algorithms

Gil Goldshlager, Jiang Hu, Lin Lin

Introduction

Scientific machine learning (SciML) demands exceptionally high precision—often beyond the reach of standard optimizers like SGD or Adam. Natural Gradient Descent (NGD) offers a solution by adapting to the geometry of the function space, but it requires inverting a massive Fisher Information Matrix, making it computationally prohibitive for large models.

Enter Subsampled Natural Gradient (SNG), which computes the gradient and its preconditioner on a small subset of data. While practically successful, SNG's theoretical foundation has long been flawed. Standard proofs rely on an unrealistic "two mini-batch proxy," assuming independent data sets are used for the gradient and the preconditioner to decouple the variables. Furthermore, existing theory cannot explain why SNG thrives even when the sample size is drastically smaller than the parameter count—a regime where standard statistical estimators should theoretically fail.

A New Theoretical Lens: Sketch-and-Project

This paper bridges the theoretical gap by reframing SNG not as a statistical estimation problem, but as a "sketch-and-project" method—a concept borrowed from randomized linear algebra used to solve large systems by projecting iterates onto a subsampled version of the problem.

Instead of relying on the flawed two-batch assumption, the authors introduce a new theoretical proxy based on Squared Volume Sampling (SVS). Under SVS, the probability of selecting a data subset is proportional to the determinant (volume) of the Jacobian rows. By using SVS as a theoretical tool, the authors prove that the expected SNG direction remains a valid preconditioned step even when the gradient and preconditioner are "coupled" (computed on the exact same mini-batch). Rather than being a bug, this coupling actually preserves the natural gradient direction in expectation.

Unlocking the Power of Spectral Decay

A major breakthrough of this analysis is explaining why SNG dramatically outperforms SGD in high-precision tasks. The secret lies in the model Jacobian's spectral decay.

If a model's Jacobian exhibits fast spectral decay—a common trait in neural networks—SNG's convergence rate scales superlinearly with the sample size. In contrast, SGD's rate only scales linearly. The authors formalize this by analyzing a Linear Least-Quadratics (LLQ) model problem, which approximates consistent SciML problems near their minimum. They also introduce a new quantity, $\gamma$, which measures the interaction between the sketch-and-project structure and the natural gradient structure. Evidence suggests $\gamma$ remains benign in realistic settings, allowing SNG's advantages to dominate.

Demystifying SPRING Momentum

The sketch-and-project lens also sheds light on SPRING, a popular momentum-based variant of SNG. The authors demonstrate that SPRING is naturally derived from Nesterov-accelerated sketch-and-project methods. They prove that SPRING delivers substantial acceleration precisely when the underlying sketch-and-project step is slow, such as in extreme small-sample regimes. This theoretical finding perfectly aligns with empirical observations in the literature.

Empirical Validation

The theoretical claims are backed by controlled benchmarks, including a Discrete Poisson Problem (a proxy for Physics-Informed Neural Networks) and synthetic LLQ matrices with manually controlled spectral decay.

Numerical experiments confirm that the SVS-based theory closely matches the behavior of realistic SNG (which uses uniform sampling), whereas the old two-batch theory completely fails to predict progress in small-sample scenarios. Furthermore, the experiments validate the superlinear scaling of SNG: when the Jacobian has a decaying spectrum, the empirical rate constant grows rapidly as the sample size increases, even while the step size remains fixed.

Limitations and Future Directions

While SVS provides a robust theoretical proxy, it is computationally expensive for practical daily training. The authors suggest exploring "SVS-inspired" sampling methods, such as MCMC or ensemble samplers, to introduce beneficial negative correlations within mini-batches.

Future work will also need to extend the convergence analysis beyond the linearized LLQ setting to fully non-linear regimes. Finally, while preliminary bounds for the new $\gamma$ factor are provided, establishing tighter, universal bounds in general settings remains an open challenge to complete the theoretical picture.

Summary updated

BibTeX
@inproceedings{goldshlager2026sketch,
  author = {Gil Goldshlager and Jiang Hu and Lin Lin},
  title = {{A Sketch-and-Project Analysis of Subsampled Natural Gradient Algorithms}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=2iDtIht7W4},
}
Figure