Introduction
Deep learning models for semantic segmentation require vast amounts of pixel-level annotated data, which is notoriously expensive and time-consuming to produce manually. To circumvent this, researchers frequently turn to synthetic data generated by video games or simulators. However, a significant "domain gap" exists between synthetic and real-world imagery, often causing models trained on synthetic data to fail when deployed in the real world.
Existing solutions typically employ Unpaired Image-to-Image Translation (e.g., CycleGAN) to enhance the realism of synthetic images. A critical flaw in these methods is "semantic flipping," where a generative model might erroneously transform a patch of "sidewalk" into "road" to better match the target domain's distribution. If the underlying label remains unchanged, the model learns from corrupted data. This paper introduces DA-KPN (Domain Adversarial Kernel Prediction Network), a method designed to bridge the domain gap while remaining physically incapable of altering an image's geometric structure.
The DA-KPN Architecture
DA-KPN shifts the paradigm from generating new pixels to transforming existing ones. The architecture is designed to be lightweight and interpretable, consisting of four primary components:
- Semantic Encoder: A pre-trained FCN-Resnet50 extracts features from a low-resolution version of the source image to identify the semantic context of each pixel.
- Kernel Prediction Network (KPN): This module utilizes the semantic features to predict 12 transformation parameters per pixel: six for affine color transformation in HSV space, three for a symmetric Gaussian blur kernel, and three for additive Gaussian noise scaling.
- Transformation Function: A simple, deterministic function applies these predicted parameters to the original high-resolution synthetic image, ensuring the output is a direct modification of the input.
- Multi-scale Discriminator: During training, a discriminator evaluates translated patches against real-world patches to drive the KPN toward producing realistic textures and styles.
Core Innovations: Guaranteed Consistency and Efficiency
The primary advantage of DA-KPN is its guaranteed semantic consistency. Because the transformation is applied pixel-wise via kernels, the geometry of the input image is perfectly preserved. A tree in the synthetic domain will always remain a tree in the translated domain, albeit with more realistic lighting, blur, and noise.
Furthermore, DA-KPN is significantly more efficient than traditional GAN-based approaches. By avoiding heavy generative layers, the model utilizes only 2.8 million parameters, a fraction of the size of competitors like CycleGAN (28.3M) or VSAIT (65.5M). This efficiency translates to faster training times—nearly 5x faster than VSAIT—and lower computational overhead.
Experimental Evaluation
The authors evaluated DA-KPN on two major "syn2real" benchmarks: GTA → Cityscapes and FaceSynthetics → CelebAMask-HQ. On the GTA → Cityscapes benchmark at 720x1280 resolution, DA-KPN achieved a 37.45 mIOU (mean Intersection over Union), outperforming both CycleGAN (33.64) and VSAIT (35.23).
Qualitative results demonstrate that DA-KPN successfully adapts the style of synthetic images without the blurring or structural distortion common in other translation methods. Ablation studies further confirmed that while color transformation is the most critical component for closing the domain gap, the addition of blur and noise parameters consistently improves segmentation performance.
Conclusion and Future Work
DA-KPN represents a robust alternative to generative image translation for tasks where label alignment is paramount. While the method is currently dependent on the quality of its initial semantic encoder and can face challenges with upsampling artifacts, its transparency and efficiency make it a compelling choice for large-scale synthetic-to-real adaptation. Future work may explore applying the semantic encoder at higher resolutions to further refine the precision of the predicted transformation kernels.
Summary updated