All models

FirstGAN-MLP-MNIST-Discriminator

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

Diffusion and generative · 13 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 (16 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
1.2M
Operations
13
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
m1020
Graph hash
5bdb159e89a42c0d404a9e500f84bc5a5c695daa060d3952a18fe8597e6bce1e
Skeleton hash
e44e313a99510cd76ff96486b6d9685d88f20913eb1b0f9771dddf48073390d2
Architecture hash
d9ad1a296ec7b9aeb4efc4a74907f4f9601d5711988f125bbe99be694619aa04
Diagram SHA-256
1a8c63111207aeae1f33061afb58c6f094da2951142ea1586565d876e5ce2704
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 alone: a 784-value image through two maxout layers of 240 units with 5 pieces each to a single sigmoid scalar.

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