Exploiting Domain Properties in Language-Driven Domain Generalization for Semantic Segmentation

Seogkyu Jeon, Kibeom Hong, Hyeran Byun

TL;DR

This paper introduces DPMFormer, a novel framework for domain-generalized semantic segmentation that tackles the challenge of semantic misalignment between visual and textual contexts. By learning domain-specific prompts and enforcing consistency across augmented images, DPMFormer achieves state-of-the-art performance on various benchmarks, demonstrating improved robustness to diverse environmental conditions.

What Problem Does This Paper Address?

Semantic segmentation models, while impressive, often struggle when deployed in real-world scenarios different from their training data (the "domain shift" problem). Domain Generalized Semantic Segmentation (DGSS) aims to train a single model that can generalize to unseen target domains without any further training. Recent approaches leverage Vision-Language Models (VLMs) to imbue segmentation models with rich semantic knowledge. However, these methods often rely on fixed "context prompts" (e.g., "a photo of") that are learned on a single source domain. This rigidity leads to a mismatch between the learned textual context and the actual visual characteristics of target domain images, especially when those domains have significantly different appearances (e.g., day vs. night, clear vs. rainy weather). This paper addresses this semantic misalignment and the resulting performance degradation in DGSS.

Methods

DPMFormer builds upon the Mask2Former architecture and introduces three key innovations:

  • Domain-Aware Prompt Learning: Instead of using fixed prompts, DPMFormer learns "domain-aware" prompts. An auxiliary network takes visual features from the input image and generates a domain-specific prompt embedding. This embedding is then integrated with the original class-specific text embeddings. This allows the textual representation to adapt to the visual context of the input image, enhancing semantic alignment.
  • Domain-Aware Contrastive Learning: To further refine these domain-aware prompts and ensure they capture domain-specific properties, a contrastive learning loss is introduced. This loss encourages prompts from images with similar domain characteristics to be closer, while pushing apart prompts from different domains. This helps the model learn to distinguish between various domain properties.
  • Texture Perturbation: To expose the model to a wider range of domain variations during training (especially in the single-source setting), the authors employ texture perturbation. This involves applying photometric transformations (color jittering, blur, noise) to create augmented versions of the training images, effectively diversifying the observable domains.
  • Domain-Robust Consistency Learning: To make the model resilient to environmental changes, consistency learning is applied. This involves minimizing the discrepancy between predictions made on original and augmented images. This loss is applied at multiple layers of the transformer decoder, preventing errors from propagating.

Datasets

The paper validates DPMFormer on both synthetic-to-real and real-to-real DGSS scenarios.

  • Synthetic Source Domains: GTAV [42], SYNTHIA [43]
  • Real Target Domains: Cityscapes [7], BDD100K [58], Mapillary [34]

No new benchmarks were introduced; the evaluation uses standard datasets in the field.

Key Insights and Ideas

  • The rigidity of fixed prompts is a major bottleneck: The paper convincingly argues that fixed textual prompts, even when learned from VLMs, fail to adapt to the visual nuances of unseen domains, leading to performance drops.
  • Domain-specific prompts are crucial for semantic alignment: By dynamically generating prompts based on input image features, the model can better bridge the gap between visual and textual representations.
  • Contrastive learning on prompts is effective for capturing domain properties: The proposed contrastive loss helps the model learn to differentiate and leverage domain-specific visual characteristics.
  • Consistency across augmented views is key for robustness: Enforcing consistent predictions between original and perturbed images significantly improves resilience to domain shifts.
  • Combining domain-awareness and domain-robustness is a winning strategy: DPMFormer's success stems from its ability to simultaneously learn adaptable prompts and maintain stable predictions.

Key Results

DPMFormer achieves state-of-the-art performance across various DGSS benchmarks.

  • Synthetic-to-Real: On GTAV as a source, DPMFormer consistently surpasses previous methods, achieving an average improvement of 3.17% mIoU over TQDM [36] with the ViT-B backbone. With the EVA02-L backbone, it achieves an average mIoU of 70.44%.
  • Real-to-Real: On Cityscapes as a source, DPMFormer also sets a new state-of-the-art, significantly boosting performance on BDD and Mapillary.
  • Qualitative Results: Visual comparisons show DPMFormer producing more accurate segmentations, especially in challenging scenarios with strong illumination contrast, confusing textures, and diverse artistic styles (e.g., Cubism), where competitors like FAMix and TQDM struggle.

Limitations and Future Work

  • Computational Cost: While not explicitly stated as a limitation, the use of transformer architectures and multiple loss functions can imply higher computational requirements.
  • Reliance on VLM Pre-training: The performance is inherently tied to the quality of the pre-trained VLM.
  • Future Work: The paper implicitly suggests that further exploration of prompt learning strategies and consistency mechanisms could lead to even greater improvements. The authors also demonstrate the model's ability to handle diverse artistic styles, hinting at potential applications in creative domains or for generating more robust models against stylistic variations.

Summary updated

BibTeX
@inproceedings{jeon2025exploiting,
  author = {Seogkyu Jeon and Kibeom Hong and Hyeran Byun},
  title = {{Exploiting Domain Properties in Language-Driven Domain Generalization for Semantic Segmentation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
  url = {https://openreview.net/forum?id=v07bR8EirJ},
}
Figure