Skip to main content
QUICK REVIEW

[Paper Review] A Greedy Approach for Budgeted Maximum Inner Product Search

Hsiang‐Fu Yu, Cho‐Jui Hsieh|arXiv (Cornell University)|Oct 11, 2016
Recommender Systems and TechniquesComputer Science15 references15 citations
TL;DR

This paper proposes Greedy-MIPS, a novel greedy algorithm for budgeted Maximum Inner Product Search (MIPS) that efficiently identifies top-k candidates under a computational budget. By iteratively selecting the highest-scoring vector using a selection-based strategy without nearest neighbor reduction, Greedy-MIPS achieves 200x speedup over naive search on a 624K-vector dataset while maintaining top-5 precision above 75%, significantly outperforming state-of-the-art methods under similar speed constraints.

ABSTRACT

Maximum Inner Product Search (MIPS) is an important task in many machine learning applications such as the prediction phase of a low-rank matrix factorization model for a recommender system. There have been some works on how to perform MIPS in sub-linear time recently. However, most of them do not have the flexibility to control the trade-off between search efficient and search quality. In this paper, we study the MIPS problem with a computational budget. By carefully studying the problem structure of MIPS, we develop a novel Greedy-MIPS algorithm, which can handle budgeted MIPS by design. While simple and intuitive, Greedy-MIPS yields surprisingly superior performance compared to state-of-the-art approaches. As a specific example, on a candidate set containing half a million vectors of dimension 200, Greedy-MIPS runs 200x faster than the naive approach while yielding search results with the top-5 precision greater than 75\%.

Motivation & Objective

  • To address the computational bottleneck in prediction-phase inference for large-scale matrix factorization models, especially in recommender systems.
  • To develop a method that enables controllable trade-offs between search efficiency and search quality via a computational budget.
  • To overcome the limitations of existing MIPS approaches that lack flexibility in balancing speed and accuracy.
  • To propose a method that does not rely on nearest neighbor search reduction, which is common in prior state-of-the-art techniques.

Proposed method

  • Greedy-MIPS uses a greedy selection strategy to iteratively identify the candidate vector with the highest inner product to the query vector.
  • It maintains a dynamic set of candidate vectors and updates the selection using a max-heap or selection tree to efficiently track the top candidates.
  • The algorithm operates directly on the inner product space without transforming the problem into a nearest neighbor search, avoiding reliance on complex data structures.
  • It supports a computational budget by limiting the number of inner product computations, enabling runtime control over the trade-off between speed and accuracy.
  • The method is designed to be simple and efficient, avoiding expensive pre-processing or indexing steps common in other approaches.
  • It leverages a combination of Algorithm 5 (greedy selection) and Algorithm 6 (candidate update) to maintain high performance under budget constraints.

Experimental results

Research questions

  • RQ1Can a greedy, budget-aware approach outperform state-of-the-art MIPS methods in terms of both speed and precision?
  • RQ2How does Greedy-MIPS perform under varying computational budgets compared to methods with fixed pre-processing parameters?
  • RQ3Does eliminating the need for nearest neighbor search reduction lead to better efficiency and accuracy in MIPS?
  • RQ4How does the performance of Greedy-MIPS scale with increasing dimensionality and dataset size?
  • RQ5Can Greedy-MIPS maintain high precision (e.g., top-5) while achieving orders-of-magnitude speedups over naive search?

Key findings

  • On the Yahoo-Music dataset with 624,961 vectors of dimension 200, Greedy-MIPS achieves a 200x speedup over the naive approach while maintaining a top-5 precision of 70%.
  • No other method, including PCA-MIPS, LSH-MIPS, or Diamond-MSIPS, achieved more than 10% top-5 precision under the same 200x speedup.
  • Greedy-MIPS maintains superior performance across varying dimensions (k ∈ {2,5,7,10}) and dataset sizes (n ∈ {2^17, ..., 2^20}), with performance gaps persisting as n increases.
  • The use of Algorithm 5 (greedy selection) with a selection tree outperforms alternative variants, particularly in high-dimensional settings.
  • The method’s performance remains robust even as dimensionality increases, though the gap with other methods narrows slightly.
  • Greedy-MIPS is the only approach among those evaluated that natively supports budgeted search, enabling direct control over the efficiency-accuracy trade-off.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.