SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1807.00734 · 2018

The relativistic discriminator: a key element missing from standard GAN

arXiv · PDF · Open in the Atlas

Code that ran

1 of 9 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, 1 violated it and 0 have no contract verdict; 0 failures of our instrument; 8 no recorded run), measured 2026-11-22; 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/1807.00734.json · badge: /api/ran/1807.00734.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
AlexiaJM/RelativisticGAN canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
taki0112/RelativisticGAN-Tensorflow community (classifier label)
classifier basis not recorded on the link
0 ran · 7 no recorded run
copy not recorded community
not in the paper's declared repositories
0 ran · 1 no recorded run
FunctionStatusWhere it lives
strToBool Ran
ran, violated the contract we drafted
AlexiaJM/RelativisticGAN/code/GAN_losses_iter.py
pointer only (licence: NONE) · get_code("9617b12aa6ac6bbe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AlexiaJM/RelativisticGAN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

continue_download Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from jpjuvo/64-3D-RaSGAN
pointer only; the stored copy get_code serves, from jpjuvo/64-3D-RaSGAN, is pointer only (licence: NONE) · get_code("444f08bdefd32bb7")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

conv Not yet run
unverified (harvested, no recorded run)
taki0112/RelativisticGAN-Tensorflow/ops.py
code served (permissive licence) · get_code("0f5619b402c78306")
How it ran

no invocation recorded.

deconv Not yet run
unverified (harvested, no recorded run)
taki0112/RelativisticGAN-Tensorflow/ops.py
code served (permissive licence) · get_code("4700cd22b8033044")
How it ran

no invocation recorded.

flatten Not yet run
unverified (harvested, no recorded run)
taki0112/RelativisticGAN-Tensorflow/ops.py
code served (permissive licence) · get_code("d29bc3068b3eae3f")
How it ran

no invocation recorded.

get_confirm_token Not yet run
unverified (harvested, no recorded run)
taki0112/RelativisticGAN-Tensorflow/download.py
pointer only (licence: MIT); the stored copy get_code serves, from med-air/FedBN, is pointer only (licence: NONE) · get_code("135b3dc835ffe6ad")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from med-air/FedBN, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_cifar10 Not yet run
unverified (harvested, no recorded run)
taki0112/RelativisticGAN-Tensorflow/utils.py
code served (permissive licence) · get_code("66e93b6f5e7a8457")
How it ran

no invocation recorded.

load_data Not yet run
unverified (harvested, no recorded run)
taki0112/RelativisticGAN-Tensorflow/utils.py
code served (permissive licence) · get_code("316a5cc5d22912a0")
How it ran

no invocation recorded.

load_mnist Not yet run
unverified (harvested, no recorded run)
taki0112/RelativisticGAN-Tensorflow/utils.py
code served (permissive licence) · get_code("a5d19dceb0c8a790")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 3 later) and 2 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
get_confirm_token 38 other papers
12 dated earlier, 26 later
1409.8230 (2014-09)
RENOIR - A Dataset for Real Low-Light Image Noise Reduction
1503.03832 (2015-03)
FaceNet: A Unified Embedding for Face Recognition and Clustering
1506.03134 (2015-06)
Pointer Networks
and 35 more not named here
flatten 5 other papers
1 dated earlier, 4 later
1804.04732 (2018-04)
Multimodal Unsupervised Image-to-Image Translation
1812.09912 (2018-12)
Image-to-Image Translation via Group-wise Deep Whitening-and-Coloring Transformation
1905.01723 (2019-05)
Few-Shot Unsupervised Image-to-Image Translation
and 2 more not named here
strToBool 2 other papers
2 later
1910.06922 (2019-10)
Gradient penalty from a maximum margin perspective
2002.01136 (2020-02)
On Positive-Unlabeled Classification in GAN
continue_download 1 other paper
1 dated earlier
1707.09557 (2017-07)
Improved Adversarial Systems for 3D Object Generation and Reconstruction
load_cifar10 1 other paper
1 dated earlier
1805.08318 (2018-05)
Self-Attention Generative Adversarial Networks
load_data 1 other paper
1 dated earlier
1805.08318 (2018-05)
Self-Attention Generative Adversarial Networks
load_mnist 1 other paper
1 dated earlier
1805.08318 (2018-05)
Self-Attention Generative Adversarial 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-22.

Repositories linked to this paper

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

Abstract

In standard generative adversarial network (SGAN), the discriminator estimates the probability that the input data is real. The generator is trained to increase the probability that fake data is real. We argue that it should also simultaneously decrease the probability that real data is real because 1) this would account for a priori knowledge that half of the data in the mini-batch is fake, 2) this would be observed with divergence minimization, and 3) in optimal settings, SGAN would be equivalent to integral probability metric (IPM) GANs. We show that this property can be induced by using a relativistic discriminator which estimate the probability that the given real data is more realistic than a randomly sampled fake data. We also present a variant in which the discriminator estimate the probability that the given real data is more realistic than fake data, on average. We generalize both approaches to non-standard GAN loss functions and we refer to them respectively as Relativistic GANs (RGANs) and Relativistic average GANs (RaGANs). We show that IPM-based GANs are a subset of RGANs which use the identity function. Empirically, we observe that 1) RGANs and RaGANs are significantly more stable and generate higher quality data samples than their non-relativistic counterparts, 2) Standard RaGAN with gradient penalty generate data of better quality than WGAN-GP while only requiring a single discriminator update per generator update (reducing the time taken for reaching the state-of-the-art by 400%), and 3) RaGANs are able to generate plausible high resolutions images (256x256) from a very small sample (N=2011), while GAN and LSGAN cannot; these images are of significantly better quality than the ones generated by WGAN-GP and SGAN with spectral normalization.

For agents

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

get_harvested_code_for_paper("1807.00734")
get_code_for_paper("1807.00734")
have("1807.00734")

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

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

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

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

Connect an agent — have() is free.