RSN: Randomized Subspace Newton

Robert M. Gower, Dmitry Kovalev, Felix Lieder, Peter Richtárik

TL;DR

RSN (Randomized Subspace Newton) is a new optimization framework that makes second-order Newton methods practical for "huge" dimensional problems. By performing Newton steps within small, randomly sketched subspaces, the algorithm achieves global linear convergence and maintains the scale-invariance of traditional Newton methods while drastically reducing computational and memory costs.

What Problem Does This Paper Address?

In the world of machine learning and data science, we often face a "Goldilocks" problem with optimization.

On one hand, Gradient Descent (GD) and its accelerated variants are computationally cheap per iteration ($O(d)$), but they are sensitive to how data is scaled and can take a long time to converge on "ill-conditioned" problems. On the other hand, Newton’s Method converges incredibly fast and is "scale-invariant" (it doesn't care if your features are in millimeters or kilometers), but it requires solving a linear system involving a $d \times d$ Hessian matrix. When the dimensionality $d$ is in the millions—common in genomics or medical imaging—the $O(d^3)$ cost of Newton's method makes it completely unusable.

The authors tackle this gap: How can we get the robustness and speed of Newton’s method without the prohibitive cost of high-dimensional matrix algebra?

Methods

The core idea of Randomized Subspace Newton (RSN) is to solve an exact Newton system but within an inexact, randomly selected subspace.

  1. Sketching: In each iteration, the algorithm samples a "sketching matrix" $S_k$ of size $d \times s$, where the sketch size $s$ is much smaller than the full dimension $d$.
  2. Subspace Step: Instead of updating all $d$ variables, RSN finds the Newton direction constrained to the space spanned by $S_k$. This reduces the problem to solving an $s \times s$ system, which is much faster.
  3. Relative Smoothness: The authors utilize a relatively new theoretical framework called "relative smoothness and convexity." This allows them to prove convergence under weaker assumptions than the standard "strong convexity" usually required for such proofs.
  4. Algorithm 1: The resulting update looks like a standard Newton step but is "compressed" by the sketching matrix $S_k$ and its pseudoinverse.

Datasets

The authors evaluated RSN on several high-dimensional classification tasks (logistic regression) using datasets from LIBSVM and OpenML:

  • chemotherapy: Small $n$, high $d$ (61,359 features).
  • gisette: 5,000 features, highly dense.
  • news20: Over 1.3 million features, extremely sparse.
  • rcv1, real-sim, webspam: Various scales of dimensionality and sparsity.
Dataset properties

Key Insights and Ideas

  • Freedom of Sketching: One of the most powerful insights is that the theory holds for almost any sketching technique—whether you use Gaussian sketches, coordinate-based sketches, or even a sketch size of $s=1$. This gives practitioners the flexibility to design sketches that fit their specific hardware or data structure.
  • Scale Invariance: Unlike first-order methods, RSN is scale-invariant. This means it requires far less hyperparameter tuning (like step-size searching) to perform well on different types of data.
  • The "Aha" Moment on Complexity: The authors show that RSN can be viewed as a random projection of the full Newton step. This bridge between randomized linear algebra and classical optimization allows them to prove that the method converges linearly—a high bar for randomized algorithms.
  • Newton vs. Gradient: The paper clarifies that while Newton methods are generally superior for ill-conditioned problems, their advantage depends on the density of the data. In very sparse settings, the overhead of the second-order update might still be higher than simple gradient steps.

Key Results

  • Speedup: In numerical experiments, RSN consistently outperformed Accelerated Gradient Descent (AGD) in terms of wall-clock time on dense and moderately sparse datasets.
  • Feasibility: On the webspam dataset, the full Newton method was completely infeasible due to memory/time constraints, but RSN converged quickly by using manageable sketch sizes (e.g., $s=250$ to $1000$).
  • Convergence: The experiments confirmed the theoretical prediction of global linear convergence. Even with very small sketches, the "progress per second" was often superior to first-order methods.
Performance on webspam and real-sim datasets

Limitations and Future Work

  • Large $n$ (Sample Size): While RSN solves the "large $d$" problem, it doesn't explicitly address the "large $n$" problem (where you have billions of data points). The authors suggest that combining RSN with subsampling (stochastic Hessians) is a natural next step.
  • Sketching Overhead: For extremely sparse data (like news20), the cost of forming the sketched Hessian can still be high relative to the progress made.
  • Heuristic Sketches: The authors propose exploring "heuristic sketches" inspired by quasi-Newton methods (like BFGS) to further accelerate the search for the best subspace.

Summary updated

BibTeX
@inproceedings{gower2019rsn,
  author = {Robert M. Gower and Dmitry Kovalev and Felix Lieder and Peter Richtárik},
  title = {{RSN: Randomized Subspace Newton}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=zzkE1VmVYHW},
}
Figure