Simultaneous Image Classification and Annotation via Biased Random Walk on Tri-relational Graph

Xiao Cai, Hua Wang, Heng Huang, Chris H. Q. Ding

Abstract

Traditional computer vision models often treat image classification and image annotation as independent tasks. This paper proposes a unified framework that performs both simultaneously by constructing a Tri-relational Graph (TG) that links images, class labels, and annotation terms. By employing a Biased Random Walk (BRW) to propagate information across these domains, the model leverages the semantic interdependencies between global categories and local tags. Experimental results on the LabelMe and UIUC-sports datasets demonstrate that this joint approach significantly improves performance in both classification and annotation tasks.

1. Introduction

In computer vision, image classification typically involves assigning a single global category to an image (e.g., "Coast"), while image annotation involves assigning multiple local tags (e.g., "sand," "sea," "sun"). Traditionally, these are treated as separate problems. However, these tasks are semantically intertwined. For instance, an image classified as "rowing" is statistically likely to contain tags like "water" and "boat." Conversely, the presence of "oar" and "water" tags strongly suggests a water sport category.

Example of a 'Coast' category image from the LabelMe dataset, illustrating the relationship between a global class and local annotation terms.

By tackling these tasks independently, models fail to exploit rich contextual information. Furthermore, human-curated datasets often contain biased or incomplete labels; a joint learning framework can potentially "self-correct" these errors through mutual reinforcement.

2. Methodology

The proposed framework relies on two primary innovations: the Tri-relational Graph and the Biased Random Walk.

2.1 The Tri-relational Graph (TG)

The TG is a unified graph structure $G = (V, E)$ where vertices $V$ represent three distinct entities:

  • Images (Data Subgraph $G_X$): Connected based on visual similarity using SIFT features.
  • Class Labels (Category Class Subgraph $G_C$): Connected based on statistical relationships derived from between-class scatter matrices.
  • Annotation Terms (Annotation Terms Subgraph $G_A$): Connected based on co-occurrence using cosine similarity.
The Tri-relational Graph (TG) architecture, illustrating the subgraphs for categories, annotation terms, and data, along with their inter-relational edges.

Inter-relational edges connect these subgraphs: images are linked to their assigned classes and tags, while classes are linked directly to tags via a correlation matrix $R$, capturing the "global-to-local" semantic bridge.

2.2 Biased Random Walk (BRW)

For inference, the authors utilize a Biased Random Walk. Unlike standard random walks or PageRank, the BRW uses a biased distribution vector ($h$) representing a "semantic group" (e.g., all training images in the "Forest" class). By calculating the equilibrium probability of a walker starting from this group, the model determines the relevance of specific classes or tags to an unlabeled test image. This process learns an asymmetric transition matrix, capturing nuanced logical dependencies (e.g., "boat" implies "water," but "water" does not necessarily imply "boat").

3. Experimental Evaluation

The model was evaluated on two benchmark datasets:

  • LabelMe: 1,600 images across 8 categories with 58 annotation terms.
  • UIUC-sports: 1,578 images across 8 event categories with 90 annotation terms.

3.1 Results

The joint learning approach consistently outperformed state-of-the-art methods that handle tasks separately. On the LabelMe dataset, the BRW achieved 84% classification accuracy, surpassing SVM (81%) and generative models like JLDA (79%). In annotation tasks, the method reached a Macro F1 score of 0.5038 on LabelMe, significantly higher than the competitor LGC (0.4578).

4. Conclusion

This research demonstrates that image classification and annotation act as mutual regularizers. While the model shows state-of-the-art performance, limitations include dependency on initial label "guesses" and computational complexity during graph construction. Future work will focus on scaling the framework and exploring hierarchical semantic models based on the learned asymmetric relationships.

Summary updated

BibTeX
@inproceedings{cai2012simultaneous,
  author = {Xiao Cai and Hua Wang and Heng Huang and Chris H. Q. Ding},
  title = {{Simultaneous Image Classification and Annotation via Biased Random Walk on Tri-relational Graph}},
  booktitle = {European Conference on Computer Vision},
  year = {2012},
  doi = {10.1007/978-3-642-33783-3\_59},
}
Figure