[Paper Review] Communication-Avoiding Linear Algebraic Kernel K-Means on GPUs
The paper presents a distributed-memory, multi-GPU implementation of exact Kernel K-means (on million-scale data) using communication-avoiding linear algebra primitives, notably a novel 1.5D algorithm that fuses GEMM and SpMM to minimize communication.
Clustering is an important tool in data analysis, with K-means being popular for its simplicity and versatility. However, it cannot handle non-linearly separable clusters. Kernel K-means addresses this limitation but requires a large kernel matrix, making it computationally and memory intensive. Prior work has accelerated Kernel K-means by formulating it using sparse linear algebra primitives and implementing it on a single GPU. However, that approach cannot run on datasets with more than approximately 80,000 samples due to limited GPU memory. In this work, we address this issue by presenting a suite of distributed-memory parallel algorithms for large-scale Kernel K-means clustering on multi-GPU systems. Our approach maps the most computationally expensive components of Kernel K-means onto communication-efficient distributed linear algebra primitives uniquely tailored for Kernel K-means, enabling highly scalable implementations that efficiently cluster million-scale datasets. Central to our work is the design of partitioning schemes that enable communication-efficient composition of the linear algebra primitives that appear in Kernel K-means. Our 1.5D algorithm consistently achieves the highest performance, enabling Kernel K-means to scale to data one to two orders of magnitude larger than previously practical. On 256 GPUs, it achieves a geometric mean weak scaling efficiency of $79.7\%$ and a geometric mean strong scaling speedup of $4.2 imes$. Compared to our 1D algorithm, the 1.5D approach achieves up to a $3.6 imes$ speedup on 256 GPUs and reduces clustering time from over an hour to under two seconds relative to a single-GPU sliding window implementation. Our results show that distributed algorithms designed with application-specific linear algebraic formulations can achieve substantial performance improvement.
Motivation & Objective
- Motivate scalable, exact Kernel K-means clustering for large-scale datasets beyond single-GPU memory limits.
- Develop distributed-memory algorithms that map Kernel K-means components to communication-efficient linear algebra primitives.
- Explore partitioning and composition strategies that minimize inter-process communication while maintaining load balance.
- Demonstrate practical scalability and provide open-source software implementations.
Proposed method
- Map Kernel K-means to distributed GEMM and sparse-dense multiplications (SpMM/SpMV) on a distributed memory system.
- Propose four algorithms (1D, Hybrid 1D, 1.5D, 2D) with domain-specific partitioning to reduce communication.
- Introduce a 1.5D algorithm that uses SUMMA for GEMM and a 1D distribution for V to enable efficient SpMM and cluster updates.
- Exploit the sparse structure of V (one nonzero per column) to achieve load-balanced SpMM and minimal communication.
- Provide an open-source GPU implementation (Vivaldi) and compare against a single-GPU sliding-window baseline.
- Present communication cost analyses for K and D^T under each algorithm and show 1.5D achieves the best asymptotic efficiency.

Experimental results
Research questions
- RQ1How can Kernel K-means be scaled to million-scale datasets on multi-GPU clusters while computing the exact solution?
- RQ2What distributed-memory partitioning and communication strategies best balance load and minimize data transfer for Kernel K-means operations (GEMM, SpMM, SpMV)?
- RQ3Can a 1.5D architecture outperform 1D and 2D variants in both weak and strong scaling for Kernel K-means on GPUs?
- RQ4What is the practical performance of the proposed algorithms on real datasets, and how does it compare to single-GPU approaches?
Key findings
- The 1.5D algorithm achieves the highest performance, enabling Kernel K-means to scale to data sizes one to two orders of magnitude larger than previously practical.
- On 256 GPUs, the 1.5D algorithm attains a geometric mean weak scaling efficiency of 79.7% and a geometric mean strong scaling speedup of 4.2×.
- Compared to the 1D baseline, the 1.5D algorithm delivers up to 3.6× speedup in strong scaling and over 2000× faster clustering than a single-GPU sliding-window approach.
- The 1.5D and 2D algorithms can process over 1.5 million points without exhausting memory.
- The implementations are open-source in the Vivaldi package, with the project available at the provided GitHub link.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.