Skip to main content
QUICK REVIEW

[Paper Review] SPCL: A New Framework for Domain Adaptive Semantic Segmentation via Semantic Prototype-based Contrastive Learning

Binhui Xie, Li, Mingjia|arXiv (Cornell University)|Nov 24, 2021
Domain Adaptation and Few-Shot LearningComputer Science68 references5 citations
TL;DR

This paper proposes SPCL, a novel domain adaptive semantic segmentation framework that enhances fine-grained class alignment through semantic prototype-based contrastive learning. By constructing dynamic semantic prototypes from source labels and aligning both source and target domain pixel features to these prototypes via a contrastive loss, SPCL improves intra-class compactness and inter-class separability, achieving state-of-the-art performance on GTA5→Cityscapes and SYNTHIA→Cityscapes benchmarks with mIoU of 52.1% and 47.2%, respectively.

ABSTRACT

Although there is significant progress in supervised semantic segmentation, it remains challenging to deploy the segmentation models to unseen domains due to domain biases. Domain adaptation can help in this regard by transferring knowledge from a labeled source domain to an unlabeled target domain. Previous methods typically attempt to perform the adaptation on global features, however, the local semantic affiliations accounting for each pixel in the feature space are often ignored, resulting in less discriminability. To solve this issue, we propose a novel semantic prototype-based contrastive learning framework for fine-grained class alignment. Specifically, the semantic prototypes provide supervisory signals for per-pixel discriminative representation learning and each pixel of source and target domains in the feature space is required to reflect the content of the corresponding semantic prototype. In this way, our framework is able to explicitly make intra-class pixel representations closer and inter-class pixel representations further apart to improve the robustness of the segmentation model as well as alleviate the domain shift problem. Our method is easy to implement and attains superior results compared to state-of-the-art approaches, as is demonstrated with a number of experiments. The code is publicly available at https://github.com/BinhuiXie/SPCL.

Motivation & Objective

  • To address domain shift in semantic segmentation by improving feature discriminability across source and target domains.
  • To overcome limitations of global and coarse-grained class alignment methods that fail to preserve local semantic consistency.
  • To explicitly enhance intra-class compactness and inter-class separability at the pixel level using semantic prototypes.
  • To develop a simple yet effective framework that leverages self-supervision and contrastive learning for unsupervised domain adaptation.
  • To achieve superior performance on standard cross-domain semantic segmentation benchmarks.

Proposed method

  • Construct dynamic semantic prototypes for each class using ground-truth labels from the source domain to serve as supervisory signals.
  • Use pseudo-labels from the target domain to group pixels into class-specific subsets for prototype alignment.
  • Form positive pixel-prototype pairs (same class) and negative pairs (different classes) for both domains.
  • Introduce a contrastive loss that encourages each pixel representation to be close to its corresponding semantic prototype and far from others.
  • Apply a self-supervised loss to further refine feature representations on the target domain.
  • Dynamically update prototypes during training to improve reliability and avoid drift.

Experimental results

Research questions

  • RQ1Can per-pixel discriminative representation learning guided by semantic prototypes improve domain adaptation in semantic segmentation?
  • RQ2Does fine-grained class alignment via prototype-based contrastive learning reduce domain shift more effectively than global or coarse-grained alignment?
  • RQ3How does the proposed method perform on long-tail and boundary classes compared to prior state-of-the-art methods?
  • RQ4What is the contribution of the contrastive loss and self-supervised loss components to overall performance?
  • RQ5How robust is the method to hyperparameter choices such as learning rate and prototype update weight?

Key findings

  • SPCL achieves a mIoU of 52.1% on the GTA5→Cityscapes benchmark, outperforming the baseline AdaptSegNet by +10.7 percentage points.
  • On the SYNTHIA→Cityscapes benchmark, SPCL achieves 47.2% mIoU, a +8.0% improvement over the baseline.
  • The method shows significant gains on tail classes, with mIoU tail improvements of +12.3% and +10.5% on GTA5→Cityscapes and SYNTHIA→Cityscapes, respectively.
  • t-SNE visualization confirms that SPCL produces more discriminative and consistent feature representations than prior methods.
  • Abllation studies show that combining both source and target contrastive losses yields the highest performance gain (+7.8% mIoU on GTA5→Cityscapes).
  • The method is robust to hyperparameter variations, with optimal performance achieved when prototypes are dynamically updated (α < 1.0), not fixed.

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.