[Paper Review] Improved Asymmetric Locality Sensitive Hashing (ALSH) for Maximum Inner Product Search (MIPS)
This paper proposes Sign-ALSH, a novel asymmetric locality sensitive hashing scheme that transforms Maximum Inner Product Search (MIPS) into correlation-NNS using sign random projections. Theoretical and experimental results show Sign-ALSH significantly outperforms the prior L2-ALSH method in both recall and computational efficiency, especially under varying data norms.
Recently it was shown that the problem of Maximum Inner Product Search (MIPS) is efficient and it admits provably sub-linear hashing algorithms. Asymmetric transformations before hashing were the key in solving MIPS which was otherwise hard. In the prior work, the authors use asymmetric transformations which convert the problem of approximate MIPS into the problem of approximate near neighbor search which can be efficiently solved using hashing. In this work, we provide a different transformation which converts the problem of approximate MIPS into the problem of approximate cosine similarity search which can be efficiently solved using signed random projections. Theoretical analysis show that the new scheme is significantly better than the original scheme for MIPS. Experimental evaluations strongly support the theoretical findings.
Motivation & Objective
- To address the challenge of efficient Maximum Inner Product Search (MIPS) in high-dimensional spaces with variable data norms.
- To overcome the limitations of symmetric hashing and prior asymmetric LSH (L2-ALSH) by introducing a new transformation framework.
- To develop a provably efficient hashing scheme that reduces computational cost while maintaining high retrieval accuracy for MIPS.
- To demonstrate through theory and experiments that the new scheme outperforms existing ALSH methods for MIPS.
Proposed method
- Proposes a new asymmetric transformation that maps MIPS into correlation-NNS by scaling query and data points using their norms.
- Employs sign random projections (SRP) as the LSH family for correlation-NNS, with hash function $ h^{\text{Sign}}(x) = \text{sign}(a^T x) $.
- Uses collision probability $ \Pr(h^{\text{Sign}}(x) = h^{\text{Sign}}(y)) = 1 - \frac{1}{\pi} \cos^{-1}(\text{corr}(x,y)) $ to ensure higher similarity leads to higher collision probability.
- Applies the transformation $ Q(q) = \frac{q}{\|q\|} $ and $ P(x) = \frac{x}{\|x\|} $ to convert MIPS into correlation-NNS.
- Implements a $(K,L)$-LSH bucketing scheme for practical evaluation, with $ K $ hashes per table and $ L $ tables.
- Uses exhaustive parameter tuning over $ K \in \{4,\dots,20\} $ and $ L \in \{1,\dots,200\} $ to fairly compare FIP and recall across schemes.
Experimental results
Research questions
- RQ1Can a new asymmetric transformation improve the efficiency and accuracy of MIPS beyond the L2-ALSH framework?
- RQ2Does converting MIPS into correlation-NNS via sign random projections yield better theoretical and empirical performance?
- RQ3How does the performance of Sign-ALSH compare to L2-ALSH in terms of recall and fraction of inner product evaluations (FIP)?
- RQ4Is the performance of Sign-ALSH robust across different parameter settings of $ K $ and $ L $?
Key findings
- Sign-ALSH achieves significantly higher recall than L2-ALSH across all tested datasets and top-$ T $ values, indicating better retrieval quality.
- For the same recall level, Sign-ALSH requires fewer inner product evaluations (lower FIP) than L2-ALSH, demonstrating superior computational efficiency.
- The performance of Sign-ALSH is consistent across different combinations of $ K $ and $ L $, indicating robustness to parameter choices.
- The theoretical analysis confirms that Sign-ALSH has a better $ \rho $-value than L2-ALSH, implying improved asymptotic query time complexity.
- In LSH bucketing experiments, Sign-ALSH achieves optimal FIP-recall trade-offs with lower FIP at all recall levels compared to L2-ALSH.
- The results are consistent across both MovieLens and SIFT datasets, validating the generalizability of the approach.
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.