τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains

Shunyu Yao, Noah Shinn, Pedram Razavi, Karthik NarasimhanarXiv 2024 · DOI

Introduction

τ-bench is a novel benchmark designed to evaluate the capability of language agents to navigate real-world complexities, including dynamic human interaction, programmatic API usage, and strict adherence to domain-specific policies. Initial evaluations reveal a significant performance gap: even state-of-the-art models like GPT-4o struggle with consistency, succeeding on fewer than 50% of complex tasks and demonstrating a substantial reliability deficit.

The Challenge of Real-World Agentic AI

While "agentic" AI has seen rapid growth, existing benchmarks often evaluate models in isolation. Many use "one-shot" configurations where the agent receives all necessary information upfront to execute a single function call. In contrast, real-world applications—such as an airline booking assistant—require agents to manage a "Tool-Agent-User" triangle:

  1. Dynamic Interaction: Proactively soliciting missing information or clarifying ambiguous user intents over multiple conversational turns.
  2. Policy Adherence: Strictly following complex business rules (e.g., cancellation windows for specific ticket tiers) that are not inherently part of the API logic.
  3. Reliability: Consistently performing tasks correctly across multiple trials, rather than succeeding by chance.

τ-bench addresses these requirements by modeling interactions as a Partially Observable Markov Decision Process (POMDP).

The τ-bench framework involves a three-way interaction between tools, the agent, and a user simulator, governed by domain policies.

Methodology and Datasets

The τ-bench environment consists of realistic JSON databases and Python-based APIs across two domains:

  • τ-retail: 115 tasks involving 500 users, 50 products, and 1,000 orders (e.g., returns, address modifications).
  • τ-airline: 50 tasks involving 500 users, 300 flights, and 2,000 reservations. This domain introduces higher complexity with intricate rules regarding baggage, membership tiers, and cancellation policies.

Instead of static scripts, τ-bench employs a GPT-4-powered User Simulator to generate stochastic conversation flows, mimicking human behaviors such as conciseness or changing one's mind. Evaluation is state-based: a task is successful only if the final database state matches the ground-truth goal and the agent provided accurate information to the user.

Key Insights: The Consistency Crisis

A critical contribution of τ-bench is the $pass^k$ metric, which measures the probability of an agent succeeding in all $k$ trials of the same task. While a model might show a respectable success rate on a single attempt ($pass^1$), its reliability often collapses under repeated testing.

Performance significantly degrades as the number of trials (k) increases, highlighting a lack of reliability in current language agents.

As shown in the figure above, GPT-4o's performance in the retail domain drops from over 60% at $pass^1$ to below 25% at $pass^8$. This "flakiness" suggests that current agents are not yet ready for high-stakes autonomous deployment.

Other findings include:

  • Policy vs. Common Sense: Agents frequently default to general "common sense" rather than specific provided policies. In the airline domain, performance dropped sharply when policy documents were removed, indicating a struggle to apply context-specific rules.
  • Compound Request Failure: Tasks requiring multiple database writes (e.g., updating multiple orders) often result in "partial resolution," where the agent stops after the first sub-task.

Results and Performance

  • Model Rankings: GPT-4o leads the field but remains limited, achieving 61.2% in retail and only 35.2% in airline tasks.
  • Open-Source Gap: Open-weight models like Llama-3-70B significantly underperform, averaging approximately 14.6%.
  • Architectural Advantages: Native "Function Calling" modes consistently outperform "ReAct" (Reason + Act) prompting strategies.
  • Operational Costs: System prompts containing long policy documents account for the majority of API costs, suggesting a need for more efficient rule-integration methods.

Conclusion and Future Directions

τ-bench highlights that while LLMs are becoming more capable, their reliability in complex, rule-bound environments remains low. Future research should focus on improving long-context memory for compound requests, fine-tuning models specifically for policy-following, and expanding benchmarks to high-stakes domains like legal and medical assistance.

Summary updated

BibTeX
@misc{yao2024bench,
  author = {Shunyu Yao and Noah Shinn and Pedram Razavi and Karthik Narasimhan},
  title = {{τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains}},
  year = {2024},
  eprint = {2406.12045},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.12045},
}
Figure