Skip to main content
QUICK REVIEW

[Paper Review] Asymmetric LSH (ALSH) for Sublinear Time Maximum Inner Product Search (MIPS)

Anshumali Shrivastava, Ping Li|arXiv (Cornell University)|May 22, 2014
Advanced Image and Video Retrieval TechniquesComputer Science25 references255 citations
TL;DR

This paper introduces Asymmetric Locality-Sensitive Hashing (ALSH) as the first provably sublinear-time algorithm for approximate Maximum Inner Product Search (MIPS), overcoming the limitations of traditional LSH. By applying asymmetric transformations to query and data vectors, the method converts inner product maximization into approximate near neighbor search in a transformed space, enabling efficient retrieval with theoretical guarantees and superior empirical performance on Netflix and Movielens datasets.

ABSTRACT

We present the first provably sublinear time algorithm for approximate \emph{Maximum Inner Product Search} (MIPS). Our proposal is also the first hashing algorithm for searching with (un-normalized) inner product as the underlying similarity measure. Finding hashing schemes for MIPS was considered hard. We formally show that the existing Locality Sensitive Hashing (LSH) framework is insufficient for solving MIPS, and then we extend the existing LSH framework to allow asymmetric hashing schemes. Our proposal is based on an interesting mathematical phenomenon in which inner products, after independent asymmetric transformations, can be converted into the problem of approximate near neighbor search. This key observation makes efficient sublinear hashing scheme for MIPS possible. In the extended asymmetric LSH (ALSH) framework, we provide an explicit construction of provably fast hashing scheme for MIPS. The proposed construction and the extended LSH framework could be of independent theoretical interest. Our proposed algorithm is simple and easy to implement. We evaluate the method, for retrieving inner products, in the collaborative filtering task of item recommendations on Netflix and Movielens datasets.

Motivation & Objective

  • To address the lack of efficient, provably sublinear-time algorithms for approximate Maximum Inner Product Search (MIPS), a fundamental problem in recommender systems and machine learning.
  • To formalize the insufficiency of standard Locality-Sensitive Hashing (LSH) for MIPS due to unnormalized inner products and varying vector norms.
  • To extend the LSH framework to allow asymmetric transformations of query and data vectors, enabling efficient MIPS via distance-based search in transformed space.
  • To provide a theoretically grounded, simple-to-implement hashing scheme for MIPS that outperforms existing LSH-based methods like L2LSH on real-world datasets.
  • To validate the method empirically on collaborative filtering tasks using Netflix and Movielens datasets, demonstrating significant gains in precision and recall.

Proposed method

  • Propose Asymmetric LSH (ALSH), an extension of the standard LSH framework that applies different transformations to the query and data vectors.
  • Introduce a novel transformation that maps inner product maximization into an approximate near neighbor search problem in a transformed space by exploiting a mathematical property of inner products under asymmetric scaling.
  • Use random projection with carefully chosen parameters to construct the hash functions, ensuring that high inner products are preserved as close L2 distances in the transformed space.
  • Define the hashing scheme using parameters such as the number of hash functions $K$, the projection dimension $m$, and the scaling factor $r$, with theoretical analysis showing sublinear query time.
  • Apply the method to MIPS by transforming the query $q$ and data vectors $x$ via asymmetric functions, then using standard LSH on the transformed vectors to find candidates.
  • Optimize parameters $m$, $U$, and $r$ empirically, with $m=3$, $U=0.83$, and $r=2.5$ yielding near-optimal performance.

Experimental results

Research questions

  • RQ1Can a provably sublinear-time algorithm be designed for approximate Maximum Inner Product Search (MIPS) using hashing?
  • RQ2Why is the standard LSH framework insufficient for solving MIPS, especially when vector norms vary significantly?
  • RQ3Can asymmetric transformations of query and data vectors enable efficient MIPS by reducing it to approximate near neighbor search?
  • RQ4What mathematical properties allow inner products to be preserved under asymmetric transformations for hashing purposes?
  • RQ5How does the proposed ALSH method compare to existing LSH-based methods like L2LSH in terms of retrieval accuracy and efficiency on real-world datasets?

Key findings

  • The proposed ALSH method achieves significantly better precision and recall than L2LSH across all tested top-$T$ retrieval settings ($T=1,5,10$) on both Netflix and Movielens datasets.
  • With $K=512$ hash functions, the ALSH method achieves near-optimal performance, outperforming L2LSH across all tested $r$ values.
  • The parameter $r=2.5$ yields near-optimal performance, and the method is robust to moderate deviations from this value, as shown in precision-recall curves.
  • The method is robust to varying vector norms, which is critical in real-world applications like collaborative filtering where norms of item vectors vary widely.
  • The theoretical framework of ALSH is general and could be extended to other similarity measures, such as three-way inner product search or binary data hashing.
  • Empirical results confirm that ALSH provides a practical, efficient, and scalable solution to MIPS, enabling fast recommendation and object detection in large-scale systems.

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.