[Paper Review] SePiCo: Semantic-Guided Pixel Contrast for Domain Adaptive Semantic Segmentation
SePiCo proposes a one-stage domain adaptive semantic segmentation framework that enhances self-training via semantic-guided pixel contrast, using category centroids and distribution-aware prototypes to learn discriminative, class-balanced representations across domains. It achieves state-of-the-art performance on synthetic-to-real and daytime-to-nighttime benchmarks by implicitly modeling infinite (dis)similar pixel pairs through a closed-form contrastive loss, significantly improving generalization and training stability.
Domain adaptive semantic segmentation attempts to make satisfactory dense predictions on an unlabeled target domain by utilizing the supervised model trained on a labeled source domain. In this work, we propose Semantic-Guided Pixel Contrast (SePiCo), a novel one-stage adaptation framework that highlights the semantic concepts of individual pixels to promote learning of class-discriminative and class-balanced pixel representations across domains, eventually boosting the performance of self-training methods. Specifically, to explore proper semantic concepts, we first investigate a centroid-aware pixel contrast that employs the category centroids of the entire source domain or a single source image to guide the learning of discriminative features. Considering the possible lack of category diversity in semantic concepts, we then blaze a trail of distributional perspective to involve a sufficient quantity of instances, namely distribution-aware pixel contrast, in which we approximate the true distribution of each semantic category from the statistics of labeled source data. Moreover, such an optimization objective can derive a closed-form upper bound by implicitly involving an infinite number of (dis)similar pairs, making it computationally efficient. Extensive experiments show that SePiCo not only helps stabilize training but also yields discriminative representations, making significant progress on both synthetic-to-real and daytime-to-nighttime adaptation scenarios.
Motivation & Objective
- To address the limitation of existing domain adaptation methods in handling cross-domain semantic variations and poor feature discrimination due to ignored intra-class compactness and inter-class dispersion.
- To improve self-training in domain adaptive semantic segmentation by explicitly modeling semantic relationships between pixels across domains.
- To learn well-structured, class-discriminative, and balanced pixel representations without relying on stage-wise training or complex initialization.
- To develop a computationally efficient contrastive loss that implicitly involves an infinite number of (dis)similar pixel pairs through a closed-form upper bound.
Proposed method
- Introduces centroid-aware pixel contrast using global category prototypes from the entire source domain and local category centroids per image stored in a memory bank.
- Proposes distribution-aware pixel contrast that models the holistic distribution of each semantic category from labeled source data to guide semantic alignment.
- Derives a closed-form upper bound for the distribution-aware contrastive loss, enabling efficient optimization without explicit sampling of negative pairs.
- Employs a lightweight projection head to create a new pixel embedding space in a teacher-student framework, with both models processing source and target images.
- Integrates the contrastive loss into a one-stage self-training pipeline, avoiding error amplification from multi-stage training.
- Uses confidence estimation and consistency regularization to refine pseudo-labels during training, enhancing robustness to noisy predictions.
Experimental results
Research questions
- RQ1Can semantic-guided pixel contrast improve feature discrimination and generalization in domain adaptive semantic segmentation?
- RQ2How does incorporating global and local category prototypes affect the learning of class-balanced representations across domains?
- RQ3Can modeling the true distribution of semantic categories lead to more stable and effective contrastive learning in the absence of explicit negative sampling?
- RQ4Does a one-stage self-training framework with semantic-guided contrast outperform stage-wise methods in terms of both accuracy and training efficiency?
- RQ5To what extent does the proposed method generalize across diverse domain shift scenarios, such as synthetic-to-real and daytime-to-nighttime?
Key findings
- SePiCo achieves 61.0 mIoU on the GTAV-to-Cityscapes benchmark using DeepLab-V2, significantly outperforming Source Only (38.6 mIoU) and DACS (52.1 mIoU).
- On the more challenging DAFormer-based setting with SegFormer-Mit-B5, SePiCo achieves 70.3 mIoU, surpassing DAFormer (68.3 mIoU) and Source Only (44.5 mIoU).
- The method improves model transferability, as measured by LogME, showing stronger generalization capability than CAG-UDA and ProDA across all training stages.
- Throughput analysis shows SePiCo adds only a minor computational overhead—1.45s per iteration with SegFormer-Mit-B5—compared to DAFormer (1.33s), despite superior performance.
- Ablation studies confirm that both centroid-aware and distribution-aware contrast components contribute significantly to performance, with distribution-aware contrast providing the largest gain.
- The closed-form upper bound of the contrastive loss enables stable training and efficient optimization without explicit negative mining or large memory overhead.
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.