[Paper Review] Unsupervised Contrastive Domain Adaptation for Semantic Segmentation
This paper proposes an unsupervised contrastive domain adaptation method for semantic segmentation that uses both in-domain and cross-domain contrastive pairs to align features across domains while enhancing discriminative capacity. It achieves 60.2% mIoU on Cityscapes when fine-tuned from GTA5 with unlabeled target images, outperforming state-of-the-art methods, especially on hard classes with strong domain shift.
Semantic segmentation models struggle to generalize in the presence of domain shift. In this paper, we introduce contrastive learning for feature alignment in cross-domain adaptation. We assemble both in-domain contrastive pairs and cross-domain contrastive pairs to learn discriminative features that align across domains. Based on the resulting well-aligned feature representations we introduce a label expansion approach that is able to discover samples from hard classes during the adaptation process to further boost performance. The proposed approach consistently outperforms state-of-the-art methods for domain adaptation. It achieves 60.2% mIoU on the Cityscapes dataset when training on the synthetic GTA5 dataset together with unlabeled Cityscapes images.
Motivation & Objective
- To address domain shift in semantic segmentation caused by distributional differences between source and target domains, especially for rare or unseen classes.
- To improve feature alignment across domains without relying solely on low-level style transfer or adversarial training.
- To develop a self-supervised contrastive learning framework that balances easy and hard classes through strategic sampling of positive pairs.
- To enable discovery of hard-class pixels in the target domain via a feature-based pseudo-label expansion strategy.
Proposed method
- The method uses a student-teacher framework where the teacher network generates pseudo-labels for unlabeled target domain images.
- It constructs in-domain contrastive pairs (within source and target) and cross-domain contrastive pairs (source to target) to align features across domains.
- A contrastive loss is optimized using temperature-scaled cross-entropy to encourage feature clustering and improve discriminability.
- A confidence thresholding mechanism selects high-confidence pseudo-labels from the teacher network to guide the student's learning.
- A feature-based pseudo-label expansion strategy identifies and incorporates hard-class pixels from the target domain by analyzing feature space proximity.
- The training objective combines domain alignment loss, contrastive loss, and a consistency regularization term to stabilize learning.
Experimental results
Research questions
- RQ1Can contrastive learning effectively align features across domains in unsupervised semantic segmentation without labeled target data?
- RQ2How can hard-to-learn classes with strong domain shift be better adapted using self-supervised methods?
- RQ3Does combining in-domain and cross-domain contrastive pairs lead to better feature alignment than existing domain adaptation baselines?
- RQ4To what extent does pseudo-label expansion based on feature similarity improve performance on rare or unseen classes?
- RQ5How robust is the method to hyperparameter choices such as temperature and confidence thresholds?
Key findings
- The method achieves 60.2% mIoU on the Cityscapes validation set when training on GTA5 with unlabeled Cityscapes images, surpassing prior state-of-the-art methods.
- On the SYNTHIA-to-Cityscapes benchmark, it reaches 56.5% mIoU, demonstrating strong generalization across synthetic-to-real domain shifts.
- The model significantly improves performance on hard classes—those with few labeled examples in the source or strong domain shift—due to effective contrastive sampling and pseudo-label expansion.
- Feature prototype alignment analysis shows that the proposed method achieves smaller L2 distances between class prototypes across domains than ProDA or no adaptation, indicating better inter-domain alignment.
- Ablation studies confirm that the method is robust to hyperparameter variations, with only minor performance drops under different settings of λ, α, and τ₀.
- The method outperforms strong baselines like Coarse-to-Fine and ProDA across multiple architectures, including ResNet-50 and ResNet-101, even when using weaker backbones.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.