
FirstGAN-MLP-MNIST-Discriminator
Diffusion and generative13 ops1.2M params
The original adversarial pair: an MLP generator and a maxout discriminator trained as a minimax game.
Diffusion and generative · 32 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}