Improving Approximate Nearest Neighbor Search through Learned Adaptive Early Termination

被引:22
作者
Li, Conglong [1 ]
Zhang, Minjia [2 ]
Andersen, David G. [1 ]
He, Yuxiong [2 ]
机构
[1] Carnegie Mellon Univ, Pittsburgh, PA 15213 USA
[2] Microsoft AI & Res, Bellevue, WA USA
来源
SIGMOD'20: PROCEEDINGS OF THE 2020 ACM SIGMOD INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA | 2020年
基金
美国国家科学基金会;
关键词
information retrieval; approximate nearest neighbor search;
D O I
10.1145/3318464.3380600
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In applications ranging from image search to recommendation systems, the problem of identifying a set of "similar" real-valued vectors to a query vector plays a critical role. However, retrieving these vectors and computing the corresponding similarity scores from a large database is computationally challenging. Approximate nearest neighbor (ANN) search relaxes the guarantee of exactness for efficiency by vector compression and/or by only searching a subset of database vectors for each query. Searching a larger subset increases both accuracy and latency. State-of-the-art ANN approaches use fixed configurations that apply the same termination condition (the size of subset to search) for all queries, which leads to undesirably high latency when trying to achieve the last few percents of accuracy. We find that due to the index structures and the vector distributions, the number of database vectors that must be searched to find the ground-truth nearest neighbor varies widely among queries. Critically, we further identify that the intermediate search result after a certain amount of search is an important runtime feature that indicates how much more search should be performed. To achieve a better tradeoff between latency and accuracy, we propose a novel approach that adaptively determines search termination conditions for individual queries. To do so, we build and train gradient boosting decision tree models to learn and predict when to stop searching for a certain query. These models enable us to achieve the same accuracy with less total amount of search compared to the fixed configurations. We apply the learned adaptive early termination to state-of-the-art ANN approaches, and evaluate the end-to-end performance on three million to billion-scale datasets. Compared with fixed configurations, our approach consistently improves the average end-to-end latency by up to 7.1 times faster under the same high accuracy targets. Our approach is open source at github.com/efficient/faisslearned-termination.
引用
收藏
页码:2539 / 2554
页数:16
相关论文
共 50 条
[31]   Self-Organizing Binary Encoding for Approximate Nearest Neighbor Search [J].
Ozan, Ezgi Can ;
Kiranyaz, Serkan ;
Gabbouj, Moncef ;
Hu, Xiaohua .
2016 24TH EUROPEAN SIGNAL PROCESSING CONFERENCE (EUSIPCO), 2016, :1103-1107
[32]   M-PCA Binary Embedding For Approximate Nearest Neighbor Search [J].
Ozan, Ezgi Can ;
Kiranyaz, Serkan ;
Gabbouj, Moncef .
2015 IEEE TRUSTCOM/BIGDATASE/ISPA, VOL 2, 2015, :1-5
[33]   Optimized K-means Hashing for Approximate Nearest Neighbor Search [J].
Guo, Qin-Zhen ;
Zeng, Zhi ;
Zhang, Shuwu ;
Zhang, Yuan ;
Zhang, Guixuan .
MATERIAL SCIENCE, CIVIL ENGINEERING AND ARCHITECTURE SCIENCE, MECHANICAL ENGINEERING AND MANUFACTURING TECHNOLOGY II, 2014, 651-653 :2168-2171
[34]   Binary Hashing for Approximate Nearest Neighbor Search on Big Data: A Survey [J].
Cao, Yuan ;
Qi, Heng ;
Zhou, Wenrui ;
Kato, Jien ;
Li, Keqiu ;
Liu, Xiulong ;
Gui, Jie .
IEEE ACCESS, 2018, 6 :2039-2054
[35]   Optimized residual vector quantization for efficient approximate nearest neighbor search [J].
Liefu Ai ;
Junqing Yu ;
Zebin Wu ;
Yunfeng He ;
Tao Guan .
Multimedia Systems, 2017, 23 :169-181
[36]   A review of feature indexing methods for fast approximate nearest neighbor search [J].
The-Anh Pham ;
Van-Hao Le ;
Dinh-Nghiep Le .
PROCEEDINGS OF 2018 5TH NAFOSTED CONFERENCE ON INFORMATION AND COMPUTER SCIENCE (NICS 2018), 2018, :372-377
[37]   Tree-based compact hashing for approximate nearest neighbor search [J].
Hou, Guangdong ;
Cui, Runpeng ;
Pan, Zheng ;
Zhang, Changshui .
NEUROCOMPUTING, 2015, 166 :271-281
[38]   Efficient Approximate Nearest Neighbor Search by Optimized Residual Vector Quantization [J].
Ai, Liefu ;
Yu, Junqing ;
Guan, Tao ;
He, Yunfeng .
2014 12TH INTERNATIONAL WORKSHOP ON CONTENT-BASED MULTIMEDIA INDEXING (CBMI), 2014,
[39]   AnnexML: Approximate Nearest Neighbor Search for Extreme Multi-label Classification [J].
Tagami, Yukihiro .
KDD'17: PROCEEDINGS OF THE 23RD ACM SIGKDD INTERNATIONAL CONFERENCE ON KNOWLEDGE DISCOVERY AND DATA MINING, 2017, :455-464
[40]   HDIdx: High-dimensional indexing for efficient approximate nearest neighbor search [J].
Wan, Ji ;
Tang, Sheng ;
Zhang, Yongdong ;
Li, Jintao ;
Wu, Pengcheng ;
Hoi, Steven C. H. .
NEUROCOMPUTING, 2017, 237 :401-404