Regularizing Generative Adversarial Networks Under Limited Data

Hung-Yu Tseng, Lu Jiang, Ce Liu, Ming-Hsuan Yang, Weilong Yang

Summary

Generative Adversarial Networks (GANs) typically require massive datasets to produce high-quality images, often failing when data is scarce. This research introduces LeCam regularization ($R_{LC}$), a simple yet powerful technique that stabilizes GAN training by penalizing the discriminator's predictions based on their historical moving averages. This approach allows GANs to achieve state-of-the-art performance on limited datasets, such as just 10% of ImageNet.

The Problem: Discriminator Overfitting

The success of GANs—the "artist" (Generator) and the "critic" (Discriminator) duo—hinges on having a vast and diverse training set. When data is limited, the Discriminator quickly "memorizes" the few available training samples, a phenomenon known as overfitting.

Once the Discriminator overfits, it becomes too good at distinguishing real from fake based on trivial details rather than meaningful patterns. This provides useless, noisy gradients to the Generator, leading to unstable training and poor image quality. While recent work has focused on Data Augmentation (DA), this paper tackles the problem from a model regularization perspective, modifying the loss function to improve robustness.

Methodology: LeCam Regularization ($R_{LC}$)

The proposed LeCam regularization ($R_{LC}$) anchors the discriminator’s current predictions to its past behavior using Exponential Moving Averages (EMA). The system tracks two anchors: $\alpha_R$ (average prediction for real images over time) and $\alpha_F$ (average prediction for generated/fake images over time).

During training, the loss function penalizes the Discriminator if its current prediction for a real image is too far from the historical average of fake images, and vice-versa. Mathematically, this penalty is equivalent to minimizing the LeCam-divergence (also known as triangular discrimination). Unlike standard GAN losses (like Jensen-Shannon divergence), the LeCam-divergence remains bounded and symmetric even when the data distributions are very different, preventing the Discriminator from "running away" with the loss and crashing the training process.

Key Results

The researchers evaluated $R_{LC}$ on several standard benchmarks, specifically testing how performance degrades as data is removed from datasets like CIFAR-10/100 and ImageNet (tested at 100%, 50%, 25%, and 10% scales).

Comparison of BigGAN with Data Augmentation (DA) and the proposed LeCam regularization ($R_{LC}$). The graph shows FID improvements across various ImageNet training set sizes.

As shown in the figure above, adding $R_{LC}$ significantly reduces the Fréchet Inception Distance (FID), where lower scores indicate higher image quality. On 10% of ImageNet, a standard BigGAN model scores an FID of 42.99. Adding DA improves this to 37.71, but combining DA with $R_{LC}$ slashes the FID to 24.38. Qualitatively, models trained with $R_{LC}$ produce much sharper and more recognizable objects (such as the Norfolk terrier and Indigo bunting samples) compared to the blurry, distorted outputs of the baselines.

Discussion and Conclusion

A notable finding is that larger models, which typically overfit faster on small data, actually benefit more from $R_{LC}$. This suggests the regularization effectively "unlocks" the potential of high-capacity models even when data is tight. While highly effective for class-conditional and unconditional image generation, future work may extend $R_{LC}$ to other GAN tasks like image-to-image translation or explore its robustness against noisy labels in limited datasets.

Summary updated

BibTeX
@inproceedings{tseng2021regularizing,
  author = {Hung-Yu Tseng and Lu Jiang and Ce Liu and Ming-Hsuan Yang and Weilong Yang},
  title = {{Regularizing Generative Adversarial Networks Under Limited Data}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00783},
}
Figure