All models

pytorch_gan_vanilla_gan_generator

The original generative adversarial net: a generator and a discriminator trained against each other.

Diffusion and generative · 14 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 (18 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.5M
Operations
14
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2014
Cited by
4,472 (as of 16 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
m8446
Graph hash
ca1a843d95fa3de9b87ba17a0065ed7c35108875141981fb11564678e4941959
Skeleton hash
1b4227610366198957d3d284e64f343713657d9215b232abf86cade466d3a422
Architecture hash
a2fd721b2a6b0b9d489f25affea32e73d4da5726ef28189d2529c01abaa5d7e8
Diagram SHA-256
18cb1c5a8e42f598a779c405c5d004ec47e5a4f33fef26a3eaec61612f17d760
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 generative adversarial net, or GAN, is a framework for estimating generative models by training two models at once: a generator G that captures the data distribution and a discriminator D that estimates whether a sample came from the training data rather than G. The generator is trained to maximize the probability of the discriminator making a mistake. This sets up a minimax two-player game. The paper likens the generator to a team of counterfeiters trying to produce fake currency.

When both models are multilayer perceptrons, the whole system trains with backpropagation. There is no need for Markov chains or unrolled approximate inference networks during training or sampling. The original experiments trained adversarial nets on MNIST, the Toronto Face Database and CIFAR-10, with rectifier and sigmoid activations in the generator and maxout in the discriminator. The discriminator was updated k times per generator step, with k = 1 in the experiments.

The captured member is the generator from the PyTorch-GAN collection's gan.py rather than from the authors' repository. That collection states that its architectures do not always mirror the papers and that it focuses on the core ideas rather than every layer configuration. The authors' own repository contains the code and hyperparameters for the paper.

Key idea. GANs introduced adversarial training: a generator and a discriminator play a minimax game, and when both are multilayer perceptrons the system trains end to end with backpropagation and no Markov chains.

  • GAN
  • generative adversarial nets
  • vanilla GAN
  • generator
  • discriminator
  • minimax game
  • Goodfellow
  • 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}, 
}