Projected GANs Converge Faster

Axel Sauer, Kashyap Chitta, Jens Müller, Andreas Geiger

TL;DR

Projected GANs significantly accelerate and stabilize Generative Adversarial Network (GAN) training by projecting images into a fixed, pretrained feature space. By leveraging multi-scale discriminators and novel random projection strategies, this method achieves state-of-the-art image quality up to 40 times faster than previous leaders like StyleGAN2, cutting training times from days to hours.

The Challenge of Training GANs

Training GANs is notoriously difficult. It typically requires massive computational resources, meticulous hyperparameter tuning, and vast amounts of data. A core issue lies in the delicate "two-player game" between the generator and the discriminator: if the discriminator becomes too strong too quickly, the generator receives vanishing gradients and stops learning.

Furthermore, the discriminator carries a dual burden: it must simultaneously learn a meaningful representation of the input images and learn to classify them as real or fake. The authors argue that we shouldn't force the discriminator to learn features from scratch when high-quality, pretrained feature extractors (like those trained on ImageNet) already exist.

The Projected GAN Approach

To address these bottlenecks, the authors introduce Projected GANs, which fundamentally change the discriminator's input. Instead of looking at raw RGB pixels, the discriminator evaluates features projected into a pretrained, fixed feature space.

Projected GAN Architecture with Cross-Scale Mixing

Key components of this architecture include:

  • Pretrained Feature Network: A fixed network (e.g., EfficientNet or ResNet) extracts features from both real and generated images.
  • Multi-Scale Discriminators: Rather than a single discriminator, the model uses a set of independent discriminators that operate on different layers (resolutions) of the pretrained network.
  • Random Projections: To ensure the discriminator utilizes all available information and doesn't overfit to a small subset of features, two mixing strategies are introduced:
  • Cross-Channel Mixing (CCM): Uses random $1 \times 1$ convolutions to mix features across channels.
  • Cross-Scale Mixing (CSM): Extends CCM by adding random $3 \times 3$ convolutions and upsampling to mix features across different resolutions, effectively creating a random U-Net structure.
  • Consistency: The authors provide a theoretical "Consistency Theorem" proving that matching distributions in these projected feature spaces is equivalent to matching the true data distribution.

Key Insights

  • Representation over Classification: The bottleneck in GAN training isn't just the adversarial logic; it's the difficulty of learning robust visual representations from scratch. Using a "fixed" eye (the pretrained network) allows the generator to focus entirely on synthesis.
  • Deeper Isn't Always Better: Surprisingly, smaller, more compact pretrained models (like EfficientNet-Lite1) often outperformed larger ones. There was also no direct correlation between a model's ImageNet accuracy and its effectiveness for GAN training.
  • The Power of Random Projections: Naively using pretrained features can lead to the discriminator dominating too easily. Fixed random projections (CCM and CSM) "dilute" prominent features, forcing the discriminator to pay attention to the entire feature space and providing more useful feedback to the generator.

Results and Performance

The researchers evaluated their method on 22 benchmark datasets, ranging from large-scale sets like LSUN and FFHQ to small-scale/few-shot sets like AFHQ and Oxford Flowers, at resolutions up to $1024^2$.

Convergence Speed and Image Quality Comparison
  • Massive Speedups: Projected GANs matched the lowest previously recorded FIDs (Fréchet Inception Distance) up to 40 times faster. For example, on the AFHQ-Dog dataset, training time was cut from 5 days to under 3 hours.
  • State-of-the-Art Quality: The method advanced the SOTA FID on all 22 datasets tested.
  • Data Efficiency: On the CLEVR dataset, Projected GANs achieved significantly better results with only 1k or 10k samples compared to StyleGAN2-ADA. Because the feature space is so informative, the generator learns the global structure of images much earlier in the training process.
  • Wall-Clock Performance: On LSUN-Church, Projected GANs reached a better FID in 1.1 million images than StyleGAN2 reached in 88 million images.

Limitations and Future Work

While highly effective, the authors noted two primary failure cases:

  1. "Floating Heads": On the AFHQ dataset, the model occasionally generates high-quality animal heads on blurry or indistinct backgrounds. This suggests the pretrained features (optimized for classification) might prioritize the "object" over the "composition."
  2. FFHQ Artifacts: While achieving high scores, the model can produce poor-quality samples with wrong proportions or artifacts on the FFHQ face dataset.

Future work may involve exploring different types of pretrained representations beyond classification, or developing generator architectures specifically designed to exploit these projected feedback signals.

Summary updated

BibTeX
@inproceedings{sauer2021projected,
  author = {Axel Sauer and Kashyap Chitta and Jens Müller and Andreas Geiger},
  title = {{Projected GANs Converge Faster}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=iEJ4oWTRpOc},
}
Figure