Tell and Predict: Kernel Classifier Prediction for Unseen Visual Classes from Unstructured Text Descriptions

Mohamed Elhoseiny, Ahmed M. Elgammal, Babak SaleharXiv 2015

Abstract

In this paper we propose a framework for predicting kernelized classifiers in the visual domain for categories with no training images where the knowledge comes from textual description about these categories. Through our optimization framework, the proposed approach is capable of embedding the class-level knowledge from the text domain as kernel classifiers in the visual domain. We also proposed a distributional semantic kernel between text descriptions which is shown to be effective in our setting. The proposed framework is not restricted to textual descriptions, and can also be applied to other forms knowledge representations. Our approach was applied for the challenging task of zero-shot learning of fine-grained categories from text descriptions of these categories.

Introduction

Traditional computer vision models require thousands of labeled images to learn a new category. Zero-Shot Learning (ZSL) attempts to bypass this by "transferring" knowledge from seen classes to unseen ones. However, most ZSL methods rely on manually defined "attributes" (e.g., "has a yellow belly" or "pointy wings"). Creating these attribute lists is labor-intensive and doesn't scale well.

The core concept of ZSL from text: teaching the machine about unseen classes using only descriptions.

This paper tackles the more difficult and "natural" version of the problem: Can a machine learn to recognize a bird or a flower just by reading a paragraph of text about it? The challenge lies in the "domain gap"—connecting the noisy, high-dimensional world of pixels to the abstract, semantic world of natural language.

Methodology

The authors propose a "Tell and Predict" framework consisting of three main components:

  1. Kernelized Domain Transfer: Unlike previous works that try to map images into a text space, this model learns a transfer function that maps text descriptions into the parameters of a kernel classifier in the visual domain. This allows the model to handle non-linear relationships between visual features.
  2. Distributional Semantic (DS) Kernel: To compare two text descriptions, the authors developed a kernel that uses word embeddings (similar to Word2Vec). This captures semantic similarity (e.g., knowing that "canary" and "finch" are related) much better than simple word-counting methods like TF-IDF.
  3. One-Class SVM Adjustment: To improve the "separability" of the predicted classifier, the authors use an optimization trick inspired by One-Class SVMs. This forces the predicted classifier to treat all previously "seen" classes as negative examples, sharpening the decision boundary for the new, unseen class.

Experimental Setup

The researchers evaluated their approach on two popular fine-grained classification benchmarks, augmented with class-level text descriptions from encyclopedias:

  • CUB-200-2011 (Birds): 6,033 images across 200 bird species.
  • Oxford-102 (Flowers): 8,189 images across 102 flower categories.
A Fire Lily flower, representing an 'unseen' class that the model must identify without prior image training.

Key Results and Insights

The "Tell and Predict" framework showed clear improvements over state-of-the-art baselines:

  • Multiclass Accuracy (MAU): On the Flower dataset, the proposed SVM-DT kernel achieved 9.1% accuracy, a significant jump over the 5.9% achieved by previous linear classifiers.
  • Comparison to Attributes: Surprisingly, the model performing on raw text (5.6% MAU on Birds) outperformed a standard attribute-based model (Lampert’s DAP at 4.8%), suggesting that rich text descriptions can be more informative than sparse, human-labeled attribute vectors.
  • Predicting Classifiers vs. Embedding Images: Most ZSL models project images into a semantic space. This paper argues for the opposite: projecting semantic info into the visual classifier space. This preserves the discriminative power of visual features better.
  • Kernels Matter: Moving from linear classifiers to kernelized (non-linear) classifiers provides a significant boost in accuracy, as the relationship between "textual traits" and "visual appearance" is rarely a straight line.

Conclusion

While the relative improvements are high, the absolute accuracy (e.g., 9.1%) highlights how difficult zero-shot learning remains, especially for fine-grained categories where species look very similar. The model's performance is heavily dependent on the quality and "visual relevance" of the text. Future directions include integrating this with more advanced deep learning architectures and exploring other forms of "privileged information" (like taxonomies or parse trees) to further bridge the gap between language and vision.

Summary updated

BibTeX
@misc{elhoseiny2015tell,
  author = {Mohamed Elhoseiny and Ahmed M. Elgammal and Babak Saleh},
  title = {{Tell and Predict: Kernel Classifier Prediction for Unseen Visual Classes from Unstructured Text Descriptions}},
  year = {2015},
  eprint = {1506.08529},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1506.08529},
}
Figure