Collaborating Foundation Models for Domain Generalized Semantic Segmentation

Yasser Benigmim, Subhankar Roy, Slim Essid, Vicky Kalogeiton, Stéphane Lathuilière

Introduction

Semantic segmentation—the task of assigning a category to every pixel in an image—is a cornerstone of computer vision. However, these models are notoriously fragile when encountering "Domain Shift," where a model trained on sunny, clear-day images fails in rain, snow, or different urban architectures.

To address this, researchers utilize Domain Generalized Semantic Segmentation (DGSS). The goal is to train a model on a labeled "source" domain (often synthetic data from video games) so that it generalizes to any unseen real-world domain. While traditional approaches use Domain Randomization (DR) to jitter image styles, they often lack content diversity. The CLOUDS (CoLlaborative FOUndation models for Domain Generalized Semantic Segmentation) framework addresses this by orchestrating an assembly of specialized foundation models to generate diverse content and refine training labels.

The CLOUDS Framework

CLOUDS leverages the unique strengths of several Foundation Models (FMs) in a collaborative pipeline:

  1. Robust Feature Extraction (CLIP): Instead of standard backbones, CLOUDS uses a CNN-based CLIP encoder. Pre-trained on massive internet-scale data, CLIP features are naturally more robust to visual variations. Crucially, the authors found that keeping this backbone frozen during training prevents overfitting to the source domain.
  2. Content Diversification (LLM + Diffusion): To move beyond simple style changes, Llama-2 generates diverse text prompts (e.g., "a photo of a car in heavy snow"). These prompts guide Stable Diffusion to generate thousands of diverse synthetic images, providing the content variety necessary for generalization.
  3. Pseudo-Label Refinement (SAM): Generated images lack ground-truth labels. CLOUDS uses a Teacher-Student setup where the Segment Anything Model (SAM) refines the teacher's noisy predictions. By treating these predictions as prompts, SAM generates high-quality, crisp masks for training the student model.

Experimental Evaluation

The framework was tested on standard "Synthetic-to-Real" benchmarks, training on GTA5 and SYNTHIA and testing on Cityscapes, BDD100K, and Mapillary Vistas. It was also evaluated on the ACDC dataset for adverse weather robustness.

CLOUDS (Ours) achieves a new state-of-the-art mIoU, significantly outperforming both traditional DGSS and open-vocabulary models.

Key Results and Insights

CLOUDS established a new state-of-the-art (SOTA) across multiple benchmarks:

  • Performance Leap: On the GTA5 → {Cityscapes, BDD, Mapillary} benchmark, CLOUDS achieved an average 61.5% mIoU, outperforming the previous best (HRDA) by 5.5%.
  • Weather Robustness: The model showed significant gains in challenging conditions, improving performance by +8.2% in snow and +7.4% in rain compared to prior zero-shot methods.
  • Qualitative Superiority: The integration of SAM allows the model to produce much cleaner segmentation boundaries compared to previous methods like SHADE.
A qualitative example of the crisp segmentation masks produced by the CLOUDS framework.

Conclusion

The success of CLOUDS highlights that generating entirely new scenes (content) is far more effective for generalization than merely applying filters to existing images (style). By cleverly using SAM as an automated "label cleaner" and CLIP as a robust feature extractor, the framework proves that effectively utilizing source-domain labels alongside foundation models is superior to purely zero-shot approaches in semantic segmentation.

Summary updated

BibTeX
@inproceedings{benigmim2024collaborating,
  author = {Yasser Benigmim and Subhankar Roy and Slim Essid and Vicky Kalogeiton and Stéphane Lathuilière},
  title = {{Collaborating Foundation Models for Domain Generalized Semantic Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.00300},
}
Figure