Skip to main content
QUICK REVIEW

[Paper Review] Improving Bilayer Product Quantization for Billion-Scale Approximate Nearest Neighbors in High Dimensions

Artem Babenko, Victor Lempitsky|arXiv (Cornell University)|Apr 7, 2014
Advanced Image and Video Retrieval TechniquesComputer Science14 references18 citations
TL;DR

This paper proposes two novel systems—Fast Bilayer Product Quantization (FBPQ) and Hierarchical Bilayer Product Quantization (HBPQ)—to accelerate and improve approximate nearest neighbor search on billion-scale high-dimensional datasets. FBPQ reduces distance computation complexity from O(D) to O(M), achieving up to 15× speedup over Multi-D-ADC with identical recall; HBPQ uses local product quantization codebooks per index cell, boosting Recall@1 by 10% and Recall@10 by 17% on the SIFT1B dataset with only a 15% memory increase.

ABSTRACT

The top-performing systems for billion-scale high-dimensional approximate nearest neighbor (ANN) search are all based on two-layer architectures that include an indexing structure and a compressed datapoints layer. An indexing structure is crucial as it allows to avoid exhaustive search, while the lossy data compression is needed to fit the dataset into RAM. Several of the most successful systems use product quantization (PQ) for both the indexing and the dataset compression layers. These systems are however limited in the way they exploit the interaction of product quantization processes that happen at different stages of these systems. Here we introduce and evaluate two approximate nearest neighbor search systems that both exploit the synergy of product quantization processes in a more efficient way. The first system, called Fast Bilayer Product Quantization (FBPQ), speeds up the runtime of the baseline system (Multi-D-ADC) by several times, while achieving the same accuracy. The second system, Hierarchical Bilayer Product Quantization (HBPQ) provides a significantly better recall for the same runtime at a cost of small memory footprint increase. For the BIGANN dataset of billion SIFT descriptors, the 10% increase in Recall@1 and the 17% increase in Recall@10 is observed.

Motivation & Objective

  • To address the inefficiency of existing bilayer product quantization systems that perform redundant distance computations and use suboptimal global codebooks.
  • To reduce the computational cost of distance evaluation in high-dimensional approximate nearest neighbor search without sacrificing accuracy.
  • To improve search recall by enabling local, cell-specific product quantization codebooks that better adapt to displacement distributions.
  • To achieve state-of-the-art performance in both speed and accuracy for billion-scale datasets like SIFT1B.
  • To demonstrate that local codebooks, despite higher memory cost, are feasible and beneficial when combined with hierarchical product quantization.

Proposed method

  • FBPQ leverages asymmetric distance computation (ADC) with product quantization to reduce distance evaluation complexity from O(D) to O(M), where M is the number of PQ components.
  • Instead of reconstructing full vectors, FBPQ computes distances directly from compressed representations using a fast, approximate distance formula.
  • HBPQ replaces global codebooks with per-cell local codebooks for displacement encoding, enabling better compression quality per index cell.
  • Local codebooks are constructed using the same product quantization framework but trained independently per cell on its specific displacement distribution.
  • The system uses an inverted multi-index structure for efficient cell retrieval and applies reranking on a shortlist of candidates.
  • Memory overhead from local codebooks is kept low by exploiting the hierarchical structure of product quantization, avoiding linear growth with the number of cells.

Experimental results

Research questions

  • RQ1Can the distance computation complexity in bilayer product quantization be reduced from O(D) to O(M) without accuracy loss?
  • RQ2Does using local product quantization codebooks per index cell improve search recall compared to global codebooks?
  • RQ3What is the trade-off between memory overhead and recall improvement when using local codebooks in high-dimensional ANN search?
  • RQ4Can the synergy between two levels of product quantization be exploited more effectively to accelerate search?
  • RQ5Is the performance gain from local codebooks sufficient to justify the increased memory cost in real-world billion-scale applications?

Key findings

  • FBPQ achieves up to 15× speedup over the Multi-D-ADC system on the SIFT1B dataset while maintaining identical recall levels.
  • HBPQ improves Recall@1 by 10% and Recall@10 by 17% over Multi-D-ADC on the SIFT1B dataset with only a 15% increase in memory (2 GB) for 8-byte encoding.
  • The encoding error for displacement vectors is reduced by 30% when using local codebooks in HBPQ compared to global codebooks.
  • For the GIST50M dataset, HBPQ achieves a 1.3% to 2.4% improvement in Recall@1 and up to 10% improvement in Recall@10 over Multi-D-ADC at a modest 1.5× memory increase.
  • Despite a 20% increase in query time due to cache inefficiency, HBPQ remains highly effective and scalable, especially on large datasets.
  • The results demonstrate that local codebooks are more effective than global ones, particularly when sufficient data is available for training per-cell codebooks.

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.