Magnitude-preserving Discriminators Enable Efficient GANs

Nick Huang, Jackson Woodleigh, Aaron Gokaslan, Xinjie Yi, James TompkinNeurIPS 2026

TL;DR

Generative Adversarial Networks (GANs) promise fast, single-step image synthesis, yet they often stall out on complex datasets like ImageNet—even when training doesn't crash. The authors uncover a hidden culprit: the discriminator learns to "cheat" by cranking up the volume of its existing features rather than learning better ones. By redesigning the network to keep internal signal magnitudes in check, their new model, R3GAN2, rivals modern diffusion models in image quality at a tiny fraction of the compute and parameter cost.

What Problem Does This Paper Address?

Modern image generation is dominated by diffusion and autoregressive models. They produce stunning images, but generating a single picture requires dozens or hundreds of sequential passes through a massive network. GANs, by contrast, generate sharp images in a single forward pass—one Network Function Evaluation (NFE).

Historically, GANs were notoriously unstable and prone to "mode collapse" (generating the same few images repeatedly). Recent work like R3GAN largely fixed the stability problem using relativistic losses and gradient penalties ($R_1$ and $R_2$). Yet, when scaled up to diverse, high-resolution datasets like ImageNet $256 \times 256$, image quality—measured by Fréchet Inception Distance (FID, where lower is better)—mysteriously hits a wall early in training.

Peeking inside the discriminator during this plateau, the authors found a striking pathology: while the generator’s internal activations stayed calm, the discriminator’s activation magnitudes were exploding by orders of magnitude, reaching $10^7$ or $10^8$ in later layers. Because the discriminator is rewarded simply for widening the score gap between real and fake images, once it finds a marginally useful feature, it can increase its reward just by amplifying that signal—turning up the volume instead of listening more closely. Crucially, standard gradient penalties only constrain the input-to-output Jacobian, leaving internal layers free to blow up.

Methods

How do you stop activations from exploding? Explicitly normalizing features layer-by-layer (like BatchNorm or LayerNorm) is a known trap in generative modeling that severely degrades image quality. Instead, drawing inspiration from recent diffusion architectures (like EDM2) and normalization-free networks, the authors redesign R3GAN into R3GAN2, where every building block preserves signal variance statistically under an independent and identically distributed (i.i.d.) assumption:

  • Row-wise $\ell_2$ Weight Normalization: Constraining each row of a linear layer's weight matrix to unit $\ell_2$ norm ensures output variance matches input variance.
  • Weight Centering & Scaled Nonlinearities: Leaky ReLU activations shift both the mean and variance of a signal. By forcing each weight row to sum to zero (weight centering), pre-activations stay zero-mean, allowing a closed-form scaling factor to keep variance steady after the nonlinearity.
  • Magnitude-Preserving Residuals: Adding a residual branch to a skip connection naturally doubles signal variance ($2^n$ growth over $n$ blocks). Instead of shrinking the identity path, R3GAN2 introduces a learnable scalar $\alpha_i$ on the residual output and a deterministic downscaling factor $\beta_i$ on the branch input to prevent variance drift.
  • Clean Resampling: Learned upsampling/downsampling projections are replaced with non-parametric pixel shuffling and binomial low-pass filters.
Figure 2: Architecture comparison. Both R3GAN and R3GAN2 use approximately symmetric convolutional architectures for G and D, organized into stages of residual blocks separated by resolution transitions. (a) R3GAN removed StyleGAN2’s style mapping and modulation machinery, while modernizing the architecture with a cleaner ConvNet design. (b) R3GAN2 retains this clean convolutional design while updating the architecture to statistically preserve signal magnitude. We replace learned projection-based resolution changes with non- parametric shuffle-based resampling and reparameterize the residual blocks to control variance drift. Stabilizing discriminator magnitudes enables a deeper-and-narrower design with four residual blocks per stage instead of two.

While the generator doesn't suffer from the magnitude pathology, applying this parameterization symmetrically to both networks keeps them in the same optimization regime and simplifies hyperparameter tuning.

Datasets

The authors train and evaluate on three standard benchmarks (no new datasets are introduced):

  • Class-conditional ImageNet $256 \times 256$: Trained in latent space using the fixed, open-source FLUX.2 autoencoder ($32 \times 32 \times 32$ latents).
  • CIFAR-10 ($32 \times 32$, class-conditional) and FFHQ ($256 \times 256$ faces): Trained directly in pixel space to verify the method works without an autoencoder.

Notably, all generators and discriminators are trained completely from scratch, without relying on pretrained feature backbones (like DINOv2 or ImageNet classifiers) that prior GANs needed to compete.

Key Insights and Ideas

  • It really is a discriminator problem: Diagnostic ablations confirm that applying magnitude preservation only to the generator makes FID slightly worse (19.20 to 20.18), whereas applying it only to the discriminator slashes FID down to 8.68 (and 5.37 when applied to both).
  • Magnitude control unlocks depth: In the baseline R3GAN, making the network deeper and narrower caused activations to hit $10^8$ and ruined FID (degrading from 19.20 to 37.43). Once magnitudes were stabilized below ~5, the exact same deeper-and-narrower shift cut FID in half (5.37 to 2.56).
  • Too much constraint kills the critic: Row-wise $\ell_2$ norm still theoretically allows amplification if inputs correlate ("spectral sharpening"). However, testing stricter spectral normalization or $\ell_1$ normalization made the discriminator overly contractive, crushing its gradients and tanking FID (to 31.12 and 166.29 on CIFAR-10). Statistical preservation hits the sweet spot.
  • GANs aren't doomed to poor diversity: R3GAN2 simultaneously improves visual precision and distribution coverage (recall), matching guided diffusion models in recall without using any classifier-free guidance.

Key Results

R3GAN2 sets a new state-of-the-art in parameter and compute efficiency for GANs:

Figure 1: Magnitude-preserving layers create efficientGANswithlowFIDwithoutguidance.
  • ImageNet $256 \times 256$: R3GAN2-S (17M params), M (61M), and L (131M) achieve unguided FIDs of 2.12, 1.60, and 1.52, respectively, in 1 NFE.
  • Massive Efficiency Gains: R3GAN2-S beats guided DiT-XL/2 (2.27 FID, 675M params, $250 \times 2$ NFEs) while using 190$\times$ fewer inference FLOPs (0.64 vs. ~120 TFLOPs, autoencoder decoding included). It also outperforms StyleGAN-XL (2.34 FID) with 10$\times$ fewer parameters and no pretrained classifier crutches, while boosting recall from 0.496 to 0.557 (and 0.596 for R3GAN2-L).
  • Pixel-Space Synthesis: Achieves 1.65 FID on CIFAR-10 (beating 35-step EDM diffusion at 1.81) and 2.19 FID on FFHQ-256—matching StyleGAN-XL with less than half the parameters and 7$\times$ fewer FLOPs.

Limitations and Future Work

  • Untested at extreme scales: Behavior at $512 \times 512$ resolution and above, parameter counts $\ge 500\text{M}$, and open-ended text-to-image conditioning remain unexplored.
  • Self-attention trade-offs: While the authors successfully designed a magnitude-preserving self-attention block that trains stably, adding it slightly worsened final FID due to discriminator overfitting—suggesting attention-based GANs will need larger datasets or stronger regularization.
  • Decoder bottleneck: On ImageNet, ~90% of R3GAN2's inference compute (0.62 of 0.67 TFLOPs for the M model) is spent inside the FLUX.2 autoencoder decoder, motivating future work on lightweight decoders or scaling direct pixel-space generation.

Summary updated

Abstract

GANs are appealing because they generate sharp images with a single forward execution. Recent works have stabilized GAN training, but FID may still plateau on diverse datasets like ImageNet-256 even as training remains stable. We identify severe growth of discriminator activation magnitudes as a hidden pathology accompanying this plateau. Our analysis shows that adversarial training permits the discriminator to increase empirical real--fake separation by amplifying already-discriminative responses, without necessarily improving the underlying representation. Motivated by this observation, we redesign R3GAN’s network components to preserve activation magnitudes statistically. Across a roadmap of configurations, we perform diagnostic ablations showing that the gains depend primarily on the discriminator redesign. We train all generators and discriminators from scratch, without pretrained discriminator features. The resulting R3GAN2 models reach FIDs of 2.12 with 17 M parameters, 1.60 with 61 M, and 1.52 with 131 M on class-conditional ImageNet-256. At 1 NFE, this is substantially more efficient than competing diffusion and autoregressive methods, and than prior GAN baselines too (e.g., 10$\times$ fewer parameters than StyleGAN-XL for similar FID). We also train directly in pixel space, achieving FIDs of 1.65 on CIFAR-10 and 2.19 on FFHQ $256\times256$, where our generator achieves comparable FID to StyleGAN-XL with fewer than half as many parameters. In sum, identifying and removing this discriminator magnitude pathology yields a new SOTA in FID/parameter efficiency for GANs.
BibTeX
@inproceedings{huang2026magnitude,
  author = {Nick Huang and Jackson Woodleigh and Aaron Gokaslan and Xinjie Yi and James Tompkin},
  title = {{Magnitude-preserving Discriminators Enable Efficient GANs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=fnr7DvbHE3},
}
Figure