---
title: "Data Augmentation Generative Adversarial Networks (2017)"
description: "How DAGAN learns to generate new examples from a single image, transfers that ability to unseen classes, and improves some low-data classifiers."
canonical: "https://research.elamur.ai/free/en/papers/antoniou-2017-data-augmentation-generative-adversarial-networks/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/antoniou-2017-data-augmentation-generative-adversarial-networks/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2017](https://md.research.elamur.ai/free/en/papers/2017/) / Data Augmentation Generative Adversarial Networks

# Data Augmentation Generative Adversarial Networks

Paper · 2017 · Antreas Antoniou, Amos Storkey and Harrison S. Edwards

**Authors:** Antreas Antoniou, [Amos Storkey](https://md.research.elamur.ai/free/en/authors/amos-storkey/) and Harrison S. Edwards · **Year:** 2017 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

arXiv (Cornell University) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1711.04340)
- [arXiv 1711.04340](https://arxiv.org/abs/1711.04340)

## Summary

When a classifier sees only a few examples of a category, it has little evidence about how much members of that category can vary. A handwritten character might look different when someone writes it with a thicker stroke or puts it in a different part of the image. Standard data augmentation supplies some of this missing variety by altering the examples already available. Its reach depends on which alterations someone has thought to specify. The paper investigates whether a network can learn to generate useful variations from a set of categories with ample examples and transfer that ability to categories it has never encountered.

The authors call their method a Data Augmentation Generative Adversarial Network, or DAGAN. During training, it sees pairs of real images from the same category. A generator takes the first image and produces a candidate companion, and a critic compares the resulting pair with real pairs. The generator gets its cue about what to draw from the input image, while a random vector lets it produce different versions. The training labels determine which real images can be paired. Once trained, the generator can start from a labeled image of a new category and supply additional images for training or comparison.

The paper evaluates the method with ordinary classifiers trained on small labeled sets and with [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/) systems that classify by comparing a query with a small set of labeled examples. The ordinary classifiers already use conventional image augmentation. Adding DAGAN increases mean target-domain test accuracy in every reported comparison of this kind. With 5 training images per Omniglot class, accuracy goes from 0.689904 to 0.821314. With 15 per EMNIST class, it goes from 0.739353 to 0.760701, using a generator trained on Omniglot. With 5 images per VGG-Face identity, it goes from 0.0446948 to 0.125969. The face result shows a clear gain within a setting where accuracy remains low.

In one-shot classification, each category is represented by a single real example in an episode. On Omniglot, the authors’ own Matching Networks baseline reaches 96.9% test accuracy, rising to 97.4% with DAGAN. On EMNIST, the corresponding figures are 59.5% and 61.3%. The authors observe equal performance with and without DAGAN in the VGG-Face one-shot experiment and suggest that the network used to compare faces may have had too little capacity. The results establish that learned variations can help on unseen categories, including in a transfer between two handwriting datasets. They also show that the benefit depends on how the generated images enter the classification system.

## Deep dive: Data Augmentation Generative Adversarial Networks

How DAGAN learns to generate new examples from a single image, transfers that ability to unseen classes, and improves some low-data classifiers. · about 35 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a small training set leaves uncertain

A classifier trained on a large collection can see variations of the same category recur. Given only a few examples, it has to infer which features are shared across the category and which are accidents of the images it received. Say that its only labeled instance of a handwritten character is small and sits near the edge of the image. The training example establishes that this particular drawing belongs to the category. The learner has less evidence about whether a larger, more centered version would belong to it too. A flexible network can fit the available labels while relying on details that fail to carry over to unfamiliar examples.

The paper places the problem within a broader pattern in [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/). Deep networks can perform well when their training material is abundant. Their flexibility makes a small labeled set an inadequate constraint on the many ways they can fit it. Among the methods the authors discuss are dropout, which changes which activations are available during training, and normalization methods, which regulate the activations the network computes. These methods address aspects of training and overfitting. The location tolerance in the character example calls for another kind of information, concerning how the input itself can change while the label remains valid. [Improving Neural Networks by Preventing Co-adaptation of Feature Detectors](https://md.research.elamur.ai/free/en/papers/hinton-2012-improving-neural-networks-preventing-co/) · [Layer Normalization](https://md.research.elamur.ai/free/en/papers/ba-2016-layer-normalization/)

Data augmentation makes that information available through examples. If the designer knows that a modest translation preserves a character’s identity, the classifier can be trained on translated copies with the same label. The authors describe established choices such as translations, rotations, flips and Gaussian noise. They also point to properties of handwriting that can vary, including stroke thickness, size, intensity and modest shear. The appropriate range matters. Treating a transformation as valid gives the classifier evidence that the transformed input belongs to the same category. That evidence is useful to the extent that the assumption holds for the particular task. [ImageNet Classification with Deep Convolutional Neural Networks](https://md.research.elamur.ai/free/en/papers/krizhevsky-2012-imagenet-classification-deep-convolutional/)

This approach puts prior knowledge into the training data. It can be easier to create examples that illustrate an invariance than to enforce that invariance in the classifier’s structure. It also applies when the original training set is already substantial. For this paper, the important question is how the set of available transformations is determined. A fixed geometric operation applies a specified change to an image. A learned generator can look at the image first and produce a variation whose details depend on that image. The training collection then supplies examples of permissible variation that would be difficult to describe as a short list of geometric operations.

The authors cite earlier work that learns augmentation separately for each class. A class-specific procedure can exploit a collection of examples of that class to estimate how its members vary. One-shot recognition presents a different problem. A new class comes with a single labeled example, so direct evidence about within-class variation is missing at the point of use. The proposed alternative is to learn from multiple source classes together. The source classes can teach the generator what a plausible change looks like, and the target image can tell it what that change should be applied to.

#### What can transfer when the categories change

The paper treats one-shot recognition as a case of dataset shift, meaning that some part of the data distribution changes between training and use. Here the change concerns the set of class labels itself. In the idealized one-shot setup described by the authors, the source and target label sets are disjoint. A class that could be drawn in the source is absent from the target, and classes that appear in the target were absent from the source. Memorizing the source labels and their visual prototypes would therefore address the wrong recognition problem.

The paper’s graphical account distinguishes a class label, an underlying representation and an observed image. Changing which classes are present changes what underlying representations occur. The account assumes that the process that turns a representation into an image can stay stable across the shift. For handwriting, the intuition is that the inventory of symbols can change while some of the ways people render symbols still recur. This is an assumption about what is transferable. The experimental question is whether the generator learns enough of that shared structure to help when it sees a different inventory.

The distinction also gives precise meanings to *source* and *target*. The source supplies examples from which the generator can learn how images within the same class tend to differ. The target supplies the question the classification system must eventually answer. A labeled target image can be rare even when source data are plentiful. The paper uses *meta-learning* for the broader arrangement in which experience on source problems teaches a procedure that can then be applied to a different target problem. Learning how to supply additional examples is one such procedure.

The authors illustrate the motivation with a drawing of class manifolds. A manifold in this explanation is the set of plausible examples a class can occupy as its appearance varies. The drawing puts a query closer to an isolated example of one class, while the query lies closer to the region occupied by another class. If each class has only a single visible representative, a nearest-neighbor rule can favor the wrong class. Adding plausible points around the labeled representatives gives the rule a chance to approximate a comparison with the regions themselves.

The drawing connects the proposal to work on tangent distances, where known invariances inform how examples are compared. Here the class regions are suggested by a learned generator. The illustration also makes the risk apparent. A generated point that extends the region in a helpful direction can reveal a match that the original example hides. A generated point that drifts toward a different class can attract the wrong query. The value of the method depends on which directions it makes available and on how the classifier uses the resulting points.

#### Generating examples and learning comparisons

The authors build on generative adversarial training. In an ordinary GAN, a generator produces candidates and a discriminator learns to distinguish generated data from real data. The generator learns through the challenge posed by that discriminator. Convolutional GAN work applies the approach to image representations. The paper also draws on changes to adversarial optimization that aim to make training more reliable, including the Wasserstein formulation. [Generative Adversarial Nets](https://md.research.elamur.ai/free/en/papers/goodfellow-2014-generative-adversarial-nets/) · [Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks](https://md.research.elamur.ai/free/en/papers/radford-2015-unsupervised-representation-learning-deep-convolutional/) · [Wasserstein GAN](https://md.research.elamur.ai/free/en/papers/arjovsky-2017-wasserstein-gan/)

The paper describes several earlier routes to recognizing categories with very few examples. Hierarchical approaches let classes share statistical information. Conditional generative approaches learn how to produce plausible observations using limited evidence. Siamese networks learn to compare pairs of examples. Metrics, kernels and memory-based methods offer ways to turn a small labeled collection into a classifier. This context matters because generating examples and learning how to compare examples are both available strategies. The authors put them together by training on within-class variation and making the resulting generated images available to a learned comparison procedure.

Matching Networks are the comparison procedure they focus on. A support set is the small labeled collection available for a classification task. A Matching Network learns a space in which it can compare a query image with the members of that set, then uses those comparisons to predict a label. Training simulates the eventual task through episodes sampled from source classes. The augmentation proposal gives the procedure access to several appearances associated with a support item. It also introduces a question about selection. A plausible variant may be useful for one query and redundant for another, so there is a reason to learn which part of the generator’s range to use. [Matching Networks for One Shot Learning](https://md.research.elamur.ai/free/en/papers/vinyals-2016-matching-networks-one-shot-learning/)

### The method, step by step

#### Start from a real image and ask for a companion

The basic training unit is a pair. The authors pick a real source image to serve as the seed. A second real image from the same class is an example of a valid companion. The generator receives the seed and a random input and produces its own candidate companion. The critic sees the seed in either case. Its task is to score the pair in a way that separates pairs drawn from the source data from pairs completed by the generator.

Consider a source class containing several drawings of a character. A real companion can differ from the seed in stroke shape or placement while remaining an instance of that character. The critic can inspect both images to learn what such a relationship looks like across the source collection. The generator has to learn to produce a plausible image in the presence of that comparison. The same procedure is repeated with seeds of other classes, giving the generator training signals from multiple kinds of within-class variation.

The real pairs make the class relationship available during training. The label determines which images can be paired, but the networks receive images. Thus the generator can be used with a target image whose class name never occurred in source training. The downstream experimental procedure assigns the generated example the seed’s class when it uses it to augment a classifier or the support set. The plausibility of that assignment is something the learned generator and the downstream test have to earn.

From source image pairs to target augmentation The steps in order.

#### From a random draw to a conditional image

The paper first describes a generator without an image input. Its source observations form a dataset.

```
D = {x₁, x₂, …, xₙᴅ}
```

Here `D` is the collection of observed examples, and each `x` with a subscript is one observed data vector. The successive subscripts index the observations. The ellipsis continues the sequence through the final observation, whose index is the dataset size, written `Nᴅ` in the paper and represented by the terminal subscript `ₙᴅ` in the formula. The braces enclose the collection.

A random vector supplies the variation in what the generator can produce.

```
z ∼ N(0, I)
```

Here `z` is the random input vector, and `∼` means it is drawn from the distribution on the right. `N` denotes a Gaussian distribution. `0` is its zero mean vector, and `I` is the identity covariance matrix, so its coordinates have unit variance and are independent. The Gaussian provides a space from which the generator can draw different inputs. The generator’s learned mapping determines the visual effect of moving around in that space.

```
v = f(z)
```

Here `v` is the generated data vector, `f` is the neural network that produces it, and `z` is the draw supplied to that network. The equality defines `v` as the network’s output. The generated vectors should collectively resemble the observations in `D`. The paper uses the image of a manifold to explain this. A particular input, such as the zero vector, maps to a point in the generated space of observations, and changes in the input trace out different points. The mapping can produce a complicated set of images even though the inputs are drawn from a simple distribution.

For augmentation the generator has an additional input. An encoder first turns a seed image into a representation.

```
r = g(x)
```

Here `x` is the real input image, `g` is the encoder, and `r` is the encoded representation. The equality defines the information supplied by the seed to the rest of the generator. The encoder’s output at its narrowest part is called the bottleneck. The generator also has routes that carry information around this narrow part, so the formula gives the conceptual dependency and the architecture supplies the details of how information gets through.

The paper then gives a conditional generation equation. Its notation uses `x` again for the output in that equation. The following form uses `v` for the generated image to keep the seed and the result distinct.

```
v = f(z, r)
```

Here `v` is a generated companion image, `f` is the decoder in this description, `z` is a Gaussian draw as before, and `r` is the representation derived from the seed. The comma separates the inputs to `f`, which receives information from both. Keeping the seed fixed and drawing new values of `z` can yield a succession of candidates associated with the same labeled image. The paper’s argument is that the adversarial training procedure can make those candidates look like legitimate alternatives within the seed’s class.

The source label enters through the test for a real pair.

```
tᵢ = tⱼ
```

Here `i` indexes the seed image and `j` indexes the real companion. `tᵢ` and `tⱼ` are the class labels of those images. Equality is the condition that allows the real images to be paired for the critic. For the generated pair, the first member is again the seed and the second is the current generator’s output for that seed. The critic’s comparison is therefore between two ways of completing a pair with a given first member.

#### How the critic shapes what gets generated

The improved Wasserstein GAN procedure gives the critic a score from which the generator gets a training signal. The critic is trained to distinguish the distribution of real pairs from the distribution of generated pairs. The generator is trained to reduce that discrepancy as measured through the Wasserstein approach. The paper describes this objective and the critic’s inputs in words. Its displayed equations define the sampling and generation process.

Conditioning the critic on the seed is important because a generated image can look realistic while having an inappropriate relationship to that seed. For instance, a sharp image of a different character might look plausible in isolation. It is a poor companion for the input character. By holding the first member of the pair fixed, the training procedure gives the critic access to evidence relevant to the relationship as well as to the appearance of the candidate.

The same design supplies a reason for the generator to do more than reproduce the input. When the critic sees real pairs consisting of separate examples, it can learn that legitimate companions frequently differ from the seed. A generator that makes a copy can be exposed by that pattern. This is the authors’ rationale for the conditioning design. Its success depends on what the critic learns from the real comparisons and what the generator learns from its feedback.

Label use is deliberately limited to pair construction. Labels let the training procedure select legitimate companions. The generator learns from those selections across many classes, with the image itself as the source of class-specific evidence. In the dataset-shift diagram, the class label is `t`, the latent representation is `R`, and the observation is `X`. The diagram expresses the assumption about what can stay stable in conditional distribution notation.

```
P(X | R)
```

Here `P` denotes the distribution, `X` is the observed image variable, and `R` is the underlying representation variable in the diagram. The vertical bar reads “given.” This is the conditional law for images given a representation. It describes the proposed stability across domains as the class distribution changes. The diagram’s `R` belongs to that account of the data, while `r` in the generator equation is the representation computed by its encoder.

#### The image generator and the critic

The generator used for the main experiments combines a U-shaped encoder and decoder with residual-style connections. The authors call it UResNet. The encoder reduces spatial resolution as it processes the seed, and the decoder increases it to construct the output image. Connections between corresponding resolutions give the decoder access to information from earlier stages. Residual-style paths within the architecture provide shorter routes for information and gradients across blocks. The design draws on the approach described in [Deep Residual Learning for Image Recognition](https://md.research.elamur.ai/free/en/papers/he-2015-deep-residual-learning-image-recognition/).

The main architecture has 8 blocks. The paper describes each block as having 4 convolutional layers followed by a change in resolution. A convolution applies learned filters across the image or the features computed from it. The early blocks downscale, and the later blocks upscale. Inside the blocks, leaky rectified linear activations retain a small response for negative inputs. Batch renormalization adjusts activations while addressing dependence on the batch used to calculate the normalization.

In the main description, downscaling uses a convolution of stride 2, followed by a leaky rectifier, batch normalization and dropout. Stride describes how far the filter moves between successive spatial positions. For upscaling, the authors describe stride 1/2 replication, followed by convolution, the activation, batch renormalization and dropout. Replication enlarges the spatial grid before the convolution processes it. The bypass between blocks uses a strided 1x1 convolution in the main description. The appendix gives pseudocode for projection paths, spatial resizing and the passage of recent layer outputs into a block’s next computation.

At the bottleneck, the generator projects the random vector to dimensions compatible with the encoded features, then concatenates them. Concatenation places the features side by side so that the later layers can use both. The appendix describes a 100-dimensional draw for this random input. At this stage the image has already passed through the encoder, while the noise enters before decoding. This puts the visual information from the seed and the input controlling variation together where the decoder can use them.

The generator for the Omniglot and EMNIST experiments uses 64 filters per layer. The face generator uses 64 filters in the first 2 encoder blocks and the last 2 decoder blocks. The last 2 encoder blocks and first 2 decoder blocks use 128 filters. This allocates more channels around the bottleneck of the face generator. The rest of the method still assigns its two inputs the same roles. The source image supplies the conditioning information, and the random input makes different outputs possible for that image.

The critic is a DenseNet, a convolutional architecture built around densely connected blocks. Its design has 4 dense blocks and 4 transition layers. Each dense block contains 4 convolutional layers, and its growth rate is 64. Here the growth rate describes the addition of feature channels within a dense block. The authors put dropout at the last convolution of each dense block, reporting that this improved sample quality in their development of the critic.

The critic uses layer normalization in place of batch normalization because the authors say batch normalization would violate assumptions of the Wasserstein objective. The practical distinction for this setup is that the critic scores examples whose meaning is defined by the images in a pair. A score that also depends on the composition of the surrounding batch would introduce a dependency the chosen objective is intended to avoid. The paper reports training each DAGAN for 500 epochs, with an Adam learning rate of 0.0001 and moment settings of β₁ = 0 and β₂ = 0.9. The β settings govern how Adam carries forward estimates used in its parameter updates.

#### Using generated images in ordinary classification

In the ordinary classifier experiments, the generator produces additional training images starting from labeled examples. The classifier is another DenseNet, with 4 dense blocks, 4 transition layers and a growth rate of 64. Its dense blocks each contain 3 convolutional layers. The paper describes 17 layers in total, including the final softmax layer, which turns output scores into a distribution over classes. Dropout is set to 0.5 at the final convolution of each dense block.

Both versions of the classifier use conventional augmentation. The authors add Gaussian noise with 50% probability, shift images along the horizontal and vertical axes with 50% probability, and choose among the specified 90 degree rotations with equal probability. In the DAGAN condition, generated images supplement the standard procedure. The classifier also receives an indicator of whether an image is real or generated, allowing it to respond differently to those sources of evidence.

The number of generated samples per real example is a choice in the classifier procedure. The authors report exploring a range of 1-10 and using validation-domain performance to choose the setting. The generator produces the candidates, while the classified examples and their source indicators determine what the classifier learns from them. Classifier training lasts 200 epochs with Adam, a learning rate of 0.001 and moment settings of β₁ = 0.9 and β₂ = 0.99.

This use of DAGAN and the earlier adversarial training have different objectives. The critic teaches the generator to produce convincing within-class pairs in the source domain. The ordinary classifier learns to predict class labels, using the generated examples as additional evidence. A convincing pair may still be redundant for classification, and the real/generated indicator gives the classifier one way of taking the provenance of its input into account.

#### Using generated images in one-shot classification

The one-shot pipeline starts with a DAGAN trained on the source domain. Then the Matching Network is trained on source-domain episodes. Each episode presents a small classification task, with a support set of labeled examples and examples to classify using that support set. The authors use 20 classes and one real support image per class per episode. The comparison network learns a representation space in which attention to the support examples can be used to assign the query’s label.

In the augmented procedure, a sample-selector network chooses the generator input used to create a companion. The generator’s random-input space becomes a space in which the selector can seek a useful example for comparison. This addresses a different question from whether a random draw produces an acceptable image. For classification, an especially useful variant is one that helps the comparison procedure handle the current task. A seed already close to the query may need little help. When the seed and query differ in appearance, an appropriate companion can expose their similarity.

The authors describe the choice of generator input and the later comparison as differentiable. The classification procedure can therefore supply a training signal for the sample selector through the generated image. The paper specifies that the DAGAN is trained first, followed by training of the Matching Network and selector on source tasks. It describes selecting the best-performing combination on the validation domain and applying that combination to the target domain.

The Matching Network runs without full-context embedding. In the augmented episodes, generated images are stacked with the original support image, so the extra candidates contribute to the comparison for an existing support case. The reported ratio of generated to real images ranges from 0 to 2. The conventional augmentations are part of both the ordinary and DAGAN-assisted configurations of the episodic experiment. The original support image remains the real evidence for its class, and the companions add information inferred from source-domain training.

The paper presents the selector as a way to reduce the need for a large collection of generated points. The manifold illustration motivates this choice. Many directions away from an image may be plausible, while a given query makes only some directions relevant. The selector is meant to provide a useful comparator within that range. Its contribution is evaluated as part of the augmented Matching Network, which makes the classification results evidence about the pipeline as used.

### Experiments and results

#### What the splits are designed to test

The experiments use Omniglot, EMNIST and VGG-Face. For each dataset the authors distinguish a source domain, a validation domain and a target test domain by assigning classes to those roles after shuffling. A class split asks whether the procedure carries over to categories held out from the stage that learns augmentation. A separate split of the images within each class asks whether a trained classifier works on examples it has yet to see. The paper uses both levels of separation, and their roles differ between ordinary classification and episodic one-shot classification.

For the ordinary classifiers, the paper describes reserving 2 test cases and 3 validation cases per class, with training counts varied across experiments. The example split is randomized across runs. Classifier training uses training cases from classes across the domains, including the target, and reported test accuracy concerns only the held-out target-domain test cases. This setup gives the classifier labeled target examples from which to learn its output categories. The generator’s transfer is tested by whether it can supply useful companions for target classes that were outside its source training.

For the one-shot procedure, source classes supply episodes for learning the comparison procedure, the validation domain supplies episodes for choosing the configuration, and target classes supply the final evaluation. The paper again describes 2 test cases per target class. The experiment specifies one real labeled support example per class per episode. This makes the one-shot result a test of how the learned comparison procedure uses a very small support set, with the generator supplying some of the variation that would otherwise require more real examples.

For Omniglot, the authors shuffle the classes so that the domains include characters from different alphabets. The paper assigns the first 1200 to the source and gives the intervals 1201-1412 for validation and 1412-1623 for target testing. For EMNIST, the reported shuffled intervals are 0-34 for source, 35-42 for validation and 42-47 for test. The authors say that they restrict EMNIST to a subset of 100 examples per class to create a low-data task. The printed boundary values and the relationship between this cap and the experiment at the largest training count leave some details of the splits ambiguous.

For VGG-Face, the paper says that the authors select 100 images per eligible identity, retaining 2396 classes from the full 2622. The first 1802 classes after shuffling form the source domain. The reported target interval is 1803-2300, and the reported validation interval is 2300-2396. Face generation is learned from the VGG-Face source identities. Omniglot also supplies its own source generator, and that generator is reused for EMNIST. The EMNIST experiment therefore tests whether representations of useful image variation transfer across datasets as well as across class sets.

#### Ordinary classifiers on handwriting

The metric is test accuracy, the fraction of target test images assigned the correct class. The source tables express the results as fractions, and those fractions are retained here. The reported ordinary-classifier results are means over 5 independent runs. The standard condition already uses the geometric and noise augmentations described in the method. The DAGAN condition adds generated images and the indicator that identifies them as generated.

Omniglot ordinary classifiers by real training images per class and target test accuracy DAGAN improves accuracy at each training count, with the clearest gain at the sparsest setting.

**The numbers**

| System or setting | accuracy (fraction) |
| --- | --- |
| Standard, 5 images per class | 0.689904 |
| DAGAN, 5 images per class (this paper) | 0.821314 |
| Standard, 10 images per class | 0.794071 |
| DAGAN, 10 images per class | 0.862179 |
| Standard, 15 images per class | 0.819712 |
| DAGAN, 15 images per class | 0.874199 |

On Omniglot, the accuracy of the standard classifier rises as the number of real training images increases. DAGAN improves the result within each training count. The smallest real training set shows the most pronounced separation. At the larger counts, generated images still improve average test accuracy, alongside the improvement from having more real data. The rounded figures in the abstract, 69% and 82%, refer to the most data-sparse Omniglot comparison. The chart uses the corresponding entries from the detailed results.

For EMNIST, the ordinary classifier with 15 real examples per class has target test accuracy of 0.739353 with standard augmentation and 0.760701 with DAGAN. At 25 per class, the scores are 0.783539 and 0.802598. At 50 they are 0.815055 and 0.827832. At the reported 100 setting they are 0.837787 and 0.848009. The pattern is consistent across the reported counts, although the separation is less striking than in the sparsest Omniglot experiment.

The provenance of the EMNIST generator makes those gains informative. The EMNIST classifier is learning EMNIST categories from labeled EMNIST training images. The generator supplying additional images learned its variation from Omniglot. The improvement therefore concerns the transfer of the augmentation procedure. It shows that useful variations can survive the move between these handwriting collections with a classifier trained for the destination task.

#### Ordinary classifiers on faces

VGG-Face uses a generator trained on source identities from the same dataset as the target identities. The ordinary classifier experiment asks whether generated companions can help it learn the identities represented in its labeled training cases. The baseline and augmented classifier use the same real training counts within each comparison.

VGG-Face ordinary classifiers by real training images per identity and target test accuracy DAGAN helps most at the sparsest setting, where both classifiers have low accuracy.

**The numbers**

| System or setting | accuracy (fraction) |
| --- | --- |
| Standard, 5 images per identity | 0.0446948 |
| DAGAN, 5 images per identity (this paper) | 0.125969 |
| Standard, 15 images per identity | 0.39329 |
| DAGAN, 15 images per identity | 0.429385 |
| Standard, 25 images per identity | 0.579942 |
| DAGAN, 25 images per identity | 0.584666 |

The face classifier depends strongly on the number of real images available for each identity. With 5 images, adding generated examples produces a visible improvement over the standard system, yet both scores indicate frequent errors. At 15 and 25 images, the systems have higher accuracy, and their scores are closer. The result supports the practical benefit of the augmentation for this classifier in the lowest-data setting tested. It also gives a reason to keep the absolute accuracies in view when describing the size of that benefit.

The paper illustrates the face generator with images drawn from an interpolation through its generation space. The image in the upper left of each displayed group is the real seed. The other images are generated from it. Moving through the latent inputs lets the reader inspect a succession of outputs derived from the same image. The display illustrates the generator’s range in selected examples, while the classifier results test whether generated data can improve recognition on held-out images.

#### One-shot comparison on Omniglot

The Omniglot one-shot table reports accuracy for pixel comparisons, learned comparisons, and several systems taken from prior work. Its caption describes results averaged over 3 independent runs. For judging the effect of adding DAGAN to Matching Networks, the authors’ own implementation gives the most direct baseline. Its accuracy is 0.969, compared with 0.938 for the earlier Matching Networks result listed in the table. Adding DAGAN to the local implementation gives 0.974.

Omniglot one-shot target test accuracy with and without DAGAN companions Generated companions improve both comparison methods, with a larger gain for raw pixel distance.

**The numbers**

| System or setting | accuracy (fraction) |
| --- | --- |
| Pixel distance | 0.267 |
| Pixel distance with DAGAN (this paper) | 0.60515 |
| Matching Networks, local reproduction | 0.969 |
| Matching Networks with DAGAN | 0.974 |

Pixel distance is a deliberately simple way to find the nearest support example. The comparison works directly from image values. When the support set has very few real examples, an ordinary difference in the appearance of a class can give its query a poor match. The augmented set expands the choices available to the comparison. The authors report an improvement of 33.815% for this contrast. Accuracy with augmented pixel distance remains below the learned Matching Networks result, so the table shows benefits both from the comparison space and from generated candidates, at different operating points.

With Matching Networks, the authors describe the improvement as 0.5%, from 96.9% to 97.4%. Their local reproduction is already stronger than the original figure they list, which is why the local comparison matters. Against the other reported systems, the augmented score is close to Conv. ARC at 0.975. The authors point out that Conv. ARC uses prior knowledge about the pen strokes from which the data are built. The raw table entries put the two procedures close together and give Conv. ARC the higher value.

The table also gives 0.931 for the Neural Statistician and 0.96 for Prototypical Networks. The Siam-I and Siam-II entries are 0.884 and 0.92. The two GR variants score 0.936 for GR + Siam-I and 0.912 for GR + Siam-II, while SRPN has 0.948. These comparisons locate the reported result among the approaches the authors discuss. The paired local comparison measures the change associated with switching to the DAGAN-augmented procedure under the paper’s experimental choices.

#### One-shot transfer to EMNIST and the face result

For the EMNIST one-shot experiment, the baseline Matching Network is trained on EMNIST and has test accuracy of 59.5%. With companions made by the Omniglot DAGAN, it reaches 61.3%. The authors report the change as 1.8%, with averages over 3 runs. As in ordinary classification, the component being transferred from Omniglot is the generator. The comparison system learns how to use the available examples on EMNIST tasks.

The EMNIST and Omniglot scores also show why effects should be read against their own controls. The Omniglot comparison already has a high-performing local baseline. The EMNIST experiment begins at a different baseline accuracy and uses a generator learned on another dataset. Each experiment gives evidence about the utility of companions in its own setting. The gap between their baselines also reflects differences in the tasks and gives no isolated measurement of the cost of transferring the generator.

The face experiment gives a different outcome in one-shot recognition. The paper reports the same performance for Matching Networks with and without DAGAN and supplies no numerical accuracy for that comparison. The face generator had helped the ordinary classifier, so the two face experiments establish different results for two ways of using generated examples. Ordinary classification learns from the generated data over training. Matching Networks depend on whether their comparison space can make effective use of the augmented support examples during an episode.

The authors observe that the face baseline also behaved differently during training. They report that it did not overfit in the way the Omniglot and EMNIST Matching Networks did. They suggest that the face comparison network may have lacked the capacity to discriminate identities effectively. It uses 4 convolutional layers with 64 filters each. The observation gives a possible explanation for the unchanged result. The paper leaves a larger embedding as a subject for a further experiment.

### What the ablations show

#### Architecture changes the visible range of generations

The paper offers architecture comparisons, qualitative checks and paired tests of augmentation. It does not report a component-by-component ablation of the full pipeline. These forms of evidence answer different questions. A paired accuracy comparison asks whether adding a procedure helped in a particular setting. A visual comparison can reveal differences in the generated images. To credit a particular internal mechanism for an accuracy gain requires comparisons that isolate that mechanism.

For Omniglot, the authors trained generators using standard VGG, U-Net and residual-inspired architectures. They show examples from different architectures and describe improving variability as the generator becomes more capable. UResNet is their preferred architecture for the main experiments. The visual comparison supports the choice at the level of output behavior. With the architectures grouped as complete systems, the paper gives no separate estimate of the contribution of the within-block connections, the cross-resolution connections or the number of filters.

The face interpolation gives another view of generated variety. A real seed is held fixed while the generation input moves through an interpolated part of the latent space. The display shows that a collection of distinct images can come from one source image. A run of plausible-looking companions illustrates what the authors want the generator to do. The paper uses recognition experiments to assess utility and supplies no separate identity check for all images along the displayed paths.

#### What the ordinary classifier comparison isolates

The ordinary classifier baseline includes standard image augmentation, and the DAGAN condition builds on it. This makes the comparison more informative than one between any augmentation and a bare training set. Its strongest conclusion is that the complete DAGAN training-data procedure improved the reported mean test accuracy after conventional augmentation in the tested settings. The comparisons cover more than one real training count, so the result recurs at different levels of scarcity.

Across the ordinary classifier results, the gains are clearest in some of the sparsest settings, particularly the smallest Omniglot and VGG-Face ones. This is consistent with the proposed role of generated companions. When few real images describe a class, another plausible appearance can fill a larger gap in what the classifier observes. The pattern comes from a set of training-size comparisons. It does not measure how much of the benefit is due to covering genuinely new variation and how much comes from changing the balance or presentation of training examples.

The authors describe the real/generated indicator as crucial for getting the most from the generated data. It gives the classifier a way to respond to features that may be less trustworthy in synthetic images. The reported table compares conventional augmentation with the complete augmented setting, which includes the indicator. The authors give no corresponding test accuracies for turning off the indicator while leaving generation and the training schedule in place. The claim about its importance is therefore a development observation alongside the quantitative evidence for the combined procedure.

The authors also report trying different counts of generated samples per real sample and choosing by validation performance. This establishes that the reported test scores use a selected augmentation setting. The paper does not give the test or validation curve for the tried rates. The resulting evidence is about the chosen recipe at each reported experimental condition. It leaves open how sensitive those conditions were to the amount of generated data.

#### What the one-shot controls add

The pixel-distance comparison shows that augmentation can help in the absence of a learned matching space. It places more candidate appearances into the comparison set and leaves the underlying distance in pixel space. Its gain on Omniglot is consistent with the manifold illustration, where extra examples can bring a correct class closer to the query. The experiment measures classification accuracy. It gives no direct estimate of the true manifold or of how closely the generated candidates approximate it.

The Matching Networks comparison asks whether augmentation helps after a useful representation has already been learned. The authors’ local baseline provides a strong control because the paper reports that it performs better than the original Matching Networks figure used for context. The difference between the two local settings shows a gain even at that high baseline. The augmented setting changes the contents of the support representation and trains with those contents in the episodes. The reported scores measure that package, including the selector, and give no isolated estimate of choosing the generation inputs versus drawing them at random under otherwise identical settings.

EMNIST adds a check on a different part of the argument. A generator trained on Omniglot can improve accuracy when its output is used by an EMNIST classifier, including in the episodic setup. The generator therefore has some useful behavior outside the corpus from which it learned. The experiment holds the transfer direction to Omniglot as source and EMNIST as target. It gives no comparison with the reverse direction or with a same-dataset EMNIST generator.

Finally, the VGG-Face result separates image generation from utility in a comparison system. Generated face images help the ordinary classifier in the reported settings. The paper reports no improvement in the Matching Network experiment. Both statements can hold because the systems make different demands on the generated examples and on their own image representations. The authors’ explanation about embedding capacity fits their training observation, but there is no capacity ablation to establish its role.

### Limitations

#### Limits identified by the authors

The authors’ explicit qualification is clearest in the face one-shot experiment. They say that the comparison architecture may have been too limited for faces and that experiments with larger embeddings are needed to evaluate DAGAN more fully in that setting. The observed behavior is compatible with that explanation. It also leaves room for other explanations involving the images the generator supplies and the way those images are incorporated in a support case. The reported evidence establishes an unchanged one-shot result for the implementation tested.

The transfer proposal also rests on a condition the authors state in their treatment of dataset shift. Source and target classes can have entirely different labels, but the domains need to share relevant properties of within-class variation. A generator trained on source classes may learn changes that are helpful when applied to new classes. That possibility follows from the assumed commonality. The experiment determines whether the assumption is productive for the particular source and target. The paper demonstrates this across Omniglot and EMNIST and within class splits of Omniglot and VGG-Face.

The authors describe the code in future terms. The appendix supplies generator pseudocode and says that the full implementation will be made available on acceptance. The paper therefore documents the approach through its architecture, procedure and pseudocode, with some implementation details left to that promised release.

#### What the evaluation leaves open

The ordinary-classifier procedure demonstrates augmentation of unseen classes by the generator. It trains the ordinary classifier itself on labeled cases from all domains, and reports test performance on held-out cases in the target domain. The episodic procedure provides a different test, applying a source-trained comparison procedure to new target categories with labeled support. Both are relevant to limited-data recognition. Their scores answer distinct questions about which components must generalize without having trained on examples from the target categories.

Some details of the data accounting are ambiguous. The printed Omniglot intervals place 1412 at both the validation and test boundary. The EMNIST intervals do the same with 42, and the VGG-Face intervals repeat 2300. These could be endpoint conventions or reporting errors. The printed intervals alone do not establish whether the implemented splits shared any classes. The paper also describes an EMNIST subset of 100 cases per class, separate validation and test reservations, and an ordinary-classification setting reported as 100 training samples per class. It gives no reconciliation of those counts. They should be read as reported settings rather than as a complete prescription for reconstructing the splits.

The means help readers see consistent directions of change across settings, but the paper gives no dispersion estimates or run-level outcomes for those results. For example, the VGG-Face ordinary classifier results with 25 examples per identity are 0.579942 and 0.584666. Their ordering establishes the direction of the reported averages. The precision of the decimal entries supplies no estimate of how reproducible the ordering is across repeated splits. The narrower comparisons deserve that qualification, particularly when interpreting near ties.

Headline descriptions of the one-shot result also need to be read alongside the comparison table. The paper talks about advancing the state of the art, while the Omniglot table reports 0.974 for DAGAN-assisted Matching Networks and 0.975 for Conv. ARC. The supported claim is that augmentation improves the authors’ local Matching Network and brings it close to the reported Conv. ARC result. The table and the authors’ comment about pen-stroke knowledge give context for the comparison, while the paper provides no uncertainty estimates for declaring one of these close scores better in a statistical sense.

The critic is a mechanism for learning plausible pair relationships, and the classification experiments assess the usefulness of its generator in aggregate. Individual generated images receive labels through association with their seeds. The paper reports no direct label-fidelity audit across classes and no quantitative measure of how much distinct within-class variation the images cover. A collection can help a classifier even if it contains some repetitions or mistakes. Similarly, a visually varied display gives only a partial view of the distribution the generator produces.

The comparisons concern image classification in the reported datasets and training regimes. They establish a cross-dataset example among handwritten characters and a more difficult face example with different outcomes for ordinary and episodic classification. A face generator trained on face identities does not constitute a test of handwriting-to-face transfer. The experiments also leave open how much of the strongest gain would survive changes to the backbone, the conventional augmentation recipe or the choice of generated samples.

A reader implementing the architecture would encounter some differences between the main description and the appendix. The main text specifies a strided 1x1 bypass convolution and describes normalization and dropout around changes in resolution. The appendix gives projection and resizing routines with some different details, including a projection routine that uses a filter size of 3 and an upscaling routine with no explicit dropout step. These are differences in the written specifications. The reported experiment scores cannot resolve which detail should be followed for an exact reproduction.

Taken together, the experiments establish the utility of a trained augmentation system in several settings. The causal evidence is strongest at the level of the complete procedure added to a baseline. Claims about the exact source of the advantage, the fidelity of any given generated image, or the expected performance under a new domain shift require evidence beyond the comparisons reported here.

### What came after

The later papers citing DAGAN place related questions in several settings. Their titles establish the directions described below. The citation relationships establish that those works cite the paper. They give no basis for attributing particular mechanisms or results from DAGAN to the later experiments.

#### Generating additional training examples for dialogue

Sequence-to-Sequence Data Augmentation for Dialogue Language Understanding puts data augmentation in a sequence task. The title identifies both the form of the procedure and the downstream task, [natural language understanding](https://md.research.elamur.ai/free/en/concepts/natural-language-understanding/) for dialogue. With DAGAN, the input and output of augmentation are images and the intended preservation concerns an image class. In a sequence task, both the object being transformed and the condition under which it remains useful for training are different. The common research question is how an augmentation procedure can increase the variety of the data available for a specific prediction task. The citation does not establish that the dialogue method uses adversarial pair training or transfers a generator to unseen classes. [Sequence-to-Sequence Data Augmentation for Dialogue Language Understanding](https://md.research.elamur.ai/free/en/papers/hou-2018-sequence-sequence-data-augmentation-dialogue/)

#### A different goal for few-shot adversarial generation

Few-Shot Adversarial Learning of Realistic Neural Talking Head Models brings limited examples and adversarial learning together in a task concerned with realistic talking heads. Its title makes the shift in goal clear. DAGAN generates candidate images whose contribution is judged through recognition on other images. The talking-head work names realistic generation as the task itself. The connection is the use of prior learning to make generation possible from sparse evidence. The citation gives no basis for attributing DAGAN’s same-class critic, classifier training procedure or sample selector to the talking-head method. [Few-Shot Adversarial Learning of Realistic Neural Talking Head Models](https://md.research.elamur.ai/free/en/papers/zakharov-2019-few-shot-adversarial-learning-realistic/)

#### Generalization as a separate question from robustness

Disentangling Adversarial Robustness and Generalization names a distinction relevant to how the DAGAN results are read. DAGAN uses an adversarial objective to train a generator, and its main quantitative evidence is recognition accuracy on held-out cases. In the later title, adversarial robustness is itself the property under investigation, alongside generalization. The connection is a question about what happens to a classifier when images vary, with different roles for the word *adversarial*. DAGAN’s classification experiments measure ordinary held-out accuracy. They give no adversarial robustness result of the kind named by the later work. [Disentangling Adversarial Robustness and Generalization](https://md.research.elamur.ai/free/en/papers/stutz-2019-disentangling-adversarial-robustness-generalization/)

#### Automating the choice of augmentation

RandAugment takes automated data augmentation as its subject and emphasizes a reduced search space. The relationship to DAGAN is clearest at the level of the design problem. Both address how a training pipeline obtains useful image variations when augmentation is treated as something to be selected or learned. DAGAN learns an image-conditioned generator from same-class source pairs, then uses validation and, in the one-shot system, learned selection to determine how generated examples contribute. RandAugment’s title places the emphasis on making the search for augmentations practical by reducing the space of choices. The citation connects two approaches to automation while leaving their specific experimental relationship unspecified. RandAugment: Practical Automated Data Augmentation with a Reduced Search Space

These works cite DAGAN in connection with distinct research problems, from supplying training material to generating an output with limited examples or studying a classifier’s behavior under variation. DAGAN’s contribution within that broader set of questions is the experiment with learned, image-conditioned companions. Its results show that a source-trained generator can give a classifier useful evidence about a category from a single seed, while the face one-shot comparison shows how much that usefulness can depend on the system that receives the generated images.

## Cite

Cite as Antreas Antoniou, Amos Storkey and Harrison S. Edwards. 2017. Data Augmentation Generative Adversarial Networks. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1711.04340](https://doi.org/10.48550/arxiv.1711.04340) · [arXiv 1711.04340](https://arxiv.org/abs/1711.04340)

```bibtex
@misc{antoniou2017data,
  title = {{Data Augmentation Generative Adversarial Networks}},
  author = {Antreas Antoniou, Amos Storkey and Harrison S. Edwards},
  year = {2017},
  doi = {10.48550/arxiv.1711.04340},
  eprint = {1711.04340},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1711.04340}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
