Paper commentary
Learning from Simulated and Unsupervised Images through Adversarial Training
Refiner networks make simulated images look real using unlabeled real images
- Problem Models trained on simulator images pick up details that only exist in renders, so they transfer poorly to real images. Making renderers more realistic is costly and still misses real-image traits.
- Method Simulated+Unsupervised learning trains a refiner network against a discriminator. Unlike plain GANs, it adds a self-regularization term that keeps annotations, judges local patches, and draws on a buffer of earlier refined images.
- Results A gaze CNN trained on refined UnityEyes images reached a mean gaze error of 7.8 degrees on MPIIGaze. Unrefined synthetic images gave 11.2 degrees under the same test.
Why simulator images alone fall short
Training on simulator output is attractive because the labels come for free, but rendered images often differ from real ones in ways a network can learn to rely on. A model may learn details that appear only in synthetic images and then generalize poorly to real images. Making the renderer more realistic is one fix, but it is computationally expensive and takes a lot of modeling effort, and even good renderers can miss characteristics of real images.
This paper asks whether the realism of simulator images can be raised using only unlabeled real images, while the simulator's annotations remain valid. The setting is called Simulated+Unsupervised (S+U) learning, and the refined image must look real while keeping the annotation, such as the gaze direction.
Refiner objective: realism plus annotation preservation
The refiner \(R_\theta\) takes a synthetic image \(x\) and returns a refined image \(\tilde{x} = R_\theta(x)\). Training minimizes, over the synthetic training images, a realism term plus a regularization term weighted by \(\lambda\). \[ L_R(\theta) = \sum_i \ell_{real}(\theta; x_i, Y) + \lambda\, \ell_{reg}(\theta; x_i) \] The first term adds realism using the unlabeled real images \(Y\), and the second term keeps the annotation information of each synthetic image.
The discriminator \(D_\phi\) is trained as a two-class classifier, and its loss is a cross-entropy over refined and real images. \[ L_D(\phi) = -\sum_i \log D_\phi(\tilde{x}_i) - \sum_j \log\bigl(1 - D_\phi(y_j)\bigr) \] The discriminator output is read as the probability that the input is a refined image, so the target is 1 for refined images and 0 for real ones.
The realism term used by the refiner is the negative log of one minus the discriminator output on the refined image. \[ \ell_{real}(\theta; x_i, Y) = -\log\bigl(1 - D_\phi(R_\theta(x_i))\bigr) \] Minimizing it pushes the discriminator to score refined images as real.
The regularization term is an L1 distance between a feature transform of the refined image and of the synthetic image, \(\ell_{reg} = \|\psi(\tilde{x}) - x\|_1\). The feature transform \(\psi\) is the identity map unless stated otherwise, and the paper also names image derivatives, the mean of colour channels, or a learned transformation as alternatives.
Substituting the realism term gives the loss used in the implementation. \[ L_R(\theta) = -\sum_i \log\bigl(1 - D_\phi(R_\theta(x_i))\bigr) + \lambda\,\|\psi(R_\theta(x_i)) - \psi(x_i)\|_1 \]
The refiner and the discriminator are updated alternately, with the discriminator fixed during refiner updates and the refiner fixed during discriminator updates. Each step of Algorithm 1 runs several refiner updates, \(K_g\), followed by several discriminator updates, \(K_d\), on mini-batches.
Local adversarial loss on patches
A single strong discriminator pushes the refiner to exaggerate whichever image features fool it at the moment, and this drift produces artifacts. The authors observe that any local patch of a refined image should have statistics similar to a patch of a real image.
The discriminator is therefore a fully convolutional network that outputs a \(w \times h\) probability map, one value per local patch of the image. Limiting the receptive field restricts the capacity of the discriminator, and each image supplies many samples for training it. While training the refiner, the cross-entropy values over the \(w \times h\) patches are summed, so each image gives several realism loss values to the refiner.
Discriminator memory of earlier refined images
A discriminator that sees only the latest refined images can make adversarial training diverge, and the refiner may bring back artifacts the discriminator has already forgotten. Every refined image the refiner has produced at any point is a fake for the discriminator, so the discriminator should classify all of them as fake.
Each discriminator iteration uses \(b/2\) images from the current refiner and \(b/2\) images from a buffer of fixed size \(B\), where \(b\) is the mini-batch size. After each training iteration, \(b/2\) randomly chosen buffer entries are replaced with newly refined images. The authors contrast this with Salimans et al., who used a running average of model parameters for stability, and they note that the two approaches can be combined.
Datasets for gaze and hand pose
The gaze experiment uses 1.2M synthetic images from the UnityEyes simulator and 214K real images from MPIIGaze. UnityEyes is rendered with one generic environment, with no targeting toward MPIIGaze, and MPIIGaze was captured under extreme illumination conditions.
Synthetic depth images are created from the hand pose labels, and the real images are cropped using the synthetic images before being resized to 224×224.
Architectures and training schedules
The gaze refiner takes a 55×35 input convolved with 3×3 filters that output 64 feature maps. Four ResNet blocks follow, each with two convolutional layers of 64 feature maps, and a 1×1 convolution produces one feature map as the refined output. The refiner has no striding or pooling, so it edits pixel values and keeps the global structure.
The discriminator for gaze has 5 convolution layers and 2 max-pooling layers, with Conv3x3 layers of 96 and 64 feature maps at stride 2 and a final Conv1x1 with 2 feature maps followed by softmax. The receptive field of the last layer neurons in the refiner and in the discriminator are designed to be similar.
For gaze, the refiner is first trained with only the self-regularization loss for 1,000 steps and the discriminator for 200 steps. After that, \(K_d\) is set to 1 and \(K_g\) is set to 50 in Algorithm 1. All networks in this setup are trained with a constant 0.001 learning rate and a 512 batch size, until validation error converges.
The gaze estimator takes a 35×55 grayscale image through five convolutional layers and three fully connected layers, and the last layer encodes the 3-dimensional gaze vector with a Euclidean loss.
For hand pose the input is 224×224, the filters are 7×7, and the refiner has 10 ResNet blocks. The refiner is first trained with only the self-regularization loss for 500 steps and the discriminator for 200 steps, then \(K_d\) is set to 1 and \(K_g\) to 2. The hand pose estimator is a Stacked Hourglass Net with 2 hourglass blocks and a 64×64 output heatmap, trained with random rotations in [−20, 20] degrees and crops.
Gaze estimation on MPIIGaze
A gaze CNN trained on refined UnityEyes images reached a mean eye gaze estimation error of 7.8 degrees on MPIIGaze. The CNN trained on unrefined UnityEyes synthetic images reached 11.2 degrees under the same test.
In the comparison table, the refined-image CNN has the lowest error among the rows, below the k-NN with UnityEyes row at 9.9 degrees. The real-data rows range from 13.9 to 16.5 degrees, and the R/S column marks whether each method was trained on real or synthetic data. The text describes the 2.1 degree gain as a relative 21% improvement over the state of the art, which here is the k-NN with UnityEyes row.
Training on refined data also raised the share of test estimates within 7 degrees, with the 1x refined set reaching 69.4 against 62.3 for the 1x synthetic set. The 4x rows reached 87.2 for refined data and 64.9 for synthetic data. The 22.3% absolute improvement in the text matches the gap between the two 4x rows, since 4x here is 100% of the training dataset.
Visual Turing Test and ground-truth preservation
In the Visual Turing Test, each subject saw 50 real and 50 refined images in random order and labeled each one as real or refined. Among real images, 224 were labeled real and 276 refined; among refined images, 207 were labeled real and 293 refined, giving an average accuracy of 51.7% against a 50% chance level.
As a control, subjects judged unrefined synthetic images against real ones, with 10 real and 10 synthetic images per subject.
On 100 synthetic and refined image pairs with hand-fitted pupil centers, the estimated pupil center differs by 1.1 ± 0.8 px on an eye width of 55 px. The authors read this as evidence that the gaze direction is largely kept, while noting that the ellipse fit is only an approximation of gaze direction that is hard for humans to label accurately.
Hand pose estimation on NYU depth images
At distance d = 5 pixels, the refined synthetic set reached 72.4 at 1x and 83.3 at 3x, against 69.7 for unrefined synthetic data at 1x and 77.7 at 3x. Real data reached 74.5 at the same distance, so the refined 1x set scored below real data while the refined 3x set scored above it.
Here 3x corresponds to training on all views of the NYU data. The authors use one deep network on purpose, to isolate the effect of improving the synthetic images from other pipeline steps.
In qualitative examples, the main noise in real depth images comes from depth discontinuities at the edges, and the refiner learns to model these without label information. The refined depth boundaries look more like those of real depth images than the synthetic ones do.
History buffer and local loss ablations
Without the history of refined images, gaze estimation error rose to 12.2 degrees, compared with 7.8 degrees with the history.
The authors compare a global adversarial loss, which uses a fully connected discriminator layer to classify the whole image, with the local loss on hand depth images. The global version leaves depth boundary artifacts around the edge of the hand, while the local version looks more realistic. This comparison is qualitative and no error metric is reported for it.
Each of these ablations removes one stabilizer from the full setup, and the reported effect is measured against that full setup.
Limitations
The quantitative gaze experiments use grayscale images, while colour refinement with the mean of RGB channels is shown only qualitatively. The gaze experiments are evaluated on MPIIGaze, and the hand pose experiments on the NYU hand pose dataset.
The pupil-center check uses 100 synthetic and refined pairs whose pupil centers were labeled by fitting an ellipse by hand. The Visual Turing Test involves 10 subjects.
The method currently yields one refined image per synthetic image, and the authors plan to model the noise distribution to produce several refined images for each synthetic image. The authors also plan to refine videos rather than single images.
Paper info
- Authors
- Ashish Shrivastava, Tomas Pfister, Oncel Tuzel, Josh Susskind, Wenda Wang, Russ Webb
- Venue
- arXiv · Preprint
- First published
- 2016-12-22
- Added
- 2026-11-12
- Updated
- 2017-7-19
- Version
- v2
- arXiv
- 1612.07828
- Category
- cs.CV · cs.LG · cs.NE
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Ashish Shrivastava, Tomas Pfister, Oncel Tuzel, Josh Susskind, Wenda Wang, Russ Webb (2016). Learning from Simulated and Unsupervised Images through Adversarial Training. arXiv:1612.07828v2. https://arxiv.org/abs/1612.07828v2
BibTeX
@misc{shrivastava2016learning,
title = {{Learning from Simulated and Unsupervised Images through Adversarial Training}},
author = {Ashish Shrivastava and Tomas Pfister and Oncel Tuzel and Josh Susskind and Wenda Wang and Russ Webb},
year = {2016},
eprint = {1612.07828},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1612.07828v2}
}