Gradient Descent with Stochastic Subspaces via Persistence of Memory

Subhroshekhar Ghosh, Clement Z. Q. Ng, Pierre-Louis Poirion, Akiko TakedaarXiv 2026

TL;DR

Stochastic Subspace Descent (SSD) lowers per-iteration costs for massive optimization problems but suffers from painfully slow convergence rates. This paper introduces "Persistence of Memory" (SSDPM), a technique that guides random subspaces using a cheaply computed vector that remains weakly correlated with the gradient over many steps. This simple tweak slashes iteration complexity from dimension-dependent to a constant rate, matching full gradient descent while retaining low-dimensional computational benefits.

What Problem Does This Paper Address?

High-dimensional optimization is the backbone of modern machine learning, but computing full gradients at every step is often prohibitively expensive or bottlenecked by memory, hardware, and communication constraints. Stochastic Subspace Descent (SSD) addresses this by projecting the gradient onto a randomly chosen low-dimensional subspace ($d \ll n$).

While this dramatically lowers the cost per iteration, it introduces massive noise, blowing up the required number of iterations by a factor of $n/d$ (where $n$ is the full dimension and $d$ is the subspace dimension). The authors tackle this fundamental trade-off: how can we keep the low per-iteration cost of subspace methods without suffering from this "curse of dimensionality" in convergence speed?

Methods

The authors propose Stochastic Subspace Descent with Persistence of Memory (SSDPM). Instead of picking a completely random subspace at each step, they construct a subspace conditioned to contain a guidance vector ($v_k$) that is weakly correlated with the true gradient.

Because optimization paths are continuous and gradual, this guidance vector doesn't need to be computed at every step; it can be reused ("persisted") across many iterations before its correlation fades and a "refresh" is required.

The paper details how to generate these guidance vectors efficiently by leveraging specific problem structures:

  1. Sparse Functions: They utilize well-established compressed sensing techniques, specifically the Iterative Hard Thresholding (IHT) algorithm, to find a sparse approximation of the gradient quickly and cheaply.
  2. Finite Sums (Minibatch): In machine learning settings, they use a larger minibatch gradient at wide intervals to serve as the persistent guide for smaller, faster minibatch subspace steps.
  3. Local Regimes (Warm Starts): Near a local optimum, they prove an alignment phenomenon where the gradient naturally aligns with the lowest eigenvector of the Hessian. Here, the guidance vector can be computed once and for all, eliminating refresh costs entirely.

Datasets

The method was evaluated using:

  • A sparsified synthetic Rosenbrock function ($M = 50,000$ variables with a sparsity factor of 250) to test the sparse variant.
  • The MNIST dataset trained on a 3-layer Multi-Layer Perceptron (MLP) to evaluate the mini-batch variant.

Key Insights and Ideas

  • Memory is Cheap, Noise is Expensive: The core "aha moment" is realizing that historical gradient structure decays slowly. Reusing a weakly correlated vector provides enough geometric guidance to eliminate the random-walk behavior of standard SSD.
  • The Hessian Alignment Phenomenon: In a local neighborhood of a strongly convex optimum, the gradient naturally aligns itself with the Hessian's low-lying eigenvector. This means the optimization landscape itself helps maintain the "memory" without any computational overhead.
  • Bypassing the Full Gradient: For structured problems like axis-aligned sparsity, you don't need a full gradient to guide the subspace. Compressed sensing can extract a "good enough" directional guide at a fraction of the cost ($O(s \log n)$ directional derivatives instead of $O(n)$).

Key Results

  • Theoretical Speedup: Slashes iteration complexity from $O(\frac{n}{d}\epsilon^{-2})$ down to $O(\epsilon^{-2})$, providing a speedup factor of nearly $n$ (up to log terms) when $d = \Theta(\log n)$.
  • Sparse Efficiency: Reduces total computational cost to $O(s \log(n/s)\epsilon^{-2}\xi)$, meaning the complexity scales with the intrinsic sparsity $s$ instead of the full dimension $n$.
  • Empirical Performance: In MNIST neural network training, SSDPM converged significantly faster in wall-clock time compared to standard SSD, while using a fraction of the peak memory required by full Stochastic Gradient Descent (SGD) during its low-dimensional steps.

Limitations and Future Work

  • The theoretical analysis focuses primarily on fully orthogonalized subspace matrices, which cost $O(nd^2)$ to generate. The authors note that using independent Gaussian random vectors (which are only approximately orthogonal) would be computationally cheaper ($O(nd)$) but leave its full theoretical development for future work.
  • The connection between this geometric guidance mechanism and classical variance-reduction methods (like SVRG or SAGA) is noted as conceptually related but warrants deeper exploration.

Summary updated

BibTeX
@misc{ghosh2026gradient,
  author = {Subhroshekhar Ghosh and Clement Z. Q. Ng and Pierre-Louis Poirion and Akiko Takeda},
  title = {{Gradient Descent with Stochastic Subspaces via Persistence of Memory}},
  year = {2026},
  eprint = {2609.18416},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.18416},
}
Figure