Skip to main content
QUICK REVIEW

[Paper Review] Stacked Quantizers for Compositional Vector Compression

Julieta Martínez, Holger H. Hoos|arXiv (Cornell University)|Nov 8, 2014
Advanced Image and Video Retrieval TechniquesComputer Science18 references35 citations
TL;DR

This paper proposes Stacked Quantizers (SQ), a hierarchical vector compression method that achieves quantization error comparable to Additive Quantization (AQ) while being orders of magnitude faster by enabling independent encoding through residual-based stacking. SQ outperforms both Product Quantization (PQ) and AQ in accuracy and efficiency on SIFT, GIST, and deep convolutional neural network features.

ABSTRACT

Recently, Babenko and Lempitsky introduced Additive Quantization (AQ), a generalization of Product Quantization (PQ) where a non-independent set of codebooks is used to compress vectors into small binary codes. Unfortunately, under this scheme encoding cannot be done independently in each codebook, and optimal encoding is an NP-hard problem. In this paper, we observe that PQ and AQ are both compositional quantizers that lie on the extremes of the codebook dependence-independence assumption, and explore an intermediate approach that exploits a hierarchical structure in the codebooks. This results in a method that achieves quantization error on par with or lower than AQ, while being several orders of magnitude faster. We perform a complexity analysis of PQ, AQ and our method, and evaluate our approach on standard benchmarks of SIFT and GIST descriptors, as well as on new datasets of features obtained from state-of-the-art convolutional neural networks.

Motivation & Objective

  • To address the scalability limitations of Additive Quantization (AQ), which suffers from slow encoding due to non-independent codebooks.
  • To bridge the gap between Product Quantization (PQ) and AQ by introducing a hierarchical codebook structure that maintains representational power while enabling efficient encoding.
  • To develop a method that achieves quantization error on par with AQ but with encoding speeds closer to PQ.
  • To evaluate the method on standard benchmarks (SIFT, GIST) and modern deep learning features from ConvNets.
  • To demonstrate that SQ enables practical deployment of high-accuracy compression in large-scale retrieval systems.

Proposed method

  • Stacked Quantizers decompose vectors into subvectors and recursively encode residuals through a hierarchy of codebooks, enabling independent encoding at each level.
  • Each subcodebook is trained to quantize the residual from the previous level, forming a cascade where the final representation is the sum of all subcodebook indices.
  • The method uses a two-stage optimization: initial codebook learning via k-means on residuals, followed by iterative refinement to reduce quantization error.
  • Encoding is performed sequentially: the first codebook encodes the full vector, and subsequent codebooks encode the residual from the prior level, allowing fast, independent lookups.
  • The approach maintains compositional structure similar to PQ and AQ but introduces a dependency hierarchy that reduces encoding complexity compared to AQ.
  • The method is evaluated using standard metrics: quantization error, top-5 classification error, and training/encoding time on real-world datasets.

Experimental results

Research questions

  • RQ1Can a hierarchical codebook structure reduce encoding complexity while preserving the low quantization error of Additive Quantization?
  • RQ2How does the performance of Stacked Quantizers compare to PQ and AQ in terms of quantization error and encoding speed?
  • RQ3Does the method scale effectively to large-scale datasets such as SIFT1B and deep convolutional features?
  • RQ4Can Stacked Quantizers maintain high accuracy under extreme compression rates, such as 32-bit codes?
  • RQ5Is the method practical for real-world retrieval systems given its training and encoding efficiency?

Key findings

  • Stacked Quantizers achieve quantization error comparable to or lower than Additive Quantization (AQ), outperforming both PQ and OPQ across all benchmarks.
  • Encoding time for SQ is approximately 20 seconds for 1 million features, compared to 9.2 hours for AQ, making SQ viable for large-scale applications.
  • On the ConvNet1M-128 dataset, SQ reduces quantization error from 0.12 to 0.10 after 100 iterations of codebook refinement, with 20% improvement from refinement alone.
  • For 128-dimensional features, SQ matches AQ’s performance with 4 codebooks and outperforms it at larger code sizes, while maintaining faster encoding.
  • At extreme compression (32 bits), SQ degrades more gracefully than PQ/OPQ, maintaining a top-5 error rate of 25–30% compared to 35–45% for PQ/OPQ.
  • On 1 billion features, SQ would require ~6 hours to encode, compared to ~1.05 years for AQ, highlighting its scalability advantage.

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.