Attribute-Guided Network for Cross-Modal Zero-Shot Hashing

Zhong Ji, Yuxin Sun, Yunlong Yu, Yanwei Pang, Jungong Han · DOI

Abstract

This paper presents the Attribute-Guided Network (AgNet), a novel framework designed for Cross-Modal Zero-Shot Hashing (CMZSH). Traditional hashing methods struggle with the "modality gap" between different data types and the "category gap" inherent in zero-shot learning. AgNet addresses these by aligning visual and textual features into a shared, semantically rich attribute space. A unified hashing network then generates discriminative binary codes from these predicted attributes. Our experiments on benchmark datasets demonstrate that AgNet significantly outperforms existing state-of-the-art methods in both text-based and image-based retrieval of unseen categories.

Introduction

Efficient multimedia retrieval often relies on hashing, which transforms high-dimensional data into compact binary codes for fast searching. However, modern applications face two major hurdles: Zero-Shot Learning (ZSL), the need to retrieve objects from categories not seen during training, and Cross-Modal Retrieval, the need to search across different data types (e.g., using text to find images).

Overview of the Cross-Modal Zero-Shot Hashing (CMZSH) task, illustrating the retrieval of unseen categories across modalities.

While previous Zero-Shot Hashing (ZSH) methods focused primarily on single-modal tasks, AgNet bridges both the modality and category gaps simultaneously, enabling robust Text-Based Image Retrieval (TBIR) for novel classes.

The AgNet Framework

AgNet utilizes a "hub-and-spoke" architecture centered around a shared Attribute Space. This design allows the model to leverage semantic attributes as a universal bridge between pixels and words.

The AgNet architecture, featuring V2A, T2A, and a shared A2H network for unified hash code generation.

The framework consists of three primary sub-networks:

  1. Visual-to-Attribute (V2A) Net: Extracts visual features using a fine-tuned GoogleNet and maps them to a predicted attribute vector (e.g., "has spots," "is yellow").
  2. Text-to-Attribute (T2A) Net: Maps Word2Vec representations of category names into the same attribute space.
  3. Attribute-to-Hash (A2H) Net: A single shared network that converts predicted attributes from either modality into binary hash codes.

To optimize performance, AgNet employs specialized loss functions, including Category Similarity Loss and Attribute Similarity Loss. The latter is particularly crucial as it prevents the model from collapsing semantically similar but distinct categories into identical hash codes.

Experimental Evaluation

The model was evaluated on benchmark datasets including Animals with Attributes (AwA), SUN Attribute, and ImageNet. AgNet demonstrated a substantial performance leap over state-of-the-art cross-modal hashing methods. For instance, on the AwA dataset for TBIR, AgNet achieved a Mean Average Precision (mAP) of 58.1% at 48 bits, significantly higher than the 22.9% achieved by the next best supervised method (SMFH).

Even in single-modal tasks (IBIR), AgNet outperformed specialized zero-shot models like SitNet by approximately 9.1% in mAP. The model also showed excellent scalability, with consistent performance gains as hash code length increased from 8 to 64 bits.

Discussion and Conclusion

A key insight of this work is the use of attributes as a semantic "middle ground." By mapping both modalities to this space, the zero-shot transition becomes more manageable since attributes are often shared across seen and unseen classes. Furthermore, the shared A2H layer inherently enforces cross-modal compatibility.

Despite its success, AgNet relies on high-quality, manually annotated attribute vectors, which can be expensive to obtain. Future work may explore replacing manual annotations with automatically generated embeddings or click-through data. In summary, AgNet provides a powerful and efficient solution for the complex task of cross-modal zero-shot retrieval.

Summary updated

BibTeX
@article{ji2018attribute,
  author = {Zhong Ji and Yuxin Sun and Yunlong Yu and Yanwei Pang and Jungong Han},
  title = {{Attribute-Guided Network for Cross-Modal Zero-Shot Hashing}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2018},
  doi = {10.1109/tnnls.2019.2904991},
}
Figure