Source-linked AI summary

Data Augmentation Generative Adversarial Networks

Antreas Antoniou, Amos Storkey, Harrison Edwards

arXiv:1711.04340v3stat.MLcs.CVcs.LGcs.NE

TL;DR

Standard augmentation often relies on known invariances, and few approaches learn augmentation strategies. DAGAN learns to generate related examples from an input; the paper reports improved classifiers even after standard augmentation and better performance than other state-of-the-art meta-learning methods.

  • Problem

    Most data augmentation uses a priori known invariances, and few approaches learn augmentation strategies.

    Source: §2 · p. 3
  • Method

    DAGAN uses a generative model to produce additional related examples from an input for use in a classifier.

    Source: §3.1 · p. 4
  • Results

    DAGAN improved classifiers even after standard augmentation and produced better meta-learning performance than other state-of-the-art methods.

    Source: §8 · p. 9
  • Takeaways & Limitations

    Because augmentation applies across models and methods, the authors describe DAGAN as a potentially valuable addition to low-data settings.

    Source: §8 · p. 9

    The method assumes Gaussian z, which the authors say is without much loss of generality.

    Source: §3.1 · p. 4

Abstract

from arXiv · show

Effective training of neural networks requires much data. In the low-data regime, parameters are underdetermined, and learnt networks generalise poorly. Data Augmentation alleviates this by using existing data more effectively. However standard data augmentation produces only limited plausible alternative data. Given there is potential to generate a much broader set of augmentations, we design and train a generative model to do data augmentation. The model, based on image conditional Generative Adversarial Networks, takes data from a source domain and learns to take any data item and generalise it to generate other within-class data items. As this generative process does not depend on the classes themselves, it can be applied to novel unseen classes of data. We show that a Data Augmentation Generative Adversarial Network (DAGAN) augments standard vanilla classifiers well. We also show a DAGAN can enhance few-shot learning systems such as Matching Networks. We demonstrate these approaches on Omniglot, on EMNIST having learnt the DAGAN on Omniglot, and VGG-Face data. In our experiments we can see over 13% increase in accuracy in the low-data regime experiments in Omniglot (from 69% to 82%), EMNIST (73.9% to 76%) and VGG-Face (4.5% to 12%); in Matching Networks for Omniglot we observe an increase of 0.5% (from 96.9% to 97.4%) and an increase of 1.8% in EMNIST (from 59.5% to 61.3%).

1 INTRODUCTION

DAGAN learns broader within-class augmentations from a source domain for use in low-data target domains, including unseen classes. The paper applies it to standard classifiers and few-shot Matching Networks, reporting improved performance across its evaluated tasks.

1 INTRODUCTION

  • In low-data settings, deep networks overfit despite regularization, while conventional augmentation relies on a limited set of known class-preserving transformations.The introduction notes that random translations, rotations, flips, and Gaussian noise can help datasets of any size.Source: §1 · pp. 1–2
  • DAGAN learns a broader space of within-class transformations in a source domain and can generate equivalent-class examples for novel, unseen target classes.The paper presents realistic augmentation samples generated from a single novel data point.Source: §1 · p. 2
  • For few-shot learning, DAGAN generates relevant comparator examples to augment Matching Networks and related models, targeting distances between learned data manifolds.This approach relates to tangent distances and generates salient augmentation examples for each test case.Source: §1 · pp. 2–3
  • The evaluation applies DAGAN to standard neural-network training and one-shot meta-learning on Omniglot, EMNIST, and VGG-Face, including transfer from Omniglot to EMNIST.The paper reports improved generalization for standard classifiers across its tasks.Source: §1 · p. 2
  • DAGAN improved general meta-learning performance beyond the state of the art by 0.5% on Omniglot and 1.8% on EMNIST.The paper also reports efficient one-shot augmentation of Matching Networks using salient examples generated for each test case.Source: §1 · p. 3

2 BACKGROUND

The background frames one-shot learning as transfer under extreme class-distribution shift, where shared class-conditional structure enables knowledge transfer. It motivates learned, transferable augmentation by contrasting it with known-invariance transformations and prior few-shot methods that do not use augmentation for meta-learning.

Transfer Learning and Dataset Shift

  • One-shot learning involves an extreme class-distribution shift with no shared support, but shared class-conditional structure is assumed to permit transfer.The passage describes new classes as moving from zero to non-zero probability while old classes have zero probability.Source: §2 · p. 3

Generative Adversarial Networks

  • GANs discriminate true from generated examples to learn complex joint densities, and optimization improvements reduced some training failure modes (Goodfellow et al., 2014; Radford et al., 2015; Arjovsky et al., 2017; Gulrajani et al., 2017).The passage specifically identifies Deep Convolutional GANs (DCGAN) among these approaches.Source: §2 · p. 3

Data Augmentation

  • Standard augmentation encodes known invariances through transformations, while class-by-class learned strategies (Hauberg et al., 2016) do not transfer to novel one-shot classes.Examples of handwritten-character invariances include shifts, rotations, shears, intensity, stroke thickness, and size.Source: §2 · p. 3

Few-Shot Learning and Meta-Learning

3 MODELS FOR DATA AUGMENTATION

The section frames augmentation as learning valid transformations from related data, then describes a conditional GAN that generates varied, related samples from an input without class labels.

3 MODELS FOR DATA AUGMENTATION

  • When valid transformations are unknown, related-problem data can teach transformations for a target task; GANs learn to match the training-data distribution, with latent variation mapping a data manifold.The paper frames learning such transformations across problems as meta-learning.Source: §3 · pp. 3–4

3.1 DATA AUGMENTATION GENERATIVE ADVERSARIAL NETWORK

  • DAGAN encodes an input x as r = g(x) and combines r with random z to generate additional related samples for classifier augmentation.Its encoder bottleneck is combined with transformed noise and passed to a decoder; the discriminator distinguishes generated images from other real images of the same class. The noise z is Gaussian.Source: §3.1 · p. 4, Figure 3 · p. 4

3.2 LEARNING

  • An improved WGAN critic compares generated outputs conditioned on x_i with real same-class pairs, while the generator minimizes the critic's Wasserstein-distance discrimination.Providing x_i to the discriminator discourages autoencoding; withholding class information requires generalization consistent across classes (Gulrajani et al., 2017; Arjovsky et al., 2017).Source: §3.2 · p. 5

4 ARCHITECTURES

The section specifies a UResNet generator with residual and UNet-style skip connections, a DenseNet discriminator, and DenseNet classifiers. It also reports the training configurations for DAGANs and classifiers.

4 ARCHITECTURES

  • The main DAGAN generator was a UResNet combining UNet and ResNet designs, with eight four-convolution blocks and dataset-specific filter widths.Omniglot and EMNIST layers used 64 filters; VGG-Faces used 64 or 128 filters depending on the block.Source: §4 · p. 5
  • The UResNet used within-block residual skip connections, strided 1x1 convolutions between blocks, and UNet-style skips between equivalent-sized filters.The strided convolutions bypassed between-block nonlinearities to help gradient flow.Source: §4 · p. 5
  • The discriminator was a DenseNet (Huang et al., 2016) with four Dense Blocks and Transition Layers, layer normalization, growth rate 64, and dropout.Layer normalization replaced batch normalization to preserve the WGAN objective assumptions; dropout at each Dense Block’s last convolution improved sample quality.Source: §4 · p. 5
  • DAGANs were trained for 500 epochs with learning rate 0.0001 and Adam parameters β1 = 0 and β2 = 0.9.Source: §4 · p. 5
  • Each classifier was a 17-layer DenseNet (four Dense Blocks, four Transition Layers, growth rate 64) with three convolutions per Dense Block and dropout 0.5.The 17 layers comprise 16 network layers and one softmax layer.Source: §4 · p. 5
  • Classifiers used Gaussian-noise, shift, and 90-degree-rotation augmentation, and were trained for 200 epochs with learning rate 0.001 and Adam β1 = 0.9, β2 = 0.99.Noise and shifts were applied with 50% probability; rotations were chosen with equal probability.Source: §4 · p. 5

5 DATASETS

DAGAN was evaluated on Omniglot, EMNIST, and VGG-Faces using randomized source, validation, and target-test domains. The section describes the data splits and evaluation protocols used for classifier and one-shot experiments.

5 DATASETS

  • Classifier training used training cases across all domains, validation cases for hyperparameter selection, and target-domain test cases for final evaluation.Each character or person was split into two test cases, three validation cases, and an experiment-dependent number of training cases; case splits were randomized across runs.Source: §5 · p. 5
  • One-shot models were trained and meta-learned on the source domain, validated on the validation domain, and evaluated on target-domain test cases.Target classes had a varying number of training cases and two test cases per class across all three datasets.Source: §5 · p. 6
  • Omniglot used 1,200 source classes, EMNIST used 100 samples per class across shuffled class splits, and VGG-Face sampled 100 images per eligible class, retaining 2,396 of 2,622 classes.Omniglot split classes into source 1–1,200, validation 1,201–1,412, and target test 1,412–1,623; EMNIST used source classes 0–34, validation 35–42, and test 42–47; VGG-Face used source classes 1–1,802, test 1,803–2,300, and validation 2,300–2,396.Source: §5 · p. 6

6 DAGAN TRAINING AND GENERATION

DAGAN training selected the UResNet architecture after more powerful generators produced better variability. Adding DAGAN-generated data improved vanilla classifier performance in every tested target-domain case.

6.1 TRAINING OF DAGAN IN SOURCE DOMAIN

  • Among VGG, U-net, and ResNet-inspired generators, the increasingly powerful architectures performed better, and the UResNet became the model of choice.DAGANs were trained on source Omniglot domains and on VGG-Faces source domains.Source: §6.1 · p. 6

6.2 VANILLA CLASSIFIERS

  • DenseNet classifiers were trained with 5, 10, or 15 real examples per class, with DAGAN-generated augmentation and real-or-fake labels in the augmented-data condition.Passing the real-or-fake label proved crucial; the number of augmented samples per real example varied from 1 to 10, with the best rate selected on the validation domain.Source: §6.2 · pp. 6, 8
  • DAGAN augmentation improved vanilla classifier test accuracy in every tested case.Results were averaged over five independent runs.Source: Table 1 · p. 8, §6.2 · p. 8

7 ONE SHOT LEARNING USING DATA AUGMENTATION NETWORKS AND MATCHING NETWORKS

DAGAN-augmented support sets improve Matching Network one-shot performance on Omniglot and EMNIST, while VGG-Face performance matches the baseline. A sample selector chooses DAGAN inputs to generate additional training examples in a differentiable pipeline.

7 ONE SHOT LEARNING USING DATA AUGMENTATION NETWORKS AND MATCHING NETWORKS

  • The method trains a DAGAN on the source domain, then jointly trains Matching Networks and a sample-selector network that chooses z inputs for added examples.Because the quantities are differentiable, the pipeline can be trained end to end; the best validation-domain Matching Network and selector are then used in the test domain.Source: §7 · p. 8
  • Omniglot Matching Networks improve from 96.9% to 97.4% (+0.5%); EMNIST improves from 59.5% to 61.3% (+1.8%), while VGG-Face matches baseline performance.The Omniglot result reaches the level of Conv-ARC; on VGG-Face, the baseline did not overfit, and the authors suggest the embedding network may lack capacity for face discrimination.Source: Table 2 · p. 9, §7 · p. 9
  • Training augmentation was applied in every episode, stacking K generated images with each original; experiments used 20 classes, one sample per class, and generated-to-real ratios from 0 to 2.Standard augmentations were applied in both DAGAN-augmented and standard settings.Source: §7 · p. 9
  • DAGAN augmentation improved simple pixel-distance nearest-neighbor performance by 33.815% on Omniglot.For VGG-Face, the authors call for further experiments with larger embedding functions to better evaluate DAGAN performance.Source: §7 · p. 9, Table 2 · p. 9

8 CONCLUSIONS

DAGAN automatically learns flexible data augmentations that improve low-data classifiers, including after standard augmentation. Meta-learning augmentation choice in a one-shot setting also outperforms other state-of-the-art meta-learning methods.

  • DAGANs improve classifier performance even after standard data augmentation.Source: §8 · p. 9
  • In a one-shot setting, meta-learning the best augmentation choice outperforms other state-of-the-art meta-learning methods.Source: §8 · p. 9
  • A DAGAN is a flexible model that automatically learns to augment data.Source: §8 · p. 9
  • Because data augmentation generalizes across models and methods, a DAGAN could be valuable in any low-data setting.Source: §8 · p. 9

A APPENDIX

The appendix presents the UResNet generator in Figure 6 and specifies its architecture in Algorithm 1. It also states that full implementation code will be made available on acceptance.

Algorithm 1 U-ResNet Generator Architecture

  • U-ResNet encodes the input, concatenates projected 100-dimensional N(0, 1) noise, then decodes it to generate output.Figure 6 depicts the generator, and Algorithm 1 gives its full architecture.Source: A APPENDIX · pp. 12, 14, Figure 6 · p. 13
  • Its encoder downsamples with dropout, while the decoder upsamples using nearest-neighbour resizing; multi-layer blocks concatenate prior activations according to a skip-distance setting.The algorithm specifies dropout of 0.3 in down-scale layers and linear projections for the encoder and decoder skip paths.Source: A APPENDIX · p. 14
  • The algorithm’s layer operation applies a 3×3 convolution, LReLU with slope 0.01, and BRN; full code is promised upon acceptance.The appendix states that the code will implement all aspects of the paper.Source: A APPENDIX · pp. 12, 14
Loading 1711.04340v3…