Abstract
Large-scale regularized linear systems are fundamental to many machine learning tasks, yet solving them efficiently remains a significant challenge. This paper introduces Nyström PCG, an algorithm that leverages randomized Nyström approximations to construct powerful preconditioners for the Conjugate Gradient (CG) method. By targeting the "effective dimension" of the system, Nyström PCG achieves constant condition numbers and rapid convergence, significantly outperforming traditional iterative solvers and "sketch-and-solve" heuristics.
The Challenge of Large-Scale Linear Systems
Many core machine learning and data analysis tasks—such as ridge regression, kernel ridge regression, and Gaussian processes—require solving massive regularized linear systems of the form $(A + \mu I)x = b$.
As datasets scale to millions of dimensions, exact $O(n^3)$ solvers become computationally prohibitive. Iterative methods like the Conjugate Gradient (CG) algorithm are the standard alternative, but they suffer from a fatal flaw: performance degrades severely when the system matrix is ill-conditioned (i.e., there is a large spread between its largest and smallest eigenvalues). To restore efficiency, a preconditioner is needed—a matrix that approximates the original system but is cheap to invert, effectively "flattening" the spectrum.
Methodology: Nyström PCG
The authors propose Nyström Preconditioned Conjugate Gradients (Nyström PCG). The approach follows a three-step pipeline:
- Sketching: A low-rank approximation of matrix $A$ is created using the randomized Nyström method, typically via Gaussian random projections.
- Preconditioning: A preconditioner $P$ is constructed from this low-rank approximation.
- Solving: The system is solved using standard Preconditioned Conjugate Gradient (PCG) with $P$.
The core of the method is the efficient construction of the Nyström approximation, as shown in the algorithm below:
A key innovation is the adaptive rank selection algorithm. Instead of requiring a pre-defined rank, the algorithm uses the randomized power method to estimate approximation error on the fly, automatically doubling the rank until the preconditioner is guaranteed to be effective.
Key Insights
- The Power of Effective Dimension: The rank $\ell$ required for the preconditioner to work optimally is not tied to the raw matrix size $n$. Instead, it depends on the effective dimension—a smoothed count of eigenvalues larger than the regularization parameter $\mu$.
- Iterative vs. Sketch-and-Solve: The authors prove that the popular "Nyström sketch-and-solve" heuristic is fundamentally limited; achieving high accuracy requires a rank $\ell \approx n$. Nyström PCG overcomes this by using the sketch only to guide the iterative solver, reaching high precision with a much smaller rank.
- Projection Reliability: For most ridge regression tasks, oblivious random projections (Gaussian noise) yield more reliable and lower-variance approximations than the adaptive column sampling often favored in ML literature.
Empirical Results
The method was evaluated on diverse datasets from OpenML and LIBSVM, including CIFAR-10, MNIST, and Higgs. The theoretical guarantees—proving that a sketch size roughly three times the effective dimension bounds the condition number—translate into massive empirical speedups.
As illustrated in the convergence plot, Nyström PCG reaches high accuracy in a fraction of the iterations required by standard CG. On the shuttle-rf task, Nyström PCG converged to machine precision in just 13 iterations (9.78 seconds), whereas competing state-of-the-art methods like AdaIHS took nearly 67 seconds, and standard CG stalled entirely. Furthermore, Nyström PCG is significantly more memory-efficient, requiring much smaller sketch sizes than its competitors.
Conclusion
Nyström PCG provides a robust, theoretically grounded, and practically superior approach to solving large-scale regularized linear systems. By moving beyond simple sketching heuristics to sophisticated randomized preconditioning, it offers a path forward for high-precision machine learning at scale.
Summary updated