TL;DR
Most text-based Generative Adversarial Networks (GANs) rely heavily on pre-training with standard language models, effectively masking their true adversarial performance. This paper introduces ConGAN, a model that achieves end-to-end differentiability by generating continuous word embeddings instead of discrete tokens. This allows it to be trained from scratch without the usual stability issues, though it still highlights the challenges of outperforming traditional non-adversarial methods.
The Discrete Text Problem
Training GANs for text is notoriously difficult because text is discrete. In an image GAN, a small change to a pixel's value is differentiable; in text, you cannot "slightly change" the word cat to the word dog in a way that mathematical optimization easily understands.
To circumvent this, researchers typically use Reinforcement Learning (RL) or approximations like Gumbel-Softmax. However, these methods are famously unstable. To make them work, researchers almost always pre-train the generator using Maximum Likelihood Estimation (MLE)—essentially training a standard language model first and then using the GAN to "fine-tune" it. This makes it difficult to determine if the GAN is actually driving the performance or if it is merely coasting on the MLE pre-training. The authors set out to determine if a GAN can be trained for text from scratch and remain stable.
The ConGAN Approach
The authors propose ConGAN (Continuous Output GAN). Instead of the generator trying to pick a discrete word from a dictionary, it outputs a continuous, low-dimensional vector that represents a word's embedding.
Key technical components include:
- Continuous Outputs: The generator produces a sequence of vectors that are fed directly into the discriminator. Because the data is continuous, gradients can flow perfectly from the discriminator back to the generator using standard backpropagation.
- Wasserstein GAN with Gradient Penalty (WGAN-GP): The model uses this specific GAN objective to further stabilize training and prevent "mode collapse" (where the generator repeats the same high-scoring phrase).
- Curriculum Learning: To prevent the model from getting lost early in training, it starts by generating sequences of length 1, gradually increasing the length as training progresses.
- Nearest Neighbor Inference: Because the model outputs vectors, at "test time," it finds the closest actual word in a pre-trained embedding table (like fastText) to convert those vectors back into human-readable text.
Experimental Setup
The study evaluates the model using the COCO Image Captions dataset, which serves as a standard benchmark for unconditional text generation. The dataset includes 10,000 sentences for training and testing, featuring simple sentences with a maximum length of 37 words and a vocabulary size of 4,682.
Key Results and Insights
The researchers compared ConGAN against several popular GAN variants (SeqGAN, RankGAN, LeakGAN, RelGAN) both with and without pre-training.
The Pre-training Illusion: The authors argue that the "success" of many previous text GANs is largely due to MLE pre-training. When that crutch is removed, most existing models perform no better than random noise.
Training from Scratch: ConGAN proves that a text GAN can be trained from scratch stably, showing much lower variance across different training runs compared to RL-based approaches. Without pre-training, ConGAN significantly outperformed the competition.
As shown above, ConGAN achieved a BLEU-2 score of 0.712, while the next best model (RelGAN) scored 0.590, and others were near zero. However, despite being the best GAN-from-scratch, ConGAN still fell short of a standard MLE model, which achieved a BLEU-2 of 0.748.
Diversity and Mode Collapse: ConGAN showed decent diversity, but the authors noted that mode collapse remains a persistent threat in adversarial text generation.
Even though ConGAN is more stable, it still struggles to beat a well-tuned MLE model. The authors posit two reasons for this performance gap:
- Architecture Mismatch: GANs thrive on feed-forward structures (like those used for images), but text requires autoregressive, recurrent structures that are harder for GANs to optimize.
- The Distance Metric Problem: WGANs rely on measuring the "distance" between distributions. While $L_2$ distance works for pixels, it does not capture the semantic nuances of language well.
Limitations and Future Work
The authors are refreshingly honest about the limitations of their approach:
- Binary Signal: A simple "real vs. fake" signal from the discriminator might not be dense enough to teach a generator the complexities of grammar and logic.
- Semantic Distance: Future work needs to move beyond simple Euclidean ($L_2$) distances for the Wasserstein objective, perhaps incorporating more linguistically aware distance metrics.
- Meaning vs. Fluency: While the model can generate fluent-sounding snippets, it often fails to produce sentences that are actually meaningful or logically consistent over long sequences.
Summary updated