arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.17136cs.DCcs.LG
收藏

基于GPU的通信回避线性代数核K均值算法

Communication-Avoiding Linear Algebraic Kernel K-Means on GPUs

Cornell University(康奈尔大学);University of Trento(特伦托大学)

Julian Bellavita, Matthew Rubino, Nakul Iyer, Andrew Chang, Aditya Devarakonda, Flavio Vella, Giulia Guidi

AI总结:

本文提出了一种基于多GPU的通信回避线性代数核K均值算法,通过分布式内存并行算法实现大规模数据集的高效聚类,显著提升了计算效率和扩展性。

摘要:

聚类是数据挖掘中的重要工具,K均值因其简单性和通用性而流行。然而,它无法处理非线性可分的聚类。核K均值解决了这一限制,但需要一个大型的核矩阵,这使得计算和内存需求很高。先前的工作通过将核K均值转化为稀疏线性代数原语并实现于单个GPU上,加速了核K均值。然而,这种方法由于GPU内存限制,无法处理超过约80,000个样本的数据集。在本工作中,我们通过提出一套适用于多GPU系统的分布式内存并行算法,解决了这一问题。我们的方法将核K均值中最计算密集的部分映射到通信高效的分布式线性代数原语上,这些原语专门针对核K均值设计,从而实现了高效扩展的实现,能够高效地对百万级数据集进行聚类。我们工作的核心是设计了分区方案,使得出现在核K均值中的线性代数原语能够以通信高效的方式组合。我们的1.5D算法始终实现了最高性能,使核K均值能够扩展到比之前实际可行的数据集大一个到两个数量级。在256个GPU上,它实现了79.7%的几何平均弱扩展效率和4.2倍的几何平均强扩展速度。与我们的1D算法相比,1.5D方法在256个GPU上实现了高达3.6倍的速度提升,并将聚类时间从超过一小时减少到不到两秒,相对于单GPU滑动窗口实现。我们的结果表明,为特定应用设计的分布式算法可以实现显著的性能提升。

英文摘要:

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\times$. Compared to our 1D algorithm, the 1.5D approach achieves up to a $3.6\times$ 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑