Zero-shot image classification using coupled dictionary embedding

Mohammad Rostami, Soheil Kolouri, Zak Murez, Y. Owechko, Eric Eaton, Kuyngnam Kim

TL;DR

This paper introduces a novel Zero-Shot Learning (ZSL) algorithm that uses coupled dictionary learning to bridge the gap between visual and semantic representations of images. By learning a shared sparse representation for both visual and semantic features, the method effectively classifies images from unseen classes without direct training examples, offering a competitive alternative to deep learning approaches.

What Problem Does This Paper Address?

Traditional supervised learning requires large amounts of labeled data, which can be expensive and time-consuming to acquire, especially for fine-grained classification tasks or domains with rapidly emerging new classes. Zero-Shot Learning (ZSL) aims to overcome this by enabling models to classify images from classes they haven't seen during training, relying instead on semantic descriptions of these unseen classes. However, existing ZSL methods often struggle with challenges like "domain-shift" (discrepancy between seen and unseen class distributions) and "hubness" (certain data points becoming overly popular as nearest neighbors), leading to performance degradation. This paper addresses these limitations by proposing a ZSL framework that leverages coupled dictionary learning to create a more robust mapping between visual and semantic spaces.

Methods

The core of this paper's approach is coupled dictionary learning (CDL). The authors frame ZSL as a problem of learning two dictionaries: one for visual features ($D_x$) and one for semantic attributes ($D_z$). The key idea is that both visual and semantic representations of an object can be described by a shared sparse representation vector ($a$). This shared representation acts as an intermediate embedding space, allowing knowledge transfer between the visual and semantic domains.

During the training phase, they learn these dictionaries ($D_x$ and $D_z$) using labeled data from "seen" classes, where both visual and semantic information are available. This is formulated as an optimization problem that minimizes reconstruction error while enforcing sparsity in the representation coefficients.

In the testing phase, for an unseen image, they first infer its sparse representation ($a_i$) using the visual dictionary ($D_x$). This inferred sparse representation is then used to predict the semantic attributes ($\hat{z}_i = D_z a_i$). To tackle the "domain-shift" and "hubness" challenges, they introduce two key formulations:

  1. Attribute-Aware (AAw) formulation: This approach penalizes the entropy of the predicted attribute distribution, encouraging a more confident and less ambiguous assignment of attributes.
  2. Transductive approach (TAAw): This method uses label propagation on a graph constructed from the predicted attributes to refine the label assignments, further mitigating domain-shift and hubness issues.

Datasets

The authors evaluate their method on four benchmark ZSL datasets:

  • Animals with Attributes (AwA1): A coarse-grained dataset with 50 animal classes and 85 attributes. Only extracted features were available.
  • AwA2: A dataset with a similar structure to AwA1 but with original images, offering more flexibility for feature extraction.
  • SUN: A fine-grained dataset of scene categories with 717 classes and 102 attributes.
  • Caltech-UCSD-Birds 200-2011 (CUB): A fine-grained dataset of bird species with 200 classes, 312 attributes, and boundary segmentation.

For feature extraction, they used VGG19 and GoogleNet features pre-trained on ImageNet (for AwA1, AwA2, CUB) and Places (for SUN).

Key Insights and Ideas

  • Shared Sparse Representation is Key: The core insight is that by enforcing visual and semantic features to share the same sparse representation, we create a powerful bridge for knowledge transfer in ZSL.
  • Dictionary Learning as a ZSL Framework: Recasting ZSL as a coupled dictionary learning problem provides a principled way to learn the cross-domain mapping without relying on complex deep neural networks, potentially requiring less data.
  • Entropy Regularization for Domain-Shift: The attribute-aware formulation's entropy minimization is crucial for mitigating domain-shift by biasing the recovered sparse vectors towards unseen class attributes.
  • Label Propagation for Hubness and Domain-Shift: The transductive approach, using label propagation on predicted attributes, effectively addresses both hubness and domain-shift by considering the structure of the attribute space.

Key Results

The proposed method achieves competitive performance across the four benchmark datasets.

  • VGG19 Features:
    • AwA1: 91.0% (AAg), 89.3% (TAAw)
    • CUB: 48.4% (AAg), 40.62% (AAw), 48.41% (TAAw)
    • SUN (645/72 split): 48.40% (TAAw)
    • SUN (707/10 split): 91.00% (TAAw)
  • GoogleNet Features:
    • AwA2: 57.0% (AAg), 49.7% (AAw), 71.7% (TAAw)

The results show a significant improvement from the attribute-agnostic (AAg) to the attribute-aware (AAw) formulation, and a further boost with the transductive approach (TAAw). The authors demonstrate that their method performs favorably against state-of-the-art approaches, particularly on the SUN dataset.

Limitations and Future Work

  • Not End-to-End: The method requires pre-processed visual and semantic features, limiting its applicability in scenarios where feature extraction is not readily available. However, they note that pre-trained models can often provide suitable features.
  • Data Greedy vs. Deep Learning: While dictionary learning is presented as less data-greedy than end-to-end deep learning methods, it still requires a sufficient number of samples for training the dictionaries.
  • Generalized ZSL: An unexplored aspect for future work is extending the method to generalized ZSL, where test samples can belong to both seen and unseen classes. This setting presents a more challenging domain-shift problem.

Summary updated

BibTeX
@misc{rostami2019zero,
  author = {Mohammad Rostami and Soheil Kolouri and Zak Murez and Y. Owechko and Eric Eaton and Kuyngnam 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