The in-memory approximate nearest neighbor search (ANNS) algorithms have achieved great success for fast high-recall query processing, but are extremely inefficient when handling hybrid queries with unstructured (i.e., feature vectors) and structured (i.e., related attributes) constraints. In this paper, we present HQANN, a simple yet highly efficient hybrid query processing framework which can be easily embedded into existing proximity graph-based ANNS algorithms. We guarantee both low latency and high recall by leveraging navigation sense among attributes and fusing vector similarity search with attribute filtering. Experimental results on both public and in-house datasets demonstrate that HQANN is 10x faster than the state-of-the-art hybrid ANNS solutions to reach the same recall quality and its performance is hardly affected by the complexity of attributes. It can reach 99\% recall@10 in just around 50 microseconds On GLOVE-1.2M with thousands of attribute constraints.
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个内部真实世界数据集。我们的…
WISK: A Workload-aware Learned Index for Spatial Keyword Queries
University of New South Wales(新南威尔士大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));The University of Auckland(奥克兰大学);The University of Melbourne(墨尔本大学);Nanyang Technological University(南洋理工大学)