Skip to main content
QUICK REVIEW

[Paper Review] Inv-ASKIT: A Parallel Fast Diret Solver for Kernel Matrices

Chenhan D. Yu, William B. March|arXiv (Cornell University)|Feb 3, 2016
Stochastic Gradient Optimization TechniquesComputer Science19 references4 citations
TL;DR

Inv-ASKIT is a parallel fast direct solver for kernel matrices that enables $\mathcal{O}(N\log N)$ solution of linear systems $\lambda I + K$ by exploiting hierarchical low-rank structure via ASKIT-based matrix approximation. It achieves $\mathcal{O}(N\log^2 N)$ factorization and scales to 4,096 cores, solving a 32M×32M matrix on high-dimensional data with up to 50% of peak FLOPS, representing a multi-order-of-magnitude improvement over prior methods.

ABSTRACT

We present a parallel algorithm for computing the approximate factorization of an $N$-by-$N$ kernel matrix. Once this factorization has been constructed (with $N \log^2 N $ work), we can solve linear systems with this matrix with $N \log N $ work. Kernel matrices represent pairwise interactions of points in metric spaces. They appear in machine learning, approximation theory, and computational physics. Kernel matrices are typically dense (matrix multiplication scales quadratically with $N$) and ill-conditioned (solves can require 100s of Krylov iterations). Thus, fast algorithms for matrix multiplication and factorization are critical for scalability. Recently we introduced ASKIT, a new method for approximating a kernel matrix that resembles N-body methods. Here we introduce INV-ASKIT, a factorization scheme based on ASKIT. We describe the new method, derive complexity estimates, and conduct an empirical study of its accuracy and scalability. We report results on real-world datasets including "COVTYPE" ($0.5$M points in 54 dimensions), "SUSY" ($4.5$M points in 8 dimensions) and "MNIST" (2M points in 784 dimensions) using shared and distributed memory parallelism. In our largest run we approximately factorize a dense matrix of size 32M $ imes$ 32M (generated from points in 64 dimensions) on 4,096 Sandy-Bridge cores. To our knowledge these results improve the state of the art by several orders of magnitude.

Motivation & Objective

  • To address the scalability and ill-conditioning challenges of dense kernel matrices in high-dimensional settings, where standard direct and iterative solvers are prohibitively expensive.
  • To develop a parallel, direct solver that achieves $\mathcal{O}(N\log N)$ solve time and $\mathcal{O}(N\log^2 N)$ factorization cost for kernel matrices defined on large, high-dimensional datasets.
  • To enable shared and distributed memory parallelism for kernel matrix factorization and inversion, supporting a wide range of kernels including variable-bandwidth and non-symmetric cases.
  • To demonstrate high accuracy and strong scalability on real-world datasets such as COVTYPE, SUSY, and MNIST, even at extreme scales (e.g., 32M×32M matrices).
  • To provide a preconditioner for iterative solvers like GMRES, significantly accelerating convergence in kernel-based machine learning applications.

Proposed method

  • The method uses ASKIT to decompose the kernel matrix $K$ into a block-diagonal matrix, a low-rank matrix, and a sparse matrix ($S$), enabling hierarchical low-rank approximation.
  • It applies the Sherman-Morrison-Woodbury formula recursively to invert $\lambda I + K$ by inverting the block-diagonal and low-rank components separately, reducing the overall complexity.
  • The factorization is computed in $\mathcal{O}(N\log^2 N)$ time using a hierarchical tree structure that groups points based on spatial proximity and kernel decay.
  • The algorithm supports both shared and distributed memory parallelism, with dynamic load balancing and communication-avoiding data layouts to minimize overhead.
  • For iterative solvers, Inv-ASKIT is used as a preconditioner, with the inverse of $\tilde{K}$ applied as an initial guess to accelerate GMRES convergence.
  • The method requires only $\mathcal{O}(d)$ time per kernel entry evaluation, making it suitable for high-dimensional input spaces.

Experimental results

Research questions

  • RQ1Can a direct solver for kernel matrices achieve $\mathcal{O}(N\log N)$ solve time while maintaining high accuracy on high-dimensional data?
  • RQ2Can hierarchical low-rank matrix approximations enable scalable, parallel factorization and inversion of dense kernel matrices across shared and distributed memory systems?
  • RQ3How does Inv-ASKIT compare in accuracy and convergence speed to Krylov iterative methods when used as a preconditioner in kernel ridge regression?
  • RQ4What is the practical scalability of Inv-ASKIT on extreme-scale datasets (e.g., 32M×32M matrices) and large core counts (e.g., 4,096 cores)?
  • RQ5Can the method handle variable-bandwidth and non-symmetric kernels without requiring symmetry assumptions?

Key findings

  • Inv-ASKIT successfully factorized a 32M×32M kernel matrix on 4,096 cores, achieving up to 50% of peak FLOPS performance, which represents a multi-order-of-magnitude improvement over prior state-of-the-art methods.
  • On the COVTYPE dataset (0.5M points in 54D), Inv-ASKIT achieved 96% classification accuracy with $\tilde{K}$ and 97% with the inclusion of nearest-neighbor sparse correction $S$.
  • For the SUSY dataset (4.5M points in 8D), the method achieved 79% accuracy, and for MNIST (2M points in 784D), it reached 100% accuracy in kernel regression tasks.
  • When used as a preconditioner in GMRES, Inv-ASKIT reduced the number of iterations from 100 to 0 (immediate convergence) in several experiments, demonstrating high accuracy and effective preconditioning.
  • In weak scaling experiments, Inv-ASKIT maintained high efficiency across 4,096 cores, with communication and computation costs scaling favorably.
  • The method achieved a 2× to 3× speedup over non-preconditioned GMRES and showed strong scalability on both synthetic and real-world datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.