Source-linked AI summary

Improved Techniques for Training GANs

Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, Xi Chen

arXiv:1606.03498v1cs.LGcs.CVcs.NE

TL;DR

GAN research faces unstable training and weak evaluation for image quality; this paper introduces techniques to stabilize training and an evaluation metric, applying them to semi-supervised learning and image generation. The methods achieve state-of-the-art semi-supervised results and improve generated-image quality, with CIFAR-10 humans correctly categorizing 78.7% of real and generated images.

  • Problem

    GANs lack stable training procedures for finding high-dimensional non-convex game equilibria and a proper metric for evaluating generated-image quality.

  • Method

    The paper introduces several training-stabilization techniques and the Inception score, applying them to semi-supervised learning and image generation.

  • Results

    The techniques achieve state-of-the-art semi-supervised classification and improve generated-image quality, with CIFAR-10 users correctly categorizing 78.7% of real and generated images.

  • Takeaways & Limitations

    The work provides practical partial solutions that stabilize GAN training, enable previously untrainable models, and support comparisons of generated-image quality.

  • Takeaways & Limitations

    Human-annotator quality assessments vary with task setup, annotator motivation, and feedback about mistakes.

Abstract

from arXiv · show

We present a variety of new architectural features and training procedures that we apply to the generative adversarial networks (GANs) framework. We focus on two applications of GANs: semi-supervised learning, and the generation of images that humans find visually realistic. Unlike most work on generative models, our primary goal is not to train a model that assigns high likelihood to test data, nor do we require the model to be able to learn well without using any labels. Using our new techniques, we achieve state-of-the-art results in semi-supervised classification on MNIST, CIFAR-10 and SVHN. The generated images are of high quality as confirmed by a visual Turing test: our model generates MNIST samples that humans cannot distinguish from real data, and CIFAR-10 samples that yield a human error rate of 21.3%. We also present ImageNet samples with unprecedented resolution and show that our methods enable the model to learn recognizable features of ImageNet classes.

1 Introduction

GANs learn generative models through an adversarial generator–discriminator game, but standard gradient-based training may fail to converge because the game is non-convex and high-dimensional. This work introduces heuristic techniques intended to encourage convergence and improve semi-supervised learning and sample generation.

  • Background: GANs train a generator to transform noise into data-like samples, while a discriminator distinguishes generated samples from real data.The generator receives its training signal from the discriminator within a game-theoretic framework.
  • Problem: Standard gradient-descent methods may fail to find a Nash equilibrium because GAN training involves a non-convex game with continuous, high-dimensional parameters.These methods are designed to minimize a cost function rather than directly solve for a game equilibrium.
  • Contribution: The work introduces several heuristically motivated techniques intended to encourage convergence of the GAN game.The techniques are motivated by an understanding of the non-convergence problem and may support future formal convergence guarantees.
  • Contribution: The proposed techniques improve semi-supervised learning performance and sample generation.The authors present the methods as potential foundations for future work with formal convergence guarantees.

2 Related work

The work builds on prior GAN techniques for training stability and perceptual quality, including DCGAN architectural innovations [2] [3] [5] [6]. It also refines existing approaches to semi-supervised learning and relates its proposed methods to maximum mean discrepancy, batch normalization, and virtual batch normalization.

  • Prior work improved GAN training stability and sample perceptual quality [2] [3] [5] [6], and this work adopts some DCGAN architectural innovations [3].
  • Feature matching is related to maximum mean discrepancy methods [10] [11], while minibatch features draw partly on batch normalization [12] and virtual batch normalization directly extends it.
  • The work targets semi-supervised learning by improving supervised classification through additional unlabeled examples, continuing and refining earlier GAN applications [13] [14].

3 Toward Convergent GAN Training

This section develops techniques for more convergent GAN training by addressing non-convergent game dynamics, generator collapse, and instability from discriminator overtraining. The proposed methods include feature matching, minibatch discrimination, historical averaging, one-sided label smoothing, and virtual batch normalization.

  • 3 Toward Convergent GAN Training: GAN training seeks a Nash equilibrium, but simultaneous gradient descent can fail because improving one player’s cost may worsen the other’s.The paper frames GAN optimization as a two-player non-cooperative game and notes that gradient descent fails to converge for many games.
  • Feature matching: Feature matching stabilizes GANs by training the generator to match real-data statistics from discriminator features instead of directly maximizing discriminator output.The generator minimizes the squared distance between expected intermediate discriminator activations for real and generated samples; empirical results indicate effectiveness when regular GAN training becomes unstable.
  • Minibatch discrimination: Minibatch discrimination combats mode collapse by letting the discriminator compare multiple samples, providing a mechanism that encourages generated outputs to become more diverse.The method computes cross-sample features and concatenates them with individual features before the discriminator’s final output.
  • Historical averaging: Historical averaging adds penalties toward past parameter values, scales online to long time series, and finds equilibria in low-dimensional continuous non-convex games where gradient descent follows extended orbits.The approach is loosely inspired by fictitious play.
  • Additional techniques: Additional stabilization methods include smoothing only positive discriminator targets and normalizing each example using fixed reference-batch statistics through virtual batch normalization.One-sided smoothing avoids removing the incentive for erroneous generated samples to move toward the data, while VBN reduces dependence on other minibatch examples.

4 Assessment of image quality

The section evaluates image quality through human judgments and an automatic Inception-based score. Human assessments are intuitive but sensitive to task setup and annotator feedback, while the automatic metric captures both image quality and diversity and correlates with human judgment.

  • Human evaluation: Human annotators assess image quality by distinguishing generated samples from real ones through an MTurk web interface.The annotation interface is shown in Fig. 2.
  • Human evaluation: Human-evaluation results vary with task setup and annotator motivation, and feedback about mistakes leads to more pessimistic quality assessments.Feedback helps annotators identify flaws in generated images more effectively.
  • Automatic evaluation: The proposed Inception score combines low-entropy conditional predictions for meaningful images with high-entropy marginal predictions for sample diversity, and correlates well with human judgment [19].It is defined as exp(E_x KL(p(y|x)||p(y))) and should be evaluated on about 50k samples because diversity contributes to the metric.
  • Automatic evaluation: The Inception score is related to the CatGAN [14] training objective, but is used here as an evaluation metric rather than a training objective.The authors report less success using the objective for training while finding the score effective for evaluation.

5 Semi-supervised learning

The method turns a GAN discriminator into a K + 1-class classifier, enabling joint supervised and unsupervised learning from labeled data, unlabeled real data, and generated samples. It also improves perceived image quality by emphasizing object-level features aligned with human judgments.

  • 5 Semi-supervised learning: The K + 1-class classifier labels generated samples as a new “generated” class, allowing unlabeled real data to contribute through fake-versus-real discrimination.The added output estimates fake probability, corresponding to 1 − D(x) in the original GAN framework.
  • 5 Semi-supervised learning: The combined loss equals supervised classification loss plus the standard GAN game-value, making the unsupervised objective consistent with supervised learning.Joint optimization can better estimate the optimal class-conditional solution when the unsupervised loss is nontrivial to minimize.
  • 5 Semi-supervised learning: The approach achieves state-of-the-art semi-supervised learning results and unexpectedly improves generated-image quality according to human annotators.The passages attribute the quality improvement to the discriminator’s object classification rather than only local image statistics.
  • 5 Semi-supervised learning: Human-rated quality correlates highly with the Inception score because object classification biases the discriminator toward features humans emphasize, functioning as transfer learning.The potential transfer-learning effect could extend beyond this setting.

6 Experiments

The experiments evaluate semi-supervised learning on MNIST, CIFAR-10, and SVHN, alongside image generation on MNIST, CIFAR-10, SVHN, and ImageNet. Minibatch discrimination improves MNIST sample quality, while CIFAR-10 samples remain distinguishable to human evaluators and ImageNet samples exhibit recognizable but anatomically incorrect features.

  • Experimental scope: The experiments cover semi-supervised learning on MNIST, CIFAR-10, and SVHN, and sample generation on MNIST, CIFAR-10, SVHN, and ImageNet.The authors provide code reproducing most experiments.
  • MNIST: 52.4% of MTurk judgments distinguished MNIST samples generated with minibatch discrimination from real images, only slightly above the 50% random-guessing rate.Feature matching produced visually unappealing samples, whereas minibatch discrimination improved quality; researchers also found no distinguishing artifacts in their inspection.
  • CIFAR-10 and SVHN: The CIFAR-10 semi-supervised study uses a 9-layer convolutional discriminator with dropout and weight normalization and a 4-layer CNN generator with batch normalization, with results summarized in Table 2.The SVHN experiments use the same architecture and setup as CIFAR-10.
  • CIFAR-10: 78.7% of MTurk classifications were correct for a 50% real, 50% fake mixture from the best CIFAR-10 model, while the authors exceeded 95% accuracy.Filtering to the top 1% of samples by Inception score reduced MTurk accuracy to 71.4%.
  • ImageNet: On 128 × 128 ImageNet images spanning 1,000 categories, the proposed techniques enable recognizable animal features such as fur, eyes, and noses, but not realistic anatomical combinations.The study describes this as an unprecedented combination of image resolution and object-class count for a generative model.

7 Conclusion

The work addresses GANs’ unstable training and inadequate evaluation by introducing stabilizing techniques and the Inception score for comparing model quality.

  • The work presents partial solutions to GANs’ unstable training and lack of a proper evaluation metric.GANs are described as promising generative models held back by these two problems.
  • The proposed training techniques stabilize GAN optimization and enable models that were previously untrainable to be trained.
  • The Inception score provides a basis for comparing the quality of GAN models.
Loading 1606.03498v1…