QINCo
Residual vector quantizer whose codebook at each step is generated by a small neural network.
553 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 2.3M
- Operations
- 553
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICML 2024
- Cited by
- 0 (as of 28 October 2026)
- Authors
- Iris A. M. Huijben, Matthijs Douze, Matthew Muckley and others
- License
- CC-BY-NC-4.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m19546
- Graph hash
- f7b3c71e2b3556c10566c73f74fae2ba72b6f25d700e1f811d1afd88a4ef3cd7
- Skeleton hash
- 53a4bef6ebeafea71b9c853933311aa32d12ab241c84bd5696b11ec62e3ae852
- Architecture hash
- c79a111395c637362c14af3aca5b7fd0d55d3a47ff792aa367c08a43c1f1e713
- Diagram SHA-256
- 542b5b062f42f22f749c68c07ab5d6a37526c2731d3f4fca6480ea8603c44d13
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
QINCo is a vector quantizer: it turns a vector into a short code, an operation used for data compression and vector search. It builds on residual quantization (RQ), which works in steps, each one quantizing the error left by the step before. Conventional RQ uses a fixed codebook at each step, even though the distribution of that error depends on the codewords already selected.
QINCo makes the codebooks implicit, so that a neural network generates them instead of storing them. At each step the network predicts the codebook for the next quantization step, conditioned on the vector as quantized so far. Inside, it runs residual blocks, each adding its input to the output of an MLP with two linear layers. The starting point is a set of base codebooks initialized from a pre-trained conventional RQ. Decoding has to proceed step by step, because the codebook-generating network needs the partial reconstruction.
The paper reports better nearest-neighbor search accuracy with 12-byte codes than UNQ with 16 bytes on the BigANN1M and Deep1M datasets. Codes can also be cut short, and the paper finds such prefix codes on par with codes trained for that length. This model is the original QINCo and takes 128-dimensional vectors, the dimension of BigANN. A later paper introduced QINCo2, which adds codeword pre-selection and beam search to the encoding.
Key idea. QINCo replaces the fixed per-step codebooks of residual quantization with codebooks generated by a neural network conditioned on the reconstruction so far.
- QINCo
- QINCo1
- Quantization with Implicit Neural Codebooks
- residual quantization
- implicit neural codebooks
- vector quantization
- vector compression
- nearest neighbor search
- multi-codebook quantization
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{huijben2024residualquantizationimplicitneural,
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},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2401.14732},
}