用于高精度最近邻搜索的导出码本
Derived Codebooks for High-Accuracy Nearest Neighbor Search
摘要:
高维最近邻搜索是多媒体搜索系统的核心。积量化(PQ)是一种广泛应用的神经网络搜索技术,具有高性能和良好的可扩展性。PQ通过量化器的组合将高维向量压缩成紧凑的代码。因此,大型数据库可以完全存储在RAM中,从而能够快速响应NN查询。在几乎所有情况下,PQ都使用8位量化器,因为它们提供较低的响应时间。在本文中,我们提倡使用16位量化器。与8位量化器相比,16位量化器提高了精度,但响应时间增加了3到10倍。我们提出了一种新的方法,允许16位量化器提供相同的响应时间的8位量化器,同时仍然提供了一个提升的准确性。我们的方法建立在两个关键思想上:(i)构造派生码本,允许快速和近似的距离评估,以及(ii)两遍NN搜索过程,使用派生码本构建候选集,然后使用16位量化器对其进行细化。在10亿个SIFT向量上,使用倒排索引,我们的方法在5.2 ms内提供0.85的Recall@100。相比之下,单独的16位量化器在39 ms内提供0.85的Recall@100,并且8位量化器在3.8 ms内提供0.82的Recall@100。
英文摘要:
High-dimensional Nearest Neighbor (NN) search is central in multimedia search systems. Product Quantization (PQ) is a widespread NN search technique which has a high performance and good scalability. PQ compresses high-dimensional vectors into compact codes thanks to a combination of quantizers. Large databases can, therefore, be stored entirely in RAM, enabling fast responses to NN queries. In almost all cases, PQ uses 8-bit quantizers as they offer low response times. In this paper, we advocate the use of 16-bit quantizers. Compared to 8-bit quantizers, 16-bit quantizers boost accuracy but they increase response time by a factor of 3 to 10. We propose a novel approach that allows 16-bit quantizers to offer the same response time as 8-bit quantizers, while still providing a boost of accuracy. Our approach builds on two key ideas: (i) the construction of derived codebooks that allow a fast and approximate distance evaluation, and (ii) a two-pass NN search procedure which builds a candidate set using the derived codebooks, and then refines it using 16-bit quantizers. On 1 billion SIFT vectors, with an inverted index, our approach offers a Recall@100 of 0.85 in 5.2 ms. By contrast, 16-bit quantizers alone offer a Recall@100 of 0.85 in 39 ms, and 8-bit quantizers a Recall@100 of 0.82 in 3.8 ms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。