ACtuAL: Actor-Critic Under Adversarial Learning

Anirudh Goyal, Nan Rosemary Ke, Alex Lamb, R. Devon Hjelm, Chris Pal, Joelle Pineau, Yoshua BengioarXiv 2017

Abstract

Generative Adversarial Networks (GANs) have transformed generative modeling in continuous domains, yet their application to discrete text generation remains challenging due to the non-differentiability of token sampling. We introduce ACtuAL (Actor-Critic Under Adversarial Learning), a framework that bridges this gap by reframing GAN training as a Reinforcement Learning (RL) problem. By utilizing an actor-critic architecture and Temporal Difference (TD) learning, ACtuAL provides a stable, step-by-step reward signal that mitigates the high variance typically associated with policy gradient methods. Our experiments on standard language modeling benchmarks, including Penn Treebank and Text8, show that ACtuAL consistently outperforms traditional Teacher Forcing baselines in terms of both likelihood and sequence quality.

Introduction

The primary obstacle in applying GANs to text is the "non-differentiable" hurdle: choosing a word from a vocabulary is a discrete operation that breaks the gradient chain required for backpropagation from the discriminator to the generator. Consequently, most sequence models rely on Teacher Forcing, where the model predicts the next token given ground-truth history. This leads to "exposure bias," where the model fails to handle its own errors during free-form generation at test time.

While previous attempts have used policy gradient methods like REINFORCE to optimize discrete generators, these often suffer from high variance and difficult credit assignment—it is hard to determine which specific token in a long sequence led to a low discriminator score.

Methods: The ACtuAL Framework

ACtuAL addresses the credit assignment problem by introducing a Critic into the adversarial loop. The framework consists of three primary components:

  1. The Actor (Generator): A recurrent neural network (RNN) that samples discrete tokens sequentially.
  2. The Discriminator: A bidirectional RNN that evaluates completed sequences, providing a reward signal $r_T$ based on the sequence's realism.
  3. The Critic: An RNN designed to predict the final reward from the discriminator at each timestep, even before the sequence is complete.
The ACtuAL architecture illustrating the interaction between the Actor (Generator), Critic, and Discriminator.

To stabilize training, ACtuAL employs Temporal Difference (TD) learning. Instead of waiting for the end of a sequence to update the policy (as in Monte Carlo methods), the critic updates its estimates step-by-step. This significantly reduces gradient variance. Additionally, the authors incorporate a variance penalty to manage large vocabularies and use "delayed" network versions for target calculations, a technique borrowed from deep RL to prevent training instabilities.

Experimental Results

The effectiveness of ACtuAL was evaluated on several benchmarks, including the Penn Treebank (PTB), Text8, and a Chinese Poetry dataset.

Quantitative Performance

On the Word-Level Penn Treebank dataset, ACtuAL demonstrated a clear advantage over the standard Teacher Forcing baseline. As shown in the table below, the inclusion of the actor-critic framework led to a significant reduction in Negative Log-Likelihood (NLL).

Comparison of Negative Log-Likelihood (NLL) on the Word-Level Penn Treebank dataset.

Key quantitative highlights include:

  • Word-Level PTB: Achieved a Test NLL of 149.36, compared to 152.85 for Teacher Forcing.
  • Character-Level PTB: Improved Bits Per Character (BPC) from 1.38 to 1.34.
  • Text8: Scaled effectively to larger datasets, improving BPC from 1.41 to 1.39.

Qualitative Insights

In tasks like Chinese Poetry generation, ACtuAL produced sequences with superior structural coherence compared to models trained solely with Maximum Likelihood Estimation (MLE). Interestingly, despite GANs often being associated with "mode dropping," ACtuAL actually improved NLL, suggesting the adversarial objective serves as an effective regularizer.

Conclusion and Future Work

ACtuAL successfully adapts the GAN framework for discrete text by leveraging actor-critic methods and TD learning. While the method requires a "warm start" via MLE pre-training and incurs higher computational costs due to the triple-network architecture, it offers a robust solution to exposure bias and the non-differentiability of discrete sampling. Future research may explore integrating the actor with external environments, such as knowledge graphs, to further enhance the factual grounding of generated text.

Summary updated

BibTeX
@misc{goyal2017actual,
  author = {Anirudh Goyal and Nan Rosemary Ke and Alex Lamb and R. Devon Hjelm and Chris Pal and Joelle Pineau and Yoshua Bengio},
  title = {{ACtuAL: Actor-Critic Under Adversarial Learning}},
  year = {2017},
  eprint = {1711.04755},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.04755},
}
Figure