Dialogue Learning With Human-in-the-Loop

Jiwei Li, Alexander H. Miller, Sumit Chopra, Marc'Aurelio Ranzato, Jason Weston

TL;DR

This paper moves beyond training conversational agents on static, "gold-standard" datasets by introducing a framework for online learning through human interaction. By combining reinforcement learning with a novel "Forward Prediction" technique—where a bot learns by predicting a teacher's textual feedback—the authors demonstrate that agents can start from scratch and significantly improve their performance through active, real-time dialogue.

The Challenge: Beyond Static Datasets

Most modern dialogue systems are trained using supervised learning on fixed datasets. While effective, this approach has a major flaw: the "lab environment" of a pre-built dataset rarely matches the "wild" environment of real-world usage. When a bot encounters a new distribution of language or a niche topic it wasn't trained on, it often fails.

The authors argue that true language learning should look more like human learning—an interactive, iterative process. The challenge is how to mathematically formalize "learning from a conversation." How does a bot turn a sentence like "No, that's the director, not the actor" into a gradient update? This paper addresses the gap between static supervised learning and the need for agents that can adapt to their users in real-time.

Methods and Models

The researchers utilized End-to-End Memory Networks (MemN2N) as their base architecture, which allows the bot to store and query past dialogue turns and facts. To enable learning from interaction, they tested three primary algorithmic approaches:

  1. Reward-Based Imitation (RBI): A simple reinforcement learning (RL) baseline. If the teacher provides a positive reward (like a numerical +1), the bot treats its previous answer as a "gold label" and performs a supervised update to imitate that behavior in the future.
  2. REINFORCE: A standard policy gradient method that optimizes the bot's actions to maximize expected cumulative rewards.
  3. Forward Prediction (FP): This is the paper's most novel contribution. Instead of just looking for a numerical reward, the bot tries to predict the teacher's textual response. By learning to anticipate what a teacher will say (e.g., predicting that an incorrect answer will trigger a specific correction), the bot develops a deeper internal representation of the task.

To make these work in an online setting, the authors employed $\epsilon$-greedy exploration (occasionally picking random answers to discover better ones) and data balancing (ensuring the model sees a healthy mix of positive and negative feedback to prevent it from "collapsing" into a state where it only predicts one type of response).

Key Insights and Ideas

  • Predicting the Teacher is a Powerful Signal: The Forward Prediction (FP) model proved that natural language feedback is often richer than a simple numerical reward. If a bot can predict why it is being corrected, it learns the underlying logic of the task faster.
  • The Stability Paradox: In iterative batch learning, FP can actually become too good. If the bot stops making mistakes, it stops receiving negative feedback. Without that "negative" signal, the model's performance can oscillate or degrade. Data balancing—keeping a history of old mistakes—is essential to keep the model grounded.
  • Batching is Practical: The authors found that bots don't need to update their brain after every single sentence. Learning in batches (e.g., talking to 1,000 people and then updating) is not only more computationally efficient but also more stable for the learning process.
  • Humans are Messy but Helpful: Even though real human feedback is noisier than a simulator, the combination of RBI and FP was robust enough to handle the variability of human "teachers," outperforming models that relied on rewards alone.

Key Results

The study evaluated these models across synthetic reasoning tasks (bAbI), fact-based QA (WikiMovies), and real human interactions via Amazon Mechanical Turk (MTurk).

Comprehensive simulation results comparing exploration strategies, data balancing, batch sizes, and the overall performance of RBI, FP, and REINFORCE models.
  • Simulator Success: On the bAbI tasks, the interactive models (RBI and FP) were able to reach near 100% accuracy starting from a completely random initialization, provided they used sufficient $\epsilon$-greedy exploration.
  • Human-in-the-Loop Gains: In the MTurk experiments, the hybrid RBI+FP model achieved an accuracy of 0.441, significantly higher than the reward-only RBI model (0.375).
  • Data Efficiency: The models showed that they could approach the performance of fully supervised models (trained on 60k labeled examples) using only a fraction of the data (1k initial examples plus 10k interactive ones).

Limitations and Future Work

The authors acknowledge that their "teachers" (both simulated and human) in this study were generally helpful and knowledgeable. In the real world, users might be unhelpful, provide incorrect feedback, or even try to "troll" the bot.

Future research directions include:

  • Never-ending Learning: Moving toward agents that continuously update their models over their lifetime.
  • Handling Noisy Teachers: Developing methods to filter out bad, malicious, or contradictory feedback.
  • Complex Dialogue: Moving beyond simple question-answering into multi-turn negotiations or open-ended creative conversations.

Summary updated

BibTeX
@inproceedings{li2017dialogue,
  author = {Jiwei Li and Alexander H. Miller and Sumit Chopra and Marc'Aurelio Ranzato and Jason Weston},
  title = {{Dialogue Learning With Human-in-the-Loop}},
  booktitle = {International Conference on Learning Representations},
  year = {2017},
  url = {https://openreview.net/forum?id=HJgXCV9xx},
}
Figure