Consistent Structural Relation Learning for Zero-Shot Segmentation

Peike Li, Yunchao Wei, Yi YangNeurIPS 2020

Introduction

Zero-shot semantic segmentation (ZS3) aims to label pixels of objects a model has never seen during training. Standard semantic segmentation requires massive amounts of pixel-perfect manual annotations. ZS3 tries to bypass this by training a model on "seen" classes and then using semantic word embeddings (like word2vec) to "imagine" what "unseen" classes should look like.

The major bottleneck in previous approaches (like ZS3Net) is that they treat each category independently during the feature generation process. The generator learns to map a single word embedding to a visual feature but ignores how that category relates to others. This leads to poor generalization; the model might "imagine" an unseen class that looks nothing like its neighbors in the semantic space, causing it to fail at test time when it encounters real pixels.

This paper introduces Consistent Structural Relation Learning (CSRL), a method that improves the quality of "synthetic" visual features by ensuring the relationships between categories (like the similarity between a cow and a horse) remain consistent between the word-embedding space and the generated visual space.

Methods: Semantic-Visual Structural Generator

The authors propose a Semantic-Visual Structural Generator that moves away from simple node-to-node mapping. Instead of generating features for one class at a time, it processes a graph where nodes represent categories and edges represent their relationships.

CSRL Architecture

The core of CSRL lies in three levels of "consistency" constraints:

  1. Point-wise Consistency: Uses Maximum Mean Discrepancy (MMD) to ensure the distribution of generated features for seen classes matches the distribution of real visual features.
  2. Pair-wise Consistency: Ensures that if two categories are similar in the word-embedding space (e.g., "car" and "truck"), their generated visual features are also similarly related. This is enforced using a similarity matrix and KL divergence.
  3. List-wise Consistency: A more global constraint that looks at the entire ranking of relationships. It ensures that the "neighborhood" of a category in the semantic space (its ranked list of most-similar to least-similar classes) is preserved in the visual feature space.

By enforcing these structural constraints, the generator is forced to produce unseen visual features that "fit" logically into the existing visual landscape of seen classes.

Key Insights

  • Structure is Transferable: The core realization is that while we don't have visual samples for unseen classes, we do have their relational structure in the semantic (word) space. If we can force the generator to respect that structure, the "imagined" features become much more realistic.
  • Beyond One-to-One Mapping: Moving from a simple MLP generator to a graph-based structural generator allows the model to "borrow" knowledge from seen classes to better define the boundaries of unseen ones.
  • The Importance of Ranking: Pair-wise similarity is good, but list-wise consistency (ranking) provides a much stronger signal for the generator, as it captures the global topology of the category space.

Datasets and Key Results

The model was evaluated on two primary benchmarks for semantic segmentation: Pascal-VOC (a standard object-centric dataset) and Pascal-Context (a more challenging dataset focused on full-scene parsing with 59 classes).

CSRL achieved a new state-of-the-art (SOTA) performance across the board:

  • Pascal-VOC: On the "unseen-2" split, CSRL reached a 56.3% hIoU (harmonic mean of seen and unseen Intersection-over-Union), a massive jump over the previous SOTA (ZS3Net) at 47.5%.
  • Pascal-Context: It consistently outperformed competitors by 2-5% across different splits.
Qualitative Results

Qualitative Improvement: Visualizations show that CSRL is much better at distinguishing between similar classes where previous models often produced noisy or incorrect masks. For example, it successfully segments a cow and a motorbike with much higher fidelity than baseline methods.

Limitations and Future Work

  • The Seen-Unseen Gap: Despite the gains, there is still a significant performance gap between seen and unseen categories. For example, on Pascal-VOC (unseen-10), seen classes hit ~59% mIoU while unseen classes are at ~21%.
  • Dependency on Word Embeddings: The method's success is heavily tied to the quality of the semantic word embeddings. If the word embeddings don't accurately reflect visual similarity (e.g., "orange" the fruit vs. "orange" the color), the structural constraint might actually hurt performance.
  • Future Directions: The authors suggest that exploring even more complex structural granularities or better ways to bridge the domain gap between synthetic and real features remains a priority.

Summary updated

BibTeX
@inproceedings{li2020consistent,
  author = {Peike Li and Yunchao Wei and Yi Yang},
  title = {{Consistent Structural Relation Learning for Zero-Shot Segmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=ayVmBgaNx8},
}
Figure