
studiogan_sngan_generator
Diffusion and generative81 ops4.3M params
A GAN whose discriminator weights are divided by their largest singular value to keep training stable.
Diffusion and generative · 163 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
SNGAN is the GAN that introduced spectral normalization, a weight normalization technique that stabilizes the training of the discriminator. The motivation is a familiar failure: in high dimensional spaces, the density ratio estimation by the discriminator is often inaccurate and unstable during the training, and generator networks fail to learn the multimodal structure of the target distribution. Worse, once a discriminator perfectly separates real from generated samples, the training of the generator comes to complete stop, because the derivative of the so-produced discriminator with respect to the input turns out to be 0.
The fix is small enough to read off the traced graph. Spectral normalization normalizes the spectral norm of the weight matrix of each discriminator layer so that it satisfies the Lipschitz constraint, dividing the weight by its largest singular value. Computing that value by singular value decomposition at every step would be expensive, so the authors use the power iteration method to estimate it, which costs very small additional computational time relative to the full computational cost of the vanilla GANs. The Lipschitz constant is the only hyper-parameter to be tuned, and the method worked well even without tuning it.
The captured rows come from PyTorch-StudioGAN, whose table lists SNGAN with a ResNetGAN backbone, conditional batch normalization in the generator, a projection discriminator and the hinge loss; one row is the generator alone. On CIFAR10, STL-10 and ILSVRC2012, the paper reports that spectrally normalized GANs generate images of better or equal quality relative to the previous training stabilization techniques.
Key idea. Spectral normalization: each discriminator weight matrix is divided by its spectral norm, estimated cheaply by power iteration, which enforces a Lipschitz constraint and stabilizes GAN training with one hyper-parameter.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{miyato2018spectralnormalizationgenerativeadversarial,
title={Spectral Normalization for Generative Adversarial Networks},
author={Takeru Miyato and Toshiki Kataoka and Masanori Koyama and Yuichi Yoshida},
year={2018},
eprint={1802.05957},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1802.05957},
}