Faster Maximum Inner Product Search in High Dimensions
Mo Tiwari, Ryan Kang, Jaeyong Lee, Donghyun Lee, Christopher Piech, Sebastian Thrun, Ilan Shomorony, Martin Jinye Zhang
Abstract
Maximum Inner Product Search (MIPS) is a ubiquitous task in machine learning applications such as recommendation systems. Given a query vector and atom vectors in -dimensional space, the goal of MIPS is to find the atom that has the highest inner product with the query vector. Existing MIPS algorithms scale at least as , which becomes computationally prohibitive in high-dimensional settings. In this work, we present BanditMIPS, a novel randomized MIPS algorithm whose complexity is independent of . BanditMIPS estimates the inner product for each atom by subsampling coordinates and adaptively evaluates more coordinates for more promising atoms. The specific adaptive sampling strategy is motivated by multi-armed bandits. We provide theoretical guarantees that BanditMIPS returns the correct answer with high probability, while improving the complexity in from to . We also perform experiments on four synthetic and real-world datasets and demonstrate that BanditMIPS outperforms prior state-of-the-art algorithms. For example, in the Movie Lens dataset (=4,000, =6,000), BanditMIPS is 20 faster than the next best algorithm while returning the same answer. BanditMIPS requires no preprocessing of the data and includes a hyperparameter that practitioners may use to trade off accuracy and runtime. We also propose a variant of our algorithm, named BanditMIPS-, which achieves further speedups by employing non-uniform sampling across coordinates. Finally, we demonstrate how known preprocessing techniques can be used to further accelerate BanditMIPS, and discuss applications to Matching Pursuit and Fourier analysis.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext e4cdca32-8d10-4914-94b7-e5f94e9c9a3bCited by top-tier papers1
Ask how each one uses itBuilds on11
- Improving Language Models by Retrieving from Trillions of TokensSebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai et al.ICML 2022 · 1,629 citations
- Accelerating Large-Scale Inference with Anisotropic Vector QuantizationRuiqi Guo, Philip Sun, Erik Lindgren, Quan Geng et al.ICML 2020 · 539 citations
- FINGER: Fast Inference for Graph-based Approximate Nearest Neighbor SearchPatrick H. Chen, Wei-Cheng Chang, Jyun-Yu Jiang, Hsiang-Fu Yu et al.WWW 2023 · 35 citations
- Understanding and Improving Proximity Graph Based Maximum Inner Product SearchJie Liu, Xiao Yan, Xinyan Dai, Zhirong Li et al.AAAI 2020 · 35 citations
- Norm-Explicit Quantization: Improving Vector Quantization for Maximum Inner Product SearchXinyan Dai, Xiao Yan, Kelvin Kai Wing Ng, Jiu Liu et al.AAAI 2020 · 34 citations
Related papers
- Linear Bandit Algorithms with Sublinear Time ComplexityShuo Yang, Tongzheng Ren, Sanjay Shakkottai, Eric Price et al.ICML 2022 · 16 citations
- Norm Adjusted Proximity Graph for Fast Inner Product RetrievalShulong Tan, Zhaozhuo Xu, Weijie Zhao, Hongliang Fei et al.KDD 2021 · 20 citations
- ProMIPS: Efficient High-Dimensional c-Approximate Maximum Inner Product Search with a Lightweight IndexYang Song, Yu Gu, Rui Zhang, Ge YuICDE 2021 · 16 citations
- Query-Aware Quantization for Maximum Inner Product SearchJin Zhang, Defu Lian, Haodi Zhang, Baoyun Wang et al.AAAI 2023 · 15 citations
- FARGO: Fast Maximum Inner Product Search via Global Multi-ProbingXi Zhao, Bolong Zheng, Xiaomeng Yi, Xiaofan Luan et al.VLDB 2023 · 22 citations
