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

邻近图上的约束近似相似搜索

Constrained Approximate Similarity Search on Proximity Graph

Weijie Zhao, Shulong Tan, Ping Li

摘要:

建立搜索引擎和推荐系统以有效地显示来自这些大量候选者的相关信息。通常,在这些系统中采用三阶段机制:(i)首先通过(例如,)近似近邻搜索算法;(ii)然后对检索到的项目应用一组约束;(iii)采用细粒度排名神经网络来确定最终推荐。我们观察到原始三阶段流水线的一个主要缺陷:虽然我们在最终建议中只针对检索$k$向量,但我们必须为每个查询预设足够大的$s$($s > k$),并且“确保”过滤后存活的向量数量不小于$k$。即,$s$相似候选中的至少$k$向量满足查询约束。在本文中,我们研究这个受约束的相似性搜索问题,并试图合并的相似性搜索阶段和过滤阶段到一个单一的搜索操作。我们介绍了飞艇,一个系统,集成了用户定义的功能过滤到相似性搜索框架。建议的系统不需要建立额外的索引,也不需要先验知识的查询约束。我们提出了三种优化策略:(1)起点选择,(2)多方向搜索,(3)偏向优先级队列选择。仿真数据和实际数据的实验验证了算法的有效性。在这项研究中,我们专注于基于图的约束近似近邻(ANN)搜索,部分原因是基于图的ANN被称为实现出色的性能。我们相信也有可能开发基于约束哈希的ANN或基于约束量化的ANN。

英文摘要:

Search engines and recommendation systems are built to efficiently display relevant information from those massive amounts of candidates. Typically a three-stage mechanism is employed in those systems: (i) a small collection of items are first retrieved by (e.g.,) approximate near neighbor search algorithms; (ii) then a collection of constraints are applied on the retrieved items; (iii) a fine-grained ranking neural network is employed to determine the final recommendation. We observe a major defect of the original three-stage pipeline: Although we only target to retrieve $k$ vectors in the final recommendation, we have to preset a sufficiently large $s$ ($s > k$) for each query, and ``hope'' the number of survived vectors after the filtering is not smaller than $k$. That is, at least $k$ vectors in the $s$ similar candidates satisfy the query constraints. In this paper, we investigate this constrained similarity search problem and attempt to merge the similarity search stage and the filtering stage into one single search operation. We introduce AIRSHIP, a system that integrates a user-defined function filtering into the similarity search framework. The proposed system does not need to build extra indices nor require prior knowledge of the query constraints. We propose three optimization strategies: (1) starting point selection, (2) multi-direction search, and (3) biased priority queue selection. Experimental evaluations on both synthetic and real data confirm the effectiveness of the proposed AIRSHIP algorithm. We focus on constrained graph-based approximate near neighbor (ANN) search in this study, in part because graph-based ANN is known to achieve excellent performance. We believe it is also possible to develop constrained hashing-based ANN or constrained quantization-based ANN.

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

↑