Skip to main content
QUICK REVIEW

[Paper Review] End-to-End Supervised Product Quantization for Image Search and Retrieval

Benjamin Klein, Lior Wolf|arXiv (Cornell University)|Nov 23, 2017
Advanced Image and Video Retrieval TechniquesComputer Science34 references7 citations
TL;DR

This paper introduces Deep Product Quantization (DPQ), an end-to-end supervised hashing method that extends unsupervised Product Quantization by learning a dictionary-based representation with both soft and hard binary codes using a straight-through estimator. DPQ achieves state-of-the-art performance on image retrieval and classification benchmarks while maintaining the same memory and inference efficiency as standard PQ.

ABSTRACT

Product Quantization, a dictionary based hashing method, is one of the leading unsupervised hashing techniques. While it ignores the labels, it harnesses the features to construct look up tables that can approximate the feature space. In recent years, several works have achieved state of the art results on hashing benchmarks by learning binary representations in a supervised manner. This work presents Deep Product Quantization (DPQ), a technique that leads to more accurate retrieval and classification than the latest state of the art methods, while having similar computational complexity and memory footprint as the Product Quantization method. To our knowledge, this is the first work to introduce a dictionary-based representation that is inspired by Product Quantization and which is learned end-to-end, and thus benefits from the supervised signal. DPQ explicitly learns soft and hard representations to enable an efficient and accurate asymmetric search, by using a straight-through estimator. Our method obtains state of the art results on an extensive array of retrieval and classification experiments.

Motivation & Objective

  • Address the limitation of unsupervised Product Quantization (PQ) by incorporating task-specific labels during training to improve retrieval accuracy.
  • Overcome the performance gap between symmetric and asymmetric search in hashing methods by learning both soft and hard representations.
  • Enable end-to-end training of a dictionary-based hashing system that benefits from supervised signals, unlike prior PQ methods.
  • Improve cross-domain retrieval and classification performance through a novel normalization technique and a joint central loss function.
  • Demonstrate that a dictionary-based approach with learned codewords can surpass state-of-the-art binary hashing methods in accuracy while preserving efficiency.

Proposed method

  • Propose Deep Product Quantization (DPQ), a differentiable, end-to-end learned product quantization method that uses a shared encoder to produce both soft and hard representations.
  • Employ a straight-through estimator to backpropagate gradients through the hard representation, which is non-differentiable due to the argmax operation.
  • Introduce a joint central loss function that minimizes the distance between feature representations and their corresponding cluster centers while reducing discrepancy between soft and hard codes.
  • Apply a normalization technique to improve zero-shot and cross-domain retrieval performance by aligning feature distributions.
  • Use lookup tables (LUTs) to compute approximate Euclidean distances between compressed representations, enabling fast asymmetric search with the same complexity as standard PQ.
  • Train the model end-to-end using supervised signals from classification labels, optimizing for both retrieval and classification accuracy.

Experimental results

Research questions

  • RQ1Can a dictionary-based hashing method like Product Quantization be trained in an end-to-end, supervised manner to improve retrieval accuracy?
  • RQ2How does the performance of end-to-end supervised DPQ compare to state-of-the-art binary hashing methods in terms of symmetric and asymmetric search?
  • RQ3To what extent does learning both soft and hard representations improve the robustness and accuracy of retrieval systems?
  • RQ4Can a joint central loss function effectively reduce the gap between soft and hard representations while improving clustering quality?
  • RQ5Does normalization of features enhance cross-domain generalization in image retrieval tasks?

Key findings

  • DPQ achieves a top-1 accuracy of 56.80% and top-5 accuracy of 77.59% on ImageNet using 64-bit compressed representations, surpassing the previous SOTA method SUBIC by 9.03% and 5.43% respectively.
  • On the Oxford5K and Paris6K benchmarks, DPQ achieves mAP scores of 0.2643 and 0.4249, respectively, outperforming PQ, LSQ, DSH-64, and SUBIC under the same protocol.
  • The symmetric search performance of DPQ (mAP = 0.5530 on VOC2007) is significantly better than SUBIC’s symmetric result (mAP = 0.4443), indicating strong performance even without asymmetric search.
  • The PQ-Norm baseline, which applies normalization to PQ, performs nearly on par with DPQ (mAP = 0.2646 ± 0.0012 on Oxford5K), suggesting normalization is a key factor in performance gains.
  • DPQ maintains the same memory footprint and inference time as standard PQ, while achieving superior accuracy across multiple benchmarks.
  • The joint central loss and normalization technique significantly improve performance on cross-domain retrieval, demonstrating the method’s robustness to domain shift.

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.