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

快速单核K-最近邻图计算

Fast Single-Core K-Nearest Neighbor Graph Computation

ETH Zurich(苏黎世联邦理工学院)

Dan Kluser, Jonas Bokstaller, Samuel Rutz, Tobias Buner

摘要:

快速、可靠的K-近邻图算法由于其在许多数据处理技术中的广泛应用而比以往任何时候都更加重要。本文提出了一个运行时优化的C实现的启发式“NN下降”算法的魏东等人。为l2距离度量。解释了各种实现优化,这些优化提高了低维和高维数据集的性能。加快选择哪些数据点对来评估距离的优化主要对低维数据集有影响。提出了一种启发式算法,它利用NN-下降的迭代性质来重新排序内存中的数据,从而能够更好地利用局部性,从而提高了运行时间。对l2距离度量的限制允许使用阻塞距离评估,这显著提高了高维数据集的性能。结合优化产生的实现,显着优于所有考虑的数据集上广泛使用的NN下降的实现。例如,流行的MNIST手写数字数据集的运行时间减半。

英文摘要:

Fast and reliable K-Nearest Neighbor Graph algorithms are more important than ever due to their widespread use in many data processing techniques. This paper presents a runtime optimized C implementation of the heuristic "NN-Descent" algorithm by Wei Dong et al. for the l2-distance metric. Various implementation optimizations are explained which improve performance for low-dimensional as well as high dimensional datasets. Optimizations to speed up the selection of which datapoint pairs to evaluate the distance for are primarily impactful for low-dimensional datasets. A heuristic which exploits the iterative nature of NN-Descent to reorder data in memory is presented which enables better use of locality and thereby improves the runtime. The restriction to the l2-distance metric allows for the use of blocked distance evaluations which significantly increase performance for high dimensional datasets. In combination the optimizations yield an implementation which significantly outperforms a widely used implementation of NN-Descent on all considered datasets. For instance, the runtime on the popular MNIST handwritten digits dataset is halved.

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

↑