Learning from Simulated and Unsupervised Images through Adversarial Training

Ashish Shrivastava, Tomas Pfister, Oncel Tuzel, Joshua Susskind, Wenda Wang, Russell Webb

Abstract: With recent progress in graphics, it has become more tractable to train models on synthetic images, potentially avoiding the need for expensive annotations. However, learning from synthetic images may not achieve the desired performance due to a gap between synthetic and real image distributions. To reduce this gap, we propose Simulated+Unsupervised (S+U) learning, where the task is to learn a model to improve the realism of a simulator's output using unlabeled real data, while preserving the annotation information from the simulator. We develop a method for S+U learning that uses an adversarial network similar to Generative Adversarial Networks (GANs), but with synthetic images as inputs instead of random vectors. We make several key modifications to the standard GAN algorithm to preserve annotations, avoid artifacts, and stabilize training: (i) a self-regularization term, (ii) a local adversarial loss, and (iii) updating the discriminator using a history of refined images. We show that this enables generation of highly realistic images, which we demonstrate both qualitatively and with a user study. We quantitatively evaluate the generated images by training models for gaze estimation and hand pose estimation. We show a significant improvement over using synthetic images, and achieve state-of-the-art results on the MPIIGaze dataset without any labeled real data.

Introduction: Bridging the Reality Gap

Deep learning models are notoriously data-hungry. While computer graphics simulators can generate millions of images with perfect ground-truth labels (e.g., precise gaze coordinates or hand joint positions), these images often suffer from a significant domain gap. Synthetic images frequently appear "too clean" or lack the subtle textures, sensor noise, and lighting complexities found in real-world photography. Consequently, models trained solely on synthetic data often perform poorly when deployed in real-world scenarios.

Overview of the S+U learning framework, where a refiner improves synthetic images using unlabeled real data.

Traditionally, this gap is bridged by manually labeling large datasets of real images—a process that is both expensive and time-consuming. This paper introduces Simulated+Unsupervised (S+U) learning, a framework that leverages the abundance of unlabeled real images to "teach" a simulator to produce more realistic output without losing the original ground-truth annotations.

The SimGAN Framework

The proposed method, SimGAN, utilizes a modified Generative Adversarial Network (GAN) architecture specifically designed for image refinement. Unlike standard GANs that generate images from random noise, the SimGAN Refiner ($R$) takes a synthetic image as input and modifies it to enhance its realism.

The SimGAN architecture, illustrating the Refiner network, the Discriminator, and the self-regularization loss.

To make this refinement effective for machine learning tasks, the authors introduced three critical technical innovations:

  1. Self-Regularization Loss: A primary challenge in S+U learning is ensuring that the Refiner does not alter the semantic content (the label) of the image while improving its appearance. For instance, in gaze estimation, the Refiner must not change the direction of the pupil. To prevent this, a self-regularization term penalizes large pixel-level differences between the synthetic input and the refined output, acting as an "anchor" to preserve annotations.
  2. Local Adversarial Loss: Standard GAN discriminators often judge an entire image as real or fake, which can lead the generator to introduce global artifacts to fool the discriminator. SimGAN employs a PatchGAN approach, where the Discriminator evaluates small local patches. This forces the Refiner to focus on enhancing local textures—such as skin pores or sensor noise—rather than altering global structures.
  3. Discriminator History Buffer: GAN training is notoriously unstable. To prevent the Refiner from "cycling" through a limited set of artifacts to fool the Discriminator, the system maintains a buffer of previously refined images. The Discriminator is trained on this history, forcing the Refiner to produce consistently realistic images that stand up to multiple versions of the Discriminator's learned features.

Experimental Evaluation

The effectiveness of SimGAN was evaluated on two challenging computer vision tasks: gaze estimation and hand pose estimation.

Gaze Estimation

Using 1.2 million synthetic eye images from UnityEyes and unlabeled real-world images from the MPIIGaze dataset, SimGAN refined the synthetic data to be visually indistinguishable from real photos. In a "Visual Turing Test," human subjects were only able to correctly identify real vs. refined images 51.7% of the time. Quantitatively, training a model on refined images reduced the gaze estimation error from 11.2 degrees (raw synthetic) to 7.8 degrees, outperforming the previous state-of-the-art (13.9 degrees) despite using zero labeled real images.

Hand Pose Estimation

On the NYU Hand Pose dataset, models trained on refined synthetic depth maps achieved an accuracy of 83.3% (within a 5px threshold). This significantly outperformed models trained on real data alone (74.5%), demonstrating that the high volume and variety of refined synthetic data can be more effective than smaller sets of labeled real data.

Conclusion

SimGAN provides a powerful solution for the domain gap problem in computer vision. By combining the precision of synthetic labels with the realism of unsupervised real-world data, the framework enables the training of high-performance models without the need for manual annotation. Future work may extend these principles to temporal data, ensuring consistency across video frames for tasks like gesture recognition and motion tracking.

Summary updated

BibTeX
@inproceedings{shrivastava2017learning,
  author = {Ashish Shrivastava and Tomas Pfister and Oncel Tuzel and Joshua Susskind and Wenda Wang and Russell Webb},
  title = {{Learning from Simulated and Unsupervised Images through Adversarial Training}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  url = {https://openreview.net/forum?id=HJ491xMuZr},
}
Figure