ARAML: A Stable Adversarial Training Framework for Text Generation

Pei Ke, Fei Huang, Minlie Huang, Xiaoyan Zhu

Abstract

Generative Adversarial Networks (GANs) have shown great promise in image synthesis but face significant challenges in discrete text generation. Traditional approaches using Reinforcement Learning (RL) to bridge the gap between discrete tokens and continuous gradients often suffer from high variance and training instability. This paper introduces ARAML (Adversarial Reward Augmented Maximum Likelihood), a framework designed to stabilize adversarial text generation. By reformulating the adversarial objective as a reward-augmented maximum likelihood task and sampling from a stationary distribution near the real data, ARAML mitigates exposure bias and prevents training collapse. Experimental results on COCO, EMNLP2017 WMT, and WeiboDial datasets demonstrate that ARAML significantly improves both the fluency and diversity of generated text compared to state-of-the-art baselines.

Introduction

The standard training paradigm for text generation, Maximum Likelihood Estimation (MLE), is plagued by exposure bias. During training, the model is exposed only to ground-truth tokens, but during inference, it must generate sequences based on its own previous (and potentially erroneous) outputs. While GANs offer a potential solution by introducing a discriminator to provide feedback, the discrete nature of text necessitates the use of Policy Gradient methods. These RL-based techniques are notoriously unstable, often leading to mode collapse where the generator produces repetitive, safe, but non-diverse sequences.

Methodology: The ARAML Framework

ARAML addresses the instability of text GANs through two primary innovations: a shift from RL to weighted MLE and the use of stationary sampling.

From Policy Gradient to Weighted MLE

Instead of maximizing expected rewards via volatile policy gradients, ARAML adopts the Reward Augmented Maximum Likelihood (RAML) approach. In this setup, the discriminator's rewards are treated as weights for a maximum likelihood objective. The generator is trained to maximize the likelihood of samples that the discriminator deems high-quality. This anchors the adversarial process within the stable, well-understood framework of MLE.

Stationary Sampling and Importance Sampling

In traditional GANs, the generator is trained on its own evolving distribution, which can lead to a "blind leading the blind" scenario if the generator is poor. ARAML instead samples from a stationary distribution ($P_s$). This distribution is constructed by slightly perturbing real data points (e.g., via word substitutions based on edit distance).

Figure 1: The ARAML training pipeline. Real data is sampled to create a stationary distribution $P_s$. The discriminator provides rewards for these samples, which are then used to update the generator via weighted MLE.

To ensure the generator learns to match the target distribution despite being trained on $P_s$, the authors employ importance sampling. This technique adjusts the updates to account for the difference between the stationary sampling distribution and the generator's current policy.

Experimental Evaluation

The authors evaluated ARAML on three benchmarks: COCO (image captions), EMNLP2017 WMT (news), and WeiboDial (Chinese social media dialogue).

Stability and Diversity

A key metric for text GANs is the balance between fluency (Forward Perplexity, PPL-F) and diversity (Reverse Perplexity, PPL-R). While many models achieve low PPL-F by sacrificing diversity, ARAML maintains high performance in both.

Figure 3: Training curves for PPL-F (top) and PPL-R (bottom) across different models. ARAML demonstrates superior stability and lower PPL-R (higher diversity) compared to baselines like LeakGAN and SeqGAN.

As shown in the training curves, ARAML's performance remains consistent across epochs, whereas models like LeakGAN show significant spikes in perplexity, indicating instability or training collapse. On the COCO dataset, ARAML achieved a PPL-R of 35.79, a dramatic improvement over LeakGAN's 87.54. Lower PPL-R indicates that the model's generated distribution is much closer to the real data distribution, effectively beating mode collapse.

Conclusion

ARAML represents a significant step toward making adversarial text generation practical and reliable. By restricting exploration to the vicinity of real data and leveraging the stability of maximum likelihood objectives, it overcomes the primary hurdles of RL-based GANs. Future research may refine the "closeness" metric for stationary sampling using semantic embeddings and explore the scalability of ARAML to large-scale Transformer architectures.

Summary updated

BibTeX
@inproceedings{ke2019araml,
  author = {Pei Ke and Fei Huang and Minlie Huang and Xiaoyan Zhu},
  title = {{ARAML: A Stable Adversarial Training Framework for Text Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2019},
  doi = {10.18653/v1/d19-1436},
}
Figure