In large-scale machine learning, we often face a fundamental trade-off between speed and precision. When solving massive linear systems $Ax=b$ or regression problems, classical direct solvers like Householder QR are robust and precise but prohibitively slow ($O(n^3)$). Conversely, "sketch-and-solve" methods—which compress the matrix $A$ into a smaller "sketch" $SA$ and solve the reduced problem—are incredibly fast but hit an "accuracy floor." Because the sketch is only an approximation, the solution it yields is typically only accurate to a few digits.
The research direction of Sketch-and-Precondition bridges this gap. Instead of using a sketch to solve the problem directly, researchers use the sketch to build a preconditioner for an iterative solver. This hybrid approach achieves the best of both worlds: the nearly linear runtime of randomized algorithms and the machine-precision accuracy of classical numerical linear algebra.
The Intuition: Flattening the Spectral Landscape
To understand why this works, we must look at the "condition number" of a matrix. Iterative solvers like Conjugate Gradient or LSQR converge slowly when a matrix is ill-conditioned—meaning its singular values are spread across many orders of magnitude.
A preconditioner $P$ acts as a transformation that "flattens" this spectral landscape. If we can find a $P$ such that $AP^{-1}$ is close to the identity matrix, the iterative solver will converge in just a few steps. As Zachary Frangella, Madeleine Udell, and Joel A. Tropp demonstrate in Randomized Nyström Preconditioning, a randomized sketch captures the dominant singular values of the original matrix. By using this sketch to construct $P$, we effectively neutralize the most troublesome parts of the spectrum, reducing the condition number from astronomical levels to a small constant.
From Coarse Approximation to Machine Precision
The shift from "Classical" to "Modern" Randomized Numerical Linear Algebra (RandNLA), as surveyed by Michal Derezinski and Michael W. Mahoney in Recent and Upcoming Developments in Randomized Numerical Linear Algebra for Machine Learning, is defined by this move toward high precision.
In a standard sketch-and-solve routine, the error is tied to the size of the sketch. To get more precision, you need a larger sketch, which eventually becomes as expensive as the original problem. In the sketch-and-precondition framework, the sketch size only determines the rate of convergence, not the final accuracy. As Zhao Song, Lichen Zhang, and Junze Yin show in Solving Attention Kernel Regression Problem via Pre-conditioner, the iterative solver uses the original matrix in each refinement step. This allows the algorithm to reach an error tolerance $\epsilon$ in $O(\log(1/\epsilon))$ iterations, effectively achieving machine precision in nearly linear time.
Recursive and Multi-level Strategies
A significant bottleneck in preconditioning is the cost of inverting the preconditioner itself. If the sketch is still relatively large, computing its SVD or QR decomposition can be expensive.
To solve this, Michal Derezinski, Christopher Musco, and Jiaming Yang introduced Multi-level Sketched Preconditioning (MSP). Instead of a single sketch, they use a hierarchy of sketches. Each level of the chain serves as a preconditioner for the level above it. This recursive structure, also explored by Aaron Sidford in Approaching Optimality for Solving Dense Linear Systems with Low-Rank Structure, allows for solving systems with many outlying singular values without ever performing a full-scale matrix inversion.
Applications Across Machine Learning
This framework has proven transformative for several high-stakes ML problems:
- Matrix Completion: Yuzhou Gu and Zhao Song applied these techniques to Alternating Minimization, reducing the runtime of matrix completion to nearly linear relative to the number of observed entries.
- Kernel Methods: For Gaussian Processes and Kernel Ridge Regression, where the kernel matrix is often $N \times N$, Kenneth L. Clarkson and David P. Woodruff demonstrated in Faster Kernel Ridge Regression Using Sketching and Preconditioning that preconditioning decouples the number of random features from the final model accuracy.
- Numerical Stability: A common critique of randomized solvers is their potential for instability. However, Ethan N. Epperly, Maike Meier, and Yuji Nakatsukasa proved in Fast randomized least-squares solvers can be just as accurate and stable as classical direct solvers that by combining preconditioning with iterative refinement, randomized solvers can be made provably backward stable, matching the reliability of the most trusted classical algorithms.
By reframing sketching as a tool for optimization rather than just compression, this research direction has turned randomized linear algebra into a high-precision engine capable of powering the next generation of large-scale scientific computing and AI.