Abstract
Training deep neural networks for computer vision often relies on synthetic data to circumvent the high cost of manual labeling. However, the "domain gap" between simulation and reality frequently hinders performance. While Domain Randomization (DR) attempts to bridge this gap by uniformly sampling simulation parameters, it is often computationally inefficient. We introduce Adversarial Domain Randomization (ADR), a min-max framework where a simulator policy learns to generate "hard" samples that maximize the learner's loss. By focusing on the learner's blind spots, ADR achieves higher accuracy and better generalization with significantly less data than standard DR.
Introduction
The transition from synthetic training environments to real-world applications is plagued by the domain gap. Standard Domain Randomization (DR) addresses this by introducing variability in lighting, textures, and object placement. However, uniform sampling strategies in DR are inherently wasteful; they continue to produce "easy" samples that the model has already learned, rather than focusing on the difficult edge cases necessary for robust generalization.
Methods: The Adversarial Framework
We propose a min-max framework that treats data generation as a two-player, zero-sum game between a learner and a simulator.
- The Learner ($h$): A neural network (e.g., for object detection or classification) that aims to minimize its task loss.
- The Simulator ($g$): Governed by a policy ($\pi_\omega$), the simulator selects parameters $\theta$ to generate synthetic images $x$ and labels $y$. Its objective is to maximize the learner's loss.
The system uses Reinforcement Learning (REINFORCE) to update the simulator. It receives a high reward when the learner fails and a low reward when the learner succeeds. This feedback loop forces the simulator to actively search for and generate the specific scenarios—such as extreme occlusions or unusual lighting—that the learner has not yet mastered.
Key Insights and Theoretical Foundation
The Simplex Theory
The effectiveness of ADR is grounded in a theoretical analysis of "domain simplices." In this model, the set of possible domains is represented as a simplex.
While standard DR typically targets the center of this simplex, the authors prove that this is sub-optimal. ADR instead pushes the training distribution toward the boundaries of the simplex that the model has not yet mastered, providing more comprehensive coverage of the potential task space.
Automated Hard Negative Mining
ADR functions as an automated mechanism for hard negative mining. Rather than requiring manual identification of difficult cases (e.g., "we need more truncated objects"), the adversarial loop naturally discovers these weaknesses. In experiments with the VIRAT dataset, the ADR policy autonomously learned to place objects far from the camera or behind obstacles, identifying these as high-loss scenarios without explicit instruction.
Experimental Results
The researchers evaluated ADR across three benchmarks: CLEVR (geometric shapes), Syn2Real (3D CAD to real-world), and VIRAT (parking lot surveillance).
- Performance and Efficiency: On the Syn2Real classification task, ADR achieved 31.1% accuracy with 100k images, outperforming standard DR's 23.5%. Notably, ADR often matched the performance of DR using only 20% of the sample volume.
- Object Detection: In the VIRAT dataset, ADR reached an Average Precision (AP) of 88.6, compared to 75.8 for standard DR.
- Domain Adaptation (DA) Integration: By incorporating unlabeled real-world data and rewarding the simulator for generating "realistic" synthetic samples, the combined ADR + DA approach achieved 93.6 AP on VIRAT, approaching the 98.1 AP of models trained on fully labeled real data.
Conclusion
Adversarial Domain Randomization offers a more intelligent and efficient alternative to uniform sampling in synthetic data generation. While ADR is limited by the inherent capabilities of the underlying simulator, it maximizes the utility of the available parameter space. Future research may explore expanding the simulator's action space to include mesh deformation and procedural texture generation, further narrowing the gap between simulation and reality.
Summary updated