AlignZeg: Mitigating Objective Misalignment for Zero-Shot Semantic Segmentation

Jiannan Ge, Lingxi Xie, Hongtao Xie, Pandeng Li, Xiaopeng Zhang, Yong-Dong Zhang, Qi Tian

Introduction

Zero-shot Semantic Segmentation (ZS3) is a challenging computer vision task where a model must segment objects belonging to "unseen" categories—classes that were not present during the training phase. While traditional supervised models excel at identifying known objects, they often struggle to generalize. The primary obstacle identified in recent research is objective misalignment.

Most ZS3 frameworks rely heavily on pixel-level supervision from "seen" classes. This optimization strategy inadvertently biases the model, causing it to map all pixels—including those belonging to unseen classes—into the feature space of known categories. For instance, a model trained on "grass" but not "moss" might confidently misclassify moss as grass because its objective was solely to minimize error on the seen class. AlignZeg is introduced as a framework to bridge this gap, realigning the model's training and inference objectives to favor generalization over seen-class memorization.

The AlignZeg Framework

AlignZeg addresses objective misalignment through a three-pronged architectural approach: Mutually-Refined Proposal Extraction, Generalization-Enhanced Proposal Classification, and Predictive Bias Correction.

1. Mutually-Refined Proposal Extraction (MRPE)

Standard transformer-based decoders typically utilize a unidirectional flow where visual features inform mask queries. AlignZeg introduces MRPE, which facilitates a bidirectional, iterative dialogue between mask queries and visual features. By allowing these components to refine each other mutually, the model generates higher-quality, class-agnostic mask proposals. This ensures that the structural integrity of an object is captured even if its specific semantic label is unknown.

2. Generalization-Enhanced Proposal Classification (GEPC)

To prevent seen classes from monopolizing the feature manifold, GEPC implements two key strategies:

  • Feature Expansion: Using a "Mixup" strategy on features and class embeddings, the model generates "virtual" prototypes. This process reserves space within the feature manifold for potential unseen categories, preventing the clusters for seen classes from becoming overly broad.
  • Background Diversity: Rather than representing the "background" with a single vector, GEPC utilizes multiple background prototypes. This captures the inherent diversity of non-object pixels, reducing the likelihood that unseen objects are erroneously absorbed into a generic background class.

3. Predictive Bias Correction (PBC)

Even with improved features, the inherent bias toward seen classes often persists at the classification stage. PBC acts as an inference-time intervention. A small binary classifier, termed the "class indicator," evaluates proposals to determine if they likely belong to an unseen category. If a proposal is flagged as "potentially unseen," the model suppresses the probability scores for all seen classes in that region. This suppression allows the correct unseen label—derived from CLIP-based text embeddings—to emerge as the top prediction.

Experimental Evaluation

The authors evaluated AlignZeg across three major benchmarks: PASCAL VOC 2012, COCO-Stuff 164K, and PASCAL Context. These datasets provide a rigorous testing ground for both seen-class accuracy and unseen-class generalization.

Key Results

AlignZeg established new state-of-the-art (SOTA) benchmarks in the ZS3 domain:

  • Bias Mitigation: The model achieved a 7.1% improvement in mIoU(U) (mean Intersection-over-Union for unseen classes), demonstrating a significant reduction in seen-class bias.
  • Harmonic Mean Performance: AlignZeg saw an average 3.8% increase in hIoU, the metric that balances performance between seen and unseen categories.
  • Cross-Dataset Generalization: In zero-shot transfer tests—such as training on COCO-Stuff and testing on ADE20K (A-150) without fine-tuning—AlignZeg outperformed existing models like ZegCLIP by as much as 13.1%.

Discussion and Future Work

The success of AlignZeg highlights that better mask quality (via MRPE) is a necessary prerequisite for effective zero-shot classification. Furthermore, the "Aha!" moment of the research lies in the realization that even a perfect mask generator will fail if the classifier remains biased; hence, the Predictive Bias Correction is vital for real-world application.

However, limitations remain. The authors noted that segmentation boundaries can still struggle in highly complex scenes, as the bias correction occurs at the proposal level. If the initial proposal is noisy, the final output will reflect that noise. Future research directions include making the fixed category prototypes (currently static CLIP embeddings) more adaptive and exploring the application of this alignment logic in large-scale cross-modal pre-training.

Summary updated

BibTeX
@inproceedings{ge2024alignzeg,
  author = {Jiannan Ge and Lingxi Xie and Hongtao Xie and Pandeng Li and Xiaopeng Zhang and Yong-Dong Zhang and Qi Tian},
  title = {{AlignZeg: Mitigating Objective Misalignment for Zero-Shot Semantic Segmentation}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72775-7\_9},
}
Figure