Sketch Based Preconditioning for Iterative Solvers

40 concepts27 papers1 proposal

When facing a massive linear system $Ax = b$, numerical linear algebra offers two traditional paths, each with a painful compromise. On one hand, direct solvers like QR decomposition or SVD provide exact, high-precision solutions down to machine precision, but their computational cost scales cubically or quadratically with matrix dimensions. On the other hand, Randomized Numerical Linear Algebra (RandNLA) offers a fast alternative. As reviewed by Michael W. Mahoney in Randomized algorithms for matrices and data, techniques like matrix sketching compress a massive matrix $A$ into a much smaller sketch $SA$ via random projections, allowing us to solve a proxy problem in a fraction of the time.

However, pure "sketch-and-solve" methods suffer from a severe limitation: they are inherently low-precision. To reduce the approximation error to a tiny tolerance $\epsilon$, the required size of the sketch matrix $S$ grows rapidly, destroying the computational advantage. If you need high precision, pure sketching fails.

To escape this dilemma, modern frameworks combine the two paradigms. Instead of using a sketch to compute the final answer, they use the sketch to construct a preconditioner for a classical iterative solver. As noted by Jiyan Yang et al. in Implementing Randomized Matrix Algorithms in Parallel and Distributed Environments, this hybrid approach bridges the gap between low-precision approximation and high-precision exact computation, delivering the best of both worlds.

The Geometry of Sketch-Based Preconditioning

To understand why this works, we must look at the geometry of iterative optimization. When an iterative solver like Gradient Descent or Conjugate Gradient attempts to solve $Ax = b$, its speed depends heavily on the condition number $\kappa(A)$—the ratio of the matrix's largest to smallest singular values. Geometrically, a large condition number means the optimization landscape is a highly elongated, narrow valley. The solver wastes time bouncing back and forth across the canyon walls rather than moving down the floor toward the minimum.

Preconditioning fixes this by transforming the system. If we can find a matrix $P$ such that $P \approx A$, we can solve the modified system $AP^{-1}y = b$. If $P$ is a good approximation, the condition number of the new system $AP^{-1}$ drops close to 1. Geometrically, the elongated valley is warped into a perfectly symmetric, spherical bowl, allowing the solver to march directly to the center in very few steps.

This is where sketching shines. Because a random projection matrix $S$ acts as a subspace embedding, the compressed matrix $SA$ preserves the essential geometric structure and spectrum of the original matrix $A$ with high probability. As explained by David P. Woodruff et al. in Sketching as a Tool for Numerical Linear Algebra, we can compute a direct factorization (such as a QR decomposition) on the small sketch $SA$ to extract an upper-triangular factor $R$.

Because $SA$ accurately mirrors the geometry of $A$, this factor $R$ serves as an exceptional preconditioner. The condition number of the preconditioned matrix $AR^{-1}$ becomes bounded by a small, predictable constant, completely independent of the original matrix's condition number or raw dimensions.

Achieving Exponential Convergence

Once the condition number is flattened to a constant, the iterative solver is liberated from the scale of the original problem. The number of iterations required to reach a target accuracy no longer depends on the matrix's ill-conditioning; instead, it becomes a small, fixed constant.

This leads to a profound algorithmic shift: the computational cost to achieve an error tolerance of $\epsilon$ scales logarithmically ($\log(1/\epsilon)$) rather than polynomially. For example, Agniva Chowdhury et al. demonstrated in An Iterative, Sketching-based Framework for Ridge Regression that embedding randomized dimensionality reduction as a preconditioning step within a classical Richardson iteration guarantees that the approximate solution converges to the exact optimum at a geometric rate.

This principle applies far beyond simple regression. Zhao Song et al. leveraged this mechanism in Solving Attention Kernel Regression Problem via Pre-conditioner to tackle the massive attention-like matrices that bottleneck Large Language Models, achieving near-linear runtimes for high-precision solutions.

Crucially, this process does not require continuous re-sketching. Ethan N. Epperly proved in Fast and forward stable randomized algorithms for linear least-squares problems that a "fixed-sketch" strategy—where a single random projection generates a preconditioner applied across all subsequent iterations—is numerically forward-stable in floating-point arithmetic. Building on this stability, Maike Meier et al. introduced algorithms in Fast randomized least‐squares solvers can be just as accurate and stable as classical direct solvers that match the exact precision of traditional direct solvers while running asymptotically faster.

Stabilizing Optimization Trajectories

The power of sketch-based preconditioning becomes even more apparent in constrained optimization, particularly within Interior Point Methods (IPMs) for Linear Programming.

In a standard IPM, the algorithm solves a sequence of linear systems to navigate toward the optimal solution. However, as the trajectory nears the boundary of the feasible region, the underlying linear systems become notoriously ill-conditioned. The condition number explodes toward infinity, causing standard iterative solvers to stall or suffer catastrophic numerical failure.

To prevent this, the authors of Speeding up Linear Programming using Randomized Linear Algebra integrated sketch-based preconditioning directly into the IPM loop. By sketching the constraint matrix at each step, they stabilize the condition number, keeping it bounded by a constant throughout the entire optimization process. As further detailed by Agniva Chowdhury et al. in On the Convergence of Inexact Predictor-Corrector Methods for Linear Programming, this achieves "spectral independence," ensuring that the number of inner iterations remains small and constant even as the outer optimization approaches the optimum. To minimize overhead, the authors of Faster Randomized Interior Point Methods for Tall/Wide Linear Programs showed that the error correction vectors can reuse the exact same sketched matrices, eliminating redundant computations.

Recursive Hierarchies and Multi-Level Sketching

While sketch-based preconditioning dramatically accelerates linear algebra, computing the direct factorization of the sketch matrix $SA$ can still become a bottleneck when dealing with truly massive or dense systems.

To bypass this limitation, Michal Derezinski et al. introduced Multi-level Sketched Preconditioning (MSP) in Faster Linear Systems and Matrix Norm Approximation via Multi-level Sketched Preconditioning. Instead of explicitly constructing and inverting the preconditioner, MSP treats the application of the preconditioner as a nested linear sub-problem. This sub-problem is then solved using another layer of sketching, creating a recursive hierarchy of approximations.

By combining matrix sketching with low-rank update formulas like the Woodbury matrix identity, the authors of Approaching Optimality for Solving Dense Linear Systems with Low-Rank Structure demonstrated that these recursive preconditioning steps can efficiently resolve systems that are well-conditioned except for a few outlying singular values. This hierarchical approach eliminates the need for explicit matrix inversion entirely, unlocking near-optimal time complexities for dense linear systems and matrix norm approximations.

Key Foundational Work

Randomized Extended Kaczmarz for Solving Least Squares (2013) — contributed 2 concept elements to this direction.
Randomized algorithms for matrices and data (2011) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_randomized_preconditioning_sketch_based__070d0350,
  title = {randomized preconditioning (sketch-based preconditioning)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/randomized-preconditioning-sketch-based-preconditioning/rdr_070d03506e534597be4f028a24706dfb},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_randomized_preconditioning_sketch_based__070d0350_v1,
  title = {randomized preconditioning (sketch-based preconditioning)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/randomized-preconditioning-sketch-based-preconditioning/rdr_070d03506e534597be4f028a24706dfb/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake