TridentAdapt: Learning Domain-invariance via Source-Target Confrontation and Self-induced Cross-domain Augmentation

Fengyi Shen, Akhil Gurram, Ahmet Faruk Tuna, Onay Urfalioglu, Alois C. Knoll

Abstract

Training deep neural networks for semantic segmentation is hindered by the high cost of manual labeling. While synthetic datasets provide abundant labeled data, the domain gap between synthetic and real-world images often leads to poor generalization. This paper presents TridentAdapt, a novel unsupervised domain adaptation (UDA) framework that utilizes a trident-like architecture to learn domain-invariant features. By employing source-target confrontation and self-induced cross-domain augmentation, TridentAdapt achieves state-of-the-art performance on major benchmarks, bridging the reality gap for autonomous driving applications.

Introduction

Semantic segmentation is a critical task in computer vision, particularly for autonomous driving, where every pixel must be accurately classified. However, the "labeling bottleneck"—the immense human effort required to annotate real-world images—limits the availability of training data. Synthetic datasets like GTA5 and SYNTHIA offer a solution by providing automatically generated labels. Unfortunately, models trained solely on synthetic data struggle with the domain gap, failing to account for the nuances of real-world lighting, textures, and sensor noise.

Unsupervised Domain Adaptation (UDA) aims to mitigate this by adapting a model from a labeled source domain to an unlabeled target domain. The goal is to identify a feature space that is domain-invariant, allowing the model to recognize objects regardless of whether they are rendered in a game engine or captured by a real camera.

Methodology

TridentAdapt introduces a multi-pronged architectural approach to enforce domain invariance. The framework consists of four main components: a Shared Encoder ($E$), a Source Generator ($G^s$), a Target Generator ($G^t$), and a Task Module ($\Phi$).

Trident Architecture and Confrontation

The core of the framework is the "Trident" structure, where the Shared Encoder is simultaneously optimized for multiple objectives. It must perform intra-domain reconstruction to maintain source domain knowledge and cross-domain transfer to adapt to the target domain. This confrontation forces the encoder to ignore domain-specific stylistic variations and focus on the underlying semantic structure shared between domains.

The TridentAdapt architecture featuring the shared encoder, generators, and task module.

Self-induced Cross-domain Augmentation

To further enhance generalization, TridentAdapt employs self-induced cross-domain augmentation. The generators produce "fake" cross-domain versions of training images (e.g., a synthetic image styled as a real-world image), which are then fed back into the encoder. A Semantic Consistency (SC) loss is applied to ensure the encoder's output remains consistent across real and augmented views of the same scene. This loop-back mechanism facilitates a smoother transition between domains than traditional sequential methods.

Experiments and Results

The effectiveness of TridentAdapt was validated on the standard GTA5-to-Cityscapes and SYNTHIA-to-Cityscapes benchmarks.

Quantitative Evaluation

TridentAdapt established new performance benchmarks for synthetic-to-real adaptation:

  • GTA5 to Cityscapes: Achieved a mean Intersection over Union (mIoU) of 53.3, surpassing previous state-of-the-art methods such as TIR (50.2) and SAIT (50.4).
  • SYNTHIA to Cityscapes: Reached 54.4 mIoU on the 13-class split, showing superior performance in segmenting complex classes like vehicles and infrastructure.

Ablation studies highlighted the necessity of the self-induced augmentation loop; its removal resulted in a significant performance drop from 53.3 to 47.6 mIoU.

Qualitative Evaluation

Qualitative results demonstrate that TridentAdapt is particularly effective at preserving the semantic integrity of small and distant objects, such as traffic signs and poles, which are often blurred or misclassified by competing UDA methods.

Qualitative comparison of semantic segmentation results on the Cityscapes dataset.

Implementation and Conclusion

While powerful, the TridentAdapt framework requires a multi-stage training process, including a "warming-up" period to protect the encoder's weights and a self-training stage using pseudo-labeling to refine results on the target domain. Despite the complexity of the training phase, only the encoder and task module are required for final inference, ensuring efficient deployment.

In conclusion, TridentAdapt effectively addresses the domain gap in semantic segmentation through its unique three-pronged approach. By combining source-target confrontation with self-induced cross-domain augmentation, it forces the learning of truly domain-invariant features, setting a new high bar for unsupervised domain adaptation.

Summary updated

BibTeX
@inproceedings{shen2021tridentadapt,
  author = {Fengyi Shen and Akhil Gurram and Ahmet Faruk Tuna and Onay Urfalioglu and Alois C. Knoll},
  title = {{TridentAdapt: Learning Domain-invariance via Source-Target Confrontation and Self-induced Cross-domain Augmentation}},
  booktitle = {BMVC},
  year = {2021},
}
Figure