
pytorch_gan_wgan_generator
Diffusion and generative14 ops1.5M params
The Wasserstein GAN generator, traced from the PyTorch-GAN collection's MLP implementation.
Diffusion and generative · 14 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.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}