Norm-Explicit Quantization: Improving Vector Quantization for Maximum Inner Product Search

Xinyan Dai, Xiao Yan, Kelvin K. W. Ng, Jie Liu, James Cheng
11/12/2019
40 citations
cs.IRcs.LG

Official code: xinyandai/product-quantization (61 stars, Python, last commit 2021-01-07).

Abstract

Vector quantization (VQ) techniques are widely used in similarity search for data compression, fast metric computation and etc. Originally designed for Euclidean distance, existing VQ techniques (e.g., PQ, AQ) explicitly or implicitly minimize the quantization error.

Show full abstract

In this paper, we present a new angle to analyze the quantization error, which decomposes the quantization error into norm error and direction error. We show that quantization errors in norm have much higher influence on inner products than quantization errors in direction, and small quantization error does not necessarily lead to good performance in maximum inner product search (MIPS). Based on this observation, we propose norm-explicit quantization (NEQ) --- a general paradigm that improves existing VQ techniques for MIPS. NEQ quantizes the norms of items in a dataset explicitly to reduce errors in norm, which is crucial for MIPS. For the direction vectors, NEQ can simply reuse an existing VQ technique to quantize them without modification. We conducted extensive experiments on a variety of datasets and parameter configurations. The experimental results show that NEQ improves the performance of various VQ techniques for MIPS, including PQ, OPQ, RQ and AQ.

View on arXivView PDF

Code Implementations(1)

Implementation of vector quantization algorithms, codes for Norm-Explicit Quantization: Improving Vector Quantization for Maximum Inner Product Search.

6115PythonOct 17, 20185 years ago
approximate-nearest-neighbor-searchclusteringlshproduct-quantizationvector-quantization

Similar Papers

Cite this paper

@article{dai2019normexplicit,
  title  = {Norm-Explicit Quantization: Improving Vector Quantization for Maximum Inner Product Search},
  author = {Xinyan Dai and Xiao Yan and Kelvin K. W. Ng and Jie Liu and James Cheng},
  year   = {2019},
  eprint = {1911.04654},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.04654}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1911.04654.svg)](https://codeofpaper.com/paper/1911.04654)

Discussion