FreGAN: Exploiting Frequency Components for Training GANs under Limited Data

Mengping Yang, Zhe Wang, Ziqiu Chi, Yanbing Zhang

Training Generative Adversarial Networks (GANs) typically requires massive datasets to achieve photorealistic results. When data is extremely scarce—sometimes fewer than 100 images—the discriminator quickly "memorizes" the training set. This leads to overfitting, providing useless feedback to the generator and causing the training to diverge or produce blurry, artifact-heavy images.

FreGAN introduces a frequency-aware framework designed to stabilize GAN training in these extremely low-data regimes. By forcing the model to explicitly process and align high-frequency details (like edges and textures) using wavelet transforms, FreGAN prevents discriminator overfitting and helps the generator synthesize highly realistic images.

The Problem: Spectral Bias in GANs

The authors identify a specific "spectral bias" inherent in standard GAN architectures: they naturally prioritize low-frequency signals (broad shapes and colors) while largely ignoring high-frequency signals (fine details and sharp edges).

In low-data environments, this bias is severely exacerbated. It results in an "unhealthy competition" where the discriminator becomes overconfident based on simple, low-frequency patterns, while the generator loses the ability to synthesize realistic, crisp textures.

Methods: A Frequency-Aware Architecture

FreGAN (Frequency GAN) modifies the standard GAN architecture by integrating three key components based on the Haar Wavelet Transformation. These components ensure that high-frequency details are preserved, scrutinized, and aligned throughout the generation process.

Overview of the FreGAN architecture featuring Frequency Skip Connections, High-Frequency Alignment, and a High-Frequency Discriminator.
  1. High-Frequency Discriminator (HFD): Instead of evaluating the raw image alone, the discriminator uses wavelet pooling to decompose intermediate features into distinct frequency bands. It specifically scrutinizes the high-frequency components to ensure the generator isn't "cheating" on fine details.
  2. Frequency Skip Connection (FSC): In standard generators, high-frequency information often degrades as the network grows deeper. FSC uses wavelet unpooling to pass reconstructed frequency representations directly to subsequent layers, preserving fine details from start to finish.
  3. High-Frequency Alignment (HFA): This self-supervised constraint calculates the distance between the high-frequency features of real images (as seen by the discriminator) and generated images. This aligns the generator’s output with the statistical frequency distribution of real data, preventing the synthesis of arbitrary or noisy high-frequency signals.

Key Insights

  • Frequency as a Regularizer: While most low-data GAN research focuses on spatial data augmentation (e.g., flipping, rotating), FreGAN demonstrates that regulating the internal representation of the data's frequency is just as critical for training stability.
  • Balancing Information Asymmetry: In standard GANs, the discriminator often has an unfair advantage. By utilizing HFA, FreGAN provides the generator with an explicit "clue"—the high-frequency signals of real images induced from the discriminator—helping it catch up in the adversarial game.
  • Multi-scale Mining: HFD and HFA are applied across multiple feature scales (e.g., 8x8, 16x16, 32x32). This ensures the model captures frequency information at various levels of abstraction, from micro-textures to larger structural edges.

Key Results

The authors rigorously tested FreGAN across a wide variety of domains and resolutions, ranging from 256x256 "100-shot" datasets (Panda, Obama, Grumpy Cat) to 1024x1024 high-resolution datasets (Skulls, Shells).

FreGAN achieved state-of-the-art (SOTA) performance on 14 out of 15 tested datasets, as measured by Fréchet Inception Distance (FID) and Kernel Inception Distance (KID).

Qualitative comparison between FastGAN and FreGAN on extremely limited datasets.
  • Extreme Low-Data Success: On the "Flat" dataset, which contains a mere 36 images, FreGAN improved the FID from 216.27 (FastGAN baseline) to 178.10.
  • High-Resolution Detail: On 1024x1024 datasets like "Skulls," FreGAN dropped the FID from 101.94 to 86.12, yielding a significant improvement in the clarity of contours around the eyes and nose.
  • Qualitative Superiority: Visual comparisons confirm that while baseline models like FastGAN produce "mushy" textures or distorted features under limited data, FreGAN maintains structural rationality and crisp, realistic details.

Limitations and Future Work

While highly effective for small datasets, FreGAN still struggles if the few available images have extremely varied content (e.g., a dataset where no two images share structural similarities). Additionally, the model may fail to generalize if the training distribution is heavily long-tailed or imbalanced.

Moving forward, the authors plan to implement these frequency-aware techniques on other powerful backbones, such as StyleGAN2, and explore applications beyond static image generation.

Summary updated

BibTeX
@inproceedings{yang2022fregan,
  author = {Mengping Yang and Zhe Wang and Ziqiu Chi and Yanbing Zhang},
  title = {{FreGAN: Exploiting Frequency Components for Training GANs under Limited Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure