BBC:基于桶的结果收集器改进大规模k近似最近邻搜索
BBC: Improving Large-k Approximate Nearest Neighbor Search with a Bucket-based Result Collector
AI总结:
针对大规模k近似最近邻查询中现有量化索引方法性能下降的问题,提出一种基于桶的结果收集器(BBC),通过桶式结果缓冲区和两种重排序算法,显著提升查询效率。
摘要:
尽管近似最近邻(ANN)搜索已被广泛研究,但旨在检索大量最近邻的大规模k ANN查询在众多实际应用中仍未得到充分探索。现有的ANN方法在此类查询中面临显著的性能下降。本文首先研究了基于量化的ANN索引性能下降的原因:(1)现有top-k收集器的低效性,导致候选维护开销巨大;(2)量化方法的剪枝效果降低,导致重排序过程成本高昂。为此,我们提出了一种新颖的基于桶的结果收集器(BBC),以增强现有基于量化的ANN索引在大规模k ANN查询中的效率。BBC引入两个关键组件:(1)基于桶的结果缓冲区,根据候选对象与查询的距离将其组织到桶中。该设计降低了排序成本并提高了缓存效率,从而能够高效维护候选超集并轻量级地最终选择top-k结果。(2)两种针对不同类型量化方法量身定制的重排序算法,通过减少需要重排序的候选对象数量或缓存未命中次数来加速其重排序过程。在真实数据集上的大量实验表明,对于大规模k ANN查询,在recall@k = 0.95时,BBC将现有基于量化的ANN方法加速高达3.8倍。
英文摘要:
Although Approximate Nearest Neighbor (ANN) search has been extensively studied, large-k ANN queries that aim to retrieve a large number of nearest neighbors remain underexplored, despite their numerous real-world applications. Existing ANN methods face significant performance degradation for such queries. In this work, we first investigate the reasons for the performance degradation of quantization-based ANN indexes: (1) the inefficiency of existing top-k collectors, which incurs significant overhead in candidate maintenance, and (2) the reduced pruning effectiveness of quantization methods, which leads to a costly re-ranking process. To address this, we propose a novel bucket-based result collector (BBC) to enhance the efficiency of existing quantization-based ANN indexes for large-k ANN queries. BBC introduces two key components: (1) a bucket-based result buffer that organizes candidates into buckets by their distances to the query. This design reduces ranking costs and improves cache efficiency, enabling high performance maintenance of a candidate superset and a lightweight final selection of top-k results. (2) two re-ranking algorithms tailored for different types of quantization methods, which accelerate their re-ranking process by reducing either the number of candidate objects to be re-ranked or cache misses. Extensive experiments on real-world datasets demonstrate that BBC accelerates existing quantization-based ANN methods by up to 3.8x at recall@k = 0.95 for large-k ANN queries.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。