Abstract
Training a Generative Adversarial Networks (GAN) for a new domain from scratch requires an enormous amount of training data and days of training time. To this end, we propose DAWSON, a Domain Adaptive FewShot Generation FrameworkFor GANs based on meta-learning. A major challenge of applying meta-learning GANs is to obtain gradients for the generator from evaluating it on development sets due to the likelihood-free nature of GANs. To address this challenge, we propose an alternative GAN training procedure that naturally combines the two-step training procedure of GANs and the two-step training procedure of meta-learning algorithms. DAWSON is a plug-and-play framework that supports a broad family of meta-learning algorithms and various GANs with architectural-variants. Based on DAWSON, We also propose MUSIC MATINEE, which is the first few-shot music generation model. Our experiments show that MUSIC MATINEE could quickly adapt to new domains with only tens of songs from the target domains. We also show that DAWSON can learn to generate new digits with only four samples in the MNIST dataset.
Introduction
Generative Adversarial Networks (GANs) have revolutionized content creation, yet they remain notoriously data-hungry and computationally expensive. Training a GAN for a new domain typically requires thousands of samples and extensive GPU time. While "few-shot learning" has seen success in discriminative tasks, it remains a significant challenge for generative models.
The primary hurdle is that GANs are likelihood-free. Most meta-learning algorithms, such as Model-Agnostic Meta-Learning (MAML), rely on evaluating a model's performance on a "development set" to calculate a gradient for a meta-update. Because a generator's loss is tied to a dynamic discriminator rather than a static objective function, standard meta-learning cannot be directly applied. DAWSON (Domain Adaptive Few Shot Generation Framework) bridges this gap, enabling GANs to learn from a handful of examples.
The DAWSON Framework
DAWSON is designed as a "plug-and-play" framework that integrates GAN architectures with meta-learning algorithms like MAML and Reptile. The core innovation lies in aligning the two-step nature of GAN training (Generator vs. Discriminator) with the two-step nature of meta-learning (Inner loop vs. Outer loop).
Training Procedure
- Inner Loop: The model clones its parameters and performs gradient descent on a specific task (e.g., a specific music genre) using a small training split.
- Outer Loop (Meta-Update): To derive a gradient for the generator on the development split, DAWSON uses a discriminator updated on those specific development samples. This provides the generator with the necessary feedback to generalize across domains.
- ACGAN Integration: The authors found that incorporating a multi-class classification layer into the discriminator (similar to an Auxiliary Classifier GAN) acts as a powerful regularizer, helping the model learn domain-specific features more efficiently.
Experimental Setup and Datasets
The framework was validated across two distinct domains to test its versatility:
- Image Generation (MNIST): The model was meta-trained on digits 0-8 and tasked with generating the digit '9' using only four samples (4-shot learning).
- Music Generation (Lakh MIDI + Million Song Dataset): By enriching MIDI data with genre metadata, the authors created tasks partitioned by genre (e.g., Rock, Classical, Blues). This led to the creation of MUSIC MATINEE, the first few-shot music generation model based on the MuseGAN architecture.
Key Results
DAWSON demonstrates remarkable sample efficiency and speed. On the MNIST dataset, the model achieved higher sharpness and diversity in just 33 minutes (1,200 epochs) compared to a baseline GAN that required 577 minutes (40,000 epochs). Specifically, DAWSON improved the Sharpness score from 0.324 to 0.332 and Diversity from 7.32 to 8.61.
In the music domain, MUSIC MATINEE successfully adapted to held-out genres like Punk and Blues using only tens of songs. In contrast, a standard MuseGAN would typically require thousands of samples to reach comparable quality.
Discussion and Future Work
Several key insights emerged from the development of DAWSON. First, Reptile-style meta-learning was often found to be more stable for GANs than MAML, as it simplifies gradient updates and avoids the computational complexity of "gradients-of-gradients." Second, the likelihood gap can be effectively bypassed by using a "cloned" discriminator that adapts to the development set, providing a proxy for unseen data performance.
Despite these successes, challenges remain. Music generation is inherently more complex than image generation due to its high dimensionality and the subjective nature of evaluation. Future work will focus on more rigorous theoretical analysis of meta-learning convergence in adversarial settings and the development of better quantitative metrics for music quality.
Summary updated