mlsanityData to 7 Oct 2026

Lossless Compression of Vector IDs for Approximate Nearest Neighbor Search

arXiv 2501.10479 ↗First posted 16 Jan 2025cs.LG cs.DB cs.IRcited by 1

Not on the map. Why?

Abstract (arXiv)

Approximate nearest neighbor search for vectors relies on indexes that are most often accessed from RAM. Therefore, storage is the factor limiting the size of the database that can be served from a machine. Lossy vector compression, i.e., embedding quantization, has been applied extensively to reduce the size of indexes. However, for inverted file and graph-based indices, auxiliary data such as vector ids and links (edges) can represent most of the storage cost. We introduce and evaluate lossless compression schemes for these cases. These approaches are based on asymmetric numeral systems or wavelet trees that exploit the fact that the ordering of ids is irrelevant within the data structures. In some settings, we are able to compress the vector ids by a factor 7, with no impact on accuracy or search runtime. On billion-scale datasets, this results in a reduction of 30% of the index size. Furthermore, we show that for some datasets, these methods can also compress the quantized vector codes losslessly, by exploiting sub-optimalities in the original quantization algorithm. The source code for our approach available at https://github.com/facebookresearch/vector_db_id_compression.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 24 of its 64 references that are in the map. First posted on arXiv 16 Jan 2025.

Builds on

24 of 64 references.

References · 24

  1. 2017Billion-scale similarity search with GPUscited by 2,477
  2. 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
  3. 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 853
  4. 2020Google Landmarks Dataset v2 -- A Large-Scale Benchmark for Instance-Level Recognition and Retrievalcited by 305
  5. 2022A Self-Supervised Descriptor for Image Copy Detectioncited by 175
  6. 2018Spreading vectors for similarity searchcited by 114
  7. 2017Fast Approximate Nearest Neighbor Search With The Navigating Spreading-out Graphcited by 103
  8. 2019Practical Lossless Compression with Latent Variables using Bits Back Codingcited by 85
  9. 2022Results of the NeurIPS'21 Challenge on Billion-Scale Approximate Nearest Neighbor Searchcited by 45
  10. 2018Revisiting the Inverted Indices for Billion-Scale Approximate Nearest Neighborscited by 37
  11. 2019HiLLoC: Lossless Image Compression with Hierarchical Latent Variable Modelscited by 36
  12. 2024Residual Quantization with Implicit Neural Codebookscited by 24
12 more
  1. 2023CAGRA: Highly Parallel Graph Construction and Approximate Nearest Neighbor Search for GPUscited by 22
  2. 2019Unsupervised Neural Quantization for Compressed-Domain Similarity Searchcited by 15
  3. 2024RoarGraph: A Projected Bipartite Graph for Efficient Cross-Modal Approximate Nearest Neighbor Searchcited by 12
  4. 2023DeDrift: Robust Similarity Search under Content Driftcited by 11
  5. 2018Link and code: Fast indexing with graphs and compact regression codescited by 9
  6. 2023Automating Nearest Neighbor Search Configuration with Constrained Optimizationcited by 7
  7. 2021Compressing Multisets with Large Alphabets using Bits-Back Codingcited by 4
  8. 2020Zuckerli: A New Compressed Representation for Graphscited by 3
  9. 2024Entropy Coding of Unordered Data Structurescited by 3
  10. 2023Random Edge Coding: One-Shot Bits-Back Coding of Large Labeled Graphscited by 2
  11. 2024Random Permutation Codes: Lossless Source Coding of Non-Sequential Datacited by 1
  12. 2024Random Cycle Coding: Lossless Compression of Cluster Assignments via Bits-Back Codingcited by 1

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.