Interactive Dialogue Agents via Reinforcement Learning with Hindsight Regenerations

Joey Hong, Jessica Lin, Sergey Levine, Anca Dragan · Submission to ICLR 2025 · Rejected

TL;DR

Training conversational AI to guide multi-turn dialogues toward specific goals (like counseling or persuasion) is difficult because humans and language models struggle to plan effective strategies in real time. This paper introduces Hindsight Regenerations (HR), a technique that leverages an LLM’s ability to recognize conversational mistakes in hindsight, creates counterfactual rollouts to augment suboptimal dialogue data, and optimizes a 7B policy using offline reinforcement learning (RL) to outperform prompting and supervised baselines.

What Problem Does This Paper Address?

While large language models (LLMs) excel at single-turn question answering, they struggle in goal-directed, interactive multi-turn conversations where an agent must build rapport, handle hesitation, and steer the interlocutor toward a desired outcome (e.g., healthcare counseling, negotiation, or persuasion).

  • Supervised Fine-Tuning (SFT) falls short because real human demonstration datasets are full of suboptimal conversational paths, and SFT merely mimics them rather than learning how to steer.
  • Online RL with humans is prohibitively slow, costly, and risky; training against LLM simulators often results in models that reward-hack unrealistically agreeable personas.
  • Offline RL requires diverse datasets containing traces of good strategies to "stitch" together, which typical conversational datasets lack.

Methods

The authors propose Reinforcement Learning on Hindsight Regenerations, a four-part framework:

  1. Hindsight Action Relabeling: A prompted LLM (Hindsight Controller, GPT-3.5) inspects completed conversations post-hoc. With full conversational hindsight, it identifies suboptimal agent utterances and drafts more promising alternative responses.
  2. Forward Dialogue Regeneration: To see how the conversation would unfold following the counterfactual action, a Forward Model (GPT-3.5 fine-tuned on real dataset interactions) simulates the remainder of the dialogue. To ensure the model learns to handle resistant interlocutors, the authors also train a specialized "hard" forward model on the bottom 25% reward trajectories.
  3. Reward Modeling: An LLM-based proxy reward model assigns calibrated rewards to each newly completed dialogue using few-shot prompts drawn from the original dataset.
  4. Offline RL Policy Optimization: After expanding the original dataset 5-fold with these regenerated trajectories, the authors train an agent (LLaMA-7B) using Implicit Language Q-Learning (ILQL) to stitch together optimal strategies across trajectories.
Suboptimal Dialogue ──> Hindsight Controller (Relabel Action)
                             │
                             ▼
             Forward Model (Simulate Rollout)
                             │
                             ▼
             Reward Model (Score New Trajectory)
                             │
                             ▼
                Offline RL via ILQL (LLaMA-7B)

Datasets

The authors evaluated their framework on two domains with goal-directed human interactions:

  • PERSUASION-FOR-GOOD: 1,017 human–human conversations where an agent attempts to convince a user to donate up to $2 of their task earnings to the charity Save the Children.
  • ESConv (Emotional Support Conversation): 1,053 dialogues between a help-seeker and an empathetic supporter, evaluated by measuring the seeker's negative emotion reduction on a 1–5 Likert scale.

Key Insights and Ideas

  • Hindsight is easier than foresight: While an LLM cannot reliably generate the perfect sequence of strategic moves during an ongoing conversation, it can easily spot conversational dead-ends and suggest better responses after observing how the interlocutor reacted.
  • Counterfactual augmentation prevents imitation of mediocrity: Offline RL relies heavily on dataset coverage. Generating realistic counterfactual branches from failure points provides the exact exploration data offline RL needs without running costly online environments.
  • Modeling the "hard" persona: Vanilla LLMs tend to simulate overly polite, agreeable conversation partners. By explicitly fine-tuning dynamics models on the lowest-reward human dialogues, the forward model preserves stubborn human behaviors, teaching the RL policy how to de-escalate and navigate skepticism.

Key Results

The resulting 7B parameter agent outperformed larger prompted baselines (e.g., GPT-3.5 with proactive chain-of-thought and tree-search) and SFT ablations across human and simulated studies:

  • Persuasion Task (Human Study, $N=15$):
  • Reward (Donation): Achieved \$0.57 ± 0.75, beating ProCoT (\$0.51), Zero-shot RL (\$0.52), GDP-ZERO (\$0.42), RFT (\$0.35), and SFT (\$0.31).
  • Fluency & Naturalness: Rated highest at 3.8 ± 0.7 on a 5-point scale.
  • Persuasion Simulation (400 dialogues with varied personas):
  • Achieved \$0.85 ± 0.27, significantly outperforming Zero-shot RL (\$0.64) and prompted baselines ($\le \$0.40$). Qualitatively, while prompted agents conceded immediately and SFT agents turned pushy, Hindsight RL systematically validated the user's skepticism with factual, reassuring arguments.
  • Mental Health Counseling (Human Study):
  • Helpfulness: Achieved 4.2 ± 0.9 vs. 3.4 for CoT prompting, 3.1 for SFT, and 2.7 for Zero-shot RL.
  • Emotional Improvement (Reward): Led with 1.7 ± 0.9 reduction in negative emotion (vs. 1.1–1.4 across baselines) by actively offering concrete coping techniques instead of just repeating empathetic platitudes.

Limitations and Future Work

  • Structured Reward Dependency: The method relies on environments where rewards can be calibrated numerically (e.g., donation dollar amounts or Likert scale deltas). Adapting this to open-ended dialogue tasks with binary or sparse success metrics remains challenging.
  • Hand-Crafted Prompts: The hindsight evaluator and reward models require domain-specific, manually designed prompts; automating prompt synthesis is left for future work.
  • Dual-Use Concerns: Techniques that dramatically improve persuasive capability pose safety concerns if repurposed for manipulative or deceptive applications.

Summary updated

BibTeX
@misc{hong2024interactive,
  author = {Joey Hong and Jessica Lin and Sergey Levine and Anca Dragan},
  title = {{Interactive Dialogue Agents via Reinforcement Learning with Hindsight Regenerations}},
  year = {2024},
  eprint = {2411.05194},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.05194},
}
Figure