This NeurIPS 2020 paper, "ColdGANs: Taming Language GANs with Cautious Sampling Strategies," presents a significant breakthrough in the long-standing struggle to make Generative Adversarial Networks (GANs) work effectively for text generation.
TL;DR
While GANs revolutionized image generation, they have historically underperformed simple Maximum Likelihood Estimation (MLE) in text generation due to unstable training and sparse rewards. ColdGANs solve this by "taming" the exploration process—forcing the model to sample from high-probability regions (cautious sampling) during training. This allows GANs to finally outperform MLE baselines across unconditional generation, question generation, and summarization.
The Problem: Exposure Bias and GAN Instability
Most state-of-the-art language models are trained using Maximum Likelihood Estimation (MLE) with "Teacher Forcing." During training, the model sees the perfect ground-truth prefix; however, at inference, it must rely on its own (potentially erroneous) previous tokens. This mismatch is known as exposure bias, and it often leads to repetitive or nonsensical "degenerate" text, especially in longer sequences.
Generative Adversarial Networks (GANs) should theoretically fix this. By using a Discriminator to provide a sequence-level reward, the model learns to produce text that "looks human" as a whole. However, because text is discrete (preventing standard backpropagation), researchers use Reinforcement Learning (RL) to estimate gradients. Historically, this has been highly problematic: the search space of natural language is too vast, rewards are too sparse, and training is incredibly unstable. Consequently, most "Language GANs" actually perform worse than the MLE models they were meant to improve.
The ColdGAN Solution
The authors identify a "No Free Lunch" theorem for discriminators: a discriminator trained on highly random samples (high-entropy exploration) becomes a specialist at spotting "obvious" garbage but fails to provide useful feedback for the high-quality, "greedy" sequences that the model actually outputs at test time.
To fix this, they introduce ColdGANs, which utilize several key techniques:
- Cautious Sampling (The "Cold" in ColdGANs): Instead of standard sampling (Temperature $T=1$), they sample from "colder" distributions ($T < 1$). This forces the generator to stay within its "comfort zone"—the high-probability modes of the distribution—making the discriminator's job more relevant to the final task.
- Importance Sampling (IS): Since they are sampling from a "cold" distribution but want to update the original "hot" policy, they use Importance Sampling to keep the gradient estimation unbiased.
- Nucleus Mixture: To prevent the Importance Sampling weights from exploding, they use a mixture of Nucleus Sampling and temperature-based sampling.
- Stability Mechanisms: They employ Importance Weight Clipping to bound variance and Memory Replay to prevent the "catastrophic forgetting" often seen in the minimax game between a GAN's generator and discriminator.
Key Insights: Mitigating Exposure Bias
A major insight from the paper is that the failure of previous Language GANs wasn't necessarily the reward function, but the exploration strategy. Standard RL exploration in natural language is simply too noisy.
Furthermore, the results show that ColdGANs successfully mitigate exposure bias. Because exposure bias compounds as a sequence grows, a model that fixes it should show the most improvement on longer texts.
As demonstrated, ColdGANs provide the most significant performance gains on longer sequences, confirming the hypothesis that sequence-level GAN training effectively combats the compounding errors of MLE.
Key Results
ColdGANs represent one of the first instances where a GAN-based approach consistently beats strong MLE baselines in NLP. The authors evaluated the models using T5-small and BART architectures on several tasks:
- Question Generation: Using a BART-based ColdGAN, they achieved a state-of-the-art 23.05 BLEU-4 on the SQuAD dataset.
- Summarization: They reached 41.12 ROUGE-L on the CNN/Daily Mail dataset, outperforming the BART (MLE) baseline.
- Human Evaluation: In a blind test for question generation, human evaluators rated ColdGAN-generated questions as significantly more fluent than those from the MLE baseline.
Interestingly, both machine models were rated as more fluent than the human-written ground truth, likely because human annotators often use informal language or make typos.
Limitations and Future Work
- Computational Cost: Training GANs is significantly more expensive than MLE. The authors had to use T5-small (60M parameters) for most experiments due to the computational overhead of the GAN training loop.
- Bootstrap Dependency: ColdGANs still require a good MLE-based "warm start" (pre-training). They act as an optimization on top of MLE, not a replacement for the initial learning phase.
- Future Directions: The authors suggest combining ColdGANs with "denser" rewards (providing feedback at every token rather than just at the end of the sentence) to further improve stability and performance.
Summary updated