Zero-Shot Semantic Segmentation

Maxime Bucher, Tuan-Hung Vu, Matthieu Cord, Patrick Pérez

TL;DR

This paper introduces Zero-Shot Semantic Segmentation (ZS3), a task where a model must segment object categories at the pixel level despite having never seen a single training image of those categories. By using a generative model to turn word embeddings into synthetic visual features, the authors' ZS3Net can recognize "unseen" objects like motorbikes or cows by simply "reading" about them.

What Problem Does This Paper Address?

Traditional semantic segmentation is a data-hungry task. To teach a model to recognize a "cat," you need thousands of images where every "cat" pixel is meticulously labeled by a human. This approach doesn't scale; there are tens of thousands of object categories in the real world, and we cannot feasibly label them all.

The authors tackle the challenge of Zero-Shot Learning (ZSL) in the context of pixel-wise prediction. While ZSL has been studied for image classification (identifying the whole image), applying it to segmentation is much harder because the model must distinguish between seen and unseen classes (and the background) simultaneously at every single pixel. This is known as Generalized Zero-Shot Learning (GZSL), and it is the primary focus of this work.

Methods

The authors propose an architecture called ZS3Net, which operates in three main steps:

Architecture of ZS3Net
  1. Feature Extraction: They start with a standard segmentation backbone (DeepLabv3+) pre-trained on "seen" classes. They extract the high-dimensional visual features just before the final classification layer.
  2. Feature Generation (The Core Innovation): To handle "unseen" classes, they use a Generative Moment Matching Network (GMMN). This generative model takes a semantic word embedding (like a word2vec vector for "motorbike") and random noise as input, then produces synthetic visual features that "look" like what a motorbike's features would be in the DeepLab latent space.
  3. Classifier Training: They train a final $1 \times 1$ convolutional classifier on a hybrid dataset: real visual features from the "seen" classes and synthetic features generated for the "unseen" classes.

The paper also introduces two powerful extensions:

  • Self-Training (ZS5Net): In a "relaxed" setup where unlabeled images containing unseen classes are available, the model uses its own high-confidence predictions to "pseudo-label" pixels, effectively teaching itself through semi-supervised learning.
  • Graph-Context Encoding: For complex scenes, the authors use a graph-based module to capture spatial priors—for example, knowing that a "cow" is likely to be surrounded by "grass" or "field" helps the model disambiguate features.

Datasets

The authors evaluated their approach on two major benchmarks, creating new zero-shot splits for each:

  • Pascal-VOC 2012: A standard dataset with 20 object classes. They tested splits with 2, 4, 6, 8, and 10 "unseen" classes.
  • Pascal-Context: A more challenging dataset with 59 classes (including "stuff" like sky and grass). This dataset was used specifically to test the Graph-Context encoding due to its denser annotations and more complex spatial relationships.

Key Insights and Ideas

  • Generative vs. Discriminative: Most early ZSL work tried to project visual features into a text space. This paper flips that: it projects text into the visual feature space. This allows the model to use a standard classifier architecture, which is much more stable for segmentation.
  • The "Generalized" Hurdle: The authors highlight that the real difficulty isn't just recognizing an unseen class, but doing so without the model becoming "biased" and classifying everything as a seen class. The synthetic features act as a crucial anchor to prevent this bias.
  • Context as a Proxy for Vision: The Graph-Context module is a standout idea. It suggests that even if an AI doesn't know exactly what a "boat" looks like, it can infer its presence if it sees "water" and "sails" in a specific spatial arrangement.

Key Results

The ZS3Net significantly outperformed the baseline (an adaptation of the DeViSe classification model) across all metrics:

Qualitative comparison showing successful segmentation of an unseen motorbike class
  • Pascal-VOC (2-unseen split): ZS3Net achieved a 35.4% mIoU (mean Intersection over Union) on unseen classes, compared to a meager 3.2% for the baseline.
  • Harmonic Mean (hIoU): This metric balances performance on both seen and unseen classes. On Pascal-VOC, ZS3Net reached an hIoU of 47.5%, while the baseline sat at 6.1%.
  • Qualitative Success: As shown above, the model successfully segmented "motorbikes" and "sofas" in images where a standard supervised model (trained without those classes) simply saw them as a confusing mix of "person," "bicycle," and "background."

Limitations and Future Work

  • The Semantic Gap: The model relies heavily on the quality of word embeddings. If the word2vec representation of a class doesn't capture its visual essence well, the generated features will be poor.
  • Performance Gap: While the results are a massive leap over baselines, there is still a significant performance gap between "seen" classes (often 70%+ mIoU) and "unseen" classes (often 15-35% mIoU).
  • Future Directions: The authors suggest that incorporating more sophisticated generative models (like GANs or VAEs) or richer semantic descriptions (like attributes or sentences instead of just word vectors) could further bridge the gap.

Summary updated

BibTeX
@inproceedings{bucher2019zero,
  author = {Maxime Bucher and Tuan-Hung Vu and Matthieu Cord and Patrick Pérez},
  title = {{Zero-Shot Semantic Segmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure