All models

ganzoo_fc_discriminator

The original GAN: a multilayer-perceptron generator and discriminator in a minimax game.

Diffusion and generative · 7 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (10 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
267K
Operations
7
Framework
PyTorch
Recurrent
No
Published
Communications of the ACM (arXiv 2014)
Cited by
18,254 (as of 17 October 2026)
Authors
Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza and others
License
BSD-3-Clause
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m5119
Graph hash
58184c90e2ff35a40cba0e1e40b1ec4e537057d61a27dbfa2e06921ae796632f
Skeleton hash
c4c76bd59b9f1f81cdfc1023fbfb4a931c1ada1726db75d25fb7dbc692c376eb
Architecture hash
9a6db0d92c14ece1392a2042a0e6569a0f724c81c2572861f067234d9071fcd6
Diagram SHA-256
866498db1683b13ef7e30ea7781216ac125a2953ae65ae10b0bc14bb64f8fa38
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

The discriminator is a second multilayer perceptron that outputs a single scalar, the probability that its input came from the data rather than the generator.

About this model's family

This is the original generative adversarial network in its plainest form, with a generator and a discriminator that are both multilayer perceptrons. Two models are trained at once: a generative model G that captures the data distribution and a discriminative model D that estimates the probability that a sample came from the training data rather than from G. The generator is trained to maximize the probability of the discriminator making a mistake, which makes the whole thing a minimax two-player game.

The paper's own picture is a team of counterfeiters against the police, each side improving until the fakes cannot be told from the genuine article. With enough capacity there is a unique solution in which G recovers the data distribution and D outputs 1/2 everywhere. Training needs only backpropagation, with no Markov chains or unrolled approximate inference. The paper warns that D must stay synchronized with G to avoid the Helvetica scenario, in which G collapses too many values of z onto the same output.

The original experiments ran on MNIST, the Toronto Face Database and CIFAR-10. The generator nets mixed rectifier and sigmoid activations while the discriminator used maxout, with dropout applied to the discriminator in training. The authors' original release is research code from an academic lab, offered with absolutely no support. One captured member is the vanilla GAN of the PyTorch-GAN collection, whose author notes that model architectures will not always mirror the ones proposed in the papers, favouring the core ideas over every layer configuration.

Key idea. Estimating a generative model through an adversarial minimax game between a generator and a discriminator, trainable end to end with backpropagation alone.

  • GAN
  • generative adversarial network
  • Generative Adversarial Networks
  • vanilla GAN
  • fully connected GAN
  • fc-gan
  • MLP GAN
  • adversarial nets
  • Goodfellow
  • image generation
  • MNIST
  • pytorch-gan-zoo
  • PyTorch-GAN

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{goodfellow2014generativeadversarialnetworks,
      title={Generative Adversarial Networks}, 
      author={Ian J. Goodfellow and Jean Pouget-Abadie and Mehdi Mirza and Bing Xu and David Warde-Farley and Sherjil Ozair and Aaron Courville and Yoshua Bengio},
      year={2014},
      eprint={1406.2661},
      archivePrefix={arXiv},
      primaryClass={stat.ML},
      url={https://arxiv.org/abs/1406.2661}, 
}