Skip to main content
QUICK REVIEW

[Paper Review] Fast Training of Triplet-based Deep Binary Embedding Networks

Bohan Zhuang, Guosheng Lin|arXiv (Cornell University)|Mar 9, 2016
Advanced Image and Video Retrieval TechniquesComputer Science37 references6 citations
TL;DR

This paper proposes a two-stage framework that accelerates triplet-based deep binary hashing by decoupling binary code inference from deep neural network training. It formulates high-order triplet loss as a binary quadratic problem solvable via graph cuts, then trains deep CNNs incrementally on inferred codes, achieving up to 100x faster training than prior methods while matching or exceeding state-of-the-art retrieval accuracy on benchmark datasets including CASIA and IJB-A.

ABSTRACT

In this paper, we aim to learn a mapping (or embedding) from images to a compact binary space in which Hamming distances correspond to a ranking measure for the image retrieval task. We make use of a triplet loss because this has been shown to be most effective for ranking problems. However, training in previous works can be prohibitively expensive due to the fact that optimization is directly performed on the triplet space, where the number of possible triplets for training is cubic in the number of training examples. To address this issue, we propose to formulate high-order binary codes learning as a multi-label classification problem by explicitly separating learning into two interleaved stages. To solve the first stage, we design a large-scale high-order binary codes inference algorithm to reduce the high-order objective to a standard binary quadratic problem such that graph cuts can be used to efficiently infer the binary code which serve as the label of each training datum. In the second stage we propose to map the original image to compact binary codes via carefully designed deep convolutional neural networks (CNNs) and the hashing function fitting can be solved by training binary CNN classifiers. An incremental/interleaved optimization strategy is proffered to ensure that these two steps are interactive with each other during training for better accuracy. We conduct experiments on several benchmark datasets, which demonstrate both improved training time (by as much as two orders of magnitude) as well as producing state-of-the-art hashing for various retrieval tasks.

Motivation & Objective

  • To address the prohibitively high training cost of triplet-based deep binary hashing, which scales cubically with training data size.
  • To enable efficient large-scale training of deep hash functions without sacrificing ranking performance.
  • To develop a scalable framework that separates binary code inference from deep feature learning for improved computational efficiency.
  • To maintain high retrieval accuracy while reducing training time by orders of magnitude.
  • To demonstrate the effectiveness of incremental optimization in improving code quality and model performance.

Proposed method

  • Formulates triplet-based ranking loss as a high-order binary inference problem, converting it into a second-order binary quadratic program (BQP) for efficient optimization.
  • Uses graph cuts with block-coordinate descent to solve the BQP, enabling scalable inference of binary codes from triplet constraints.
  • Designs a deep convolutional neural network (CNN) to map images to compact binary codes, trained via binary classification on the inferred codes.
  • Employs an incremental, interleaved optimization strategy where binary codes and deep hash functions are updated interactively to improve mutual performance.
  • Uses supervised pre-training on VGG-16 for feature initialization, followed by fine-tuning with the proposed two-stage framework.
  • Applies data augmentation (horizontal mirroring) and PCA for robustness and dimensionality reduction in face retrieval experiments.

Experimental results

Research questions

  • RQ1Can high-order triplet-based loss functions be efficiently optimized for large-scale binary code learning?
  • RQ2Does decoupling binary code inference from deep network training significantly reduce training time without degrading retrieval accuracy?
  • RQ3Can incremental optimization between code inference and deep feature learning improve code quality and model performance?
  • RQ4How does the proposed method compare to state-of-the-art hashing methods in terms of speed and retrieval accuracy on large-scale benchmarks?
  • RQ5Can the framework achieve competitive performance with a single deep model while using only 128-bit binary codes?

Key findings

  • The proposed method achieves up to 100x faster training than previous triplet-based methods like FaceNet, reducing training time from months to days.
  • On the IJB-A face retrieval benchmark, the method achieves a CMC@1 accuracy of 0.645±0.058 at 128 bits, outperforming existing state-of-the-art methods.
  • With 128-bit codes, the method achieves 0.889±0.020 mean average precision on the LFW dataset, demonstrating strong retrieval performance.
  • Smaller group lengths in incremental learning lead to better search accuracy, confirming the effectiveness of the interleaved optimization strategy.
  • The pre-trained VGG-16 model alone achieves 97.03%±0.98% accuracy on LFW verification, showing strong baseline performance before hashing.
  • The framework enables fast face retrieval using only 128-bit binary codes from a single deep model, achieving both high speed and low storage requirements.

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.