arXiv reaDer
ADCの高速化:SIMDによる製品量子化の潜在的な可能性を解き放つ
Quicker ADC : Unlocking the hidden potential of Product Quantization with SIMD
 高次元空間での効率的な最近傍(NN)検索は、多くのマルチメディア検索システムの基盤です。一般的なアプローチは、製品の量子化に依存することです。これにより、メモリに大きなベクトルデータベースを格納し、効率的な距離計算を行うことができます。ただし、製品量子化による最近傍検索の実装では、実行する多くのメモリアクセスによってパフォーマンスが制限されます。この観察に続いて、アンドレ等。特定のSIMD命令を活用したm×{} 4製品量子化器(PQ)の最大6倍の高速実装を備えたQuick ADCを提案しました。 Quicker ADCは、m×{} 4コードに限定されず、SIMD命令セットの最新リビジョンであるAVX-512をサポートするQuick ADCの一般化です。そうすることで、Quicker ADCは、コンピューターのバイトや単語に合わない5、6、7ビットのシャッフルを効率的に使用するという課題に直面します。この目的のために、(i)粒度の異なるサブ量子化器を組み合わせた不規則な製品量子化器、および(ii)レジスタよりも大きいルックアップテーブルを許可する分割テーブルを導入します。 Inverted Multi-IndexesおよびIVF HNSWを含む複数のインデックスでQuicker ADCを評価し、多くの構成でリファレンス最適化実装(つまり、FAISSおよびpolysemousコード)よりも優れていることを示します。最後に、http://github.com/nlescoua/faiss-quickeradcで、Quicker ADCで強化されたFAISSのオープンソースフォークをリリースします。
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× faster implementations of m×{}4 product quantizers (PQ) leveraging specific SIMD instructions. Quicker ADC is a generalization of Quick ADC not limited to m×{}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.
updated: Thu Nov 14 2019 21:39:48 GMT+0000 (UTC)
published: Fri Dec 21 2018 14:51:27 GMT+0000 (UTC)
参考文献 (このサイトで利用可能なもの) / References (only if available on this site)
被参照文献 (このサイトで利用可能なものを新しい順に) / Citations (only if available on this site, in order of most recent)
Amazon.co.jpアソシエイト