Lune

ICML2024顶会

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

摘要

Maximum Inner Product Search (MIPS) is a ubiquitous task in machine learning applications such as recommendation systems. Given a query vector and nn atom vectors in dd-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 O(d)O(\sqrt{d}), which becomes computationally prohibitive in high-dimensional settings. In this work, we present BanditMIPS, a novel randomized MIPS algorithm whose complexity is independent of dd. 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 dd from O(d)O(\sqrt{d}) to O(1)O(1). 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 (nn=4,000, dd=6,000), BanditMIPS is 20×\times 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-α\alpha, 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.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 1 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Improving Language Models by Retrieving from Trillions of Tokens 引用了 Accelerating Large-Scale Inference with Anisotropic Vector Quantization
  • FINGER: Fast Inference for Graph-based Approximate Nearest Neighbor Search 引用了 Accelerating Large-Scale Inference with Anisotropic Vector Quantization
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper1

  1. MABSplit: Faster Forest Training Using Multi-Armed BanditsMo Tiwari, Ryan Kang, Jaeyong Lee, Chris Piech 等NeurIPS 2022 · 5 次引用

它引用的 Paper11

  1. Improving Language Models by Retrieving from Trillions of TokensSebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai 等ICML 2022 · 1,629 次引用
  2. Accelerating Large-Scale Inference with Anisotropic Vector QuantizationRuiqi Guo, Philip Sun, Erik Lindgren, Quan Geng 等ICML 2020 · 539 次引用
  3. FINGER: Fast Inference for Graph-based Approximate Nearest Neighbor SearchPatrick H. Chen, Wei-Cheng Chang, Jyun-Yu Jiang, Hsiang-Fu Yu 等WWW 2023 · 35 次引用
  4. Understanding and Improving Proximity Graph Based Maximum Inner Product SearchJie Liu, Xiao Yan, Xinyan Dai, Zhirong Li 等AAAI 2020 · 35 次引用
  5. Norm-Explicit Quantization: Improving Vector Quantization for Maximum Inner Product SearchXinyan Dai, Xiao Yan, Kelvin Kai Wing Ng, Jiu Liu 等AAAI 2020 · 34 次引用

相关 Paper

  1. Linear Bandit Algorithms with Sublinear Time ComplexityShuo Yang, Tongzheng Ren, Sanjay Shakkottai, Eric Price 等ICML 2022 · 16 次引用
  2. Norm Adjusted Proximity Graph for Fast Inner Product RetrievalShulong Tan, Zhaozhuo Xu, Weijie Zhao, Hongliang Fei 等KDD 2021 · 20 次引用
  3. ProMIPS: Efficient High-Dimensional c-Approximate Maximum Inner Product Search with a Lightweight IndexYang Song, Yu Gu, Rui Zhang, Ge YuICDE 2021 · 16 次引用
  4. Query-Aware Quantization for Maximum Inner Product SearchJin Zhang, Defu Lian, Haodi Zhang, Baoyun Wang 等AAAI 2023 · 15 次引用
  5. FARGO: Fast Maximum Inner Product Search via Global Multi-ProbingXi Zhao, Bolong Zheng, Xiaomeng Yi, Xiaofan Luan 等VLDB 2023 · 22 次引用
黄昏的海面,两侧是细线勾勒的悬崖