PANDORA:一种用于 GPU 上单链接聚类的并行树状图构建算法
PANDORA: A Parallel Dendrogram Construction Algorithm for Single Linkage Clustering on GPU
AI总结:
本文提出PANDORA,一种基于递归树收缩的并行算法,用于在GPU上高效构建单链接层次聚类的树状图,在多厂商GPU上显著优于现有最佳实现。
摘要:
本文提出了PANDORA,一种用于高效构建单链接层次聚类(包括HDBSCAN)树状图的新型并行算法。从最小生成树(MST)构建树状图的传统方法(如凝聚或分裂技术)通常难以高效并行化,尤其是在现实数据中常见的倾斜树状图情况下。PANDORA通过一种独特的递归树收缩方法应对这些挑战,该方法简化树以进行初始树状图构建,随后逐步重构完整树状图。这一过程使PANDORA在渐近意义上达到工作最优,且与树状图倾斜度无关。PANDORA中的所有步骤均完全并行,适用于GPU等大规模线程加速器。我们的实现使用Kokkos编写,支持CPU和多厂商GPU(例如Nvidia、AMD)。PANDORA的多线程版本比当前最佳的多线程实现快2.2倍,而GPU版PANDORA在AMD GPU上实现了6-20倍、在Nvidia GPU上实现了10-37倍的加速(相对于多线程PANDORA)。这些进展使得HDBSCAN在GPU上比当前最佳方法(仅将MST构建卸载至GPU并执行多线程树状图构建)获得高达6倍的加速。
英文摘要:
This paper presents \pandora, a novel parallel algorithm for efficiently constructing dendrograms for single-linkage hierarchical clustering, including \hdbscan. Traditional dendrogram construction methods from a minimum spanning tree (MST), such as agglomerative or divisive techniques, often fail to efficiently parallelize, especially with skewed dendrograms common in real-world data. \pandora addresses these challenges through a unique recursive tree contraction method, which simplifies the tree for initial dendrogram construction and then progressively reconstructs the complete dendrogram. This process makes \pandora asymptotically work-optimal, independent of dendrogram skewness. All steps in \pandora are fully parallel and suitable for massively threaded accelerators such as GPUs. Our implementation is written in Kokkos, providing support for both CPUs and multi-vendor GPUs (e.g., Nvidia, AMD). The multithreaded version of \pandora is 2.2$\times$ faster than the current best-multithreaded implementation, while the GPU \pandora implementation achieved 6-20$\times$ on \amdgpu and 10-37$\times$ on \nvidiagpu speed-up over multithreaded \pandora. These advancements lead to up to a 6-fold speedup for \hdbscan on GPUs over the current best, which only offload MST construction to GPUs and perform multithreaded dendrogram construction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。