Learning from Simulated and Unsupervised Images through Adversarial Training

Ashish Shrivastava, Tomas Pfister, Oncel Tuzel, Josh 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

Deep learning thrives on massive, labeled datasets, but human annotation is expensive, slow, and prone to error. While synthetic data (CGI) offers "free" labels, it often fails to capture the messy complexity of the real world—sensor noise, complex textures, and lighting variations. This "domain gap" means a model trained on perfect synthetic images often fails when applied to real-world data.

To bridge this gap, we introduce Simulated+Unsupervised (S+U) learning. The objective is to use unlabeled real data to refine the output of a simulator, making it indistinguishable from real images while strictly preserving the original ground-truth annotations (e.g., pupil coordinates or finger joints).

Overview of the S+U learning framework: refining synthetic images using unlabeled real data.

The SimGAN Method

The core of our approach is SimGAN, which adapts the Generative Adversarial Network (GAN) architecture for image refinement. Instead of generating images from random noise, a Refiner network ($R$) takes a synthetic image as input and adds realistic textures.

The SimGAN architecture, illustrating the Refiner ($R$) and Discriminator ($D$) networks with self-regularization and adversarial losses.

Key Innovations

To ensure the refined images remain useful for training and to stabilize the adversarial process, we implement three key modifications:

  • Self-Regularization Loss: To prevent the refiner from drifting too far from the synthetic source (which would invalidate the labels), we add a loss term that penalizes large pixel-wise differences between the input and output. This ensures the structural "identity" of the object is preserved.
  • Local Adversarial Loss: Rather than judging the whole image, we use a Fully Convolutional Discriminator that classifies local image patches. This forces the Refiner to focus on local details like skin pores or iris patterns and prevents the introduction of global artifacts.
  • Refined Image History: To stabilize training and prevent the Refiner from "cycling" through artifacts to fool the current Discriminator, the Discriminator is trained using a buffer of refined images from previous iterations. This forces the Refiner to produce images that are consistently realistic over time.

Experimental Evaluation

We evaluated SimGAN on two distinct tasks: gaze estimation and hand pose estimation.

Gaze Estimation

Using 1.2M images from the UnityEyes simulator and 214K unlabeled real images from the MPIIGaze dataset, we trained a model on SimGAN-refined images. This model achieved an error of 7.8 degrees, outperforming the previous state-of-the-art (9.9 degrees) and significantly improving upon models trained on raw synthetic data (11.2 degrees).

Hand Pose Estimation

On the NYU Hand Pose Dataset, which utilizes depth images, using refined images led to an 8.8% improvement over models trained with standard supervision.

Key Insights and Results

  • The Visual Turing Test: In a user study, human subjects were asked to distinguish between real images and refined synthetic images. Subjects' accuracy was only 51.7%—essentially a coin flip—indicating that the refined images are visually indistinguishable from reality.
  • Stability via Memory: The history buffer addresses common GAN failure modes where the generator and discriminator oscillate. By "remembering" past outputs, the Discriminator becomes a tougher opponent, leading to higher-quality refinement.

Limitations and Future Work

While SimGAN is highly effective, there are several areas for future exploration. Currently, the refiner is deterministic; future work could explore modeling noise distributions to generate multiple realistic variations from a single source. Additionally, extending the framework to video would require temporal consistency to ensure refined features do not "flicker" between frames. Finally, applying this to more complex scene geometries remains a significant scaling challenge.

Conclusion

SimGAN demonstrates that adversarial training can effectively bridge the domain gap between synthetic and real data. By refining simulated images with unlabeled real data, we can achieve state-of-the-art performance on complex tasks without the need for expensive human-labeled real-world datasets.

Summary updated

BibTeX
@inproceedings{shrivastava2017learning,
  author = {Ashish Shrivastava and Tomas Pfister and Oncel Tuzel and Josh 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