Skip to main content
QUICK REVIEW

[Paper Review] Searching in one billion vectors: re-rank with source coding

Hervé Jeǵou, Romain Tavenard|arXiv (Cornell University)|Feb 18, 2011
Advanced Image and Video Retrieval TechniquesComputer Science11 references34 citations
TL;DR

This paper proposes a memory-efficient re-ranking method for approximate nearest neighbor search in billion-scale vector databases using source coding. By refining approximate distances from quantized codes instead of accessing full vectors from disk, the approach achieves state-of-the-art recall with minimal performance overhead, validated on a new public dataset of one billion 128D SIFT vectors.

ABSTRACT

Recent indexing techniques inspired by source coding have been shown successful to index billions of high-dimensional vectors in memory. In this paper, we propose an approach that re-ranks the neighbor hypotheses obtained by these compressed-domain indexing methods. In contrast to the usual post-verification scheme, which performs exact distance calculation on the short-list of hypotheses, the estimated distances are refined based on short quantization codes, to avoid reading the full vectors from disk. We have released a new public dataset of one billion 128-dimensional vectors and proposed an experimental setup to evaluate high dimensional indexing algorithms on a realistic scale. Experiments show that our method accurately and efficiently re-ranks the neighbor hypotheses using little memory compared to the full vectors representation.

Motivation & Objective

  • To address the high memory and I/O cost of post-verification in large-scale approximate nearest neighbor search.
  • To improve search accuracy without accessing full vectors from disk by leveraging compressed quantization codes.
  • To evaluate high-dimensional indexing methods on a realistic scale of one billion vectors.
  • To demonstrate that re-ranking using short codes can achieve near-perfect recall with low computational overhead.

Proposed method

  • The method re-ranks neighbor hypotheses from compressed-domain indexing using estimated distances derived from short quantization codes, avoiding full vector retrieval.
  • It extends product quantization (PQ) by refining approximate distances using additional codebook information stored in RAM.
  • The approach uses a two-stage process: first, a fast approximate search via product quantization; second, a re-ranking step that computes refined distances using the quantized representations.
  • The refinement is based on a model where the reconstruction error is incrementally reduced using successive code layers, analogous to scalable source coding.
  • The method is evaluated using a new public dataset of one billion 128-dimensional SIFT vectors, with ground-truth nearest neighbors computed via exact linear scan.
  • The re-ranking step uses only the quantized codes (e.g., 8–64 bytes per vector) to estimate distances, significantly reducing disk access.

Experimental results

Research questions

  • RQ1Can re-ranking based on short quantization codes improve recall in billion-scale vector search without accessing full vectors from disk?
  • RQ2How does the performance of the proposed re-ranking method compare to standard post-verification using exact distances?
  • RQ3What is the impact of increasing the number of bytes used for re-ranking on search accuracy and efficiency?
  • RQ4How does the method scale with increasing database size, particularly in terms of recall degradation and outlier handling?

Key findings

  • The proposed re-ranking method (ADC+R and IVFADC+R) achieves significantly higher recall than baseline methods: recall@100 increases from 0.586 (ADC) to 0.951 (ADC+R) on the full one-billion-vector dataset.
  • With 32 bytes used for re-ranking, the method achieves 98.5% recall@100, approaching the performance of exact search while using only compressed codes.
  • The query time increases by only 0.06 seconds per query (from 5.626s to 5.686s) when re-ranking is added, demonstrating minimal performance overhead.
  • For the same memory budget, ADC+R achieves higher recall than ADC, with search speed approximately doubled due to the low cost of re-ranking.
  • As database size increases, the re-ranking step becomes more critical, with performance degrading more gracefully when using precise re-ranking (m′=16) compared to no re-ranking.
  • The method achieves near-perfect recall (100%) at recall@100 when using 64 bytes for re-ranking, demonstrating its effectiveness at scale.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.