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

PANDA:分布式体系结构上的极限规模并行K-最近邻算法

PANDA: Extreme Scale Parallel K-Nearest Neighbor on Distributed Architectures

Md. Mostofa Ali Patwary, Nadathur Rajagopalan Satish, Narayanan Sundaram, Jialin Liu, Peter Sadowski, Evan Racah, Suren Byna, Craig Tull, Wahid Bhimji, Prabhat, Pradeep Dubey

摘要:

计算$k$ -最近邻(KNN)是许多机器学习、数据采掘和科学计算应用中使用的核心内核之一。虽然已经提出了基于kd树的$O(\log n)$算法来计算KNN,但由于其固有的顺序性,在实践中使用线性算法。这限制了这些方法对数百万个数据点的适用性,并限制了科学领域大数据分析挑战的可扩展性。在本文中,我们提出了并行和高度优化的kd树为基础的KNN算法(建设和查询)适合分布式架构。我们的算法包括修剪搜索空间,提高节点和线程之间的负载均衡和分区的新方法。使用TB大小的数据集从三个科学应用:天体物理学,等离子体物理学和粒子物理学,我们表明,我们的实现可以构建kd树的1890亿粒子在48秒内利用$\sim$ 50,000核心。我们还演示了在12秒内计算190亿次查询的KNN。我们展示了几乎线性加速共享和分布式内存的计算机。我们的算法优于早期的实现超过一个数量级;从而从根本上提高了我们的实现对最先进的大数据分析问题的适用性。此外,我们还展示了在最近发布的英特尔至强融核处理器上的性能和可扩展性,表明我们的算法即使在大规模并行架构上也能很好地扩展。

英文摘要:

Computing $k$-Nearest Neighbors (KNN) is one of the core kernels used in many machine learning, data mining and scientific computing applications. Although kd-tree based $O(\log n)$ algorithms have been proposed for computing KNN, due to its inherent sequentiality, linear algorithms are being used in practice. This limits the applicability of such methods to millions of data points, with limited scalability for Big Data analytics challenges in the scientific domain. In this paper, we present parallel and highly optimized kd-tree based KNN algorithms (both construction and querying) suitable for distributed architectures. Our algorithm includes novel approaches for pruning search space and improving load balancing and partitioning among nodes and threads. Using TB-sized datasets from three science applications: astrophysics, plasma physics, and particle physics, we show that our implementation can construct kd-tree of 189 billion particles in 48 seconds on utilizing $\sim$50,000 cores. We also demonstrate computation of KNN of 19 billion queries in 12 seconds. We demonstrate almost linear speedup both for shared and distributed memory computers. Our algorithms outperforms earlier implementations by more than order of magnitude; thereby radically improving the applicability of our implementation to state-of-the-art Big Data analytics problems. In addition, we showcase performance and scalability on the recently released Intel Xeon Phi processor showing that our algorithm scales well even on massively parallel architectures.

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

↑