- Year of appearance
- 2014
- Researchers
- Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, Yoshua Bengio
- Organisation
- Université de Montréal
- Architecture type
- Adversarial generator–discriminator pair
- Learning mechanism
- unsupervised
- Tasks
- Image generation, Distribution learning
A generative framework in which two networks compete: a generator that turns noise into samples, and a discriminator that tries to tell real samples from generated ones.
Architecture diagram
Displayed configuration: GAN with MLP networks on MNIST (illustrative configuration) — Generator: 559,632 parameters, discriminator: 533,505 parameters.
Layer table (10 nodes)
| Layer | Type | Input | Output | Repetition | Parameters | Formula | MACs |
|---|---|---|---|---|---|---|---|
| Noise z ∼ N(0, I) | noise | 100 | 1 | 0 | — | ||
| G: FC 256 + LeakyReLU | fc | 100 | 256 | 1 | 25,856 | 100·256 + 256 | 25,600 |
| G: FC 512 + LeakyReLU | fc | 256 | 512 | 1 | 131,584 | 256·512 + 512 | 131,072 |
| G: FC 784 + tanh | fc | 512 | 784 | 1 | 402,192 | 512·784 + 784 | 401,408 |
| Generated 28×28 image | generator | 784 | 1 × 28 × 28 | 1 | 0 | — | |
| D: FC 512 + LeakyReLU | fc | 784 | 512 | 1 | 401,920 | 784·512 + 512 | 401,408 |
| D: FC 256 + LeakyReLU | fc | 512 | 256 | 1 | 131,328 | 512·256 + 256 | 131,072 |
| D: FC 1 + sigmoid | discriminator | 256 | 1 | 1 | 257 | 256 + 1 | 256 |
| Real data x | input | 1 | 0 | — | |||
| Adversarial loss | loss | D(x), D(G(z)) | L_D, L_G | 1 | 0 | — |
Configuration figures: GAN with MLP networks on MNIST (illustrative configuration)
- Input shape
- z ∈ ℝ¹⁰⁰
- Output shape
- 28×28 image
- Depth
- 3 layers per network
- Complexity
- A pass through G then D for each generated sample.
- MACs note
- For one sample: G = 100·256 + 256·512 + 512·784 = 558,080, and D = 532,736.
MAC = a multiplication followed by an addition. The figures are for one forward pass of one sample with the stated dimensions; they are an analytical calculation, not a measurement of run time.
Scientific explanation
Historical background
Published at NeurIPS 2014; it became one of the most influential ideas in deep learning, and hundreds of variants such as DCGAN and StyleGAN branched from it.
The problem it addresses
Learning a complex data distribution (such as images) and sampling from it without computing explicit likelihoods or Markov chains.
Core idea
A two-player minimax game: at equilibrium the generator distribution matches the data distribution and the discriminator becomes unable to tell them apart (D = ½).
Architecture description
A generator G(z) and a discriminator D(x), both differentiable (MLPs in the original paper), trained alternately.
Data flow
z → G → x̃; then (x or x̃) → D → probability of “real”. The gradient of D passes to G through x̃.
Inputs
Random noise z (for the generator) and real images (for the discriminator).
Outputs
New samples that resemble the data.
Training procedure
Alternating k discriminator steps (k = 1 in the experiments) and one generator step with stochastic gradient descent with momentum.
Loss functions
Minimax (binary cross-entropy for the discriminator), and the non-saturating form for the generator in practice.
Computational complexity
A pass through G and D at each step.
Computational requirements
Low for the MLP version.
Advantages
- Sharp high-quality samples
- Needs no explicit likelihood
- A flexible framework for many tasks
Limitations
- Unstable training
- Mode collapse
- Hard to evaluate quantitatively
Equations
Minimax game Minimax objective
\min_G \max_D V(D, G) = \mathbb{E}_{\mathbf{x} \sim p_{data}}[\log D(\mathbf{x})] + \mathbb{E}_{\mathbf{z} \sim p_z}[\log(1 - D(G(\mathbf{z})))]The discriminator maximises discrimination accuracy and the generator minimises it.
Symbols: G: generator, D: discriminator, p_z: noise distribution
Optimal discriminator Optimal discriminator
D^*_G(\mathbf{x}) = \frac{p_{data}(\mathbf{x})}{p_{data}(\mathbf{x}) + p_g(\mathbf{x})}With the optimal discriminator the game equals −log 4 + 2·JSD(p_data ‖ p_g).
Symbols: JSD: Jensen–Shannon divergence
Non-saturating generator loss Non-saturating generator loss
\mathcal{L}_G = -\mathbb{E}_{\mathbf{z}}[\log D(G(\mathbf{z}))]A practical alternative that gives stronger gradients early in training (proposed in the original paper).
Applications
Related models
- Variant of Conditional GAN — A conditional generator and discriminator. Compare
- Successor of Deep Convolutional GAN — Better stability with convolution. Compare
- Variant of Deep Convolutional GAN — A GAN with a convolutional architecture. Compare
- Variant of CycleGAN — A pair of GANs. Compare
- Variant of StyleGAN (Style-Based Generator) — The GAN framework. Compare
- Alternative Variational Autoencoder — An explicit probabilistic generative model. Compare
- Alternative Denoising Diffusion Probabilistic Models — Diffusion models surpassed it in image quality. Compare
References
- Original paper Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, Yoshua Bengio. (2014). Generative adversarial nets. NeurIPS 2014. arXiv:1406.2661 Verified
Version 1 — last updated 2026-11-15.
