[논문 리뷰] Communication-Avoiding Linear Algebraic Kernel K-Means on GPUs
논문은 커뮤니케이션 회피 선형대수 프리미티브를 사용한 정확 Kernel K-means의 분산-메모리 다중-GPU 구현을 제시하며, 특히 커뮤니케이션을 최소화하기 위해 GEMM과 SpMM을 융합하는 새로운 1.5D 알고리즘이 주목된다.
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.
연구 동기 및 목표
- 대형 데이터 세트에 대한 단일-GPU 메모리 한계를 넘어 확장 가능한, 정확한 Kernel K-means 클러스터링 동기를 제공한다.
- 커뮤니케이션 효율적인 선형대수 프리미티브에 Kernel K-means 구성 요소를 매핑하는 분산-메모리 알고리즘을 개발한다.
- 인터프로세스 간 통신을 최소화하면서 부하 균형을 유지하는 파티셔닝 및 구성 전략을 탐구한다.
- 실용적인 확장성을 시연하고 오픈 소스 소프트웨어 구현을 제공한다.
제안 방법
- 분산 메모리 시스템에서 Kernel K-means를 분산 GEMM 및 희소-밀도 곱셈(SpMM/SpMV)에 매핑한다.
- 통신 감소를 위해 도메인 특화 파티셔닝을 갖춘 네 가지 알고리즘(1D, Hybrid 1D, 1.5D, 2D)을 제안한다.
- GEMM을 위한 SUMMA와 V에 대한 1D 분배를 활용하여 SpMM 및 군집 업데이트의 효율을 높이는 1.5D 알고리즘을 도입한다.
- V의 희소 구조(열당 하나의 비제로)가 로드밸런스가 잘 되는 SpMM과 최소 통신을 달성하도록 활용한다.
- 오픈 소스 GPU 구현(Vivaldi)을 제공하고 단일-GPU 슬라이딩 윈도우 기준선과 비교한다.
- 각 알고리즘 하에서 K와 D^T의 통신 비용 분석을 제시하고 1.5D가 가장 우수한 점근 효율성을 달성함을 보인다.

실험 결과
연구 질문
- RQ1Kernel K-means를 다중-GPU 클러스터에서 정확한 해를 계산하며 백만 규모의 데이터 세트로 확장하는 방법은?
- RQ2GEMM, SpMM, SpMV와 같은 Kernel K-means 연산에 대해 로드 밸런스와 데이터 전송을 최소화하는 분산-메모리 파티셔닝 및 통신 전략은 무엇인가?
- RQ31D 및 2D 변형보다 1.5D 아키텍처가 약한 확장성과 강한 확장성 모두에서 더 우수한가?
- RQ4제안 알고리즘의 실제 데이터셋에서의 실용적 성능은 어떠하며 단일-GPU 접근법과 비교하면 어떠한가?
주요 결과
- 1.5D 알고리즘은 가장 높은 성능을 달성하여 Kernel K-means를 이전에 실용적이던 규모의 한두 배 더 큰 데이터 크기로 확장 가능하게 한다.
- 256 GPUs에서 1.5D 알고리즘은 기하평균 약한 확장 효율 79.7%를 달성하고 기하평균 강한 확장 속도up 4.2×를 달성한다.
- 1D 기준선과 비교하여 1.5D 알고리즘은 강한 확장에서 최대 3.6×의 속도향상과 단일-GPU 슬라이딩 윈도우 방식보다 2000× 이상 빠른 클러스터링을 제공한다.
- 1.5D 및 2D 알고리즘은 메모리를 다 소진하지 않고도 1.5백만 포인트를 초과하여 처리할 수 있다.
- 구현은 Vivaldi 패키지에서 오픈 소스이며, 프로젝트는 제공된 GitHub 링크에서 이용 가능하다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.