Skip to main content
QUICK REVIEW

[Paper Review] Smoothing Matters: Momentum Transformer for Domain Adaptive Semantic Segmentation

Runfa Chen, Yu Rong|arXiv (Cornell University)|Mar 15, 2022
Domain Adaptation and Few-Shot LearningComputer Science8 citations
TL;DR

This paper proposes TransDA, a momentum-based Transformer framework that stabilizes training dynamics in domain adaptive semantic segmentation by smoothing pseudo-labels and features via a momentum network, achieving state-of-the-art performance on GTA5→Cityscapes and SYNTHIA→Cityscapes benchmarks, with a 60.6 mIoU and +21.4 adaptation gain.

ABSTRACT

After the great success of Vision Transformer variants (ViTs) in computer vision, it has also demonstrated great potential in domain adaptive semantic segmentation. Unfortunately, straightforwardly applying local ViTs in domain adaptive semantic segmentation does not bring in expected improvement. We find that the pitfall of local ViTs is due to the severe high-frequency components generated during both the pseudo-label construction and features alignment for target domains. These high-frequency components make the training of local ViTs very unsmooth and hurt their transferability. In this paper, we introduce a low-pass filtering mechanism, momentum network, to smooth the learning dynamics of target domain features and pseudo labels. Furthermore, we propose a dynamic of discrepancy measurement to align the distributions in the source and target domains via dynamic weights to evaluate the importance of the samples. After tackling the above issues, extensive experiments on sim2real benchmarks show that the proposed method outperforms the state-of-the-art methods. Our codes are available at https://github.com/alpc91/TransDA

Motivation & Objective

  • To investigate the performance drop of local Vision Transformers (ViTs) in domain adaptive semantic segmentation despite their strong representational capacity.
  • To identify the root cause of instability in ViT-based models during self-training and adversarial adaptation, particularly due to high-frequency components in pseudo-labels and features.
  • To propose a low-pass filtering mechanism via a momentum network that stabilizes learning dynamics in target domain feature and pseudo-label generation.
  • To improve domain generalization by introducing dynamic discrepancy measurement that adaptively weights sample importance during adversarial alignment.
  • To establish a new SOTA baseline for ViT-based domain adaptive semantic segmentation without increasing training complexity.

Proposed method

  • The method introduces a momentum network that maintains a slow-moving copy of the source domain's feature extractor and classifier, which are used to generate smoothed pseudo-labels and features for the target domain.
  • The momentum network applies exponential averaging to the target network's parameters, effectively acting as a low-pass filter that suppresses high-frequency noise in predictions and features.
  • The framework integrates knowledge distillation and adversarial training, where the source model serves as a teacher to provide stable supervision for the student model on the target domain.
  • A dynamic discrepancy measurement strategy is proposed to adaptively assign importance weights to samples during adversarial feature alignment, improving robustness and convergence.
  • The method is applied within a standard self-training and adversarial training pipeline, with minimal architectural changes, enabling direct comparison with CNN-based baselines.

Experimental results

Research questions

  • RQ1Why do local Vision Transformers underperform in domain adaptive semantic segmentation despite their strong representation capacity?
  • RQ2What causes the unstable training dynamics in ViT-based models during self-training and adversarial adaptation on the target domain?
  • RQ3Can low-pass filtering of pseudo-labels and features improve the generalization and stability of ViT-based models in domain adaptation?
  • RQ4How can a momentum-based mechanism effectively replace traditional look-up table-based filtering in dense prediction tasks like semantic segmentation?
  • RQ5Does dynamic weighting of samples during feature alignment further enhance domain adaptation performance?

Key findings

  • TransDA achieves a new state-of-the-art mIoU of 60.6 on the GTA5→Cityscapes benchmark, outperforming previous methods by a significant margin.
  • The adaptation gain of TransDA reaches +21.4 mIoU (60.6 - 39.2), exceeding the previous SOTA method ProDA by +0.7.
  • On the SYNTHIA→Cityscapes benchmark, TransDA achieves 62.2 mIoU with an adaptation gain of +24.5, surpassing ProDA’s +23.4.
  • The ablation study shows that a momentum coefficient of 0.999 yields the best performance (59.3 mIoU), while lower or higher values degrade results due to instability or over-smoothing.
  • Visualizations confirm that TransDA produces better-separated, more robust feature representations across domains compared to CNNs and vanilla ViTs.
  • The momentum network effectively suppresses prediction fluctuations over training iterations, as evidenced by reduced L1-distance between consecutive predictions.

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.