Quicker ADC : Unlocking the Hidden Potential of Product Quantization With SIMD

被引:6
作者
Andre, Fabien
Kermarrec, Anne-Marie [1 ,2 ]
Le Scouarnec, Nicolas [3 ]
机构
[1] Ecole Polytech Fed Lausanne, CH-1015 Lausanne, Switzerland
[2] Mediego, F-35510 Cesson Sevigne, France
[3] Broadpeak, F-35510 Cesson Sevigne, France
关键词
Image databases; information search and retrieval; nearest neighbor search; product quantization; SIMD; SEARCH;
D O I
10.1109/TPAMI.2019.2952606
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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, Andre et al. proposed Quick ADC with up to 6x faster implementations of PQ m x 4 product quantizers (PQ) leveraging specific SIMD instructions. Quicker ADC is a generalization of Quick ADC not limited to PQ m x 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.
引用
收藏
页码:1666 / 1677
页数:12
相关论文
共 36 条
[31]   Modeling the shape of the scene: A holistic representation of the spatial envelope [J].
Oliva, A ;
Torralba, A .
INTERNATIONAL JOURNAL OF COMPUTER VISION, 2001, 42 (03) :145-175
[32]  
Wang J., 2014, PROC INT C INT C MAC
[33]  
Wu X, 2017, ADV NEUR IN, V30
[34]   Joint Inverted Indexing [J].
Xia, Yan ;
He, Kaiming ;
Wen, Fang ;
Sun, Jian .
2013 IEEE INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV), 2013, :3416-3423
[35]   Image Classification and Retrieval are ONE [J].
Xie, Lingxi ;
Hong, Richang ;
Zhang, Bo ;
Tian, Qi .
ICMR'15: PROCEEDINGS OF THE 2015 ACM INTERNATIONAL CONFERENCE ON MULTIMEDIA RETRIEVAL, 2015, :3-10
[36]   Product Quantization Network for Fast Image Retrieval [J].
Yu, Tan ;
Yuan, Junsong ;
Fang, Chen ;
Jin, Hailin .
COMPUTER VISION - ECCV 2018, PT I, 2018, 11205 :191-206