Abstract
Training task-oriented dialogue agents with Reinforcement Learning (RL) often suffers from sparse rewards and slow convergence. This paper presents the $S^2Agent$, a framework that leverages a small set of human demonstrations to accelerate learning through dual shaping mechanisms: Policy Shaping and Reward Shaping. By directly influencing action selection and providing intermediate intrinsic rewards, the $S^2Agent$ significantly improves data efficiency and performance across multiple dialogue domains.
Introduction
Building effective task-oriented dialogue systems using Reinforcement Learning (RL) is challenging due to the "cold start" problem. In complex tasks like movie ticket booking or restaurant reservation, an agent exploring randomly is unlikely to find the specific sequence of actions required for success. This leads to reward sparsity, where the agent fails repeatedly and receives no informative feedback for long periods.
While Imitation Learning (IL) can utilize human demonstrations, agents trained solely on IL often lack robustness to out-of-distribution scenarios. The $S^2Agent$ (Shaping + Shaping) addresses this by integrating human knowledge into a Deep Q-Network (DQN) framework, guiding the agent toward successful trajectories without compromising its ability to explore and optimize its policy autonomously.
Methodology: The $S^2Agent$ Framework
The $S^2Agent$ architecture incorporates human demonstrations through two complementary shaping mechanisms:
1. Imitation Model (IM)
A simple multi-layer perceptron (MLP) is pre-trained on human dialogue logs to serve as a "distilled expert," predicting the most likely next action given a state.
2. Policy Shaping
Operating in the action space, Policy Shaping reconciles the RL agent's current policy with the Imitation Model's suggestions. A "committee" approach is used to estimate expert confidence, allowing the agent to rely more on the expert when the RL policy is uncertain.
3. Reward Shaping
Operating in the value space, this mechanism provides a Potential-Based Reward Shaping function. The agent receives a small intrinsic "bonus" reward when its actions lead to states similar to those in human demonstrations. This encourages the agent to follow "expert-like" paths early in training.
Experimental Setup
The $S^2Agent$ was evaluated across three task-oriented domains:
- Movie Ticket Booking: 13 slots (e.g., theater, time).
- Restaurant Reservation: 29 slots (e.g., cuisine, price range).
- Taxi Calling: 29 slots (e.g., pickup location, car type).
Additionally, a Movie-Ext dataset was used to evaluate domain adaptation by adding new payment-related slots to the movie booking task.
Key Results and Discussion
The $S^2Agent$ demonstrates superior learning speed and final performance compared to standard RL (DQN) and other demonstration-based baselines like DQfD.
Performance and Efficiency
- Rapid Convergence: In the Movie domain, $S^2Agent$ achieved a 60% success rate within 20 epochs, significantly faster than DQfD (20%) and standard DQN.
- Data Efficiency: The framework remains highly effective even with as few as 25 to 50 human demonstrations, making it practical for real-world applications where data collection is expensive.
- Human Evaluation: In trials with real users, the $S^2Agent$ achieved a success rate of 0.74 and a user rating of 4.36/5, indicating more natural and efficient interactions.
- Adaptability: The model showed strong performance in domain adaptation tasks, quickly incorporating new requirements (e.g., payment slots) that stymied baseline models.
Conclusion
The $S^2Agent$ effectively mitigates the sparse reward problem in dialogue RL by combining Policy and Reward Shaping. This dual-space guidance allows for extreme data efficiency and robust performance. Future work may explore more sophisticated imitation models, such as Transformers, and refined similarity metrics for reward shaping in increasingly complex dialogue environments.
Summary updated