[Paper Review] Quantization based Fast Inner Product Search
This paper proposes Quantization-based Inner Product Search (QUIP), a method that accelerates Maximum Inner Product Search (MIPS) by learning codebooks to quantize database vectors across subspaces, directly minimizing inner product quantization error. The approach outperforms state-of-the-art methods on real-world datasets, including deep learning and recommendation tasks, under both fixed space and fixed time constraints.
We propose a quantization based approach for fast approximate Maximum Inner Product Search (MIPS). Each database vector is quantized in multiple subspaces via a set of codebooks, learned directly by minimizing the inner product quantization error. Then, the inner product of a query to a database vector is approximated as the sum of inner products with the subspace quantizers. Different from recently proposed LSH approaches to MIPS, the database vectors and queries do not need to be augmented in a higher dimensional feature space. We also provide a theoretical analysis of the proposed approach, consisting of the concentration results under mild assumptions. Furthermore, if a small sample of example queries is given at the training time, we propose a modified codebook learning procedure which further improves the accuracy. Experimental results on a variety of datasets including those arising from deep neural networks show that the proposed approach significantly outperforms the existing state-of-the-art.
Motivation & Objective
- Address the challenge of efficient Maximum Inner Product Search (MIPS) in high-dimensional spaces with arbitrary vector norms.
- Overcome limitations of existing LSH-based methods that require vector augmentation into higher-dimensional spaces.
- Develop a codebook learning framework that directly minimizes inner product quantization error, improving search accuracy.
- Introduce a constrained optimization procedure using a small set of example queries at training time to further enhance accuracy.
- Provide theoretical concentration bounds under mild assumptions to justify the method's robustness and generalization.
Proposed method
- Decompose each database vector into multiple subvectors and quantize each using learned codebooks to minimize inner product reconstruction error.
- Approximate the inner product between a query and a database vector as the sum of inner products between query subvectors and their corresponding quantized subvectors.
- Learn codebooks via optimization that minimizes the expected quantization error in inner products, rather than L2 reconstruction.
- Introduce a constrained learning procedure when example queries are available at training time, optimizing codebooks to preserve top-N MIPS results.
- Apply concentration inequalities (Berry-Esseen) to derive theoretical bounds on the deviation of the quantized inner product from the true inner product.
- Use asymmetric vector transformation (e.g., in ALSH) as a baseline for comparison, but avoid such transformations by directly modeling inner products via quantization.
Experimental results
Research questions
- RQ1Can inner product quantization be formulated as a direct optimization problem that minimizes inner product error, rather than L2 error?
- RQ2How does the proposed QUIP method compare to existing LSH-based approaches for MIPS in terms of accuracy and efficiency?
- RQ3Can the inclusion of a small set of example queries during training improve the accuracy of the quantization-based MIPS search?
- RQ4What theoretical guarantees can be provided for the approximation error of the quantized inner product under mild distributional assumptions?
- RQ5Does the method maintain strong performance under both fixed space and fixed time search constraints across diverse real-world datasets?
Key findings
- The QUIP method significantly outperforms state-of-the-art methods on four real-world datasets, including Movielens, Netflix, ImageNet, and VideoRec.
- On all datasets, QUIP achieves higher accuracy than ALSH and SRP-based LSH methods, especially in fixed-space scenarios.
- When example queries are available at training time, the constrained codebook learning procedure improves accuracy further, demonstrating adaptability to query distributions.
- Theoretical analysis shows that the quantized inner product concentrates around the true inner product under mild assumptions, with explicit bounds on deviation probability.
- The method avoids the need for vector augmentation into higher-dimensional spaces, unlike ALSH, leading to simpler and more efficient indexing.
- Empirical results confirm that QUIP maintains strong performance under both fixed space and fixed time search constraints, making it suitable for large-scale applications.
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.