TL;DR
Researchers at DeepMind have successfully trained a language Generative Adversarial Network (GAN) from scratch, completely bypassing the standard requirement for Maximum Likelihood Estimation (MLE) pre-training. By combining large batch sizes, dense rewards, and rigorous discriminator regularization, their model—ScratchGAN—achieves performance comparable to state-of-the-art MLE models in both text quality and diversity.
What Problem Does This Paper Address?
Generative Adversarial Networks (GANs) have revolutionized image synthesis, but natural language has remained a stubborn frontier. The primary hurdle is the discrete nature of text: you cannot easily backpropagate gradients through the sampling of words. Furthermore, language GANs are notoriously unstable, prone to "mode collapse" (where the model generates the same few sentences repeatedly), and difficult to evaluate.
To cope, the research community has largely relied on a "crutch": pre-training the generator using standard Maximum Likelihood Estimation (MLE) and then using the GAN objective only for fine-tuning. However, this often results in models that barely deviate from their MLE starting points and sometimes even produce worse samples. The authors ask a fundamental question: Can we remove the MLE crutch and train a language GAN entirely from scratch?
Methods
The authors introduce ScratchGAN, which utilizes a standard LSTM-based generator and discriminator but incorporates several critical stabilization techniques:
- Dense Rewards: Instead of giving the generator a single reward at the end of a full sentence, the discriminator is recurrent. It provides a "dense" reward at every single timestep (for every word generated), which significantly reduces the variance of the learning signal.
- Variance Reduction: The model uses the REINFORCE algorithm for gradient estimation. To manage the high variance inherent in this method, the authors employed exceptionally large batch sizes (up to 768) and a global moving-average baseline for rewards.
- Discriminator Regularization: To prevent the discriminator from simply memorizing the training data (which would provide useless gradients to the generator), the authors applied Layer Normalization, dropout, and L2 weight decay.
- Positional Information: They found that adding fixed sinusoidal positional embeddings to the discriminator was essential for the model to learn the correct distribution of sentence lengths.
Datasets
The model was evaluated on two standard benchmarks:
- EMNLP2017 News: A smaller dataset (300k sentences, 5.7k vocabulary) used to compare against previous language GAN literature.
- WikiText-103: A large-scale dataset (4 million sentences, 20k vocabulary) that represents a more realistic and challenging natural language modeling task.
Key Insights and Ideas
- The Power of Scale: The ablation study revealed that large batch sizes were the single most impactful factor for stability. By sampling more "experience" from the generator, the gradient estimates become reliable enough to train from a random initialization.
- Regularization is Non-Negotiable: Without heavy discriminator regularization, the GAN objective fails. A discriminator that is "too good" too early provides a signal that is too sharp for the generator to follow.
- Learned Rewards as a Curriculum: The authors postulate that a learned discriminator provides a smoother, more generalized signal than the rigid MLE objective. As the discriminator improves, it naturally creates a curriculum for the generator, exploring parts of the data space that MLE models (which only see the training set) might ignore.
- Length Bias: Recurrent discriminators naturally struggle with sentence length. Explicitly providing positional information (Figure 6b in the paper) was the "aha moment" needed to match the training data's length distribution.
Key Results
ScratchGAN is the first model to achieve results comparable to MLE without any pre-training.
- Quality vs. Diversity: On the EMNLP2017 News dataset, ScratchGAN significantly closed the gap between GANs and MLE models, performing better than previous GANs like LeakGAN or SeqGAN on the quality-diversity trade-off (measured by BLEU vs. Self-BLEU).
- Global Consistency: On the larger WikiText-103 dataset, ScratchGAN actually outperformed the MLE baseline on the Fréchet Embedding Distance (FED) metric, suggesting it captures global semantic consistency better than traditional models.
- Novelty: Nearest neighbor analysis confirmed that the model was not simply "copy-pasting" snippets from the training set, but generating genuinely novel sentences.
Limitations and Future Work
While ScratchGAN proves that adversarial training is viable for text, it still relies on an autoregressive (word-by-word) structure. The authors note that the ultimate promise of GANs—one-shot feed-forward generation (generating a whole sentence in a single pass)—remains an open challenge for future research.
Additionally, the paper highlights the ongoing "evaluation crisis" in NLP: no single metric (BLEU, FED, or Perplexity) captures all aspects of human language. Future work will likely focus on more powerful architectures, like Transformers, and developing discriminators that can specifically target linguistic features like syntax and logic.
Summary updated