Skip to main content
QUICK REVIEW

[Paper Review] Discrete Hashing with Deep Neural Network

Thanh-Toan Do, Anh-Zung Doan|arXiv (Cornell University)|Aug 28, 2015
Advanced Image and Video Retrieval TechniquesComputer Science32 references8 citations
TL;DR

This paper proposes Discrete Hashing with Deep Neural Networks (SDH-DNN), a novel supervised hashing method that directly optimizes binary codes without relaxing the binary constraint, using an auxiliary variable to decouple optimization into alternating steps for weights and binary codes. The method achieves state-of-the-art performance on CIFAR-10 and MNIST, outperforming prior methods by up to +17% in mAP at 8-bit codes.

ABSTRACT

This paper addresses the problem of learning binary hash codes for large scale image search by proposing a novel hashing method based on deep neural network. The advantage of our deep model over previous deep model used in hashing is that our model contains necessary criteria for producing good codes such as similarity preserving, balance and independence. Another advantage of our method is that instead of relaxing the binary constraint of codes during the learning process as most previous works, in this paper, by introducing the auxiliary variable, we reformulate the optimization into two sub-optimization steps allowing us to efficiently solve binary constraints without any relaxation. The proposed method is also extended to the supervised hashing by leveraging the label information such that the learned binary codes preserve the pairwise label of inputs. The experimental results on three benchmark datasets show the proposed methods outperform state-of-the-art hashing methods.

Motivation & Objective

  • To address the challenge of learning compact, high-quality binary hash codes for large-scale image search.
  • To overcome the limitations of existing deep hashing methods that relax binary constraints during optimization, leading to suboptimal solutions.
  • To incorporate essential criteria for good hash codes—similarity preservation, balance, and independence—within a deep neural network framework.
  • To develop an efficient optimization strategy that directly handles binary constraints without relaxation, improving code quality and retrieval performance.

Proposed method

  • Introduces an auxiliary variable to reformulate the binary optimization problem into two alternating sub-optimization steps: optimizing network weights and binary codes separately.
  • Uses L-BFGS for optimizing deep neural network weights and a cyclic coordinate descent method for updating each bit of the binary code independently.
  • Employs a joint objective function that enforces similarity preservation, balance (equal number of 1s and 0s), and independence (uncorrelated bits) in the learned codes.
  • Leverages label information in the supervised setting by constructing a pairwise similarity matrix S based on class labels to guide code learning.
  • Applies a non-relaxed optimization strategy: instead of binarizing continuous outputs, the method directly optimizes for discrete binary codes during training.
  • Extends the method to unsupervised hashing (UDH-DNN) by using self-constructed similarity matrices based on input data structure.

Experimental results

Research questions

  • RQ1Can a deep neural network be effectively trained to produce discrete binary hash codes without relaxing the binary constraint?
  • RQ2Does incorporating similarity preservation, balance, and independence into the objective function improve retrieval performance compared to prior methods?
  • RQ3Can the proposed alternating optimization strategy efficiently solve the NP-hard discrete optimization problem in hashing?
  • RQ4How does the performance of the proposed method compare to state-of-the-art supervised and unsupervised hashing techniques on benchmark datasets?

Key findings

  • SDH-DNN outperforms the state-of-the-art supervised hashing method SDH by +17% in mAP at 8-bit code length on CIFAR-10.
  • On MNIST, SDH-DNN achieves a +13.9% improvement in mAP over SDH at 8-bit codes, with consistent gains across all code lengths.
  • At low code lengths (8–16 bits), SDH-DNN significantly outperforms KSH and ITQ-CCA in both mAP and precision@Hamming radius 3 and 4.
  • The method achieves comparable performance to SDH at longer code lengths (32–64 bits), indicating strong scalability.
  • The proposed optimization strategy effectively handles binary constraints without relaxation, resulting in higher-quality codes than thresholding continuous outputs.
  • The inclusion of similarity preservation, balance, and independence in the objective function leads to more robust and discriminative hash codes.

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.