Semantic Graph for Zero-Shot Learning

Zhen-Yong Fu, Tao Xiang, Shaogang GongarXiv 2014

Introduction

Zero-Shot Learning (ZSL) aims to recognize objects from categories that were never present in the training data (e.g., identifying a "giant panda" having only seen "bears" and "raccoons"). This is typically achieved by mapping images into a "semantic space" (like attributes or word vectors) where seen and unseen classes are related. This paper introduces a novel ZSL framework that models the relationships between all visual classes—both seen and unseen—using a semantic graph.

Problem Statement

The authors identify two major flaws in existing ZSL methods:

  1. Ignoring Inter-Class Relationships: Many methods only model the relationship between seen and unseen classes, ignoring how seen classes relate to each other.
  2. The Domain Shift Problem: Directly mapping high-dimensional image features to semantic vectors often fails because the mapping learned for seen classes doesn't generalize well to unseen ones.

Methodology

The core innovation is representing the entire class structure as a $k$-nearest-neighbor ($k$-nn) semantic graph.

The Semantic Graph

Nodes in the graph represent classes. Edges are weighted based on the semantic similarity (e.g., cosine similarity of word vectors) between classes. Unlike previous "bipartite" models that only link seen classes to unseen ones, this graph explicitly models connections between seen classes.

Comparison between a flat bipartite graph (a) and the proposed hierarchical semantic graph (b).

Absorbing Markov Chain

The authors treat the ZSL task as a random walk on this graph:

  • Unseen classes are designated as absorbing states: once a "walker" reaches an unseen class, it stays there.
  • Seen classes are transient states: the walker can move between them or eventually fall into an absorbing unseen class.

To classify a new test image $x$, it is first passed through a standard classifier trained on seen classes to get a probability distribution. This distribution connects the image $x$ to the seen class nodes in the graph. The final classification is determined by calculating the probability that a random walk starting at $x$ will be "absorbed" by a specific unseen class node. This absorption probability can be calculated using a single closed-form matrix equation, making the method highly efficient.

Key Results

The researchers evaluated their method on the Animals with Attributes (AwA) dataset. The proposed method consistently outperformed existing semantic-relatedness approaches like ConSE and direct-similarity ZSL.

Quantitative comparison of mean accuracy across different ZSL approaches and semantic spaces.

As shown in the results, when using word vectors, the method achieved 43.1% mean accuracy. When using manually defined attributes, the accuracy jumped to 49.5%, significantly higher than the classic DAP (41.4%) and IAP (42.2%) models. Beyond accuracy, the method proved to be significantly faster than competitors because its computation time scales linearly with the number of test images.

Conclusion

By modeling inter-class relationships through a semantic graph and utilizing an absorbing Markov chain process, this framework provides a robust and efficient solution for Zero-Shot Learning. While the approach relies on the quality of the initial seen-class classifier, it captures more nuanced semantic relationships than traditional bipartite models. Future work may involve automatically learning the optimal graph structure or applying this framework to Generalized Zero-Shot Learning.

Summary updated

BibTeX
@misc{fu2014semantic,
  author = {Zhen-Yong Fu and Tao Xiang and Shaogang Gong},
  title = {{Semantic Graph for Zero-Shot Learning}},
  year = {2014},
  eprint = {1406.4112},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1406.4112},
}
Figure