NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PiPa++: Towards Unification of Domain Adaptive Semantic Segmentation via Self-supervised Learning

Mu Chen, Zhedong Zheng, Yi YangarXiv 2024

Abstract

Unsupervised domain adaptive segmentation aims to improve the segmentation accuracy of models on target domains without relying on labeled data from those domains. Current image- and video-level domain adaptation have been addressed using different and specialized frameworks, training strategies and optimizations despite their underlying connections. In this paper, we propose a unified framework PiPa++, which leverages the core idea of "comparing" to (1) explicitly encourage learning of discriminative pixel-wise features with intraclass compactness and inter-class separability, (2) promote the robust feature learning of the identical patch against different contexts or fluctuations, and (3) enable the learning of temporal continuity under dynamic environments. With the designed task-smart contrastive sampling strategy, PiPa++ enables the mining of more informative training samples according to the task demand. Extensive experiments demonstrate the effectiveness of our method on both image-level and video-level domain adaption benchmarks. Moreover, the proposed method is compatible with other UDA approaches to further improve the performance without introducing extra parameters.

Introduction

Training deep networks for semantic segmentation typically requires massive amounts of human-annotated data. To circumvent this, researchers often leverage synthetic data (e.g., from GTA V or SYNTHIA). However, a significant "domain gap" exists between simulated environments and the real world.

Historically, the field of Unsupervised Domain Adaptation (UDA) has been fragmented. Static image-based adaptation and dynamic video-based adaptation have relied on distinct strategies; video methods often require complex, computationally expensive modules like optical flow to track motion. PiPa++ addresses this by proposing a unified architecture that handles both static and dynamic scenes by focusing on the fundamental connections between pixels, patches, and frames through self-supervised learning.

Methods: Learning to Compare

The core philosophy of PiPa++ is "learning to compare." It introduces three levels of contrastive learning to bridge the domain gap without requiring extra labels or motion-estimation modules:

  1. Pixel-wise Contrast: This encourages the model to group pixels of the same class together in the feature space while pushing different classes apart, promoting intraclass compactness.
  2. Patch-wise Contrast: By analyzing overlapping patches from the same image, the model learns that features in the overlapping area should remain consistent regardless of the surrounding context, improving robustness to background fluctuations.
  3. Temporal Contrast: For video sequences, the model compares a "key frame" with a "reference frame" from its immediate temporal neighborhood. It aligns features from the same spatial location in adjacent frames, ensuring temporal continuity.
Conceptual overview of the three levels of contrastive learning: (a) pixel-wise, (b) patch-wise, and (c) temporal.

To optimize this process, the framework employs Task-smart Sampling. In static scenes, a memory bank samples diverse pixels from the entire dataset. In video sequences, sampling is restricted to a narrow window (1–3 frames) to account for rapid changes in object context over time.

Experimental Setup

The authors evaluated PiPa++ on several rigorous benchmarks:

  • Image-based: GTA → Cityscapes and SYNTHIA → Cityscapes.
  • Video-based: SYNTHIA-Seq → Cityscapes-Seq and VIPER → Cityscapes-Seq.
  • Generalization: Testing on the ACDC dataset (Normal-to-Adverse weather) and the Oxford RobotCar dataset (Cross-city adaptation).

Key Results and Insights

PiPa++ achieved impressive state-of-the-art (SOTA) results across both image and video benchmarks. A significant "aha moment" of the research is that temporal continuity in videos can be treated as a variation of spatial consistency, removing the need for complex optical flow modules.

PiPa++ achieves state-of-the-art performance across both image-based and video-based domain adaptation benchmarks.
  • Video Superiority: On the SYNTHIA-Seq → Cityscapes-Seq benchmark, PiPa++ reached 72.3 mIoU, a massive 16.0 point lead over previous methods.
  • Image Benchmarks: Combined with the HRDA backbone, it reached 76.6 mIoU on GTA → Cityscapes.
  • Small Object Accuracy: The model shows significant improvement in segmenting "thin" categories like fences, poles, and traffic lights, which are common failure points for standard UDA.
  • Efficiency: Projection heads used for contrastive learning are discarded after training, maintaining high inference speeds suitable for real-world deployment.

Conclusion and Future Work

PiPa++ demonstrates that a unified approach to image and video UDA is not only possible but highly effective. While the framework currently relies on pseudo-labeling with a high confidence threshold (0.968), future work aims to explore more advanced contrastive techniques and scale the framework to other dense prediction tasks like object detection and instance segmentation.

Summary updated

BibTeX
@misc{chen2024pipa,
  author = {Mu Chen and Zhedong Zheng and Yi Yang},
  title = {{PiPa++: Towards Unification of Domain Adaptive Semantic Segmentation via Self-supervised Learning}},
  year = {2024},
  eprint = {2407.17101},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.17101},
}
Figure