Accelerated Nearest Neighbor Search with Quick ADC

Fabien André, Anne-Marie Kermarrec, Nicolas Le Scouarnec
4/24/2017
53 citations
cs.CVcs.DBcs.IR

Official code: technicolor-research/quick-adc (27 stars, C++, BSD-3-Clause-Clear, last commit 2019-05-31).

Abstract

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.

Show full abstract

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).

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause-Clear

Quick ADC

270C++, CMakeApr 18, 20177 years agoBSD-3-Clause-Clear
nearest-neighbor-searchproduct-quantizationsimd

Similar Papers

Cite this paper

@article{andr2017accelerated,
  title  = {Accelerated Nearest Neighbor Search with Quick ADC},
  author = {Fabien André and Anne-Marie Kermarrec and Nicolas Le Scouarnec},
  year   = {2017},
  eprint = {1704.07355},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1704.07355}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1704.07355.svg)](https://codeofpaper.com/paper/1704.07355)

Discussion