arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2012.11083cs.LG
收藏

基于图的最近邻搜索的一个注记

A Note on Graph-Based Nearest Neighbor Search

Donghua University(东华大学);University of New South Wales(新南威尔士大学);Tianjin University of Technology(天津理工大学)

Hongya Wang, Zhizheng Wang, Wei Wang, Yingyuan Xiao, Zeng Zhao, Kaixiang Yang

摘要:

最近邻搜索在机器学习、数据采掘和海量数据处理系统中有着广泛的应用。在过去的几年里,基于图的最近邻搜索范式的流行,因为它的优越性比空间划分算法。虽然大量的实证研究证明了基于图的算法的效率,但没有太多的注意力放在一个更基本的问题上:为什么基于图的算法在实践中工作得这么好?哪些数据属性会影响效率以及如何影响?在本文中,我们试图回答这些问题。我们的见解是,“点o的邻居倾向于成为KNN图中邻居的概率”是查询效率的关键数据属性。对于一个给定的数据集,这种性质可以定性地衡量KNN图的聚类系数。为了说明聚类系数如何影响性能,我们发现,而不是全局连接,一些给定的查询q周围的局部连接有更直接的影响召回。具体地说,我们观察到,高聚类系数使得q的k个最近邻的大部分位于图中的最大强连通分量(SCC)中。从算法的角度来看,我们表明,搜索过程实际上是由两个阶段-一个最大SCC外,另一个在它,这是不同于广泛接受的单路径或多路径搜索模型。我们证明了常用的基于图的搜索算法在访问最大SCC中的任何一点时都能遍历最大SCC,分析表明,聚类系数越高,最大SCC的大小越大,因此,两阶段搜索过程提供了良好的答案质量。广泛的实证结果在一个全面的收集数据集验证了我们的研究结果。

英文摘要:

Nearest neighbor search has found numerous applications in machine learning, data mining and massive data processing systems. The past few years have witnessed the popularity of the graph-based nearest neighbor search paradigm because of its superiority over the space-partitioning algorithms. While a lot of empirical studies demonstrate the efficiency of graph-based algorithms, not much attention has been paid to a more fundamental question: why graph-based algorithms work so well in practice? And which data property affects the efficiency and how? In this paper, we try to answer these questions. Our insight is that "the probability that the neighbors of a point o tends to be neighbors in the KNN graph" is a crucial data property for query efficiency. For a given dataset, such a property can be qualitatively measured by clustering coefficient of the KNN graph. To show how clustering coefficient affects the performance, we identify that, instead of the global connectivity, the local connectivity around some given query q has more direct impact on recall. Specifically, we observed that high clustering coefficient makes most of the k nearest neighbors of q sit in a maximum strongly connected component (SCC) in the graph. From the algorithmic point of view, we show that the search procedure is actually composed of two phases - the one outside the maximum SCC and the other one in it, which is different from the widely accepted single or multiple paths search models. We proved that the commonly used graph-based search algorithm is guaranteed to traverse the maximum SCC once visiting any point in it. Our analysis reveals that high clustering coefficient leads to large size of the maximum SCC, and thus provides good answer quality with the help of the two-phase search procedure. Extensive empirical results over a comprehensive collection of datasets validate our findings.

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

↑