arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.05587cs.DC
收藏

Popcorn:通过稀疏线性代数在 GPU 上加速核 K-means

Popcorn: Accelerating Kernel K-means on GPUs through Sparse Linear Algebra

Julian Bellavita, Thomas Pasquali, Laura Del Rio Martin, Flavio Vella, Giulia Guidi

AI总结:

本文提出基于 SpMM 和 SpMV 的核 K-means 稀疏线性代数表述,并实现开源 GPU 系统 Popcorn,最高较 CPU 加速 123.8 倍。

摘要:

K-means 是一种流行的聚类算法,在众多科学和工程领域具有重要应用。K-means 的一个缺点是无法识别非线性可分的簇,这在某些情况下可能导致不准确的解。核 K-means 是经典 K-means 的一种变体,能够发现非线性可分的簇。然而,其计算规模相对于数据集大小呈二次增长,即使在传统的基于 CPU 的机器上对中等规模数据集进行聚类,也需要数分钟时间。本文提出了一种使用稀疏-稠密矩阵乘法(SpMM)和稀疏矩阵-向量乘法(SpMV)的核 K-means 表述,并证明该表述能够以很少的编程工作量快速实现基于 GPU 的高速核 K-means 版本。我们的实现名为 Popcorn,是首个开源的基于 GPU 的核 K-means 实现。与基于 CPU 的核 K-means 实现相比,Popcorn 实现了最高 123.8 倍的加速;与未使用稀疏矩阵计算的基于 GPU 的核 K-means 实现相比,其加速最高达到 2.6 倍。我们的结果支持稀疏矩阵作为高效并行编程工具的有效性。

英文摘要:

K-means is a popular clustering algorithm with significant applications in numerous scientific and engineering areas. One drawback of K-means is its inability to identify non-linearly separable clusters, which may lead to inaccurate solutions in certain cases. Kernel K-means is a variant of classical K-means that can find non-linearly separable clusters. However, it scales quadratically with respect to the size of the dataset, taking several minutes to cluster even medium-sized datasets on traditional CPU-based machines. In this paper, we present a formulation of Kernel K-means using sparse-dense matrix multiplication (SpMM) and sparse matrix-vector multiplication (SpMV), and we show that our formulation enables the rapid implementation of a fast GPU-based version of Kernel K-means with little programming effort. Our implementation, named Popcorn, is the first open-source GPU-based implementation of Kernel K-means. Popcorn achieves a speedup of up to 123.8x over a CPU implementation of Kernel K-means and a speedup of up to 2.6x over a GPU implementation of Kernel K-means that does not use sparse matrix computations. Our results support the effectiveness of sparse matrices as tools for efficient parallel programming.

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

↑