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.
Navigable Proximity Graph-Driven Native Hybrid Queries with Structured and Unstructured Constraints
Hangzhou Dianzi University(杭州电子科技大学)
随着研究兴趣的激增,向量相似性搜索被应用于多个领域,包括数据采掘、计算机视觉和信息检索。{给定一组对象(例如,一组图像)和查询对象,我们可以很容易地将每个对象转换为特征向量,并应用向量相似性搜索来检索最相似的对象。然而,原始向量相似性搜索不能很好地支持\textit{hybrid queries},其中用户不仅输入非结构化查询约束(即,查询对象的特征向量)以及结构化查询约束(即,感兴趣的期望属性)。混合查询处理的目标是识别出与查询对象具有相似特征向量并满足给定属性约束的对象。最近的努力尝试通过分别执行属性过滤和向量相似性搜索并且随后合并结果来回答混合查询,这限制了效率和准确性,因为它们不是为混合查询而专门构建的。本文提出了一种基于邻近图(PG)的原生混合查询(NHQ)框架,为混合查询提供了专用的\textit{composite index and joint pruning}模块。我们可以很容易地部署现有的各种PG在这个框架上有效地处理混合查询。此外,我们提出了两个新的导航PG(NPG)与优化的边缘选择和路由策略,获得更好的整体性能比现有的PG。之后,我们在NHQ中部署了所提出的NPG以形成两种混合查询方法,它们在所有实验数据集上的性能都显着优于最先进的竞争对手(在相同的\textit{Recall}下快10 $\times$),包括8个公共数据集和1个内部真实世界数据集。我们的…