Quicker ADC : Unlocking the hidden potential of Product Quantization with SIMD

Fabien André, Anne-Marie Kermarrec, Nicolas Le Scouarnec
12/21/2018
cs.CVcs.AIcs.DB

Official code: technicolor-research/faiss-quickeradc (62 stars, last commit 2019-01-03). 1 more implementation below.

Abstract

Efficient Nearest Neighbor (NN) search in high-dimensional spaces is a foundation of many multimedia retrieval systems. A common approach is to rely on Product Quantization, which allows the storage of large vector databases in memory and efficient distance computations. Yet, implementations of nearest neighbor search with Product Quantization have their performance limited by the many memory accesses they perform. Following this observation, André et al. proposed Quick ADC with up to $6\times$ faster implementations of $m\times{}4$ product quantizers (PQ) leveraging specific SIMD instructions. Quicker ADC is a generalization of Quick ADC not limited to $m\times{}4$ codes and supporting AVX-512, the latest revision of SIMD instruction set. In doing so, Quicker ADC faces the challenge of using efficiently 5,6 and 7-bit shuffles that do not align to computer bytes or words. To this end, we introduce (i) irregular product quantizers combining sub-quantizers of different granularity and (ii) split tables allowing lookup tables larger than registers. We evaluate Quicker ADC with multiple indexes including Inverted Multi-Indexes and IVF HNSW and show that it outperforms the reference optimized implementations (i.e., FAISS and polysemous codes) for numerous configurations. Finally, we release an open-source fork of FAISS enhanced with Quicker ADC at http://github.com/nlescoua/faiss-quickeradc.

View on arXivView PDF

Code Implementations(2)

QuickerADC is an implementation of highly-efficient product quantizers leveraging SIMD shuffle instructions integrated into FAISS

625C, M4Dec 21, 20187 years agoNOASSERTION

QuickerADC is an implementation of highly-efficient product quantizers leveraging SIMD shuffle instructions integrated into FAISS

163C, M4Jan 2, 20196 years agoNOASSERTION

Similar Papers

Cite this paper

@article{andr2018quicker,
  title  = {Quicker ADC : Unlocking the hidden potential of Product Quantization with SIMD},
  author = {Fabien André and Anne-Marie Kermarrec and Nicolas Le Scouarnec},
  year   = {2018},
  eprint = {1812.09162},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1812.09162}
}

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/1812.09162.svg)](https://codeofpaper.com/paper/1812.09162)

Discussion