[Paper Review] Efficient Inner Product Approximation in Hybrid Spaces
This paper proposes a novel method for efficient inner product approximation in high-dimensional hybrid spaces combining sparse and dense vectors, leveraging architecture-aware data structures to achieve over 10x speedup with high recall. The approach outperforms existing baselines on billion-scale datasets, enabling fast, accurate similarity search in real-world applications like recommendation systems and document retrieval.
Many emerging use cases of data mining and machine learning operate on large datasets with data from heterogeneous sources, specifically with both sparse and dense components. For example, dense deep neural network embedding vectors are often used in conjunction with sparse textual features to provide high dimensional hybrid representation of documents. Efficient search in such hybrid spaces is very challenging as the techniques that perform well for sparse vectors have little overlap with those that work well for dense vectors. Popular techniques like Locality Sensitive Hashing (LSH) and its data-dependent variants also do not give good accuracy in high dimensional hybrid spaces. Even though hybrid scenarios are becoming more prevalent, currently there exist no efficient techniques in literature that are both fast and accurate. In this paper, we propose a technique that approximates the inner product computation in hybrid vectors, leading to substantial speedup in search while maintaining high accuracy. We also propose efficient data structures that exploit modern computer architectures, resulting in orders of magnitude faster search than the existing baselines. The performance of the proposed method is demonstrated on several datasets including a very large scale industrial dataset containing one billion vectors in a billion dimensional space, achieving over 10x speedup and higher accuracy against competitive baselines.
Motivation & Objective
- To address the challenge of efficient similarity search in high-dimensional hybrid vector spaces that combine sparse and dense features.
- To develop a method that maintains high accuracy while achieving low-latency search, overcoming limitations of existing techniques for sparse or dense data alone.
- To design optimized data structures that exploit modern CPU architectures for in-memory performance.
- To enable scalable, real-time similarity search on industrial-scale datasets with up to one billion vectors.
- To demonstrate the method's superiority over state-of-the-art baselines in both speed and recall on public and large-scale industrial datasets.
Proposed method
- The method approximates the inner product between hybrid vectors by decomposing the computation into separate sparse and dense components, enabling efficient computation.
- It uses a hybrid index structure that combines inverted indexing for sparse components with product quantization (PQ) for dense components to accelerate search.
- The approach applies a two-stage retrieval: first, approximate candidates are retrieved using the hybrid index; second, exact inner products are computed only on top candidates to ensure accuracy.
- The system is optimized for modern CPU cache hierarchies and vectorized instructions to maximize throughput and minimize latency.
- A distributed online search system is implemented, sharding the dataset across 200 servers to support low-latency, high-throughput online queries.
- The method handles the full hybrid vector space without converting dense components into sparse form, preserving performance and accuracy.
Experimental results
Research questions
- RQ1Can a unified, efficient method be designed for inner product approximation in hybrid sparse-dense vector spaces where existing techniques fail?
- RQ2How can modern computer architecture features be exploited to accelerate similarity search in hybrid vector spaces?
- RQ3What is the trade-off between speed and recall when searching billion-dimensional hybrid datasets with mixed sparsity and density?
- RQ4Can a hybrid indexing strategy outperform separate indexing of sparse and dense components in terms of both speed and accuracy?
- RQ5How does the proposed method scale to industrial-scale datasets with one billion vectors and trillions of dimensions?
Key findings
- On a 1 billion-vector, 1 billion-dimensional industrial dataset (QuerySim), the proposed method achieved 91% recall@20 with a query latency of 20.0 ms, outperforming the next best baseline by over 20x in speed.
- The method reduced search time from 3 months (sparse inverted index) and 9 years (sparse brute force) to under one week for all-pair similarity search on the same dataset.
- On public datasets like Netflix and Movielens hybrid, the method achieved 91–92% recall@20 with a latency of 18.8–2.6 ms, significantly faster than baselines with comparable or better recall.
- The system achieved 90% recall@20 at an average latency of 79ms in an online, distributed deployment with 200 servers, meeting real-time production requirements.
- The method outperformed Hamming-based hashing (512-bit) and dense-only PQ indexing, which suffered from severe recall loss (0–45%) despite faster speeds.
- The hybrid approach maintained high accuracy even when dense components were non-trivial (e.g., 203 dimensions), avoiding the performance degradation seen in pure sparse or dense methods.
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.