All models

GAN-original

The original adversarial pair: an MLP generator and a maxout discriminator trained as a minimax game.

Diffusion and generative · 32 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 (41 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

Family
GAN
Parameters
3.7M
Operations
32
Framework
PyTorch
Recurrent
No
Published
Communications of the ACM (arXiv 2014)
Cited by
18,258 (as of 18 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
m1096
Graph hash
cc3f22792c540ccc3c58ebe15c2758918a33716fe2f85eb459b7b0e516d88d06
Skeleton hash
ea1cc06d1b54a8a153607a8f13b2dc9be687bb05545a59b5ef0a4c1ea4cf813d
Architecture hash
f931cd117143ecad2e8c573b97311e2a81d652063c6e4eeee616d37916fed4b0
Diagram SHA-256
213394177fe5a2ddaf4fdfea3d7e828a1689d54d8b02b3d5227f409ddff48039
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

This row runs generator and discriminator together on MNIST-shaped data, returning the discriminator's verdicts on the real and generated batches along with the generated images.

About this model's family

The generative adversarial network, GAN, trains two models at once: a generator that tries to capture the data distribution and a discriminator that estimates whether a sample came from the training data or from the generator. The generator is trained to maximise the probability that the discriminator makes a mistake, which makes the whole setup a minimax two-player game. The paper's own analogy is counterfeiters against police, each side improving until the fakes cannot be told from the genuine article.

With enough capacity there is a unique solution in which the generator recovers the data distribution and the discriminator outputs one half everywhere. When both models are multilayer perceptrons the whole system trains with ordinary backpropagation, with no Markov chains or approximate inference during training or sampling. In practice training alternates k steps on the discriminator with one step on the generator, and the generator maximises log D(G(z)) rather than minimising log(1 - D(G(z))) to get stronger gradients early on.

The captured members are the MNIST models from the authors' code and hyperparameters: the generator mixes rectifier and sigmoid activations while the discriminator uses maxout, with dropout applied when training the discriminator. Noise enters only at the bottom layer of the generator. Three rows are traced from that code: the adversarial pair, the generator alone and the discriminator alone. The paper evaluated on MNIST, the Toronto Face Database and CIFAR-10, scoring samples by Gaussian Parzen window log-likelihood.

Key idea. Estimate a generative model by pitting it against a discriminator in a minimax game, so both are plain networks trained by backpropagation with no Markov chains or approximate inference.

  • GAN
  • Generative Adversarial Networks
  • Generative Adversarial Nets
  • original GAN
  • Goodfellow
  • generator
  • discriminator
  • adversarial training
  • MNIST

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}, 
}