Omni-GAN: On the Secrets of cGANs and Beyond

Peng Zhou, Lingxi Xie, Bingbing Ni, Cong Geng, Qi Tian

Abstract

Conditional Generative Adversarial Networks (cGANs) have long struggled with a fundamental trade-off: the stability of projection-based discriminators versus the high-quality potential of classification-based discriminators, which are notoriously prone to training collapse. This paper presents Omni-GAN, a framework that resolves this tension. By introducing a unified "Omni-loss" and identifying discriminator "memorization" as the primary cause of collapse, the authors demonstrate that simple weight decay regularization can stabilize training. Omni-GAN achieves record-breaking Inception Scores on ImageNet and, through Implicit Neural Representations (INR), enables high-quality image synthesis at arbitrary resolutions.

Introduction: The Stability-Quality Trade-off

Conditional GANs (cGANs) aim to generate images conditioned on class labels. Existing architectures typically fall into two camps: projection-based discriminators (e.g., BigGAN), which are stable but limited in quality, and classification-based discriminators (e.g., AC-GAN), which can produce superior images but frequently suffer from mode collapse. Mode collapse occurs when the generator begins producing repetitive, low-diversity outputs, causing the training process to fail. The authors investigate the root causes of this instability to unlock the full potential of classification-based supervision.

Methodology

The Omni-loss Framework

The core of the proposed method is the Omni-loss, which treats the discriminator as a multi-label classifier. This formulation allows the model to handle multiple attributes simultaneously and provides a unified perspective on previous discriminator designs, such as AC-GAN and Projection Discriminators.

Comparison of discriminator architectures and loss functions, highlighting the transition from simple classification (AC-GAN) to the unified Omni-loss.

As shown in the architectural comparison, Omni-GAN generalizes the classification task, allowing for stronger supervision than projection-based methods while maintaining a flexible structure.

Stabilizing Training via Weight Decay

The researchers discovered that classification-based cGANs collapse not because of the loss function itself, but because the discriminator "memorizes" the training set too quickly. This overfitting results in uninformative gradients for the generator. To counteract this, the authors apply weight decay (wd) to the discriminator. This simple regularization prevents the discriminator from becoming overly confident, thereby maintaining a steady flow of useful gradients throughout training.

The impact of weight decay (wd) on training stability. Models without weight decay (dashed lines) experience rapid collapse, while those with it (solid lines) remain stable.

Omni-INR-GAN

To extend the model's capabilities, the authors integrated Implicit Neural Representations (INR) into the generator. Unlike traditional generators that produce a fixed pixel grid, INR-based generators represent images as continuous functions. This allows Omni-GAN to synthesize images at any resolution or aspect ratio, effectively performing zero-shot super-resolution up to 60x the training resolution.

Key Results and Discussion

Omni-GAN sets a new state-of-the-art on the ImageNet benchmark. On 128×128 ImageNet, Omni-INR-GAN achieved an Inception Score (IS) of 262.85, and 343.22 on 256×256 images—surpassing BigGAN by over 100 points.

Beyond quality, the model is significantly more efficient; Omni-GAN can reach the peak performance of a BigGAN model in approximately one day of training, compared to the 14 days required for the original. The use of weight decay proves to be a computationally efficient alternative to more complex gradient penalties.

Limitations

While highly effective, Omni-GAN shows sensitivity to hyperparameters, particularly the weight decay coefficient, which must be tuned based on dataset size. Additionally, integration with StyleGAN2 architectures remains a challenge due to conflicting optimization techniques like equalized learning rates.

Conclusion

Omni-GAN demonstrates that the "secret" to stable, high-quality cGAN training lies in balancing strong classification-based supervision with appropriate regularization. By preventing discriminator memorization, the framework achieves unprecedented performance and flexibility in conditional image synthesis.

Summary updated

BibTeX
@misc{zhou2020omni,
  author = {Peng Zhou and Lingxi Xie and Bingbing Ni and Cong Geng and Qi Tian},
  title = {{Omni-GAN: On the Secrets of cGANs and Beyond}},
  year = {2020},
  eprint = {2011.13074},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.13074},
}
Figure