NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Stochastic Subspace Descent

David Kozak, Stephen Becker, Alireza Doostan, Luis TenorioarXiv 2019 · DOI

Abstract

We present two stochastic descent algorithms that apply to unconstrained optimization and are particularly efficient when the objective function is slow to evaluate and gradients are not easily obtained, as in some PDE-constrained optimization and machine learning problems. The basic algorithm projects the gradient onto a random subspace at each iteration, similar to coordinate descent but without restricting directional derivatives to be along the axes. This algorithm is previously known but we provide new analysis. We also extend the popular SVRG method to this framework but without requiring that the objective function be written as a finite sum. We provide proofs of convergence for our methods under various convexity assumptions and show favorable results when compared to gradient descent and BFGS on non-convex problems from the machine learning and shape optimization literature. We also note that our analysis gives a proof that the iterates of SVRG and several other popular first-order stochastic methods, in their original formulation, converge almost surely to the optimum; to our knowledge, prior to this work the iterates of SVRG had only been known to converge in expectation.

Introduction

In many high-stakes fields like PDE-constrained optimization, calculating a single gradient can be computationally prohibitive. Complex fluid dynamics simulations or massive structural engineering models often suffer from the "curse of the gradient," where standard Stochastic Gradient Descent (SGD) is inapplicable because objective functions are not easily expressed as simple sums of data points.

Stochastic Subspace Descent (SSD) offers a solution by combining the principles of coordinate descent with random projections and variance reduction. This framework makes high-dimensional, gradient-expensive optimization tractable by descending along random low-dimensional subspaces rather than the full gradient vector.

Problem Statement

Optimization in high dimensions typically forces a choice between first-order methods (like Gradient Descent), which require expensive full gradient vectors, and derivative-free optimization (DFO), which scales poorly with dimensionality. Coordinate Descent offers a middle ground but is restricted to axis-aligned updates, leading to inefficient "zig-zagging" paths. SSD addresses these limitations by allowing movement in arbitrary random directions without requiring the full gradient at every step.

Methodology

The core innovation is the Stochastic Subspace Descent (SSD) iteration. Instead of calculating all $d$ partial derivatives, the algorithm selects a random $\ell$-dimensional subspace (where $\ell \ll d$) and computes directional derivatives only within that slice.

Algorithm 2.1: Stochastic Subspace Descent (SSD)

The authors further extend this to VRSSD (Variance Reduced SSD) by adapting the Stochastic Variance Reduced Gradient (SVRG) algorithm. Unlike standard SVRG, which requires a finite-sum objective, the authors' adaptation applies to a broader range of scientific problems.

Algorithm 2.2: Stochastic Variance Reduced Gradient (SVRG)

A significant theoretical contribution is the proof of almost sure convergence. While previous stochastic methods were often only known to converge in expectation, the authors demonstrate that SSD and VRSSD are guaranteed to reach the optimum with probability 1.

Experimental Evaluation

The algorithms were tested on three benchmarks:

  1. Nesterov’s "Worst Function in the World": A synthetic benchmark designed to challenge first-order optimizers.
  2. Sparse Gaussian Processes: Optimizing the placement of "inducing points" for large-scale machine learning.
  3. Shape Optimization: Minimizing stress in a metal plate using the FEniCS PDE package ($d=100$ and $d=200$).

Key Insights and Results

  • Intrinsic Dimension: SSD excels when problems have a low intrinsic dimension. Even in high-dimensional spaces, if the objective function's significant changes occur on a low-dimensional manifold, SSD identifies it more efficiently than traditional methods.
  • Haar Projections: Utilizing "Haar-distributed" random matrices (truly random directions) significantly reduces variance compared to simple coordinate selection, leading to smoother optimization paths.
  • Escaping Local Minima: In non-convex landscapes, the stochastic nature of the subspace selection helps VRSSD avoid getting trapped in shallow valleys that often stall deterministic methods like BFGS.
  • Performance: On shape optimization tasks, SSD and VRSSD reached the solution significantly faster than standard Gradient Descent. While BFGS performance degraded as dimensions increased due to less effective Hessian updates, SSD remained robust.

Conclusion and Future Work

Stochastic Subspace Descent provides a powerful tool for optimizing "black-box" simulations and expensive PDE models. While it requires hyperparameter tuning for step size and subspace rank, its ability to handle high-dimensional problems with low intrinsic dimensionality is a major advantage. Future research will explore Stochastic Quasi-Newton methods within this framework and investigate asynchronous parallelization to further enhance computational efficiency.

Summary updated

BibTeX
@misc{kozak2019stochastic,
  author = {David Kozak and Stephen Becker and Alireza Doostan and Luis Tenorio},
  title = {{Stochastic Subspace Descent}},
  year = {2019},
  eprint = {1904.01145},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.01145},
}
Figure