[Paper Review] DigGAN: Discriminator gradIent Gap Regularization for GAN Training with Limited Data
DigGAN introduces a gradient-based regularization for GANs that minimizes the difference in gradient norms between real and generated images with respect to the discriminator's output. By reducing the Discriminator Gradient Gap (DIG), it stabilizes training under limited data, significantly improving FID scores—e.g., improving BigGAN's FID on CIFAR-100 from 73.01 to 27.61 with 10% data.
Generative adversarial nets (GANs) have been remarkably successful at learning to sample from distributions specified by a given dataset, particularly if the given dataset is reasonably large compared to its dimensionality. However, given limited data, classical GANs have struggled, and strategies like output-regularization, data-augmentation, use of pre-trained models and pruning have been shown to lead to improvements. Notably, the applicability of these strategies is 1) often constrained to particular settings, e.g., availability of a pretrained GAN; or 2) increases training time, e.g., when using pruning. In contrast, we propose a Discriminator gradIent Gap regularized GAN (DigGAN) formulation which can be added to any existing GAN. DigGAN augments existing GANs by encouraging to narrow the gap between the norm of the gradient of a discriminator's prediction w.r.t.\ real images and w.r.t.\ the generated samples. We observe this formulation to avoid bad attractors within the GAN loss landscape, and we find DigGAN to significantly improve the results of GAN training when limited data is available. Code is available at \url{https://github.com/AilsaF/DigGAN}.
Motivation & Objective
- To address the instability and performance degradation of GANs when training with limited data.
- To reduce the influence of bad attractors in the GAN loss landscape during training.
- To develop a lightweight, plug-in regularization that enhances existing GANs without requiring pretraining or data augmentation.
- To improve generalization and diversity in generated samples under data scarcity.
- To provide a theoretically grounded yet practically effective regularization that is agnostic to GAN architecture.
Proposed method
- Proposes a new regularization term that minimizes the absolute difference between the L2 norm of the discriminator’s gradient w.r.t. real images and w.r.t. generated images.
- Defines the Discriminator Gradient Gap (DIG) as |‖∇ₓD(x_real)‖₂ − ‖∇ₓD(x_fake)‖₂|, which is minimized during training.
- Applies the regularization as a penalty term in the GAN loss function, with a hyperparameter λ controlling its strength.
- Uses random pairing of real and generated samples for gradient computation, avoiding class-specific or magnitude-based pairing unless ablated.
- Integrates seamlessly into existing GAN frameworks such as BigGAN, SNGAN, and StyleGAN2 without architectural changes.
- Employs exponential moving average (EMA) to stabilize training dynamics and improve generalization.
Experimental results
Research questions
- RQ1Can reducing the gradient norm gap between real and generated data improve GAN training stability with limited data?
- RQ2Does the proposed DIG regularization mitigate the effect of bad attractors in the GAN optimization landscape?
- RQ3How does DigGAN compare to existing gradient-based regularizations like R1, GP-1, and DRAGAN in low-data regimes?
- RQ4Does the pairing strategy (random vs. class-based vs. magnitude-based) significantly affect DigGAN’s performance?
- RQ5Can DigGAN consistently improve FID scores across diverse architectures and datasets under data scarcity?
Key findings
- On CIFAR-100 with 10% data, DigGAN reduces FID from 73.01 (baseline) to 27.61, a 62.3% improvement.
- With 10% CIFAR-10 data, DigGAN improves FID from 23.75 (baseline) to 10.12, a 58.6% reduction.
- DigGAN outperforms R1, GP-1, and DRAGAN in FID across all settings, especially under low-data conditions.
- The ablation study shows that random pairing yields the best performance, while gradient magnitude pairing fails under 10% data.
- The regularization is robust across architectures: it improves FID on both BigGAN and StyleGAN2 with limited data.
- The gradient norm gap (DIG) is inversely proportional to data quantity, and DigGAN effectively reduces it, correlating with improved training stability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.