TL;DR
This paper introduces "norm-range partition," a novel technique that significantly speeds up Maximum Inner Product Search (MIPS) using Locality Sensitive Hashing (LSH). By dividing data into groups with similar vector norms, it allows for more efficient LSH indexing and querying, leading to substantial performance gains across existing MIPS algorithms.
What Problem Does This Paper Address?
Finding the item in a large dataset that has the highest inner product with a given query vector (Maximum Inner Product Search or MIPS) is a fundamental problem with applications in recommendation systems, multi-class classification, and computer vision. Traditional methods like linear scan are too slow for large datasets. While Locality Sensitive Hashing (LSH) offers sub-linear query time for approximate nearest neighbor search, applying it effectively to MIPS has been challenging. Existing LSH-based MIPS algorithms often rely on transformations that can be sensitive to the overall distribution of vector norms in the dataset, leading to suboptimal performance. Specifically, the normalization step, which scales vectors by the maximum norm in the dataset, can be a bottleneck.
Methods
The core contribution is the norm-range partition technique. This method works by:
- Partitioning the Dataset: The original dataset is divided into several "sub-datasets." Each sub-dataset contains items whose L2-norms (Euclidean norms) fall within a specific range. This is achieved by sorting items by their norms and then dividing them into
wpartitions based on norm percentiles. - Independent Indexing: An existing LSH-based MIPS algorithm (like L2-ALSH, Sign-ALSH, Simple-LSH, or the newly proposed Cross-LSH) is used as a "meta-algorithm" to build an independent hash index for each of these sub-datasets.
- Query Processing: When a query arrives, it is processed against each sub-dataset's index. The best result from all sub-datasets is then selected as the final approximate MIPS result.
The key insight is that by partitioning data based on norms, each sub-dataset can use a smaller normalization factor (its local maximum norm) compared to the global maximum norm. This reduction in the normalization factor is proven to decrease the query processing complexity for existing LSH-based MIPS algorithms. The paper also proposes a unified framework for ranking buckets across different sub-datasets to efficiently combine results.
The paper also introduces Cross-LSH, a new LSH-based MIPS algorithm that combines the transformation from Simple-LSH with the more advanced Cross-polytope LSH for angular similarity search.
Datasets
The experiments were conducted on three real-world datasets:
- Netflix: User and item embeddings from a collaborative filtering task.
- Yahoo!Music: User and item embeddings from a collaborative filtering task.
- ImageNet: SIFT descriptors from images.
The paper notes that these datasets have significantly different norm distributions, which helps demonstrate the robustness of the proposed norm-range partition technique.
Key Insights and Ideas
- Norm Distribution Matters: The effectiveness of LSH for MIPS is significantly influenced by the distribution of vector norms in the dataset, particularly the maximum norm used for normalization.
- Partitioning for Efficiency: Dividing the dataset into norm-based partitions allows for smaller, local normalization factors, which directly translates to reduced query processing complexity. This is the core "catalyst" effect of norm-range partition.
- Universality: The norm-range partition technique is presented as a general "catalyst" that can be applied to any existing LSH-based MIPS algorithm, improving its performance without requiring fundamental changes to the algorithm itself.
- Trade-off in Complexity: While norm-range partition can reduce query complexity, it might slightly increase the complexity of managing multiple indices. However, the paper argues that the benefits in query time outweigh this.
Key Results
- Significant Performance Improvement: Experiments show that norm-range partition consistently reduces the number of probed items required to achieve a given recall level for all tested LSH-based MIPS algorithms (L2-ALSH, Sign-ALSH, Simple-LSH, and Cross-LSH).
- Cross-LSH Superiority: The proposed Cross-LSH algorithm outperforms existing LSH-based MIPS algorithms, especially on larger datasets.
- Robustness: The norm-range partition technique demonstrates effectiveness across datasets with diverse norm distributions.
- Empirical Validation: The experimental results provide strong empirical evidence for the theoretical proofs regarding the reduction in query processing complexity. For instance, figures show substantial improvements in recall for a given number of probed items when using norm-range partition.
Limitations and Future Work
- Mild Conditions for Theorem 2: The theoretical analysis for query processing complexity (Theorem 2) relies on certain mild conditions regarding the number of sub-datasets with local maximum norms equal to the global maximum norm.
- Practical Considerations for Bucket Ranking: While a framework for ranking buckets across sub-datasets is proposed, it is noted that ranking real-valued similarity metrics can be more complex than simple hash lookups, though efficient solutions are suggested.
- Future Work: The paper suggests that further research could explore more advanced LSH families or transformations, and potentially investigate how norm-range partition can be integrated with other indexing structures. The authors also mention that similar ideas have been explored in other contexts, hinting at broader applicability.
Summary updated