CoPT: Unsupervised Domain Adaptive Segmentation Using Domain-Agnostic Text Embeddings

Cristina Mata, Kanchana Ranasinghe, Michael S. Ryoo

Introduction

Semantic segmentation is a critical task in computer vision, requiring dense pixel-level classification. However, the high cost of manual labeling has led to the rise of Unsupervised Domain Adaptation (UDA), where models trained on labeled source data (e.g., synthetic video games) are adapted to unlabeled target domains (e.g., real-world cityscapes). The primary obstacle is the "domain gap"—differences in texture, lighting, and rendering that cause feature distributions to shift.

Methodology

The authors propose CoPT (Covariance-based Pixel-Text loss), which leverages the domain-agnostic nature of language to bridge this gap. While visual representations of a "car" change across domains, the linguistic concept remains stable. The method focuses on structural alignment over point-to-point alignment, allowing the model to learn the "topology" of the semantic space.

Domain-Agnostic Text Embeddings

Instead of simple class labels, CoPT uses Large Language Models (LLMs) like ChatGPT to generate detailed descriptions of domain-specific attributes (e.g., "synthetic images have perfect symmetry and repetitive elements"). These descriptions are encoded via a frozen CLIP model and averaged to create robust, domain-agnostic representations for each class. This approach treats text as a "ground truth" for semantics that is immune to visual domain shifts.

Figure 1: Visualization of the pixel feature space before and after applying CoPT. The method aligns the structural relationships of pixel features with domain-agnostic text representations.

Covariance-based Pixel-Text (CoPT) Loss

Rather than forcing pixel features to match text embeddings directly—which can be restrictive given they reside in different latent spaces—CoPT aligns their structural relationships. It minimizes the cosine distance between the covariance matrices of class-specific pixel features and text embeddings. This ensures that the inter-class distances in the visual space mirror those in the semantic space, providing a stable "semantic anchor" regardless of the visual domain.

Figure 5: The CoPT loss calculation. The model builds covariance matrices for both class-specific pixel features and domain-agnostic text features, then minimizes the cosine similarity between these matrices.

Experimental Results

CoPT was evaluated on four major UDA benchmarks: GTA → Cityscapes, Synthia → Cityscapes, Cityscapes → Dark Zurich, and Cityscapes → ACDC.

Performance and Robustness

The method achieved state-of-the-art results across all benchmarks. Notably, on GTA → Cityscapes, CoPT improved mIOU by 1.6% over the previous best method, MIC. The method showed particular strength in handling classes with high intra-class variation, such as trains, trucks, and buses. These objects often have varying ads or textures that confuse standard models, but CoPT’s text-based anchoring helped keep their representations stable.

Robustness to Adverse Conditions

In the ACDC benchmark, CoPT outperformed existing methods by 3.6% specifically in foggy conditions. This suggests that semantic anchoring is particularly helpful when visual cues are obscured by weather or lighting, as the linguistic relationships between classes remain constant even when the pixels are degraded.

Discussion and Conclusion

The success of CoPT highlights the utility of text as a universal constant for semantic anchoring. By focusing on structural alignment (covariance) rather than point-to-point alignment, the model maintains flexibility while learning a consistent semantic topology.

However, limitations remain. CoPT currently relies on downsampled features to save memory, which can lead to struggles with small objects requiring high geometric precision, such as traffic signs. Additionally, while CoPT can be applied to target domain features using pseudo-labels, noise in those labels can sometimes degrade performance. Future work will explore upsampling techniques and the integration of other domain-agnostic modalities beyond text.

Summary updated

BibTeX
@inproceedings{mata2024copt,
  author = {Cristina Mata and Kanchana Ranasinghe and Michael S. Ryoo},
  title = {{CoPT: Unsupervised Domain Adaptive Segmentation Using Domain-Agnostic Text Embeddings}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73033-7\_24},
}
Figure