Skip to main content
QUICK REVIEW

[Paper Review] CLUDA : Contrastive Learning in Unsupervised Domain Adaptation for Semantic Segmentation

Midhun Vayyat, Jaswin Kasi|arXiv (Cornell University)|Aug 27, 2022
Domain Adaptation and Few-Shot LearningComputer Science8 citations
TL;DR

CLUDA proposes a contrastive learning-based unsupervised domain adaptation method for semantic segmentation that enhances feature compactness and separability across source (synthetic) and target (real-world) domains by applying contrastive loss on multi-level fused features from a student-teacher framework. It achieves state-of-the-art performance, with 74.4 mIoU on GTA→Cityscapes (+0.6) and 66.8 mIoU on Synthia→Cityscapes (+1.0), using minimal architectural changes and low memory overhead.

ABSTRACT

In this work, we propose CLUDA, a simple, yet novel method for performing unsupervised domain adaptation (UDA) for semantic segmentation by incorporating contrastive losses into a student-teacher learning paradigm, that makes use of pseudo-labels generated from the target domain by the teacher network. More specifically, we extract a multi-level fused-feature map from the encoder, and apply contrastive loss across different classes and different domains, via source-target mixing of images. We consistently improve performance on various feature encoder architectures and for different domain adaptation datasets in semantic segmentation. Furthermore, we introduce a learned-weighted contrastive loss to improve upon on a state-of-the-art multi-resolution training approach in UDA. We produce state-of-the-art results on GTA $ ightarrow$ Cityscapes (74.4 mIOU, +0.6) and Synthia $ ightarrow$ Cityscapes (67.2 mIOU, +1.4) datasets. CLUDA effectively demonstrates contrastive learning in UDA as a generic method, which can be easily integrated into any existing UDA for semantic segmentation tasks. Please refer to the supplementary material for the details on implementation.

Motivation & Objective

  • To address domain shift in semantic segmentation when transferring from synthetic to real-world data.
  • To improve feature compactness and separability across domains using contrastive learning in an unsupervised setting.
  • To develop a generic, plug-in method compatible with existing UDA frameworks like DAFormer and HRDA.
  • To mitigate shape bias in vision transformers by separately applying contrastive loss to 'stuff' and 'thing' classes.
  • To optimize multi-resolution training via learned weighting of contrastive losses from different feature scales.

Proposed method

  • Introduces a student-teacher training paradigm where the teacher generates pseudo-labels for target domain images.
  • Applies contrastive loss on multi-level fused features from the encoder, using source-target mixed images to align features across domains.
  • Computes contrastive loss separately for 'stuff' and 'thing' classes to reduce shape bias in transformer-based models.
  • Uses confidence-weighted contrastive loss, where loss contribution is scaled by the teacher’s prediction confidence to stabilize early training.
  • Applies learned weighting to combine contrastive losses from low- and high-resolution feature maps, improving multi-resolution adaptation.
  • Integrates contrastive loss alongside cross-entropy loss in a unified training objective for improved feature learning.

Experimental results

Research questions

  • RQ1Can contrastive learning improve domain generalization in unsupervised semantic segmentation without requiring target annotations?
  • RQ2How does separating contrastive learning for 'stuff' and 'thing' classes affect performance on vision transformer backbones?
  • RQ3Does learned weighting of contrastive losses from different feature resolutions improve multi-resolution domain adaptation?
  • RQ4Can contrastive learning be effectively integrated into existing SOTA UDA frameworks like DAFormer and HRDA?
  • RQ5Does confidence-based weighting of contrastive loss stabilize training and improve final mIoU in early training stages?

Key findings

  • CLUDA achieves 74.4 mIoU on GTA→Cityscapes, a +0.6 improvement over the previous SOTA, with a standard deviation of 0.32.
  • On Synthia→Cityscapes, CLUDA achieves 66.8 mIoU, a +1.0 improvement over the prior state-of-the-art, with a standard deviation of 0.44.
  • The method consistently improves performance across multiple backbone architectures, including Swin-L, when applied to DAFormer and HRDA.
  • Separate contrastive learning on 'stuff' and 'thing' classes reduces misclassification between these categories, especially for ambiguous classes like signs and signals.
  • Learned weighting of low- and high-resolution contrastive losses yields better performance than fixed or naive averaging strategies.
  • The confidence-weighted contrastive loss significantly improves training stability and final performance, with a notable drop in mIoU when omitted.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.