Sketch and Project: Randomized Iterative Methods for Linear Systems and Inverting Matrices

Robert M. Gower · DOI

Abstract

Probabilistic ideas and tools have recently begun to permeate into several fields where they had traditionally not played a major role, including fields such as numerical linear algebra and optimization. One of the key ways in which these ideas influence these fields is via the development and analysis of randomized algorithms for solving standard and new problems of these fields. Such methods are typically easier to analyze, and often lead to faster and/or more scalable and versatile methods in practice. This thesis explores the design and analysis of new randomized iterative methods for solving linear systems and inverting matrices. The methods are based on a novel sketch-and-project framework. By sketching we mean, to start with a difficult problem and then randomly generate a simple problem that contains all the solutions of the original problem. After sketching the problem, we calculate the next iterate by projecting our current iterate onto the solution space of the sketched problem.

Introduction

In the era of "Big Data," traditional direct methods for solving linear systems ($Ax = b$) or inverting large matrices, such as Gaussian elimination, are increasingly impractical. These methods typically scale at $O(n^3)$ complexity and require the entire matrix to reside in memory—a significant bottleneck for high-dimensional datasets. Randomized iterative methods offer a scalable alternative by processing small portions of the matrix at a time. However, these methods were historically developed in isolation. This research introduces the Sketch-and-Project framework, a unified theoretical lens that explains existing randomized algorithms and facilitates the design of new, high-performance solvers.

The Sketch-and-Project Framework

The core of the proposed framework is a two-step iterative process:

  1. Sketch: A large-scale problem is multiplied by a random matrix ($S$) to create a lower-dimensional "sketched" version. This simpler problem preserves the solution space of the original system.
  2. Project: The current iterate is updated by projecting it onto the solution space of the sketched problem.

By varying the geometry (defined by a matrix $B$) and the random distribution of the sketch ($S$), this framework unifies several well-known algorithms. For instance, Randomized Kaczmarz emerges when projecting onto a single random row, while Randomized Coordinate Descent corresponds to updating a single variable. The framework also encompasses Randomized Newton Methods by incorporating second-order information.

The Duality Insight

A significant theoretical breakthrough in this work is the discovery that "Sketch-and-Project" in the primal space is mathematically identical to Stochastic Dual Ascent (SDA) in the dual space. This link is crucial because it allows researchers to leverage established tools from optimization theory to prove convergence for linear algebra problems. This duality holds even for "rank-deficient" systems where the matrix does not have full information, providing a robust path for solving underdetermined systems.

Advanced Algorithms: AdaRBFGS

Building on this framework, the thesis introduces AdaRBFGS, an adaptive variant of the Broyden–Fletcher–Goldfarb–Shanno (BFGS) algorithm. Unlike static randomized methods, AdaRBFGS "learns" an optimal sketching distribution during the iterative process. By using information gained in previous iterations to tweak the distribution of $S$, the algorithm can achieve superlinear-like speedups. In head-to-head tests against established methods like Newton-Schulz and Minimal Residual (MR) solvers, AdaRBFGS was found to be orders of magnitude faster on large-scale problems.

Experimental Evaluation

The methods were benchmarked against a diverse range of datasets:

  • Synthetic Matrices: Randomly generated dense and sparse matrices, including ill-conditioned Hilbert matrices.
  • Matrix Market Collection: Real-world engineering problems (e.g., well1033, bcsstk18).
  • LIBSVM Library: Large-scale machine learning datasets used for ridge regression (e.g., SUSY, covtype, real-sim).

Key Results

  • Exponential Convergence: The research provides a unified theorem proving that all methods within the Sketch-and-Project family converge "globally and linearly" (error drops exponentially) under very mild conditions.
  • Scalability: On the high-dimensional real-sim dataset (over 20,000 dimensions), AdaRBFGS variants were uniquely capable of reaching target precision within reasonable computational limits.
  • The Advantage of Low Rank: Surprisingly, the convergence of these randomized methods actually improves as the rank of the system matrix drops—the opposite of many traditional methods that struggle with low-rank data.
  • Block Efficiency: "Block" variants, which sketch multiple rows or columns simultaneously, were consistently more efficient than single-vector updates.

Discussion and Future Directions

While the results are impressive, the author notes trade-offs in iteration costs. Dense "Gaussian" sketches provide fast convergence in terms of iteration count but are computationally expensive per step. Discrete sampling (picking specific rows/columns) is often faster in "wall-clock time" for sparse data.

Future work will focus on formalizing the superlinear convergence theory for AdaRBFGS and extending the framework to more complex equations, such as Sylvester and Lyapunov equations. By transforming randomized linear algebra into a rigorous, unified discipline, this work provides a robust toolbox for modern large-scale computational challenges.

Summary updated

Abstract

Probabilistic ideas and tools have recently begun to permeate into several fields where they had traditionally not played a major role, including fields such as numerical linear algebra and optimization. One of the key ways in which these ideas influence these fields is via the development and analysis of randomized algorithms for solving standard and new problems of these fields. Such methods are typically easier to analyze, and often lead to faster and/or more scalable and versatile methods in practice. This thesis explores the design and analysis of new randomized iterative methods for solving linear systems and inverting matrices. The methods are based on a novel sketch-and-project framework. By sketching we mean, to start with a difficult problem and then randomly generate a simple problem that contains all the solutions of the original problem. After sketching the problem, we calculate the next iterate by projecting our current iterate onto the solution space of the sketched problem.
BibTeX
@misc{gower2016sketch,
  author = {Robert M. Gower},
  title = {{Sketch and Project: Randomized Iterative Methods for Linear Systems and Inverting Matrices}},
  year = {2016},
  eprint = {1612.06013},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1612.06013},
}
Figure