Jointly Multiple Hash Learning

Xingbo Liu, Xiushan Nie, Yingxin Wang, Yilong Yin

Abstract

Jointly Multiple Hash Learning (JMH) is a novel framework designed to learn multiple hash codes of varying lengths (e.g., 12, 24, 36, and 48 bits) simultaneously within a single training process. By treating different hash lengths as distinct "views" of the same data, the model exploits the semantic relationships between them to produce more accurate and robust binary codes for image retrieval. Experimental evaluations on benchmark datasets show that JMH consistently outperforms existing methods that learn hash lengths in isolation.

Introduction

In large-scale image retrieval, hashing is essential for compressing high-dimensional data into compact binary strings, enabling fast and memory-efficient searches. However, traditional hashing algorithms typically learn a fixed code length. If system requirements change, requiring longer codes for higher precision, these models must often be retrained from scratch. Furthermore, independent training ignores the shared semantic information between different code lengths of the same image. JMH addresses these issues by integrating the learning of multiple hash lengths into a unified objective function, leveraging "synergy" between codes to improve retrieval performance.

Methodology

The JMH framework integrates the learning of $K$ different hash lengths by optimizing a joint objective function composed of three primary components:

  1. M-Loss (Classification Error): A supervised component ensuring that learned hash codes are discriminative enough to separate different semantic categories.
  2. L-Loss (Feature Preservation): This component ensures that the binary codes retain the essential characteristics of the original high-dimensional features.
  3. Q-Loss (Inter-code Relationship): This "secret sauce" explicitly models the relationship between hash codes of different lengths (e.g., $H_k$ and $H_{k+1}$) using a linear projection. By treating different lengths as "multiple views," information flows between them during training.

To solve this optimization problem, the authors employ cyclic coordinate descent. Unlike methods that use "relaxation" (treating bits as continuous values), JMH solves for discrete binary values directly, avoiding the precision loss associated with rounding.

Experimental Setup

The performance of JMH was evaluated on three standard benchmarks:

  • CIFAR-10: 60,000 images across 10 classes.
  • MS-COCO: Complex everyday scenes with multiple objects.
  • NUS-WIDE: Large-scale web images with associated tags.

Key Results

JMH was compared against several state-of-the-art methods, including Supervised Discrete Hashing (SDH) and Fast Supervised Discrete Hashing (FSDH).

Table 1: Mean Average Precision (MAP) results for different bit lengths on CIFAR-10, MS-COCO, and NUS-WIDE datasets.

As shown in Table 1, JMH achieved the highest Mean Average Precision (MAP) in almost all tests across the three datasets. The authors reported performance improvements ranging from 3% to 10% over competing methods. Notably, the benefit of joint learning becomes more pronounced as bit length increases; 48-bit JMH codes consistently outperformed standalone 48-bit codes, suggesting that shorter codes effectively "guide" the learning of longer ones.

Discussion and Insights

The core innovation of JMH is the application of multi-view learning theory to hash lengths. By capturing different "grains" of information simultaneously, the model achieves a more comprehensive representation. Additionally, the direct discrete optimization ensures that the final binary codes are mathematically optimized for the retrieval task rather than being approximations. From a practical standpoint, JMH offers "one-step efficiency," handling multiple bit lengths in a single training session, which reduces computational overhead in production environments.

Limitations and Future Work

A primary limitation of JMH is its parameter complexity. Linking multiple hash lengths introduces several hyperparameters ($\mu, \alpha, \lambda, \gamma, \beta$) for each length, leading to a large search space for optimal configurations. Future research will focus on automating parameter selection or simplifying the framework to handle a larger number of simultaneous hash lengths without a proportional increase in manual tuning.

Summary updated

BibTeX
@inproceedings{liu2019jointly,
  author = {Xingbo Liu and Xiushan Nie and Yingxin Wang and Yilong Yin},
  title = {{Jointly Multiple Hash Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33019981},
}
Figure