Residual Quantization with Implicit Neural Codebooks

Iris A. M. Huijben, Matthijs Douze, Matthew Muckley, Ruud J. G. van Sloun, Jakob Verbeek
1/26/2024
cs.LG

No official code found. Best implementation: facebookresearch/Qinco (120 stars, last commit 2025-10-07).

Abstract

Vector quantization is a fundamental operation for data compression and vector search. To obtain high accuracy, multi-codebook methods represent each vector using codewords across several codebooks. Residual quantization (RQ) is one such method, which iteratively quantizes the error of the previous step. While the error distribution is dependent on previously-selected codewords, this dependency is not accounted for in conventional RQ as it uses a fixed codebook per quantization step. In this paper, we propose QINCo, a neural RQ variant that constructs specialized codebooks per step that depend on the approximation of the vector from previous steps. Experiments show that QINCo outperforms state-of-the-art methods by a large margin on several datasets and code sizes. For example, QINCo achieves better nearest-neighbor search accuracy using 12-byte codes than the state-of-the-art UNQ using 16 bytes on the BigANN1M and Deep1M datasets.

View on arXivView PDF

Code Implementations(1)

Residual Quantization with Implicit Neural Codebooks

1207Shell, PythonJan 24, 20241 years agoNOASSERTION

Similar Papers

Cite this paper

@article{huijben2024residual,
  title  = {Residual Quantization with Implicit Neural Codebooks},
  author = {Iris A. M. Huijben and Matthijs Douze and Matthew Muckley and Ruud J. G. van Sloun and Jakob Verbeek},
  year   = {2024},
  eprint = {2401.14732},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.14732v2},
  journal = {ICML 2024 2024}
}

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/2401.14732.svg)](https://codeofpaper.com/paper/2401.14732)

Discussion