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

FINGER:基于图的近似最近邻搜索的快速推理

FINGER: Fast Inference for Graph-based Approximate Nearest Neighbor Search

UCLA(加州大学洛杉矶分校);Amazon(亚马逊);UT Austin(德克萨斯大学奥斯汀分校)

Patrick H. Chen, Chang Wei-cheng, Yu Hsiang-fu, Inderjit S. Dhillon, Hsieh Cho-jui

摘要:

近似K最近邻搜索(AKNNS)现在已经在现代应用中变得无处不在,例如,作为具有双塔深度学习模型的快速搜索过程。基于图的AKNNS方法由于其优越的性能而受到极大的关注。这些方法依赖于贪婪图搜索来遍历数据点作为数据库中的嵌入向量。在这种贪婪搜索方案下,我们进行了一个关键的观察:许多距离计算不会影响搜索更新,因此这些计算可以近似而不会损害性能。因此,我们提出了手指,一个快速的推理方法,以实现高效的图搜索。FINGER通过估计具有低秩基和分布匹配的相邻残差向量之间的角度来近似距离函数。近似的距离可以用来绕过不必要的计算,这导致更快的搜索。从经验上讲,加速一个流行的基于图的方法命名为HNSW的手指被证明优于现有的基于图的方法在不同的基准数据集的20%-60%。

英文摘要:

Approximate K-Nearest Neighbor Search (AKNNS) has now become ubiquitous in modern applications, for example, as a fast search procedure with two tower deep learning models. Graph-based methods for AKNNS in particular have received great attention due to their superior performance. These methods rely on greedy graph search to traverse the data points as embedding vectors in a database. Under this greedy search scheme, we make a key observation: many distance computations do not influence search updates so these computations can be approximated without hurting performance. As a result, we propose FINGER, a fast inference method to achieve efficient graph search. FINGER approximates the distance function by estimating angles between neighboring residual vectors with low-rank bases and distribution matching. The approximated distance can be used to bypass unnecessary computations, which leads to faster searches. Empirically, accelerating a popular graph-based method named HNSW by FINGER is shown to outperform existing graph-based methods by 20%-60% across different benchmark datasets.

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

↑