All models

FirstGAN-MLP-MNIST-Generator

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

Diffusion and generative · 6 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 (9 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
2.5M
Operations
6
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
m1021
Graph hash
7f9a450cf540d262e81a81413824a0d0eed070dd9a756a0a39979c0a5fa5c664
Skeleton hash
1e6e831bbcef3933857c0dddb3e92cb21378c8bddf26c948a39a67597ecdcfe4
Architecture hash
8cc00a943afb30578c5d88a015dde84e9f10663e7f29cd8b84062a68ea55b8d2
Diagram SHA-256
9ae2ad9de47a8462ed77e7e1f452f43d7341ccd388f0ddb2bc59190fcf1a0e06
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 generator alone: 100 dimensions of uniform noise through two rectifier layers of 1200 units to a sigmoid output of 784 values.

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