Hybrid Generative/Discriminative Learning for Automatic Image Annotation

Shuang-Hong Yang, Jiang Bian, Hongyuan ZhaUAI 2010

Introduction

Automatic Image Annotation (AIA) is a critical task in computer vision that involves assigning relevant textual tags to images. This task is characterized as a "Many-Class Multi-Label Multi-Instance" ($M^3C$) problem. Images typically contain multiple objects (instances) and are described by multiple tags (multi-label). Furthermore, these tags must be selected from a massive vocabulary where the vast majority of terms are irrelevant to any single image (many-class).

AIA faces three primary challenges:

  1. Input Ambiguity: The correspondence between specific image regions and tags is often unknown.
  2. Output Ambiguity: The relationship between multiple tags and latent image features is hidden.
  3. The "Massive Class" Problem: Real-world vocabularies contain thousands of tags, but an image only requires a few. This leads to severe data imbalance and overfitting in traditional models.

Proposed Methodology: The EMM Model

To address these challenges, we propose the Exponential-Multinomial Mixture (EMM) model. This framework combines the strengths of generative Bayesian topic modeling with discriminative max-margin learning.

Graphical representation of the EMM model showing the plate notation for the generative process.

Exponential Prior for Sparsity

Unlike traditional models like Latent Dirichlet Allocation (LDA) that use Dirichlet priors for smoothing, EMM employs an Exponential distribution as a prior. This choice is inspired by L1 regularization (LASSO) and encourages sparsity. By forcing the model to select only a few highly relevant tags while zeroing out irrelevant ones, the system becomes significantly more robust to noise in large-scale vocabularies.

Hybrid Max-Margin Learning

The model is trained using a hybrid objective. While the generative component handles latent correspondences, a discriminative max-margin objective is used for final classification. Specifically, we employ pairwise ordinal regression. Instead of binary classification ("is this tag present?"), the model learns to rank relevant tags higher than irrelevant ones. This approach effectively mitigates the data imbalance inherent in massive-class problems, as every pair of relevant and irrelevant tags provides a balanced training signal.

Experimental Setup

The EMM model was evaluated on two benchmark datasets:

  • Alipr: 2,359 images with a refined vocabulary of 93 tags.
  • LabelMe: A more complex dataset with 4,053 images and 291 refined tags. Images were segmented using N-Cuts and represented as a "bag-of-visual-words" using SIFT descriptors.

Results and Discussion

The discriminative version of our model ($EMM_d$) consistently outperformed baseline models, including CorrLDA and DBA, across various metrics.

Tag Scalability

A key finding of this research is the model's superior scalability. As the number of candidate tags increases, traditional models often suffer from a significant drop in performance due to the "crowding" of irrelevant tags.

Accuracy @ 5 as a function of the number of tags. EMM_d demonstrates remarkable stability compared to baseline models as the vocabulary size grows.

As shown in the figure above, $EMM_d$ maintains high accuracy even as the vocabulary size expands, whereas the performance of models like DBA and CorrLDA declines sharply. This stability confirms the effectiveness of the exponential sparsity prior.

Data Efficiency and Qualitative Performance

$EMM_d$ also demonstrated high data efficiency, maintaining performance with smaller training sets where MLE-based models failed. Qualitatively, the model successfully identified global themes (e.g., "night") by aggregating visual evidence across multiple image regions.

Conclusion and Future Work

The EMM framework provides a robust solution for large-scale AIA by leveraging sparsity and ranking-based learning. Future work will focus on incorporating contextual correlations between tags (e.g., the co-occurrence of "Apple" and "Keyboard") to further improve annotation accuracy. Additionally, we aim to optimize the computational complexity of the pairwise SVM solver to scale the system to millions of images and tens of thousands of tags.

Summary updated

BibTeX
@inproceedings{yang2010hybrid,
  author = {Shuang-Hong Yang and Jiang Bian and Hongyuan Zha},
  title = {{Hybrid Generative/Discriminative Learning for Automatic Image Annotation}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2010},
}
Figure