TL;DR
This paper introduces Learning by Teaching (LBT), a novel framework for training implicit generative models by optimizing the forward KL-divergence rather than the standard GAN Jensen-Shannon (JS) divergence. By introducing an auxiliary explicit density estimator that learns from the generator, LBT inherently penalizes missing modes, effectively eliminating the notorious mode collapse problem while maintaining high sample quality.
What Problem Does This Paper Address?
Implicit generative models, most notably Generative Adversarial Networks (GANs), excel at producing high-quality, realistic samples without needing an explicit probability density function. However, they suffer from a major flaw: mode collapse.
Because standard GANs minimize the JS-divergence, the generator is heavily penalized for producing unrealistic samples but barely penalized for completely ignoring entire segments (modes) of the target data distribution. While the forward KL-divergence is theoretically "zero-avoiding"—meaning it forces the model to cover all modes—it requires an explicit density function, making it directly inapplicable to implicit models. The authors set out to bridge this gap, allowing implicit models to benefit from the mode-covering properties of the forward KL-divergence.
Methods
The authors propose Learning by Teaching (LBT), which frames training as a bilevel optimization problem involving the implicit generator ($G$) and an auxiliary explicit density estimator ($E$):
- Lower-level loop (The Student): The estimator $E$ acts as a student, trained via Maximum Likelihood Estimation (MLE) to fit the distribution of samples currently produced by the generator $G$.
- Upper-level loop (The Teacher): The generator $G$ acts as the teacher, optimized to maximize the log-likelihood of real data evaluated by the trained estimator $E$.
If $G$ collapses and misses a mode, $E$ will also fail to learn that mode. Consequently, $E$ will assign a very low likelihood to real data coming from that missed mode, heavily penalizing $G$ during the upper-level update and forcing it to expand its coverage.
To make this bilevel problem tractable, the authors use an unrolling technique (running $K$ steps of gradient descent on $E$ to approximate the optimal parameters differentiably with respect to $G$). Furthermore, they introduce LBT-GAN, a hybrid model that adds a standard GAN discriminator to the mix, combining the mode-covering benefits of LBT with the sharp sample quality of traditional GANs.
Datasets
The authors evaluated their approach on a mix of synthetic benchmarks and standard computer vision datasets:
- 2D Synthetic Datasets: A ring of 8 Gaussians and a grid of 100 Gaussians, used to explicitly track mode coverage and local diversity.
- Stacked MNIST: A variant of MNIST created by stacking three random digit images across color channels to generate 1,000 distinct discrete modes.
- Natural Image Datasets: CIFAR-10 and CelebA to verify performance on high-dimensional real-world data.
Key Insights and Ideas
- The Power of Forward KL: The contours of JS-divergence allow for mode-collapsed local optima, whereas forward KL-divergence has a single global optimum where the model matches the data distribution perfectly.
- Flawed Students Still Teach Well: Remarkably, the explicit density estimator does not need perfect capacity to be effective. Even if $E$ is too simple (e.g., a single Gaussian trying to fit a mixture), it still forces the generator to match the sufficient statistics (like the mean) of the true data, providing enough gradient signal to escape mode collapse.
Key Results
- Perfect Mode Coverage: On the 100-Gaussian grid dataset, LBT and LBT-GAN successfully captured all 100 modes, whereas standard GANs, VEEGAN, and Unrolled-GAN dropped significant numbers of modes.
- Stacked MNIST Triumph: On the challenging 1,000-mode Stacked MNIST dataset, LBT-GAN (using a NADE estimator) captured all 1,000 modes with a remarkably low KL divergence of 0.05. For comparison, standard DCGAN only captured 188.8 modes, and PacGAN captured 664.2.
- Robustness to Architecture: When scaled to CelebA using a small generator network, LBT-GAN achieved a Frechet Inception Distance (FID) score of 62.3, vastly outperforming standard GAN (156.9) and VAE-GAN (100.5), proving it is far less sensitive to hyperparameter and architecture tuning.
Limitations and Future Work
- Computational Overhead: The primary bottleneck is the unrolling technique required for bilevel optimization. Each update step is significantly slower because it requires computing gradients through multiple steps of the estimator's inner optimization loop.
- Training Complexity: Training a full density estimator is inherently more complex and slower to converge than training a simple binary classifier (like a standard GAN discriminator).
- Future Directions: The authors suggest exploring more efficient ways to solve the bilevel optimization problem to scale LBT to massive datasets, as well as reversing the relationship so that implicit generators can act as fast approximate samplers for slow, explicit autoregressive models.
Summary updated