Content Disentanglement for Semantically Consistent Synthetic-to-Real Domain Adaptation

Mert Keser, Artem Savkin, Federico Tombari

Abstract

Training autonomous driving models requires vast amounts of labeled data, which is often sourced from high-fidelity simulators. However, the "domain gap" between synthetic and real-world imagery frequently leads to performance degradation. This paper introduces a lightweight, unsupervised framework for "sim2real" domain adaptation that translates synthetic images into realistic ones while strictly preserving their semantic meaning. By disentangling image "content" from "style" using a shared encoder and fixed style codes, the authors achieve state-of-the-art performance without the "hallucination" artifacts common in previous methods.

Introduction

The reliance on synthetic data (e.g., from GTA V) for training deep learning models in autonomous driving is driven by the availability of "free" pixel-perfect labels. Yet, models trained solely on simulation data often fail in real-world deployments due to differences in lighting, texture, and sensor noise. Existing Domain Adaptation (DA) techniques, such as CycleGAN, attempt to bridge this gap but often suffer from semantic inconsistency—erroneously altering the scene's structure, such as turning a car into a road patch. This paper proposes an unsupervised method to maintain semantic consistency by disentangling domain-agnostic content from domain-specific style.

Methods

The proposed architecture centers on Content Disentanglement. The core hypothesis is that images from different domains share a common underlying "content" (spatial layout, object positions) but differ in "style" (appearance).

The proposed unsupervised framework for content disentanglement and domain adaptation.

Key Architectural Components:

  • Shared Encoder/Decoder: A single shared encoder extracts domain-agnostic content features, while a single shared decoder reconstructs the image. This simplicity forces the network to find a robust, shared representation.
  • Fixed Style Codes: Unlike methods that sample random styles, this model utilizes a fixed, learned style code for each domain. This constraint prevents the network from "hiding" structural information within the style vector.
  • Adaptive Instance Normalization (AdaIN): This layer is used to inject domain-specific style into the content features during the decoding process.
  • Loss Functions: The training objective combines Reconstruction Loss ($\\mathcal{L}_{rec}$), Cycle Consistency Loss ($\\mathcal{L}_{cyc}$), and Adversarial Patch Loss ($\\mathcal{L}_{adv}$) to ensure local textures look realistic via PatchGAN discriminators.

Datasets and Evaluation

The framework was evaluated using two primary benchmarks:

  1. PfD (Playing for Data): A synthetic dataset of ~25,000 images from GTA V with semantic labels.
  2. Cityscapes: A real-world dataset of urban traffic scenes from 50 European cities.

The researchers tested the method by translating GTA images to the Cityscapes domain and subsequently training a semantic segmentation model (DRN-C-26) on the translated data.

Key Results and Insights

The proposed method achieved a Mean Intersection over Union (mIoU) of 39.0, significantly outperforming unsupervised baselines such as MUNIT (37.4), CUT (34.0), and CycleGAN (32.4).

Visual comparison of synthetic images and their translated counterparts.

Qualitative analysis reveals that the model effectively preserves critical semantic features, such as the "ego-car" hood and lane markings, which are often distorted by other methods. By using simplicity as a constraint—specifically a lightweight encoder-decoder pair—the model avoids the "hallucination" of objects (like trees in the sky) that plagues more complex multi-generator setups.

Conclusion

This work demonstrates that effective content-style disentanglement is key to semantically consistent domain adaptation. While a gap remains compared to "Oracle" performance (67.4 mIoU), the proposed lightweight framework offers a robust and efficient solution for bridging the sim2real gap in autonomous driving pipelines. Future research may focus on incorporating diverse environmental factors, such as weather, into the style representation.

Summary updated

BibTeX
@inproceedings{keser2021content,
  author = {Mert Keser and Artem Savkin and Federico Tombari},
  title = {{Content Disentanglement for Semantically Consistent Synthetic-to-Real Domain Adaptation}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=ddVhiqQLqw},
}
Figure