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 and appear frequently in machine learning, approximation theory, and computational physics. These matrices are typically dense and ill-conditioned, making fast algorithms for matrix multiplication and factorization critical for scalability. We introduce INV-ASKIT, a factorization scheme based on the ASKIT method. We describe the method, derive complexity estimates, and conduct an empirical study of its accuracy and scalability on real-world datasets including "COVTYPE", "SUSY", and "MNIST". In our largest run, we approximately factorize a dense matrix of size 32M $\times$ 32M on 4,096 cores, improving the state of the art by several orders of magnitude.
Introduction
In fields ranging from Gaussian processes in machine learning to N-body problems in computational physics, kernel matrices are a fundamental tool. These matrices represent pairwise interactions between $N$ points in a $d$-dimensional space. However, they present significant computational challenges. First, they are typically dense, meaning every point interacts with every other point, leading to $O(N^2)$ storage and multiplication costs. Second, they are often ill-conditioned, causing iterative solvers like GMRES to converge slowly or fail entirely. While fast solvers exist for low-dimensional data, they often struggle with the "curse of dimensionality" inherent in high-dimensional datasets.
Methodology
INV-ASKIT is a parallel direct solver designed to overcome these limitations by exploiting hierarchical low-rank structures. The algorithm reduces the computational cost of factorizing an $N \times N$ matrix from $O(N^3)$ to $O(N \log^2 N)$.
Hierarchical Decomposition and Skeletonization
The algorithm organizes data points into a hierarchical "ball tree" structure. This allows the kernel matrix to be approximated as a hierarchy where off-diagonal blocks are represented as low-rank matrices. To maintain efficiency, INV-ASKIT uses "skeletonization" via interpolative decomposition. This process identifies a subset of points (skeletons) that can represent the interactions of an entire cluster, keeping the rank of off-diagonal blocks manageable even in high dimensions.
Recursive Inversion
The core of the inversion process is the recursive application of the Sherman-Morrison-Woodbury (SMW) formula. By applying SMW up the tree, the algorithm transforms a massive global inversion problem into a series of much smaller matrix operations. This hierarchical approach allows the solver to handle matrices that would otherwise be far too large for memory or standard direct solvers.
Parallel Implementation
To achieve high performance on supercomputers, INV-ASKIT employs a hybrid parallelism model. It uses OpenMP for shared-memory parallelism within a single compute node and MPI for distributed-memory communication between nodes. This design ensures that the solver can scale across thousands of CPU cores, maintaining high efficiency even as the problem size grows.
Experimental Results
The authors evaluated INV-ASKIT on several high-dimensional datasets, including COVTYPE (54D), SUSY (8D), and MNIST (784D). Key findings include:
- Unprecedented Scale: The solver successfully factorized a dense 32M $\times$ 32M matrix (64D synthetic data) using 4,096 Sandy Bridge cores.
- Computational Efficiency: The implementation achieved up to 50% of the theoretical peak FLOPS on the Stampede supercomputer.
- Linear Scalability: Weak scaling tests demonstrated that the time to solution remains nearly constant as both the problem size and core count increase proportionally.
- Preconditioning: For matrices with sparse corrections, INV-ASKIT serves as a powerful preconditioner, reducing GMRES solution times by 3x to 5x.
Conclusion and Future Work
INV-ASKIT represents a significant leap in the ability to solve large-scale, high-dimensional kernel problems. While highly effective, future work will focus on explicitly exploiting matrix symmetry to further reduce costs, improving load balancing through dynamic task scheduling, and porting heavy matrix kernels to GPUs for additional performance gains.
Summary updated