Image Augmentations for GAN Training

Zhengli Zhao, Zizhao Zhang, Ting Chen, Sameer Singh, Han ZhangarXiv 2020

Abstract

Data augmentation is a cornerstone of robust image classification, yet its application to Generative Adversarial Networks (GANs) has historically been problematic, often leading to the generation of undesirable artifacts. This paper presents a simple yet effective solution: applying augmentations to both real and generated images simultaneously. By combining this "dual-sided" augmentation strategy with consistency and contrastive losses, the authors establish a new state-of-the-art Fréchet Inception Distance (FID) of 8.30 on the CIFAR-10 dataset.

Introduction

The instability of GAN training is a well-documented challenge. While data augmentation is typically used to prevent overfitting in deep learning, applying it solely to the "real" images in a GAN setup leads to a phenomenon known as "augmentation leakage." In this scenario, the discriminator identifies augmented features—such as the black squares from a "Cutout" operation—as inherent properties of the true data distribution. Consequently, the generator learns to produce these artifacts to successfully deceive the discriminator, degrading overall image quality.

Methods

The researchers conducted an extensive systematic study of over ten distinct augmentation techniques, ranging from spatial transforms like zooming and translation to visual adjustments like color jittering and noise injection.

Overview of the various image augmentation techniques evaluated in the study, including spatial transforms (Zoom, Translation) and visual transforms (Brightness, Redness, Noise, Cutout).

The core methodological framework consists of three primary components:

  1. Vanilla_rf Strategy: The authors propose augmenting both real and fake images before they are processed by the discriminator. This ensures the discriminator never sees "clean" real images versus "clean" fake images, preventing it from using augmentation artifacts as a shortcut to distinguish between the two distributions.
  2. Cntr-GAN: A contrastive loss regularization is introduced to encourage the discriminator to learn robust representations. This is achieved by minimizing the distance between different augmented versions of the same image in the feature space while maximizing the distance between different images.
  3. Balanced Consistency Regularization (BCR): This technique penalizes the discriminator if its predictions vary significantly when presented with two different augmentations of the same input image.

Datasets

Experiments were primarily conducted on CIFAR-10, which contains 60,000 32x32 color images. This dataset's manageable size allowed for the exhaustive grid-search experiments necessary to evaluate numerous augmentation combinations across SNDCGAN and BigGAN architectures.

Key Insights

  • The Danger of Single-Sided Augmentation: Augmenting only real images was found to be detrimental, with FID scores worsening as augmentation intensity increased.
  • Spatial Superiority: Spatial augmentations (e.g., translation, zooming) proved significantly more effective than visual ones (e.g., brightness, noise). Spatial transforms appear to better assist the model in learning the underlying structural properties of objects.
  • Distribution Overlap: Augmentations effectively "smear" the high-dimensional distributions of real and fake images, increasing their overlap and providing more informative gradients for the generator.

Results

The proposed methods yielded substantial quantitative improvements in image quality, as measured by FID (lower is better):

  • Baseline BigGAN: 14.73 FID
  • BigGAN + Dual Augmentations: 11.03 FID
  • BigGAN + BCR + Contrastive Loss (SOTA): 8.30 FID

Qualitative analysis confirmed that while single-sided augmentation results in artifacts like color blotches, the dual-sided approach maintains high fidelity and clean object generation.

Conclusion and Future Work

While these findings provide a foundational framework for GAN augmentation, the study's focus on 32x32 resolution images leaves questions regarding scalability to high-resolution datasets like ImageNet. Future research may explore the computational efficiency of these methods at scale and the potential for optimized "recipes" of chained augmentations.

Summary updated

BibTeX
@misc{zhao2020image,
  author = {Zhengli Zhao and Zizhao Zhang and Ting Chen and Sameer Singh and Han Zhang},
  title = {{Image Augmentations for GAN Training}},
  year = {2020},
  eprint = {2006.02595},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.02595},
}
Figure