Skip to main content
QUICK REVIEW

[Paper Review] Context-Aware Domain Adaptation in Semantic Segmentation

Jinyu Yang, Weizhi An|arXiv (Cornell University)|Mar 9, 2020
Domain Adaptation and Few-Shot LearningComputer Science43 references4 citations
TL;DR

This paper proposes a novel cross-attention mechanism for unsupervised domain adaptation in semantic segmentation, introducing two cross-domain attention modules—CD-SAM for spatial context and CD-CAM for channel-wise semantic dependencies—to adapt contextual features between source (synthetic) and target (real) domains. The method achieves state-of-the-art performance on GTA5-to-Cityscapes and SYNTHIA-to-Cityscapes benchmarks, improving mIoU by up to 1.8% over prior methods.

ABSTRACT

In this paper, we consider the problem of unsupervised domain adaptation in the semantic segmentation. There are two primary issues in this field, i.e., what and how to transfer domain knowledge across two domains. Existing methods mainly focus on adapting domain-invariant features (what to transfer) through adversarial learning (how to transfer). Context dependency is essential for semantic segmentation, however, its transferability is still not well understood. Furthermore, how to transfer contextual information across two domains remains unexplored. Motivated by this, we propose a cross-attention mechanism based on self-attention to capture context dependencies between two domains and adapt transferable context. To achieve this goal, we design two cross-domain attention modules to adapt context dependencies from both spatial and channel views. Specifically, the spatial attention module captures local feature dependencies between each position in the source and target image. The channel attention module models semantic dependencies between each pair of cross-domain channel maps. To adapt context dependencies, we further selectively aggregate the context information from two domains. The superiority of our method over existing state-of-the-art methods is empirically proved on "GTA5 to Cityscapes" and "SYNTHIA to Cityscapes".

Motivation & Objective

  • To address the lack of explicit modeling of cross-domain context dependencies in unsupervised domain adaptation for semantic segmentation.
  • To investigate the transferability of contextual information—both spatial and semantic—across synthetic and real image domains.
  • To improve domain adaptation performance by explicitly learning and aligning shared context between source and target domains.
  • To develop a method that moves beyond domain-invariant feature learning by incorporating structured context from both domains.

Proposed method

  • Introduces a cross-attention mechanism with two bidirectional modules: CD-SAM for spatial context and CD-CAM for channel-wise semantic context.
  • CD-SAM computes attention weights between each spatial position in the source and all positions in the target image, enabling feature aggregation across domains.
  • CD-CAM models cross-domain channel dependencies by computing attention between corresponding channel maps in source and target features.
  • The method uses a dual-branch network with feature extractors (ResNet101 or VGG16), followed by cross-domain attention modules and a segmentation head.
  • Employs three discriminators to enforce domain-invariant output predictions, enhancing feature and prediction alignment.
  • Applies learnable weighting coefficients (λs, λt, ξs, ξt) to balance the contribution of cross-domain context, with optimal values found at 1.

Experimental results

Research questions

  • RQ1Can explicit modeling of cross-domain context dependencies improve unsupervised domain adaptation in semantic segmentation?
  • RQ2How do spatial and channel-wise context dependencies contribute to reducing domain shift in semantic segmentation?
  • RQ3What is the relative contribution of spatial versus channel attention in adapting contextual features across domains?
  • RQ4How sensitive is the method’s performance to the hyperparameters controlling cross-domain context aggregation?

Key findings

  • On the GTA5-to-Cityscapes benchmark, the method achieves 44.9% mIoU with VGG16 and 49.2% mIoU with ResNet101, outperforming prior state-of-the-art methods.
  • On the more challenging SYNTHIA-to-Cityscapes benchmark, the method achieves 52.4% mIoU with ResNet101, a 0.6% improvement over baseline with CD-CAM and 0.4% with CD-SAM.
  • Ablation studies confirm that both CD-SAM and CD-CAM contribute significantly, with combined use yielding the highest performance gain.
  • Visualization shows that attention maps correctly align features across domains, e.g., buildings in source align with buildings in target, and vegetation in target aligns with vegetation in source.
  • Sensitivity analysis reveals that setting λs = λt = ξs = ξt = 1 yields optimal performance, as extreme values degrade feature quality.
  • The method demonstrates consistent improvement across different backbone networks and domain shift levels, proving the effectiveness of context-aware adaptation.

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.