Introduction
This paper challenges the prevailing wisdom that Maximum Inner Product Search (MIPS) requires complex asymmetric hashing. The authors introduce SIMPLE-LSH, a symmetric, parameter-free hashing scheme that outperforms existing asymmetric methods in both theory and practice by using a clever geometric transformation to turn inner product search into a standard angular similarity problem.
The Challenge of Maximum Inner Product Search
Maximum Inner Product Search (MIPS) is a fundamental task in machine learning, powering applications from recommendation systems (finding the best movie for a user) to multi-class prediction. Unlike standard "Nearest Neighbor" search, which uses distance metrics like Euclidean distance, MIPS looks for the vector that yields the highest dot product.
The challenge is that standard Locality Sensitive Hashing (LSH)—the "gold standard" for fast approximate searching—doesn't play well with inner products. Because vectors can have different lengths, a large inner product doesn't necessarily mean two vectors are "close" in a traditional geometric sense. Previous influential work argued that a symmetric LSH for MIPS was impossible and proposed "Asymmetric LSH" (ALSH) as the only solution. This paper investigates whether asymmetry is truly necessary and if a simpler, more robust approach exists.
SIMPLE-LSH: A Symmetric Solution
The authors propose a remarkably elegant solution called SIMPLE-LSH.
- The Transformation: For any database vector $x$ (assuming it's scaled to be within the unit sphere), they append a single dimension: $P(x) = [x; \sqrt{1 - \|x\|^2}]$. This transformation "pushes" every vector onto the surface of a unit sphere in $d+1$ dimensions.
- The Query: For a normalized query $q$, they append a zero: $P(q) = [q; 0]$.
- The Magic: The inner product of these transformed vectors in the higher-dimensional space is exactly equal to the inner product in the original space.
- The Hash: Because all transformed vectors now lie on a sphere, the authors can use a standard, well-understood symmetric hash: Sign-Random-Projection (also known as SimHash or Cosine LSH).
They also introduce SIMPLE-ALSH, a variant for cases where queries are not normalized, proving that while asymmetry is needed in that specific scenario, it can still be handled with a parameter-free approach.
Theoretical and Practical Advantages
SIMPLE-LSH offers several key advantages over prior asymmetric methods:
- Asymmetry is an "As-Needed" Tool: The authors show that if you can normalize your queries, you don't need two different hash functions. A single symmetric function is sufficient and often superior.
- Universality Matters: Previous asymmetric methods (like L2-ALSH) required tuning several hyperparameters to work well for a specific similarity threshold. SIMPLE-LSH is universal—it works across all thresholds and ratios without any tuning.
- Theoretical Superiority: The authors calculated the "hashing quality" ($\rho$)—a metric where lower is better for search efficiency. SIMPLE-LSH consistently achieved lower $\rho$ values than L2-ALSH and SIGN-ALSH across various similarity thresholds.
Empirical Results
The authors evaluated their approach using two classic collaborative filtering benchmarks: Netflix and Movielens 10M. To prepare the data, they used PureSVD to generate vector embeddings for users and items, treating user vectors as queries and movie vectors as the database.
In head-to-head tests, SIMPLE-LSH produced significantly better Precision-Recall curves than the then-state-of-the-art L2-ALSH. Because it is parameter-free, SIMPLE-LSH removes the "grid search" overhead required to tune previous asymmetric hashes, making it much easier to deploy in real-world production systems.
Limitations and Future Work
The primary limitation of this method is its reliance on the boundedness assumption—database vectors must be rescalable to fit in a unit sphere. While this is almost always true in practice, the performance of the hash can degrade if the distribution of vector lengths is extremely skewed (i.e., most vectors are very short compared to the maximum length).
For future directions, the authors suggest that these types of transformations could be extended to other non-metric similarity measures, such as set containment or weighted Jaccard similarity.
Summary updated