An Adaptive Factorized Nyström Preconditioner for Regularized Kernel Matrices

Shifan Zhao, Tianshi Xu, Edmond Chow, Yuanzhe Xi · DOI

TL;DR

This paper introduces the Adaptive Factorized Nyström (AFN) preconditioner, a novel method for efficiently solving large linear systems involving regularized kernel matrices. AFN adapts to different kernel function parameters, significantly reducing the number of iterations required by iterative solvers, especially for challenging kernel configurations.

What Problem Does This Paper Address?

Solving linear systems of the form $(K + \mu I)a = b$, where $K$ is a kernel matrix and $\mu$ is a regularization parameter, is crucial in applications like Kernel Ridge Regression and Gaussian Process Regression. When the number of data points ($n$) is large, direct matrix factorization becomes computationally prohibitive. Iterative solvers like Conjugate Gradient (CG) are used, but their efficiency heavily depends on the spectrum of the kernel matrix. The spectrum, in turn, is sensitive to the kernel function's parameters (e.g., length-scale in Gaussian kernels). This sensitivity leads to a wide variation in the number of iterations needed for convergence, making it difficult to design a robust preconditioner. Existing Nyström-based preconditioners struggle with large approximation ranks ($k$) due to the computational cost of dense matrix factorizations.

Methods

The core contribution is the Adaptive Factorized Nyström (AFN) preconditioner. It builds upon the Nyström approximation of kernel matrices but introduces a factorized structure to handle large $k$ efficiently. Key components include:

  • Factorized Structure: Instead of directly approximating $K$, AFN approximates $K + \mu I$ using a block matrix structure. This involves a Cholesky decomposition of the well-conditioned block $K_{11} + \mu I$ (associated with landmark points) and a Factorized Sparse Approximate Inverse (FSAI) for the remaining part.
  • FSAI: This technique, inspired by the "screening effect" in geostatistics, computes a sparse approximate inverse of a dense matrix by exploiting its structure. It's particularly effective when the matrix has a sparsity pattern that can be exploited.
  • Adaptive Rank Estimation: To make the preconditioner adaptive, the paper proposes an algorithm (Algorithm 3.4) to estimate the "numerical rank" of the kernel matrix. This involves subsampling data, computing Nyström approximations with increasing ranks, and checking the relative error. This helps decide whether to use AFN or a simpler Nyström preconditioner.
  • Farthest Point Sampling (FPS): For selecting landmark points (which form the $K_{11}$ block), FPS is chosen for its balance of simplicity, effectiveness, and robustness. Its properties related to fill distance and separation distance are analyzed to justify its use.

Datasets

The paper evaluates its methods on:

  • Synthetic 3D Datasets: $n = 1.6 \times 10^5$ points sampled uniformly from a 3D cube. Experiments are conducted with Gaussian and Matérn-3/2 kernels.
  • Machine Learning Datasets:
    • IJCNN1: A dataset with $n = 49990$ data points and 22 features (from LIBSVM).
  • Elevators: A dataset with $n = 16599$ data points and 18 features (from UCI).
  • Gaussian kernel is used for IJCNN1, and Matérn-3/2 for Elevators.

Key Insights and Ideas

  • The "Screening Effect" as a Motivator for FSAI: The paper leverages the idea that in Gaussian processes, predictions often depend more on nearby data points. This insight leads to the use of FSAI for approximating the inverse of a sub-block, promoting sparsity and efficiency.
  • Factorizing $K + \mu I$ vs. $K$: By factorizing the entire system matrix $K + \mu I$, AFN avoids the Sherman-Morrison-Woodbury formula often used with Nyström approximations, potentially leading to better stability and efficiency.
  • Adaptive Rank Estimation is Crucial: The performance of AFN is tied to estimating the "numerical rank." This allows the method to switch to simpler Nyström preconditioners when the rank is small, balancing accuracy and computational cost.
  • FPS for Landmark Selection: FPS is shown to provide a good balance between fill distance (how well points cover the domain) and separation distance (how far apart points are), leading to more accurate and stable Nyström approximations.

Key Results

  • Significant Iteration Reduction: AFN consistently reduces the number of CG iterations compared to unpreconditioned CG, FSAI, and RAN (Randomized Nyström) preconditioners, especially for "middle" length-scale values where other methods struggle.
  • Robustness to Kernel Parameters: AFN shows a near-constant iteration count for Matérn-3/2 kernels across varying length-scales and regularization parameters, demonstrating its robustness.
  • Competitive Setup Times: While AFN's setup time can be higher than simpler methods for very small ranks, it remains competitive and significantly reduces the overall solve time. For large estimated ranks, AFN's setup time is much lower than RAN when using the Nyström approximation form.
  • Efficiency on Large Datasets: Experiments on synthetic and real-world datasets show AFN's effectiveness in solving large-scale linear systems.

Limitations and Future Work

  • High-Dimensional Data Challenges: For high-dimensional datasets (like IJCNN1 and Elevators), the effectiveness of screening effects diminishes. The paper notes that for these cases, uniform sampling is used for landmark selection due to FPS's computational cost.
  • Future Work: The authors suggest exploring transformations to map high-dimensional data to lower-dimensional manifolds to better leverage Euclidean distance for similarity. They also plan to investigate reducing the dependence on ambient dimension in theoretical bounds and applying AFN to accelerate stochastic trace estimation and gradient-based optimization.

Summary updated

BibTeX
@article{zhao2023adaptive,
  author = {Shifan Zhao and Tianshi Xu and Edmond Chow and Yuanzhe Xi},
  title = {{An Adaptive Factorized Nyström Preconditioner for Regularized Kernel Matrices}},
  journal = {SIAM J. Sci. Comput.},
  year = {2023},
  doi = {10.1137/23m1565139},
}
Figure