Abstract
Generative Adversarial Networks (GANs) have recently been overshadowed by diffusion models, largely due to their perceived instability and reliance on a "bag of empirical tricks." This paper introduces R3GAN, a modernized GAN baseline that replaces ad-hoc heuristics with a principled relativistic pairing loss and dual gradient penalties. By integrating modern architectural designs like inverted bottlenecks and grouped convolutions, R3GAN achieves state-of-the-art performance, outperforming StyleGAN2 and rivaling diffusion models in quality while maintaining superior inference efficiency.
Introduction
For years, the deep learning community has shifted away from GANs toward diffusion models. This shift is driven by the perception that GANs are "fickle" and notoriously difficult to train. Historically, keeping GANs stable required a complex array of ad-hoc tricks—such as minibatch standard deviation, equalized learning rates, and specific initialization schemes—that often lacked theoretical justification. Furthermore, while other generative models have adopted modern computer vision backbones, GAN architectures have remained stagnant, often resembling structures from 2015. R3GAN aims to prove that GANs are not inherently broken; they simply required a theoretical cleanup and a hardware-aware architectural upgrade.
Methods
A Principled Loss Function
The core of R3GAN is a regularized relativistic pairing GAN loss (RpGAN). Unlike standard GANs that critique samples in isolation, RpGAN critiques a "fake" sample's realness relative to a "real" sample. This objective is augmented with zero-centered gradient penalties ($R_1$ and $R_2$) applied to both real and fake data.
The authors provide a mathematical proof that this specific combination ensures local convergence, effectively solving the "mode dropping" and non-convergence issues that previously required empirical hacks. When the loss function is mathematically well-behaved, training becomes naturally stable without the need for traditional stability tricks.
The R3GAN Architecture
Starting with StyleGAN2, the authors systematically "strip away" non-essential features like style injection and mapping networks to find a minimalist baseline. They then modernize the backbone using designs inspired by ConvNeXt and ResNet.
Key architectural improvements include:
- Inverted Bottlenecks: Used to increase network capacity efficiently.
- Grouped Convolutions: Employed to improve GPU performance and increase network width.
- No Normalization: All normalization layers (e.g., Batch or Layer Norm) are removed, as they can interfere with GAN dynamics. Instead, a "fix-up" initialization is used to prevent variance explosion.
Results
The model was evaluated on several standard benchmarks, including Stacked MNIST, CIFAR-10, FFHQ, and ImageNet.
- Quality and Diversity: On FFHQ-256, R3GAN achieved an FID of 2.75, significantly outperforming StyleGAN2’s 3.78. On Stacked MNIST, it successfully recovered all 1,000 modes, whereas standard GANs often collapsed.
- Comparison with Diffusion: R3GAN challenges the dominance of diffusion models. On FFHQ-64, R3GAN (requiring only 1 NFE) outperformed the EDM diffusion model (79 NFEs) with an FID of 1.95 versus 2.39.
- Scalability: On ImageNet-64, R3GAN outperformed ADM while utilizing a generator approximately three times smaller.
Discussion and Key Insights
The primary takeaway is that GANs were not falling behind due to a flawed adversarial objective, but because their architectures and loss functions had not kept pace with modern research. By prioritizing "theory over tricks," R3GAN achieves high efficiency; while diffusion models require dozens of steps to generate an image, R3GAN does so in a single forward pass.
Limitations
Despite its performance, R3GAN has limitations. By removing the style-based architecture of StyleGAN, it is currently less suited for tasks like image editing or GAN inversion. Additionally, while it scales well to 256x256, scaling to megapixel resolutions or large-scale text-to-image tasks remains a subject for future research.
Conclusion
R3GAN revitalizes the GAN framework by providing a principled, mathematically grounded baseline. It demonstrates that with the right loss function and a modernized architecture, GANs remain a highly competitive and efficient choice for high-quality image generation.
Summary updated