Abstract
We present a novel approach to tackle domain adaptation between synthetic and real data. Instead, of employing "blind" domain randomization, i.e., augmenting synthetic renderings with random backgrounds or changing illumination and colorization, we leverage the task network as its own adversarial guide toward useful augmentations that maximize the uncertainty of the output. To this end, we design a min-max optimization scheme where a given task competes against a special deception network to minimize the task error subject to the specific constraints enforced by the deceiver. The deception network samples from a family of differentiable pixel-level perturbations and exploits the task architecture to find the most destructive augmentations. Unlike GAN-based approaches that require unlabeled data from the target domain, our method achieves robust mappings that scale well to multiple target distributions from source data alone. We apply our framework to the tasks of digit recognition on enhanced MNIST variants, classification and object pose estimation on the Cropped LineMOD dataset as well as semantic segmentation on the Cityscapes dataset and compare it to a number of domain adaptation approaches, thereby demonstrating similar results with superior generalization capabilities.
Introduction
Training computer vision models on synthetic data is highly desirable due to the availability of infinite data and perfect ground-truth labels. However, a significant "domain gap" exists between synthetic renderings and real-world images. Synthetic images are often too clean, lacking the noise, lighting variations, and environmental artifacts found in the real world.
Existing solutions typically fall into two categories: "blind" domain randomization, which adds unguided noise during training, and domain adaptation (e.g., GANs), which uses unlabeled target data to make synthetic data look more realistic. While effective, GAN-based methods often overfit to the specific target domain provided. DeceptionNet addresses these issues by creating a model that is robust to the real world without ever seeing a single real-world image during training, using a guided adversarial approach.
Methodology
The core of DeceptionNet is a min-max optimization game between two competing networks: a Task Network and a Deception Network.
The training process alternates between two phases:
- Phase 1 (Deception): The Deception Network is updated to maximize the Task Network's error. This is achieved using a Gradient Reversal Layer, which steers the perturbations toward the most destructive configurations for the current state of the task network.
- Phase 2 (Task): The Task Network is updated to correctly solve the task (e.g., classification or pose estimation) even when faced with these deceptive, highly-perturbed images.
Deception Modules
The Deception Network utilizes an encoder-decoder architecture to control several differentiable modules that apply specific types of perturbations tailored to the task at hand.
These modules include:
- Background Module (BG): Replaces synthetic backgrounds with complex, confusing structures.
- Distortion Module (DS): Applies elastic deformations to the object's shape.
- Noise Module (NS): Adds pixel-level perturbations.
- Light Module (L): Employs a differentiable Phong shading model to alter illumination and specular highlights.
Experimental Evaluation
The framework was evaluated across three distinct domains: digit recognition, object pose estimation, and semantic segmentation.
Key Results
- Digit Recognition: On the MNIST-M dataset, DeceptionNet achieved 90.4% accuracy without using any target domain data during training. On a more challenging MNIST-COCO variant (digits over MS-COCO backgrounds), it maintained 89.4% accuracy, demonstrating superior generalization compared to adaptation methods like PixelDA, which dropped from 95.9% to 72.5%.
- Semantic Segmentation: In the SYNTHIA to Cityscapes benchmark, DeceptionNet reached a Mean Intersection over Union (mIoU) of 32.0%*, a substantial improvement over the source-only baseline of 22.8%.
- Generalization: The results indicate that guided randomization is more efficient than blind randomization. By letting a network search for the most confusing perturbations, the task network learns to ignore features that are most likely to cause failure in real-world scenarios.
Conclusion
DeceptionNet demonstrates that guided adversarial data augmentation can bridge the domain gap more effectively than blind randomization or target-specific adaptation. By learning to be robust against a wide range of synthetic distortions, the model generalizes better to entirely unseen real-world environments. Future work may involve expanding the library of deception modules or learning the modules themselves to create a fully automated adversarial augmentation pipeline.
Summary updated