Large Language Models as User-Agents For Evaluating Task-Oriented-Dialogue Systems

Taaha Kazi, Ruiliang Lyu, Sizhe Zhou, Dilek Hakkani-Tür, Gokhan Tur

Introduction

Evaluating Task-Oriented Dialogue (TOD) systems—AI agents designed for specific tasks like booking flights or scheduling appointments—presents significant challenges. Traditional evaluation methods rely on offline datasets with fixed dialogue histories. This approach suffers from an "evaluation gap" characterized by rigidity, policy mismatch, and a lack of linguistic diversity. Static datasets cannot account for the unpredictable nature of human interaction or the deviations a real TOD system might make from a pre-written script.

To bridge this gap, this research introduces a framework that utilizes Large Language Models (LLMs) as dynamic "user-agents." By replacing static datasets with interactive simulators that track their own goals and reason through conversations, the framework achieves evaluation results that closely align with human judgment while capturing the complexity of real-world interactions.

Methodology

The proposed automated evaluation framework consists of two primary components: a User Simulator and an Evaluator Agent. The User Simulator acts as the human counterpart in the dialogue, while the Evaluator Agent assesses the quality of the interaction.

The proposed framework architecture featuring a User Simulator, TOD Model, and Eval Module.

The User Simulator

Rather than fine-tuning a specific model, the researchers leveraged LLMs (specifically GPT-3.5 Turbo Instruct) and explored three prompting strategies:

  • Vanilla Prompt: Basic instructions supplemented with a few examples.
  • Thought Prompt: Utilizes Chain-of-Thought (CoT) reasoning, requiring the model to "think" about its next move before responding.
  • User State Tracking Prompt: The most sophisticated approach, where the model maintains a "state tracking dictionary" to monitor goal fulfillment (e.g., "find a hotel with free wifi"). This prevents the simulator from looping or prematurely terminating the conversation.

LLMs as Evaluators

To assess the performance of the TOD systems, the framework employs GPT-4 as a reference-free judge. The evaluator analyzes the entire dialogue transcript against a specific rubric, providing both a numerical score and a qualitative justification for its assessment.

Experimental Setup

The study utilized the MultiWOZ 2.1 benchmark, which contains human-to-human TOD conversations across seven domains. Instead of using full dialogues, the researchers extracted initial user goals to "seed" the LLM user-agents, allowing for more natural, unscripted interactions.

Key Results and Insights

The experimental results highlight several critical advantages of using LLM-based user-agents for evaluation.

High Human Alignment

A key finding is the strong correlation between the automated LLM evaluator and human judgment. The GPT-4 evaluator achieved substantial agreement with human annotators, demonstrating the viability of LLMs as low-cost alternatives for large-scale testing.

Alignment metrics between the GPT-4 evaluator and human annotators.

Prompting and Performance

  • The Importance of State Tracking: The transition to state-tracking prompts significantly improved the simulator's consistency. Without it, simulators often lost track of their objectives.
  • Negotiation and Diversity: Advanced prompts (Thought/Verbose) enabled human-like negotiation. For instance, if a requested hotel was unavailable, the simulator could autonomously pivot to a different location. Furthermore, LLM agents naturally produced diverse phrasings, making the evaluation more robust against overfitting.
  • Model Benchmarking: Surprisingly, Llama 3 consistently outperformed GPT-3.5 and GPT-4 when acting as the TOD system under evaluation.
  • Task Completion: The "Thought" prompting strategy generally yielded higher task completion scores in human evaluations (0.72) compared to "Vanilla" (0.66) or "Verbose" (0.60), confirming that internal reasoning helps agents reach their goals more effectively.

Limitations and Future Work

While promising, the framework has limitations. Conversations were capped at 30 turns to prevent infinite loops, which may limit the evaluation of extremely complex tasks. Additionally, there is a risk of "LLM bias," where an evaluator might favor responses that mimic LLM patterns. Future work will explore more complex user behaviors, such as users changing their minds mid-conversation or introducing conflicting constraints, to further stress-test TOD systems.

Summary updated

BibTeX
@inproceedings{kazi2024large,
  author = {Taaha Kazi and Ruiliang Lyu and Sizhe Zhou and Dilek Hakkani-Tür and Gokhan Tur},
  title = {{Large Language Models as User-Agents For Evaluating Task-Oriented-Dialogue Systems}},
  booktitle = {SLT},
  year = {2024},
  doi = {10.1109/slt61566.2024.10832298},
}
Figure