Zero-Shot Hashing via Transferring Supervised Knowledge

Yang Yang, Yadan Luo, Weilun Chen, Fumin Shen, Jie Shao, Heng Tao Shen

Abstract

Traditional supervised hashing methods are limited by their reliance on manual labels for every category, hindering their scalability to the rapidly evolving concepts on the web. This paper presents a Zero-Shot Hashing (ZSH) framework designed to generate high-quality binary codes for "unseen" categories by transferring knowledge from "seen" categories. By leveraging semantic word embeddings and aligning them with visual features through a constrained rotation matrix, the proposed model bridges the gap between linguistic knowledge and visual representation. Experimental results on benchmark datasets demonstrate that ZSH significantly outperforms existing supervised and unsupervised hashing techniques in retrieving images from previously unencountered classes.

Introduction

In large-scale image retrieval, hashing is the gold standard for speed, compressing high-dimensional visual features into compact binary codes. However, most high-performing hashing algorithms are supervised and only work for the specific classes they were trained on. If a model is trained on "cats" and "dogs," it often fails to produce meaningful hash codes for a "Segway" or a "Drone." Manually labeling every new concept that emerges online is too expensive and slow.

The Zero-Shot Hashing problem: Learning to retrieve "unseen" classes (like a Segway) by transferring knowledge from a set of "seen" classes.

The authors tackle this "zero-shot" challenge: how can we learn a hash function that generalizes to categories the model has never seen?

Proposed Methodology

The ZSH framework bridges the gap between visual features and unseen labels through three key components:

  1. Semantic Embedding Space: Instead of treating labels as independent "one-hot" vectors, labels are projected into a high-dimensional word embedding space. In this space, semantically related concepts are mathematically close, allowing the model to transfer knowledge to new, similar categories.
  2. Semantic Alignment: To correct for "semantic shift" between text-based embeddings and visual features, the authors introduce a rotation matrix ($R$) with an orthogonal constraint to align the two spaces.
  3. Discrete Hashing with Local Structure: The model simultaneously preserves the local structural property of the data and respects the discrete nature of binary codes, preventing information loss during the learning process.
The ZSH framework architecture: Visual and embedding models are aligned during an offline training phase to enable efficient online retrieval of unseen categories.

The model is solved using an efficient alternating optimization algorithm, which typically reaches a stable local minimum in fewer than 20 iterations.

Experimental Results

The researchers evaluated ZSH on three widely-used benchmarks: CIFAR-10, ImageNet (ILSVRC 2012), and MIRFlickr.

  • Superior Retrieval: ZSH consistently outperformed state-of-the-art supervised methods (like SDH and KSH) and unsupervised methods (like IMH) when tested on unseen categories. On the MIRFlickr dataset, ZSH outperformed the second-best method by 19% in Mean Average Precision (MAP).
  • Semantic Correlation: A direct positive correlation was found between the Average Cosine Similarity of a class to its neighbors and its retrieval performance. For example, "birds" and "cats" (which have many similar "seen" relatives) performed better than more isolated concepts like "automobiles."

Conclusion

ZSH addresses the labeling bottleneck in supervised hashing by enabling knowledge transfer to unseen categories. By aligning semantic embeddings with visual features and maintaining discrete constraints, the model provides a scalable solution for retrieval in dynamic environments. Future work will explore multi-source knowledge fusion to further bridge the semantic gap.

Summary updated

BibTeX
@inproceedings{yang2016zero,
  author = {Yang Yang and Yadan Luo and Weilun Chen and Fumin Shen and Jie Shao and Heng Tao Shen},
  title = {{Zero-Shot Hashing via Transferring Supervised Knowledge}},
  booktitle = {ACM Multimedia},
  year = {2016},
  doi = {10.1145/2964284.2964319},
}
Figure