SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1711.04340 · 2017

Data Augmentation Generative Adversarial Networks

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 2 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1711.04340.json · badge: /api/ran/1711.04340.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
AntreasAntoniou/DAGAN community (classifier label)
classifier basis: plan_row
4 ran · 0 no recorded run
amurthy1/dagan community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
FunctionStatusWhere it lives
get_args Ran
ran; our contract draft was wrong, not the code
amurthy1/dagan/utils/parser_util.py
code served (permissive licence) · get_code("a44ccc77617c31fb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import argparse
import sys
from io import StringIO

class Bunch(object):
    def __init__(self, adict):
        self.__dict__.update(adict)

def get_args(dummy=False):
    parser = argparse.ArgumentParser(description='Welcome to GAN-Shot-Learning script')
    parser.add_argument('--batch_size', nargs='?', type=int, default=32, help='batch_size for experiment')
    parser.add_argument('--discriminator_inner_layers', nargs='?', type=int, default=1, help='Number of inner layers per multi layer in the discriminator')
    parser.add_argument('--generator_inner_layers', nargs='?', type=int, default=1, help='Number of inner layers per multi layer in the generator')
    parser.add_argument('--experiment_title', nargs='?', type=str, default='omniglot_dagan_experiment', help='Experiment name')
    parser.add_argument('--continue_from_epoch', nargs='?', type=int, default=-1, help='continue from checkpoint of epoch')
    parser.add_argument('--num_of_gpus', nargs='?', type=int, default=1, help='Number of GPUs to use for training')
    parser.add_argument('--z_dim', nargs='?', type=int, default=100, help='The dimensionality of the z input')
    parser.add_argument('--dropout_rate_value', type=float, default=0.5, help='A dropout rate placeholder or a scalar to use throughout the network')
    parser.add_argument('--num_generations', nargs='?', type=int, default=64, help='The number of samples generated for use in the spherical interpolations at the end of each epoch')
    parser.add_argument('--use_wide_connections', nargs='?', type=str, default='False', help='Whether to use wide connections in discriminator')
    args = parser.parse_args(args=[]) if dummy else parser.parse_args()
    batch_size = args.batch_size
    num_gpus = args.num_of_gpus
    args_dict = vars(args)
    for key in list(args_dict.keys()):
        print(key, args_dict[key])
        if args_dict[key] == 'True':
            args_dict[key] = True
        elif args_dict[key] == 'False':
            args_dict[key] = False
    args = Bunch(args_dict)
    return (batch_size, num_gpus, args)

# Setup to capture print output and avoid argparse errors
old_argv = sys.argv
sys.argv = ['test_script']
old_stdout = sys.stdout
sys.stdout = StringIO()

try:
    result = get_args(dummy=True)
finally:
    sys.stdout = old_stdout
    sys.argv = old_argv

ARGS = {
    'dummy': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
lerp Ran
ran on a synthesized input
AntreasAntoniou/DAGAN/utils/interpolations.py
code served (permissive licence) · get_code("ee023c21ffe38ef3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    "val": 0.5,
    "low": 1.0,
    "high": 10.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
lerp_gaussian Ran
ran on a synthesized input
AntreasAntoniou/DAGAN/utils/interpolations.py
code served (permissive licence) · get_code("2491fa1841f23907")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from scipy.stats import norm

torch.manual_seed(0)

# Analyze the function signature:
# lerp_gaussian(val, low, high)
# The function takes three numeric parameters and performs:
# - norm.cdf(low)
# - norm.cdf(high)
# - lerp(val, low_gau, high_gau) which does: low_gau + (high_gau - low_gau) * val
# - norm.ppf(lerped_gau)

# All parameters are used in arithmetic operations with scalar/array values
# They should be numeric types (float, int, or numpy/torch arrays)

ARGS = {
    "val": 0.5,           # scalar between 0 and 1 for interpolation
    "low": -2.0,          # scalar for lower bound
    "high": 2.0,          # scalar for upper bound
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
remove_duplicates Ran
ran; our contract draft was wrong, not the code
AntreasAntoniou/DAGAN/dagan_architectures.py
code served (permissive licence) · get_code("e73857dab63b5298")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class FeatureLayer:
    def __init__(self, name, tensor):
        self.name = name
        self.tensor = tensor

# Create a list of feature layers with some duplicates
input_features = [
    FeatureLayer("layer1", torch.randn(2, 4)),
    FeatureLayer("layer2", torch.randn(2, 3)),
    FeatureLayer("layer1", torch.randn(2, 4)),  # duplicate name
    FeatureLayer("layer3", torch.randn(2, 5)),
    FeatureLayer("layer2", torch.randn(2, 3)),  # duplicate name
    FeatureLayer("layer4", torch.randn(2, 6)),
]

ARGS = {
    "input_features": input_features
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
slerp Ran
ran on a synthesized input
AntreasAntoniou/DAGAN/utils/interpolations.py
code served (permissive licence) · get_code("9c1b90f679a7f761")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct small vector arguments for slerp
# The function expects val (scalar), low (vector), and high (vector)

val = 0.5

# Create two random unit vectors for low and high
# These should be normalized so arccos can work properly
np.random.seed(0)
low = np.random.randn(4)
low = low / np.linalg.norm(low)

high = np.random.randn(4)
high = high / np.linalg.norm(high)

ARGS = {
    "val": val,
    "low": low,
    "high": high
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 0 later) and 1 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
lerp 1 other paper
1 dated earlier
1609.04468 (2016-09)
Sampling Generative Networks
lerp_gaussian 1 other paper
1 dated earlier
1609.04468 (2016-09)
Sampling Generative Networks
remove_duplicates 1 other paper
1 dated earlier
1609.04468 (2016-09)
Sampling Generative Networks
slerp 1 other paper
1 dated earlier
1609.04468 (2016-09)
Sampling Generative Networks

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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%).

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1711.04340")
get_code_for_paper("1711.04340")
have("1711.04340")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1711.04340.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1711.04340.svg)](https://syntology.ai/paper/1711.04340)

Connect an agent — have() is free.