Focusing on Detail: Deep Hashing Based on Multiple Region Details (Student Abstract)

Quan Zhou, Xiushan Nie, Yang Shi, Xingbo Liu, Yilong Yin

Introduction

Efficient image retrieval in large-scale databases is a cornerstone of modern computer vision. Deep supervised hashing has emerged as a powerful technique, mapping high-dimensional image data into compact binary codes. However, most existing methods rely on global feature extraction, which often overlooks fine-grained local details essential for distinguishing visually similar but semantically different objects. This paper presents Deep Multi-Region Hashing (DMRH), a framework designed to capture these local nuances while addressing the inherent data imbalance in pairwise similarity learning.

The Challenge of Global Features and Data Imbalance

Standard deep hashing models typically utilize a global view of an image. While effective for general categorization, this approach can wash out critical local features—such as the specific texture of a wing or the unique shape of a vehicle's wheel—that are vital for precise retrieval.

Furthermore, training these models often involves pairwise similarity loss, where the network learns from pairs of images labeled as "similar" or "dissimilar." In any large dataset, the number of dissimilar pairs grows quadratically, far outstripping the number of similar pairs. This extreme class imbalance often results in models that excel at identifying differences but struggle to accurately model the commonalities that define a class.

Proposed Method: Deep Multi-Region Hashing (DMRH)

The DMRH framework introduces two primary innovations to overcome these hurdles:

1. Multi-Region Feature Learning

Instead of a standard classification backbone, the authors modify the CNN-F architecture. By replacing the final fully connected layers with convolutional layers, the network is transformed into a local feature extractor. Rather than a single global vector, the model outputs an $N \times N$ grid of local feature vectors, where each vector corresponds to a specific spatial region of the input image. The final hash code is then generated by averaging these local region vectors, ensuring that fine-grained details contribute directly to the final representation.

2. Self-Similarity Loss

To mitigate the data imbalance problem, the authors introduce a novel Self-Similarity Loss. This loss function exploits the internal redundancy of an image by forcing different overlapping regions within the same image to have similar hash representations. By treating these internal patches as "similar pairs," the model artificially boosts the number of positive training examples. This "self-supervision" helps the model learn more robust similarity features without requiring additional external labels.

Experimental Evaluation

DMRH was evaluated on three benchmark datasets: CIFAR-10, NUS-WIDE, and MS-COCO. The results demonstrate that DMRH consistently outperforms state-of-the-art methods like ADSH and DPSH across various bit lengths.

Performance on Complex Scenes

The most significant gains were observed on the MS-COCO dataset, which features complex natural scenes with multiple objects. As shown in the performance table below, DMRH achieves a substantial lead over competing methods.

Comparison of mAP results on the MS-COCO dataset across different bit lengths. DMRH shows a significant performance advantage over baselines like DSDH.

At 128 bits, DMRH reached a Mean Average Precision (MAP) of 0.8120, compared to 0.7227 for the next best method, DSDH. This highlights the effectiveness of multi-region features in complex, multi-object environments.

The Impact of Grid Granularity

A key hyperparameter in DMRH is the grid size $N$. The authors conducted sensitivity analyses to determine the optimal level of subdivision.

The effect of grid size N on mAP@5K for various bit lengths. Performance generally peaks between N=5 and N=6.

As $N$ increases, the model captures more fine-grained information, leading to improved performance. However, if the regions become too small (e.g., $N > 6$), they may lose semantic coherence and introduce noise, causing a slight decline in retrieval accuracy. For the CIFAR-10 dataset, the optimal granularity was found to be $N=6$.

Conclusion and Future Directions

DMRH demonstrates that focusing on local details and leveraging internal image consistency can significantly enhance deep hashing performance. While the current implementation uses a fixed grid, future work could explore attention-based mechanisms to dynamically identify salient regions. Additionally, applying this multi-region approach to modern architectures like Vision Transformers (ViTs) could further push the boundaries of efficient image retrieval.

Summary updated

BibTeX
@inproceedings{zhou2020focusing,
  author = {Quan Zhou and Xiushan Nie and Yang Shi and Xingbo Liu and Yilong Yin},
  title = {{Focusing on Detail: Deep Hashing Based on Multiple Region Details (Student Abstract)}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i10.7268},
}
Figure