Skip to main content
QUICK REVIEW

[Paper Review] Deep Priority Hashing

Zhangjie Cao, Ziping Sun|arXiv (Cornell University)|Sep 4, 2018
Advanced Image and Video Retrieval TechniquesComputer Science35 references4 citations
TL;DR

This paper proposes Deep Priority Hashing (DPH), a novel deep hashing framework that improves image retrieval under data skewness by introducing a priority cross-entropy loss to focus on hard, uncertain pairs and a priority quantization loss to reduce quantization error. DPH achieves state-of-the-art performance on ImageNet, NUS-WIDE, and MS-COCO by jointly optimizing these losses in an end-to-end Bayesian learning framework.

ABSTRACT

Deep hashing enables image retrieval by end-to-end learning of deep representations and hash codes from training data with pairwise similarity information. Subject to the distribution skewness underlying the similarity information, most existing deep hashing methods may underperform for imbalanced data due to misspecified loss functions. This paper presents Deep Priority Hashing (DPH), an end-to-end architecture that generates compact and balanced hash codes in a Bayesian learning framework. The main idea is to reshape the standard cross-entropy loss for similarity-preserving learning such that it down-weighs the loss associated to highly-confident pairs. This idea leads to a novel priority cross-entropy loss, which prioritizes the training on uncertain pairs over confident pairs. Also, we propose another priority quantization loss, which prioritizes hard-to-quantize examples for generation of nearly lossless hash codes. Extensive experiments demonstrate that DPH can generate high-quality hash codes and yield state-of-the-art image retrieval results on three datasets, ImageNet, NUS-WIDE, and MS-COCO.

Motivation & Objective

  • Address the performance degradation of existing deep hashing methods on imbalanced or skewed multimedia data due to uniform weighting of all training pairs.
  • Overcome the limitations of standard cross-entropy loss in handling long-tail distributions and varying difficulty levels among image pairs.
  • Develop a unified Bayesian learning framework that jointly optimizes representation learning and hash code generation with prioritized training.
  • Improve retrieval accuracy by focusing training on uncertain (hard) pairs and hard-to-quantize examples, reducing overall quantization error.
  • Achieve state-of-the-art performance on benchmark datasets under various data skewness conditions, including long-tail and class-imbalanced distributions.

Proposed method

  • Propose a priority cross-entropy loss that down-weights confident pairs and up-weights uncertain or hard-to-classify pairs using a modulating factor based on prediction confidence.
  • Introduce a priority quantization loss that emphasizes hard-to-quantize examples by incorporating a learnable temperature parameter to control quantization error during training.
  • Formulate the entire DPH model within a Bayesian learning framework, enabling end-to-end training with back-propagation.
  • Use a modulating factor derived from the focal loss concept but adapted to similarity learning, where the difficulty of a pair is measured by the model’s prediction confidence.
  • Combine the two priority losses with a trade-off hyperparameter $ rac{1}{ ho} $, allowing flexible balancing between similarity preservation and quantization accuracy.
  • Train the network using standard optimization techniques, with the final hash codes obtained via differentiable relaxation and hard thresholding.

Experimental results

Research questions

  • RQ1Can a loss function that prioritizes uncertain and hard-to-classify image pairs improve deep hashing performance under data skewness?
  • RQ2Does incorporating a priority-aware quantization loss lead to lower quantization error and better retrieval accuracy in deep hashing?
  • RQ3How does the proposed DPH model compare to existing deep hashing methods in terms of performance on datasets with long-tail distributions?
  • RQ4To what extent is the DPH model robust to variations in data skewness, including imbalanced class distributions and varying pair difficulty?
  • RQ5Can the joint optimization of similarity preservation and quantization error reduction via priority learning yield better generalization and retrieval quality?

Key findings

  • DPH achieves state-of-the-art mean average precision (mAP) on ImageNet, NUS-WIDE, and MS-COCO across all code lengths, outperforming prior methods including HashNet and DPH-F.
  • On ImageNet with 64-bit codes, DPH achieves an mAP of 0.7614, significantly outperforming DPH-W (0.7012) and DPH-F (0.7555), demonstrating the effectiveness of both priority losses.
  • The ablation study shows that DPH-W (without priority weighting) lags behind DPH by 10.31% in mAP on ImageNet, highlighting the importance of focusing on hard examples.
  • DPH-Q (without priority quantization loss) underperforms DPH by 1.44% on ImageNet, 4.81% on NUS-WIDE, and 0.89% on MS-COCO, proving that controlling quantization error is critical.
  • t-SNE visualization confirms that DPH learns more discriminative and well-separated hash codes compared to HashNet, especially in high-level feature space.
  • The sensitivity analysis shows that DPH is robust to hyperparameter $ rac{1}{ ho} $, with performance stable across a wide range of values from 0.01 to 1.

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.