TL;DR
This paper introduces three novel curriculum learning strategies for training Generative Adversarial Networks (GANs), aiming to improve training speed and the quality of generated images. By leveraging an image difficulty predictor, these methods guide GANs to learn from easier examples first, leading to faster convergence and superior results in both image generation and translation tasks.
What Problem Does This Paper Address?
Generative Adversarial Networks (GANs) are powerful tools for generating realistic images, but they are notoriously difficult and unstable to train. This challenge often leads to long training times and suboptimal results. While curriculum learning, which involves presenting training data in a structured, increasingly difficult order, has shown promise in other machine learning domains, its application to GANs has been limited. This paper addresses this gap by proposing and evaluating novel curriculum learning strategies specifically designed to make GAN training more efficient and effective.
Methods
The core of this work lies in three curriculum learning strategies that all rely on an external image difficulty predictor. This predictor, trained on human visual search task data, assigns a difficulty score to each real training image.
- Image Difficulty Batches: The training data is divided into a fixed number of batches, ordered by increasing image difficulty. The GAN is initially trained only on the easiest batch. Subsequent batches are gradually introduced into the training process over time.
- Difficulty-Weighted Discriminator Loss: The discriminator's loss function is modified to incorporate the difficulty scores of real images. Initially, easier images are given more weight, and this weighting is gradually attenuated as training progresses, eventually converging to uniform importance.
- Difficulty-Based Sampling: The probability distribution for sampling real images is dynamically altered. During early training, easier images are sampled with higher probability, and this distribution gradually shifts towards a uniform sampling strategy as training advances.
These strategies are designed to be general and applicable to any GAN architecture. A key principle is to keep easier images available until later stages to prevent catastrophic forgetting, while ensuring all images eventually receive equal importance.
Datasets
- Image Generation: CIFAR-10 dataset (32x32 pixels, 10 classes).
- Image Translation:
- Horse2zebra (939 horse images, 1177 zebra images, 256x256 pixels).
- Apple2orange (996 apple images, 1020 orange images, 256x256 pixels).
No new benchmarks were introduced; standard datasets were used for evaluation.
Key Insights and Ideas
- Image difficulty is a valuable signal for GAN training: The paper demonstrates that by quantifying and utilizing the inherent difficulty of training images, GAN training can be significantly improved.
- Curriculum learning can mitigate GAN training instability: By starting with simpler examples, the GAN generator and discriminator can learn more robust representations and avoid common pitfalls like mode collapse.
- Different curriculum strategies offer distinct advantages: While all proposed methods improve performance, the "weighting" strategy achieved the best FID scores in image generation, while the "sampling" strategy showed faster convergence in terms of Inception Score.
- Human perception aligns with quantitative metrics: Human annotators found images generated by the curriculum-trained GANs to be more realistic and preferred them over those from baseline models, validating the effectiveness of the proposed methods.
Key Results
- Faster Convergence: Curriculum-SNGAN models achieved comparable or better Inception Scores (IS) with significantly fewer training iterations (e.g., reaching a good IS in 20,000 iterations instead of 65,000 for the baseline).
- Superior Image Generation Quality:
- On CIFAR-10, the best curriculum strategy fooled human annotators 25.0% of the time, compared to 18.4% for the baseline SNGAN (a 6.6% absolute gain).
- Quantitative metrics showed improvements: Curriculum-SNGAN achieved higher IS and lower Fréchet Inception Distance (FID) compared to state-of-the-art baselines. The "weighting" strategy achieved the best FID of 14.41.
- Improved Image Translation Quality:
- For horse2zebra, human annotators preferred the curriculum-trained CycleGAN in 52.5% of cases, compared to 11.9% for the baseline CycleGAN (a 40.6% absolute gain).
- Overall, human annotators preferred curriculum-based translations in 35.1% of cases on average, compared to 32.7% for the baseline.
Limitations and Future Work
- Computational Cost of Difficulty Prediction: The image difficulty predictor needs to be applied to all real training images before training begins, which adds an initial computational step. However, this is a one-time cost.
- Human Evaluation Cost: Evaluating image translation required extensive human annotation, leading the authors to focus on only one curriculum strategy for this task.
- Future Work: The authors aim to apply their curriculum learning strategies to generate larger images with more natural object variety. They also suggest exploring further curriculum learning strategies.
Summary updated