Skip to main content
QUICK REVIEW

[Paper Review] Clustering is Efficient for Approximate Maximum Inner Product Search

Alex Auvolat, Sarath Chandar|arXiv (Cornell University)|Jul 21, 2015
Advanced Image and Video Retrieval TechniquesComputer Science19 references26 citations
TL;DR

This paper proposes a simple yet highly effective method for approximate Maximum Inner Product Search (MIPS) using spherical k-means clustering after reducing MIPS to Maximum Cosine Similarity Search (MCSS). The approach achieves significantly higher speedups than state-of-the-art hashing and tree-based methods while maintaining or improving retrieval precision, and demonstrates superior robustness to noisy queries.

ABSTRACT

Efficient Maximum Inner Product Search (MIPS) is an important task that has a wide applicability in recommendation systems and classification with a large number of classes. Solutions based on locality-sensitive hashing (LSH) as well as tree-based solutions have been investigated in the recent literature, to perform approximate MIPS in sublinear time. In this paper, we compare these to another extremely simple approach for solving approximate MIPS, based on variants of the k-means clustering algorithm. Specifically, we propose to train a spherical k-means, after having reduced the MIPS problem to a Maximum Cosine Similarity Search (MCSS). Experiments on two standard recommendation system benchmarks as well as on large vocabulary word embeddings, show that this simple approach yields much higher speedups, for the same retrieval precision, than current state-of-the-art hashing-based and tree-based methods. This simple method also yields more robust retrievals when the query is corrupted by noise.

Motivation & Objective

  • Address the challenge of efficient approximate Maximum Inner Product Search (MIPS) in large-scale applications such as recommendation systems and extreme classification.
  • Overcome limitations of existing methods like locality-sensitive hashing (LSH) and tree-based approaches, which often sacrifice precision or fail to generalize well under noisy inputs.
  • Explore whether a simple clustering-based method can achieve better trade-offs between speed, precision, and robustness in approximate MIPS.
  • Investigate the effectiveness of data-dependent clustering strategies compared to data-independent hashing techniques in preserving neighborhood structure and handling query corruption.

Proposed method

  • Reduce the original MIPS problem to a Maximum Cosine Similarity Search (MCSS) problem by normalizing vectors, leveraging the fact that inner product maximization is equivalent to cosine similarity maximization when vectors have uniform norm.
  • Apply spherical k-means clustering to the data vectors to partition the embedding space into clusters with normalized centroids.
  • For a given query, compute cosine similarity between the query and each cluster centroid, and select the top-k clusters with highest similarity as the candidate set.
  • Perform exact K-MIPS only on the vectors within the selected clusters, drastically reducing search space.
  • Use hierarchical k-means or top-k cluster selection (e.g., top 3 or 8 clusters) to further refine candidate sets and improve precision.
  • Ensure robustness by relying on global clustering structure rather than dimension-wise projections, which makes the method less sensitive to input noise.

Experimental results

Research questions

  • RQ1Can a simple clustering-based approach outperform state-of-the-art hashing and tree-based methods in terms of speedup and precision for approximate K-MIPS?
  • RQ2How does the performance of k-means clustering compare to data-independent methods like LSH under varying levels of query noise?
  • RQ3To what extent does the clustering-based method preserve neighborhood structure in vector space, especially when queries are close to but not identical to training points?
  • RQ4Does the method generalize better to unseen or corrupted queries compared to existing techniques, particularly in dynamic learning settings?
  • RQ5Can combining multiple clusterings or adapting clustering on-the-fly further improve precision and speed in extreme classification or recommendation systems?

Key findings

  • The k-means-based method achieves substantially higher speedups—up to 30x—than state-of-the-art hashing and tree-based methods while maintaining or exceeding their precision on Movielens-10M and Netflix datasets.
  • On word embedding retrieval tasks, k-means outperforms PCA-Tree and hashing methods (SRP-Hash, WTA-Hash) in top-10 and top-100 MIPS, indicating better neighborhood preservation.
  • The method is more robust to query noise: as Gaussian noise increases up to a standard deviation of 0.4, k-means maintains higher precision than other algorithms, especially in top-1 and top-10 retrieval.
  • Spherical k-means clustering yields more consistent and reliable candidate sets than data-independent hashing, suggesting better generalization to unseen or slightly corrupted queries.
  • The hierarchical k-means variant (top 8 clusters) further improves precision without significantly increasing computational cost, demonstrating scalability and effectiveness.
  • The approach generalizes well to dynamic settings where embeddings evolve during training, reducing the need for frequent retraining of the MIPS index.

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.