Skip to main content
QUICK REVIEW

[Paper Review] Contrastive Model Adaptation for Cross-Condition Robustness in Semantic Segmentation

David Brüggemann, Christos Sakaridis|arXiv (Cornell University)|Jan 1, 2023
Domain Adaptation and Few-Shot LearningComputer Science3 citations
TL;DR

This paper proposes Contrastive Model Adaptation (CMA), a novel method for cross-condition semantic segmentation that leverages paired normal-adverse condition images to learn condition-invariant features via contrastive learning. By warping reference (normal) image features to align with adverse-condition images and using a contrastive loss to group semantically corresponding features, CMA achieves state-of-the-art performance in model adaptation settings, outperforming standard unsupervised domain adaptation methods despite lacking access to source training data.

ABSTRACT

Standard unsupervised domain adaptation methods adapt models from a source to a target domain using labeled source data and unlabeled target data jointly. In model adaptation, on the other hand, access to the labeled source data is prohibited, i.e., only the source-trained model and unlabeled target data are available. We investigate normal-to-adverse condition model adaptation for semantic segmentation, whereby image-level correspondences are available in the target domain. The target set consists of unlabeled pairs of adverse- and normal-condition street images taken at GPS-matched locations. Our method -- CMA -- leverages such image pairs to learn condition-invariant features via contrastive learning. In particular, CMA encourages features in the embedding space to be grouped according to their condition-invariant semantic content and not according to the condition under which respective inputs are captured. To obtain accurate cross-domain semantic correspondences, we warp the normal image to the viewpoint of the adverse image and leverage warp-confidence scores to create robust, aggregated features. With this approach, we achieve state-of-the-art semantic segmentation performance for model adaptation on several normal-to-adverse adaptation benchmarks, such as ACDC and Dark Zurich. We also evaluate CMA on a newly procured adverse-condition generalization benchmark and report favorable results compared to standard unsupervised domain adaptation methods, despite the comparative handicap of CMA due to source data inaccessibility. Code is available at https://github.com/brdav/cma.

Motivation & Objective

  • To address the challenge of semantic segmentation robustness under adverse visual conditions such as fog, rain, or snow.
  • To develop a model adaptation method that works without access to labeled source data, which is common in real-world deployments due to privacy or proprietary constraints.
  • To leverage image-level correspondences (paired normal and adverse condition images at GPS-matched locations) to improve cross-condition generalization.
  • To learn condition-invariant features through contrastive learning, minimizing domain shift due to weather conditions.
  • To achieve state-of-the-art performance in model adaptation for semantic segmentation on benchmarks like ACDC and Dark Zurich.

Proposed method

  • CMA uses a contrastive learning framework where features from adverse-condition images serve as anchors, and corresponding features from aligned normal-condition images serve as positives.
  • It warps the feature maps of the normal-condition image to the spatial viewpoint of the adverse-condition image using predicted warps, enabling spatial alignment of corresponding features.
  • A confidence-modulated feature aggregation strategy combines warped features to improve robustness to misalignment and uncertainty.
  • The contrastive loss pulls positive pairs (adverse and corresponding normal features) closer in the embedding space while pushing them apart from other negative features from the same image or different images.
  • The method employs an exponential moving average (EMA) of features to stabilize training and reduce mode collapse.
  • The approach is trained end-to-end using only the pre-trained source model and unlabeled target images with paired reference images.

Experimental results

Research questions

  • RQ1Can image-level correspondences between normal and adverse condition images be effectively leveraged to improve cross-condition semantic segmentation in a source-free adaptation setting?
  • RQ2Does contrastive learning with aligned normal-condition features as positive samples lead to more condition-invariant representations than standard domain adaptation or naive fine-tuning?
  • RQ3How does the inclusion of warp confidence and feature aggregation improve robustness to misalignment and domain shift?
  • RQ4Can a model adaptation method outperform standard unsupervised domain adaptation (UDA) methods when it lacks access to source training data?
  • RQ5To what extent does the proposed method generalize to unseen adverse conditions, as evaluated on a new benchmark?

Key findings

  • CMA achieves a mean intersection over union (mIoU) of 67.2 on the ACDC validation set, setting a new state of the art for model adaptation in normal-to-adverse semantic segmentation.
  • On the Dark Zurich benchmark, CMA outperforms existing model adaptation methods and even surpasses some standard UDA methods, demonstrating its effectiveness despite the lack of source data.
  • The ablation study shows that removing the contrastive loss reduces mIoU to 60.1, confirming that the contrastive objective is essential for performance gains.
  • The t-SNE visualization confirms that CMA with the CDC loss successfully groups features from different conditions (e.g., sky and sidewalk) together, while the version without CDC loss shows scattered, ungrouped features.
  • Hyperparameter sensitivity analysis shows that performance is robust to changes in embedding grid size and InfoNCE temperature, indicating stable optimization.
  • On the newly introduced Adverse-Condition Generalization (ACG) benchmark, CMA achieves favorable results compared to standard UDA methods, validating its generalization capability despite the data access disadvantage.

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.