arXiv Analytics

Sign in

arXiv:1812.09162 [cs.CV]AbstractReferencesReviewsResources

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

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

Published 2018-12-21Version 1

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 that allows storing large vector databases in memory and also allows 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\'e et al. proposed more efficient implementations of $m\times{}4$ product quantizers (PQ) leveraging specific SIMD instructions. Quicker ADC contributes additional implementations not limited to $m\times{}4$ codes and relying on 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 FAISS PQ implementation and optimization (i.e., Polysemous codes) for numerous configurations. Finally, we open-source at http://github.com/technicolor-research/faiss-quickeradc a fork of FAISS that includes Quicker ADC.

Comments: Open-source implementation at http://github.com/technicolor-research/faiss-quickeradc
Categories: cs.CV, cs.AI, cs.DB, cs.PF
Related articles: Most relevant | Search more
arXiv:1906.06698 [cs.CV] (Published 2019-06-16)
Beyond Product Quantization: Deep Progressive Quantization for Image Retrieval
arXiv:2312.07342 [cs.CV] (Published 2023-12-12)
Expand-and-Quantize: Unsupervised Semantic Segmentation Using High-Dimensional Space and Product Quantization
arXiv:1704.06556 [cs.CV] (Published 2017-04-21)
PQTable: Non-exhaustive Fast Search for Product-quantized Codes using Hash Tables