Integrating User and Agent Models: A Deep Task-Oriented Dialogue System

Weiyan Wang, Yuxiang Wu, Yu Zhang, Zhongqi Lu, Kaixiang Mo, Qiang YangarXiv 2017 · arXiv

Abstract

Traditional task-oriented dialogue systems often rely on brittle, handcrafted rules that struggle with the natural complexity of human interaction. This paper introduces the SAMIA framework (uSer and Agent Model IntegrAtion), which treats the user and agent as asymmetric Seq2Seq models. By leveraging a learned user model to train the agent via deep reinforcement learning, the system achieves significantly higher task success rates and more natural dialogue flow compared to standard supervised learning approaches.

Introduction

Building effective task-oriented dialogue systems—designed to complete specific goals like ordering coffee or booking flights—remains a significant challenge in AI. Unlike "chit-chat" bots, these systems must manage complex state transitions and ensure all necessary information is gathered. Historically, this required manual definition of every possible user intent and agent response template, resulting in labor-intensive and "robotic" experiences.

A primary hurdle in this domain is asymmetry. In service scenarios, the user and agent have distinct goals and behaviors. While many reinforcement learning (RL) models rely on "self-play" between symmetric agents, this fails to capture the reality of a customer who simply wants a drink versus an agent who must track multiple variables (size, temperature, etc.) across several turns.

The SAMIA Framework

The authors propose the SAMIA framework, which models the user and agent as two distinct, interacting components within a Seq2Seq architecture.

1. The User Model

The user is modeled as a one-turn Seq2Seq model with attention. This design assumes that users generally respond to the immediate prompt from the agent (e.g., responding to "What size?" with "Large"). This simplification makes the user model more stable and easier to train than the more complex agent model.

2. The Agent Model

The agent is a multi-turn Seq2Seq model responsible for tracking the logic and state of the conversation. Training occurs in two distinct stages:

  • Supervised Pre-training: The agent learns to generate fluent sentences using raw dialogue logs.
  • Deep Reinforcement Learning: The agent "practices" by interacting with the User Model. Instead of word-matching metrics like BLEU, the reward is based on Information Gain. The agent receives a positive reward when it successfully elicits a missing "slot" (a specific piece of task information) from the user model.
The SAMIA framework architecture during training and testing phases.

3. The Test-Phase Filter

During deployment, the agent generates multiple candidate responses. The User Model acts as a "look-ahead" mechanism, predicting how a user might respond to each candidate. The agent then selects the response most likely to move the task toward completion, effectively acting as a sanity check against redundant or irrelevant questions.

Experimental Setup and Dataset

The framework was evaluated using a real-world coffee ordering dataset from an online-to-offline (O2O) company. The dataset consists of 31,567 conversation sessions (149,709 dialogue pairs). Unlike standard benchmarks, this data is noisy and reflects varied natural language, providing a robust test for the SAMIA framework.

Key Results

The SAMIA framework demonstrated significant improvements over standard Supervised Learning (SL) baselines across several metrics:

  • Model Complexity: The User Model achieved a lower perplexity (35.89) than the Agent Model (41.17), validating the hypothesis that user behavior is more predictable and easier to model in this context.
  • Task Efficiency: SAMIA achieved an average reward of 0.496, nearly doubling the performance of the best supervised baseline (0.3). This indicates a much higher efficiency in collecting necessary task information.
  • Human Evaluation: In human trials, SAMIA scored 1.97/2.0 in logic and 1.75/2.0 in overall quality, closely approaching human "ground truth" performance. Baselines frequently suffered from "looping" behavior, whereas SAMIA maintained logical progression.
Comparison of average rewards across different models, showing SAMIA's superior performance.

Conclusion and Future Work

By embracing the inherent asymmetry of task-oriented dialogue, the SAMIA framework provides a more realistic and effective training environment for reinforcement learning. The use of a dedicated user model as a simulator allows the agent to learn complex logic without manual rule-crafting.

Future research will explore multi-turn user models for more complex scenarios (such as technical support) and more sophisticated reward functions that go beyond simple slot-filling to capture the nuances of successful human-agent interaction.

Summary updated

Abstract

Task-oriented dialogue systems can efficiently serve a large number of customers and relieve people from tedious works. However, existing task-oriented dialogue systems depend on handcrafted actions and states or extra semantic labels, which sometimes degrades user experience despite the intensive human intervention. Moreover, current user simulators have limited expressive ability so that deep reinforcement Seq2Seq models have to rely on selfplay and only work in some special cases. To address those problems, we propose a uSer and Agent Model IntegrAtion (SAMIA) framework inspired by an observation that the roles of the user and agent models are asymmetric. Firstly, this SAMIA framework model the user model as a Seq2Seq learning problem instead of ranking or designing rules. Then the built user model is used as a leverage to train the agent model by deep reinforcement learning. In the test phase, the output of the agent model is filtered by the user model to enhance the stability and robustness. Experiments on a real-world coffee ordering dataset verify the effectiveness of the proposed SAMIA framework.
BibTeX
@misc{wang2017integrating,
  author = {Weiyan Wang and Yuxiang Wu and Yu Zhang and Zhongqi Lu and Kaixiang Mo and Qiang Yang},
  title = {{Integrating User and Agent Models: A Deep Task-Oriented Dialogue System}},
  year = {2017},
  eprint = {1711.03697},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.03697},
}
Figure