Exploiting a Joint Embedding Space for Generalized Zero-Shot Semantic Segmentation

Donghyeon Baek, Youngmin Oh, Bumsub Ham

TL;DR

The authors propose JoEm, a discriminative framework for generalized zero-shot semantic segmentation (GZS3) that maps visual features and semantic word vectors into a joint embedding space. By utilizing a novel boundary-aware loss and an adaptive inference calibration technique based on the Apollonius circle, JoEm avoids the costly multi-stage feature generation and classifier retraining required by prior methods while significantly mitigating seen-class bias.

What Problem Does This Paper Address?

Semantic segmentation models typically require dense, pixel-level annotations, making it incredibly expensive to scale them to new object categories. Zero-shot semantic segmentation (ZS3) aims to alleviate this by leveraging semantic side-information (like word2vec embeddings) to segment "unseen" classes without any pixel-level training examples.

The more realistic and challenging variant is Generalized ZS3 (GZS3), where the model must simultaneously identify both seen and unseen classes at test time. Most existing GZS3 methods rely on a generative approach: they train a generative model to synthesize visual features for unseen classes and use them to train a final classifier. However, this paradigm suffers from two major flaws:

  1. Seen Bias: The visual feature extractor is trained only on seen classes, making the generated features heavily biased toward known categories.
  2. Inflexibility: The final classifier must be completely retrained every time a new unseen class is introduced or removed.

Methods

Instead of generating fake features, JoEm uses a discriminative approach that learns a Joint Embedding Space where a visual encoder maps pixels, and a semantic encoder maps class text embeddings (e.g., word2vec) to the same coordinate space. At test time, classification simply becomes a Nearest Neighbor (NN) search.

To make this embedding space robust, the authors introduce three core components:

  • Boundary-Aware Regression (BAR) Loss: Deep convolutional networks have large receptive fields, meaning pixels near object boundaries often contain a mixture of visual information from multiple classes. Forcing these boundary pixels to map directly to a single crisp class prototype distorts the embedding space. BAR solves this by downsampling and upsampling the semantic maps to create smoothly interpolated "virtual prototypes" that act as a buffer for boundary pixels.

    Figure 2: (a) While the semantic feature map abruptly changes at object boundaries due to the stacking operation using a ground-truth mask (top), the visual one smoothly varies due to the large receptive field of the visual encoder (middle). We leverage a series of nearest- neighbor and bilinear interpolations to smooth a sharp transition at object boundaries in an efficient way (bottom). (b) Visual features at object boundaries might contain a mixture of different semantics, suggesting that minimizing the distances to the exact semantic prototypes is not straightforward (dashed lines). Our BAR loss exploits a virtual prototype to pull the visual features at object boundaries (solid lines). Best viewed in color.
  • Semantic Consistency (SC) Loss: This loss explicitly enforces that the geometric relationships between classes in the original semantic space (e.g., word2vec) are preserved within the new joint embedding space. If "cat" and "dog" are close textually, their visual prototypes should remain close.

    Figure 3: We visualize the relations between seen classes in se- mantic and joint embedding spaces. Our SC loss transfers the re- lations from the semantic embedding space to the joint one. This adjusts the distances between semantic prototypes explicitly, com- plementing the BAR loss. Best viewed in color.
  • Apollonius Calibration (AC): To combat the inherent bias toward seen classes during inference, prior works use "Calibrated Stacking" (CS), which shifts the decision boundary by a constant factor. JoEm introduces Apollonius Calibration, which uses the geometry of an Apollonius circle to adaptively modulate the decision boundary based on the relative distances to the closest seen and unseen prototypes.

    Comparison of Calibrated Stacking (constant shift) vs. Apollonius Calibration (adaptive circular boundary).

Datasets

The authors evaluated their approach on two standard benchmarks, using various splits of seen/unseen classes (e.g., unseen-2, unseen-4, up to unseen-10):

  • PASCAL VOC: 21 classes total (including background).
  • PASCAL Context: A more challenging dataset containing 60 classes total, including both "thing" and "stuff" (e.g., sky, grass) categories.

Key Insights and Ideas

  • Embracing Mixed Boundary Semantics: Instead of treating boundary pixels as labeling errors or forcing them into strict categorical buckets, acknowledging their mixed nature via interpolated virtual prototypes prevents the model from corrupting the core class representations.
  • Adaptive vs. Static Calibration: Static calibration shifts boundaries uniformly, which hurts performance when the closest seen and unseen classes are already well-separated. By using the Apollonius circle, the boundary shift dynamically scales depending on how tightly clustered or dispersed the neighboring prototypes are.

Key Results

JoEm achieved state-of-the-art performance across multiple configurations, measured by the harmonic mean of seen and unseen Intersection-over-Union (hIoU):

  • PASCAL Context Superiority: On the PASCAL Context dataset, JoEm outperformed all prior generative methods across every single split. For example, on the unseen-4 split, JoEm achieved an hIoU of 33.5%, compared to the previous best of 29.9% (CSRL).
  • PASCAL VOC Success: JoEm achieved the highest hIoU on 4 out of 5 splits on PASCAL VOC.
  • Massive Inference Boost: Ablation studies highlighted the power of Apollonius Calibration. On PASCAL Context (unseen-4), adding AC boosted the hIoU from 19.0% (standard NN) to 33.7% with negligible computational overhead.

Limitations and Future Work

  • Sensitivity to Hyperparameters at Low Ranges: The authors noted that if the calibration parameter $\sigma$ drops below 0.5, the radius of the Apollonius circle becomes too small, which drastically increases classification errors.
  • Dependence on Text Embeddings: Like all zero-shot methods, performance is fundamentally bounded by the quality and alignment of the underlying semantic vectors (word2vec). If the text embeddings fail to capture the visual similarity of objects, the joint space alignment will suffer.

Summary updated

BibTeX
@misc{baek2021exploiting,
  author = {Donghyeon Baek and Youngmin Oh and Bumsub Ham},
  title = {{Exploiting a Joint Embedding Space for Generalized Zero-Shot Semantic Segmentation}},
  year = {2021},
  eprint = {2108.06536},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.06536},
}
Figure