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

ParChain:一个基于最近邻链的并行层次凝聚聚类框架

ParChain: A Framework for Parallel Hierarchical Agglomerative Clustering using Nearest-Neighbor Chain

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);UC Riverside(加利福尼亚大学河滨分校)

Shangdi Yu, Yiqiu Wang, Yan Gu, Laxman Dhulipala, Julian Shun

摘要:

本文研究了层次聚类问题,其目标是产生一个树状图,表示聚类在不同规模的数据集。我们提出了ParChain框架设计并行层次凝聚聚类(HAC)算法,并使用该框架,我们获得新的并行算法的完整的联系,平均联系,和沃德的联系标准。与大多数需要二次存储的并行HAC算法相比,我们的新算法只需要线性存储,并且可扩展到大数据集。ParChain基于我们对最近邻链算法的并行化,并允许在每一轮合并多个集群。我们介绍了两个关键的优化,是至关重要的效率:范围查询优化,减少了距离计算的数量时,找到最近的邻居的集群,和缓存优化存储的子集以前计算的距离,这是可能被重用。实验表明,我们的高度优化的实现使用48个核心的双向超线程实现5.8- 110.1倍的加速比最先进的并行HAC算法,并实现13.75- 54.23倍的自相关加速比。与最先进的算法相比,我们的算法所需的空间减少了237.3倍。我们的算法能够扩展到具有数千万个点的数据集大小,这是现有算法无法处理的。

英文摘要:

This paper studies the hierarchical clustering problem, where the goal is to produce a dendrogram that represents clusters at varying scales of a data set. We propose the ParChain framework for designing parallel hierarchical agglomerative clustering (HAC) algorithms, and using the framework we obtain novel parallel algorithms for the complete linkage, average linkage, and Ward's linkage criteria. Compared to most previous parallel HAC algorithms, which require quadratic memory, our new algorithms require only linear memory, and are scalable to large data sets. ParChain is based on our parallelization of the nearest-neighbor chain algorithm, and enables multiple clusters to be merged on every round. We introduce two key optimizations that are critical for efficiency: a range query optimization that reduces the number of distance computations required when finding nearest neighbors of clusters, and a caching optimization that stores a subset of previously computed distances, which are likely to be reused. Experimentally, we show that our highly-optimized implementations using 48 cores with two-way hyper-threading achieve 5.8--110.1x speedup over state-of-the-art parallel HAC algorithms and achieve 13.75--54.23x self-relative speedup. Compared to state-of-the-art algorithms, our algorithms require up to 237.3x less space. Our algorithms are able to scale to data set sizes with tens of millions of points, which existing algorithms are not able to handle.

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

↑