
erik_wgan_gp
Diffusion and generative14 ops1.5M params
The WGAN-GP generator from PyTorch-GAN: Wasserstein training with a gradient penalty instead of clipping.
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-GP keeps the Wasserstein GAN's critic but enforces its Lipschitz constraint by penalising the norm of the critic's gradient instead of clipping its weights. The motivation is that the original WGAN sometimes still generates only low-quality samples or fails to converge. The authors trace those failures to weight clipping, which can lead to undesired behavior.
The penalty is applied at points sampled uniformly along straight lines between pairs of real and generated samples, where the optimal critic is known to have unit gradient norm. Every experiment in the paper uses a penalty coefficient of 10. The penalty is two-sided, pushing the gradient norm towards 1 rather than merely keeping it below 1. One consequence is that batch normalization is dropped from the critic, and the authors recommend layer normalization as a drop-in replacement. With this change the authors report stable training of a wide variety of architectures with almost no hyperparameter tuning, including 101-layer ResNets and language models over discrete data.
The authors' own release lists TensorFlow among its prerequisites. 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. A gradient penalty on the critic that replaces WGAN's weight clipping and enables stable training of a wide variety of GAN architectures with almost no hyperparameter tuning.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{gulrajani2017improvedtrainingwassersteingans,
title={Improved Training of Wasserstein GANs},
author={Ishaan Gulrajani and Faruk Ahmed and Martin Arjovsky and Vincent Dumoulin and Aaron Courville},
year={2017},
eprint={1704.00028},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1704.00028},
}