arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1704.07355cs.CVcs.DBcs.IRcs.MMcs.PF
收藏

基于快速ADC的最近邻搜索算法

Accelerated Nearest Neighbor Search with Quick ADC

Technicolor(特艺集团);Inria(法国国家信息与自动化研究所)

Fabien André, Anne-Marie Kermarrec, Nicolas Le Scouarnec

摘要:

高维空间中高效的最近邻搜索是许多多媒体检索系统的基础。由于响应时间短,乘积量化(PQ)是一种流行的解决方案。PQ使用多个子量化器将高维向量压缩成短代码,这使得大型数据库能够在RAM中存储。这允许快速回答NN查询,而无需访问SSD或HDD。PQ的关键特性是它可以使用缓存驻留查找表计算短代码和高维向量之间的距离。这种称为非对称距离计算(ADC)的技术的效率仍然有限,因为它执行许多缓存访问。在本文中,我们介绍了快速ADC,一种新的技术,实现了3至6倍的ADC加速利用单指令多数据(SIMD)单元在当前的CPU。有效利用SIMD需要对ADC过程进行算法更改。也就是说,快速ADC依赖于ADC的两个关键修改:(i)使用4位子量化器而不是标准的8位子量化器,以及(ii)浮点距离的量化。这使得Quick ADC能够超越最先进系统的性能,它在10亿个SIFT描述符(128位代码)上在3.4ms内实现0.94的Recall@100。

英文摘要:

Efficient Nearest Neighbor (NN) search in high-dimensional spaces is a foundation of many multimedia retrieval systems. Because it offers low responses times, Product Quantization (PQ) is a popular solution. PQ compresses high-dimensional vectors into short codes using several sub-quantizers, which enables in-RAM storage of large databases. This allows fast answers to NN queries, without accessing the SSD or HDD. The key feature of PQ is that it can compute distances between short codes and high-dimensional vectors using cache-resident lookup tables. The efficiency of this technique, named Asymmetric Distance Computation (ADC), remains limited because it performs many cache accesses. In this paper, we introduce Quick ADC, a novel technique that achieves a 3 to 6 times speedup over ADC by exploiting Single Instruction Multiple Data (SIMD) units available in current CPUs. Efficiently exploiting SIMD requires algorithmic changes to the ADC procedure. Namely, Quick ADC relies on two key modifications of ADC: (i) the use 4-bit sub-quantizers instead of the standard 8-bit sub-quantizers and (ii) the quantization of floating-point distances. This allows Quick ADC to exceed the performance of state-of-the-art systems, e.g., it achieves a Recall@100 of 0.94 in 3.4 ms on 1 billion SIFT descriptors (128-bit codes).

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

↑