Deep Reinforcement Learning for Dialogue Generation

Jiwei Li, Will Monroe, Alan Ritter, Dan Jurafsky, Michel Galley, Jianfeng Gao

Traditional neural dialogue systems often prioritize local word prediction over long-term conversational success. This research introduces a reinforcement learning (RL) framework for dialogue generation, where two virtual agents learn to converse by optimizing for future rewards. By rewarding properties like information flow and ease of answering, the model generates more diverse, engaging, and sustainable conversations compared to standard Maximum Likelihood Estimation (MLE) approaches.

The Limitations of Short-Sighted Models

Most existing dialogue models are trained using MLE to predict the next utterance based on a fixed dataset. While effective for tasks like machine translation, this objective often leads to two major issues in open-ended conversation:

  1. The "Dull Response" Trap: Generic phrases like "I don't know" or "I'm not sure" are statistically frequent and compatible with many contexts. MLE-based models default to these, which effectively kills the conversation.
  2. Repetitive Loops: Models often fall into infinite cycles of repeating the same or similar phrases back and forth (e.g., "What are you doing?" followed by "I don't know, what are you doing?").

The authors argue that a successful dialogue system must be forward-looking, selecting utterances that facilitate a coherent and prolonged interaction rather than just the most probable next word.

Methodology: Dialogue as a Strategic Game

The proposed framework treats dialogue as a sequence of actions taken by a policy (an LSTM encoder-decoder). The core innovation is a reward function designed to encourage three key conversational properties:

  • Ease of Answering ($r_1$): Penalizes utterances that are likely to elicit dull, conversation-ending responses (e.g., "I have no idea").
  • Information Flow ($r_2$): Penalizes repetition by rewarding lower semantic similarity between consecutive turns from the same agent, keeping the conversation moving.
  • Semantic Coherence ($r_3$): Ensures relevance by measuring the mutual information between the response and previous turns to prevent the model from becoming nonsensical.
The multi-turn dialogue generation process, showing how agents encode and decode messages across successive turns to optimize long-term rewards.

Training involves three stages: supervised pre-training on the OpenSubtitles dataset, mutual information tuning to reduce generic responses, and finally, RL simulation through self-play. In the self-play phase, two agents explore conversational paths and update their policies using Policy Gradient methods to maximize the defined rewards.

Key Results

The RL-based model demonstrates significant improvements over baseline SEQ2SEQ and Mutual Information models across both quantitative and qualitative metrics.

Quantitative Performance

  • Sustainability: In simulations, the RL model sustained conversations for an average of 4.48 turns, a marked improvement over the 2.68 turns achieved by the standard model.
  • Diversity: The model exhibited a higher type-token ratio, indicating a more varied and interesting vocabulary.
  • Human Evaluation: Human judges preferred the RL model's responses, finding them significantly easier to answer (52% win rate) and of higher overall quality in multi-turn settings (72% win rate).

Qualitative Improvements

By treating conversation as a game where the goal is to keep the partner engaged, the RL model develops "social" strategies—such as asking proactive questions—that it would never learn through simple imitation.

Qualitative comparison of responses, highlighting the RL model's ability to provide more proactive and engaging answers compared to the Mutual Information baseline.

Conclusion and Future Work

While the RL framework represents a major step toward more human-like dialogue, challenges remain. The current rewards are heuristic proxies for human interest, and the model occasionally sacrifices strict relevance for "interestingness." Future work may involve incorporating direct human feedback into the reward loop and addressing the computational complexity of searching a massive action space. Nonetheless, this research demonstrates that framing dialogue as a strategic interaction rather than a simple prediction task is key to building more engaging AI companions.

Summary updated

BibTeX
@inproceedings{li2016deep,
  author = {Jiwei Li and Will Monroe and Alan Ritter and Dan Jurafsky and Michel Galley and Jianfeng Gao},
  title = {{Deep Reinforcement Learning for Dialogue Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2016},
  doi = {10.18653/v1/d16-1127},
}
Figure