Zero-Shot Image Classification Using Coupled Dictionary Embedding

Mohammad Rostami, Soheil Kolouri, Zak Murez, Yuri Owekcho, Eric Eaton, Kyungnam Kim

TL;DR

This paper introduces a Zero-Shot Learning (ZSL) framework that uses Coupled Dictionary Learning to bridge the gap between visual features and semantic attributes. By enforcing a shared sparse representation in an intermediate embedding space, the model can accurately classify images from classes it has never seen during training, effectively tackling common ZSL hurdles like domain-shift and hubness.

What Problem Does This Paper Address?

Zero-Shot Learning (ZSL) aims to recognize objects from classes that were never presented during the training phase. For example, a model trained on horses and tigers should be able to identify a zebra if given a textual description like "horse-like" and "has stripes."

The core challenge is the "semantic gap": how do we map high-dimensional visual pixels to a low-dimensional semantic attribute space? Existing methods often struggle with two major issues:

  1. Domain-Shift: A model trained to recognize attributes on "seen" classes (e.g., "furry" on dogs) might not generalize well to "unseen" classes (e.g., "furry" on polar bears) because the visual manifestation of the attribute changes.
  2. Hubness: In high-dimensional spaces, a few points (hubs) tend to become the nearest neighbors for a disproportionately large number of other points, leading to frequent misclassifications.

Methods

The authors propose using Coupled Dictionary Learning (CDL) to relate visual features ($X$) and semantic attributes ($Z$).

The Core Idea: Shared Sparse Coding

Instead of a direct mapping, they learn two dictionaries—$D_x$ for the visual domain and $D_z$ for the semantic domain. The fundamental assumption is that an image and its corresponding semantic description share the same sparse representation ($\alpha$) in an intermediate space.

Figure 1: High-level overview of our approach: (a) we consider that the visual features (left) and the attribute features (right) can be represented sparsely using unions of subspaces that are modeled using two dictionaries. We train the two dictionaries such that these two space are matched (middle), leading to coupling the visual and the attribute features in the shared space. (b) During testing, we solve for the sparse representation of the input images and then find its corresponding semantic description, y first solving for the joint sparse vector using the visual dictionary and then searching for the closest semantic description.
  • Training Phase: The model uses images from "seen" classes to learn $D_x$ and $D_z$ such that $x_i \approx D_x \alpha_i$ and $z_i \approx D_z \alpha_i$. Crucially, $D_z$ is also trained to sparsify the attributes of "unseen" classes to ensure it generalizes.
  • Testing Phase: For a new image from an unseen class, the model first finds the sparse code $\alpha$ using only the visual dictionary $D_x$ (via a LASSO problem). It then reconstructs the predicted semantic attribute using the semantic dictionary: $\hat{z} = D_z \alpha$.

Tackling ZSL Challenges

  • Attribute-Aware (AAw) Prediction: To fight domain-shift, they add an entropy minimization regularizer. This biases the recovered sparse vector to be close to the specific attribute prototypes of unseen classes, forcing the model to "boost its confidence."
  • Transductive Attribute-Aware (TAAw) Prediction: To mitigate hubness, they use a transductive approach. Instead of classifying images one by one, they build a graph of all test samples and use label propagation to spread labels from known class prototypes to the predicted attributes.

Datasets

The authors evaluated their method on four primary ZSL benchmarks:

  • AwA1 & AwA2 (Animals with Attributes): Coarse-grained datasets of 50 animal classes.
  • CUB (Caltech-UCSD Birds): A fine-grained dataset of 200 bird species.
  • SUN (Scene UNderstanding): A fine-grained dataset of 717 scene categories.

They tested various visual feature extractors, including VGG19, Inception (GoogleNet), ResNet50, and DenseNet161.

Key Insights and Ideas

  • Union of Subspaces: While dictionary learning is essentially a linear model, the "union of subspaces" property allows it to capture non-linearities in data distributions, making it more flexible than simple linear regression but less data-hungry than deep neural networks.
  • Entropy as a Structural Prior: By minimizing entropy during inference, the authors effectively use the knowledge of unseen class prototypes as a prior to correct the "drift" caused by training only on seen classes.
  • Graph-based Smoothing: The success of the transductive approach highlights that looking at the global structure of the test data is far more robust than point-wise nearest neighbor search in high-dimensional attribute spaces.

Key Results

The proposed method achieved state-of-the-art or highly competitive results across all datasets.

  • SUN Dataset: Achieved 91.0% accuracy (using VGG19 features), significantly outperforming many contemporary methods.
  • AwA1 Dataset: Reached 89.35% accuracy.
  • Ablation Study: The jump from "Attribute-Agnostic" (AAg) to "Transductive Attribute-Aware" (TAAw) was substantial. For instance, on AwA2 with VGG19, accuracy rose from 41.68% (AAg) to 69.93% (TAAw).
Visualizing the impact of the proposed regularizations using t-SNE. The attribute-aware formulation (bottom row) clearly improves clustering and reduces data overlap compared to the agnostic version (top row).

Limitations and Future Work

  • Feature Dependency: The method is not end-to-end; it requires pre-extracted visual features. Its performance is heavily tied to the quality of the backbone CNN used.
  • Generalized ZSL (GZSL): The paper focuses on the standard ZSL setting where the test set only contains unseen classes. The authors note that Generalized ZSL—where the test set contains both seen and unseen classes—is a more difficult and "unexplored aspect" for this specific dictionary-based approach, as domain-shift becomes even more problematic.

Summary updated

BibTeX
@misc{rostami2019zero,
  author = {Mohammad Rostami and Soheil Kolouri and Zak Murez and Yuri Owekcho and Eric Eaton and Kyungnam Kim},
  title = {{Zero-Shot Image Classification Using Coupled Dictionary Embedding}},
  year = {2019},
  eprint = {1906.10509},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.10509},
}
Figure