All models

erik_wgan

The Wasserstein GAN generator, traced from the PyTorch-GAN collection's MLP implementation.

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
wgan
Parameters
1.5M
Operations
14
Framework
PyTorch
Recurrent
No
Published
ICML 2017
Cited by
2,224 (as of 17 October 2026)
Authors
Martin Arjovsky, Soumith Chintala, Léon Bottou
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
m4690
Graph hash
ca1a843d95fa3de9b87ba17a0065ed7c35108875141981fb11564678e4941959
Skeleton hash
1b4227610366198957d3d284e64f343713657d9215b232abf86cade466d3a422
Architecture hash
a2fd721b2a6b0b9d489f25affea32e73d4da5726ef28189d2529c01abaa5d7e8
Diagram SHA-256
60e1dd8fe9da9ac9d6d8765bd9bc186a00db130f87089c3a318488b3a1875175
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

About this model's family

WGAN is a way of training a generative adversarial network so that the generator minimises an approximation of the Earth Mover distance to the data instead of playing the usual classifier game. The practical claim is that training no longer needs a careful balance between discriminator and generator, nor a careful network design. The mode dropping that plagues ordinary GANs is drastically reduced as well.

The discriminator becomes a 'critic' whose weights are clamped to a fixed box after each gradient update, a blunt way of keeping it Lipschitz. The authors themselves call weight clipping a clearly terrible way to enforce a Lipschitz constraint. They kept it anyway for its simplicity and already good performance. Because the critic can be trained to optimality, its loss becomes a learning curve that correlates with sample quality.

The paper's experiments ran a convolutional DCGAN generator and also a 4-layer ReLU-MLP with 512 hidden units, an architecture known to perform very poorly with GANs. In no experiment did the authors see evidence of mode collapse for the WGAN algorithm. Both captured members come from the PyTorch-GAN collection, whose author warns that its architectures will not always mirror the ones proposed in the papers.

Key idea. Replacing the GAN discriminator with a weight-clipped critic that minimises an approximation of the Earth Mover distance, so that training needs no careful balance between the two networks.

  • WGAN
  • Wasserstein GAN
  • Wasserstein distance
  • Earth Mover distance
  • critic
  • weight clipping
  • GAN
  • image generation
  • 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{arjovsky2017wassersteingan,
      title={Wasserstein GAN}, 
      author={Martin Arjovsky and Soumith Chintala and Léon Bottou},
      year={2017},
      eprint={1701.07875},
      archivePrefix={arXiv},
      primaryClass={stat.ML},
      url={https://arxiv.org/abs/1701.07875}, 
}