TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Methods/Relativistic GAN

Relativistic GAN

Computer VisionIntroduced 20006 papers
Source Paper

Description

A Relativistic GAN is a type of generative adversarial network. It has a relativistic discriminator which estimates the probability that the given real data is more realistic than a randomly sampled fake data. The idea is to endow GANs with the property that the probability of real data being real (D(x_r)D\left(x\_{r}\right)D(x_r)) should decrease as the probability of fake data being real (D(x_f)D\left(x\_{f}\right)D(x_f)) increases.

With a standard GAN, we can achieve this as follows. The standard GAN discriminator can be defined, in term of the non-transformed layer C(x)C\left(x\right)C(x), as D(x)=sigmoid(C(x))D\left(x\right) = \text{sigmoid}\left(C\left(x\right)\right)D(x)=sigmoid(C(x)). A simple way to make discriminator relativistic - having the output of DDD depend on both real and fake data - is to sample from real/fake data pairs x~=(x_r,x_f)\tilde{x} = \left(x\_{r}, x\_{f}\right)x~=(x_r,x_f) and define it as D(x~)=sigmoid(C(x_r)−C(x_f))D\left(\tilde{x}\right) = \text{sigmoid}\left(C\left(x\_{r}\right) − C\left(x\_{f}\right)\right)D(x~)=sigmoid(C(x_r)−C(x_f)). The modification can be interpreted as: the discriminator estimates the probability that the given real data is more realistic than a randomly sampled fake data.

More generally a Relativistic GAN can be interpreted as having a discriminator of the form a(C(x_r)−C(x_f))a\left(C\left(x\_{r}\right)−C\left(x\_{f}\right)\right)a(C(x_r)−C(x_f)), where aaa is the activation function, to be relativistic.

Papers Using This Method

The GAN is dead; long live the GAN! A Modern GAN Baseline2025-01-09A Three-Player GAN for Super-Resolution in Magnetic Resonance Imaging2023-03-24Improve GAN-based Neural Vocoder using Pointwise Relativistic LeastSquare GAN2021-03-26UU-Nets Connecting Discriminator and Generator for Image to Image Translation2019-04-04ESRGAN: Enhanced Super-Resolution Generative Adversarial Networks2018-09-01The relativistic discriminator: a key element missing from standard GAN2018-07-02