Skip to main content
QUICK REVIEW

[Paper Review] Why Spectral Normalization Stabilizes GANs: Analysis and Improvements

Zinan Lin, Vyas Sekar|arXiv (Cornell University)|Sep 6, 2020
Adversarial Robustness in Machine LearningComputer Science39 references28 citations
TL;DR

This paper provides a theoretical analysis of spectral normalization (SN) in GANs, revealing it stabilizes training by controlling both exploding and vanishing gradients. Building on this insight, the authors propose Bidirectional Scaled Spectral Normalization (BSSN), which improves gradient control by incorporating principles from Xavier and Kaiming weight initialization, resulting in superior sample quality and training stability on CIFAR10, STL10, CelebA, and ImageNet compared to standard SN.

ABSTRACT

Spectral normalization (SN) is a widely-used technique for improving the stability and sample quality of Generative Adversarial Networks (GANs). However, there is currently limited understanding of why SN is effective. In this work, we show that SN controls two important failure modes of GAN training: exploding and vanishing gradients. Our proofs illustrate a (perhaps unintentional) connection with the successful LeCun initialization. This connection helps to explain why the most popular implementation of SN for GANs requires no hyper-parameter tuning, whereas stricter implementations of SN have poor empirical performance out-of-the-box. Unlike LeCun initialization which only controls gradient vanishing at the beginning of training, SN preserves this property throughout training. Building on this theoretical understanding, we propose a new spectral normalization technique: Bidirectional Scaled Spectral Normalization (BSSN), which incorporates insights from later improvements to LeCun initialization: Xavier initialization and Kaiming initialization. Theoretically, we show that BSSN gives better gradient control than SN. Empirically, we demonstrate that it outperforms SN in sample quality and training stability on several benchmark datasets.

Motivation & Objective

  • To understand the theoretical mechanisms behind spectral normalization's success in stabilizing GAN training.
  • To identify why the popular implementation of SN (Miyato et al., 2018) requires no hyperparameter tuning, while stricter variants fail out-of-the-box.
  • To improve SN by integrating insights from modern weight initialization techniques like Xavier and Kaiming initialization.
  • To develop and validate a new normalization method that enhances gradient control throughout training.
  • To demonstrate empirically that the proposed method outperforms standard SN in sample quality and training stability across multiple benchmarks.

Proposed method

  • Theoretical analysis shows that SN bounds the spectral norm of each layer, which in turn controls the Lipschitz constant of the discriminator and limits gradient explosion during GAN training.
  • The paper establishes a connection between SN and LeCun initialization, showing SN preserves gradient variance control throughout training, unlike LeCun initialization which only applies at initialization.
  • Bidirectional Scaled Spectral Normalization (BSSN) is proposed, introducing a bidirectional normalization inspired by Xavier initialization to control both forward and backward gradient variances.
  • BSSN incorporates a scaling mechanism based on Kaiming initialization to further improve gradient dynamics in deep networks.
  • The method applies normalization to both generator and discriminator weights, with adaptive scaling that maintains stable gradient flow during backpropagation.
  • Experiments compare BSSN against standard SN across multiple datasets using standard evaluation metrics like Inception Score and FID.

Experimental results

Research questions

  • RQ1Why does spectral normalization effectively stabilize GAN training, despite limited theoretical understanding?
  • RQ2How does spectral normalization prevent both exploding and vanishing gradients during adversarial training?
  • RQ3Why does the widely used implementation of SN (Miyato et al., 2018) require no hyperparameter tuning, while stricter variants fail without tuning?
  • RQ4Can insights from modern weight initialization techniques (Xavier and Kaiming) be used to improve spectral normalization?
  • RQ5Does a new normalization method that better controls gradient variance outperform standard spectral normalization in practice?

Key findings

  • Spectral normalization controls both exploding and vanishing gradients by bounding the spectral norm of network layers, which stabilizes training dynamics.
  • The success of the standard SN implementation (Miyato et al., 2018) is explained by its implicit alignment with LeCun initialization, preserving gradient variance control throughout training.
  • A strict implementation of SN fails out-of-the-box due to poor gradient control in later training stages, unlike the standard SN which maintains stability.
  • Bidirectional Scaled Spectral Normalization (BSSN) achieves better gradient control than SN by integrating principles from Xavier and Kaiming initialization.
  • On CIFAR10, STL10, CelebA, and ImageNet, BSSN achieves higher Inception Score and lower FID than standard SN, demonstrating improved sample quality and training stability.
  • The best BSSN run achieved an Inception Score of 13.63 and FID of 70.88 on ImageNet, outperforming the best SN run (13.04, 69.12) and significantly improving over poorly tuned BSSN with scale=1.0 (2.07, 242.51).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.