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

弹性索引选择用于标签混合AKNN搜索

Elastic Index Selection for Label-Hybrid AKNN Search

University of Leicester(莱斯特大学)

Mingyu Yang, Wenxuan Xia, Wentao Li, Raymond Chi-Wing Wong, Wei Wang

AI总结:

本文提出了一种弹性索引选择方法,通过利用查询标签集的包含关系,提高AKNN搜索的效率和空间利用率。

摘要:

现实中的向量嵌入通常与额外标签相关联,例如属性和关键词。许多应用需要包含特定标签的最近邻搜索,例如搜索受特定品牌限制的产品图像嵌入。一种直接的方法是根据完整的查询标签工作负载材料化所有可能的索引。然而,这会导致索引空间和处理时间呈指数级增长,这显著限制了可扩展性和效率。在本文中,我们利用查询标签集之间的包含关系来构建部分索引,使索引能够在查询之间共享,以提高构建效率。我们引入了弹性因子界限以保证搜索性能,并使用贪心算法选择符合这些界限的索引,实现效率和空间之间的权衡。同时,我们还设计了算法以在给定的空间限制下实现最佳的弹性因子。在多个真实数据集上的实验结果表明,我们的算法可以实现接近最优的搜索性能,比最先进的方法快10倍至500倍。我们的算法具有高度的通用性,因为它不受索引类型限制,可以无缝集成到现有的优化库中。

英文摘要:

Real-world vector embeddings are usually associated with extra labels, such as attributes and keywords. Many applications require the nearest neighbor search that contains specific labels, such as searching for product image embeddings restricted to a particular brand. A straightforward approach is to materialize all possible indices according to the complete query label workload. However, this leads to an exponential increase in both index space and processing time, which significantly limits scalability and efficiency. In this paper, we leverage the inclusion relationships among query label sets to construct partial indexes, enabling index sharing across queries for improved construction efficiency. We introduce \textit{elastic factor} bounds to guarantee search performance and use the greedy algorithm to select indices that meet the bounds, achieving a tradeoff between efficiency and space. Meanwhile, we also designed the algorithm to achieve the best elastic factor under a given space limitation. Experimental results on multiple real datasets demonstrate that our algorithm can achieve near-optimal search performance, achieving up to 10x-500x search efficiency speed up over state-of-the-art approaches. Our algorithm is highly versatile, since it is not constrained by index type and can seamlessly integrate with existing optimized libraries.

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

↑