TL;DR
Transfer learning isn't just for classification anymore: fine-tuning pre-trained Generative Adversarial Networks (GANs) drastically cuts down training time and dramatically improves image quality when target data is scarce. Surprisingly, transferring the discriminator is more critical than transferring the generator, and dense, specialized source datasets often provide a better prior than massive, diverse ones like ImageNet.
What Problem Does This Paper Address?
Deep learning thrives on massive datasets, and Generative Adversarial Networks (GANs) are notoriously data-hungry. Training a GAN from scratch to generate high-quality, realistic images typically requires hundreds of thousands of samples. When data is limited, GANs suffer from instability, slow convergence, or "mode collapse" (where the generator outputs the same limited set of images).
While discriminative models (like image classifiers) routinely use pre-trained networks (e.g., trained on ImageNet) as a starting point to learn new tasks with minimal data, this practice of fine-tuning hadn't been systematically explored for generative models. This paper investigates whether—and how—we can transfer knowledge from a pre-trained GAN to a new target domain where data is limited.
Methods
The authors systematically evaluate domain adaptation for GANs using a robust WGAN-GP (Wasserstein GAN with Gradient Penalty) architecture backed by ResNet blocks. They explore several novel dimensions of generative transfer learning:
- Transfer Configurations: They test which parts of the network matter most by evaluating four setups: training both the Generator (G) and Discriminator (D) from scratch, transferring only G, transferring only D, or transferring both.
- Unconditional to Conditional Transfer: They investigate whether an unconditional GAN (trained without class labels) can be used to initialize a conditional GAN (cGAN). They test this using the AC-GAN (Auxiliary Classifier GAN) framework with two conditioning strategies:
- Cond Concat: Appending class labels directly to the input noise vector.
- Cond BNorm: Embedding class priors into the batch normalization layers of the generator.
To evaluate image quality and diversity, they employ two modern metrics: Fréchet Inception Distance (FID) and the Independent Wasserstein (IW) critic.
Datasets
The paper evaluates transfer performance across several well-known benchmarks, categorizing them into broad/diverse domains and narrow/dense domains:
- Source Datasets (Pre-training):
- ImageNet: 1M images, 1000 diverse classes.
- Places: 2.4M images, 205 scene classes.
- LSUN Bedrooms: 3M images, 1 dense class.
- CelebA: 200K images, 1 dense face class.
- Target Datasets (Fine-tuning):
- Oxford Flowers: 8K images, 102 classes.
- LSUN Kitchens: 50K images, 1 class.
- Labeled Faces in the Wild (LFW): 13K images, 1 class.
- Cityscapes: 3.5K images, 1 class.
Key Insights and Ideas
- The Discriminator is the Secret Sauce: Counter-intuitively, transferring the discriminator's weights is far more critical than transferring the generator's. In fact, transferring the generator without the discriminator can actually degrade performance compared to training from scratch. The pre-trained discriminator provides a structured, mature landscape of features that guides the generator much more effectively from day one.
- Density Beats Diversity: In discriminative tasks, a diverse source dataset like ImageNet is king. For generative tasks, density (many images of a narrow category) matters more. For instance, a GAN pre-trained on LSUN Bedrooms serves as a better source model for generating Kitchens than the much larger and more varied Places dataset, despite Places containing thousands of actual kitchen images.
- Cross-Domain Feature Re-purposing: When transferring between completely unrelated domains (e.g., from CelebA faces to Kitchens), the network creatively repurposes structural priors. Features originally meant for eyes, hair, and face shapes are adapted to define the layout, colors, and boundaries of kitchen cabinets and countertops.
Key Results
- Massive Data Efficiency: Initializing with a pre-trained GAN allows the network to achieve the same image quality score using 2x to 5x fewer images than a network trained from scratch.
- Superior Metrics: As shown in Table 1, transferring both the generator and discriminator yields the best results, dropping the FID score from 32.87 (scratch) to 24.35 (pre-trained) on LSUN Bedrooms.
- Faster Convergence: Pre-trained networks generate sharper, more structurally coherent images in significantly fewer training iterations.
- Human Validation: In psychophysical experiments where humans chose the more realistic image, the pre-trained models were overwhelmingly preferred in low-data regimes (e.g., preferred in 67% of cases when trained on only 1K images per class).
Limitations and Future Work
While the paper proves that transferring GANs is highly effective, it highlights that choosing the optimal source model remains difficult. Simple distance metrics (like measuring the FID between source and target datasets) offer a rough guide but don't always accurately predict final fine-tuning performance.
Additionally, even with transfer learning, a significant quality gap remains when target data is extremely scarce (e.g., only 1,000 images total). Future work will need to explore more sophisticated regularization techniques to prevent the transferred models from overfitting to these ultra-small target datasets.
Summary updated