[Paper Review] On Symmetric and Asymmetric LSHs for Inner Product Search
This paper demonstrates that a symmetric Locality-Sensitive Hashing (LSH) scheme—simple-lsh—can be constructed for Maximum Inner Product Search (MIPS) when queries are normalized and database vectors are bounded, outperforming the asymmetric LSH proposed by Shrivastava and Li (2014a). The key contribution is proving that asymmetry is unnecessary in this setting, and simple-lsh is parameter-free, universally applicable, and theoretically and empirically superior to prior asymmetric approaches.
We consider the problem of designing locality sensitive hashes (LSH) for inner product similarity, and of the power of asymmetric hashes in this context. Shrivastava and Li argue that there is no symmetric LSH for the problem and propose an asymmetric LSH based on different mappings for query and database points. However, we show there does exist a simple symmetric LSH that enjoys stronger guarantees and better empirical performance than the asymmetric LSH they suggest. We also show a variant of the settings where asymmetry is in-fact needed, but there a different asymmetric LSH is required.
Motivation & Objective
- To resolve the debate on whether symmetric or asymmetric LSH is better for Maximum Inner Product Search (MIPS).
- To clarify the conditions under which symmetric or asymmetric LSH is theoretically possible for inner product similarity.
- To propose a new symmetric LSH (simple-lsh) that is universal, parameter-free, and outperforms existing asymmetric LSHs in both theory and practice.
- To correct the misconception that asymmetry is required for MIPS when queries are normalized and data is bounded.
- To characterize the regimes where asymmetry is truly necessary and provide a correct asymmetric LSH for those cases.
Proposed method
- Proposes simple-lsh, a symmetric LSH that maps vectors using an embedding that preserves inner products and unit norms.
- Uses the transformation $ P(x) = [x; \sqrt{1 - \|x\|_2^2}; 0] $ and $ Q(y) = [y; 0; \sqrt{1 - \|y\|_2^2}] $ to ensure $ P(x)^\top Q(y) = x^\top y $ and $ \|P(x)\| = \|Q(y)\| = 1 $.
- Employs random hyperplanes via $ h_a(z) = \text{sign}(a^\top z) $ to generate binary hash codes.
- Proves that collision probability $ \mathbb{P}[h_a(P(x)) = h_a(Q(y))] = 1 - \frac{\cos^{-1}(x^\top y)}{\pi} $ is monotonic in inner product, satisfying ALSH properties.
- Analyzes the theoretical limits of existing asymmetric LSHs (l2-alsh(sl) and sign-alsh(sl)), showing they are not universal ALSHs under bounded norms.
- Establishes that no symmetric or asymmetric LSH exists over the full $ \mathbb{R}^d $, but both are possible under bounded and normalized settings.
Experimental results
Research questions
- RQ1Is a symmetric LSH possible for inner product similarity when queries are normalized and database vectors are bounded?
- RQ2Does asymmetry provide a theoretical or practical advantage in the standard MIPS setting with normalized queries and bounded data?
- RQ3Are the asymmetric LSHs proposed by Shrivastava and Li (2014a) universally applicable or do they require problem-specific tuning?
- RQ4Under what conditions is an asymmetric LSH truly necessary for inner product search?
- RQ5Can a symmetric, parameter-free, and universally applicable LSH be constructed for MIPS?
Key findings
- A symmetric LSH—simple-lsh—exists and is universally applicable when queries are normalized and database vectors are bounded, contradicting the claim that asymmetry is required.
- simple-lsh is parameter-free and achieves better theoretical guarantees and empirical performance than the asymmetric l2-alsh(sl) and sign-alsh(sl) proposed by Shrivastava and Li (2014a).
- The l2-alsh(sl) and sign-alsh(sl) methods are not universal ALSHs: they fail to satisfy the required collision probability conditions for all $ S, c $, even under normalized and bounded settings.
- No symmetric or asymmetric LSH exists over the entire $ \mathbb{R}^d $, due to the unbounded nature of inner products.
- When both queries and data vectors are bounded but queries are not normalized, a symmetric LSH is impossible, but a universal asymmetric LSH (simple-alsh) can be constructed.
- The paper establishes that asymmetry is only necessary in the bounded-but-not-normalized setting, and provides a correct asymmetric LSH for that case.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.