arXiv(opens in a new tab)cs.AIJun 2024Cited by 233 papers on PaperVantageClassic Paper

Manuscript Offprint

arXiv:2406.12045

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

Shunyu Yao, Noah Shinn, Pedram Razavi, Karthik Narasimhan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Existing benchmarks do not test language agents on their interaction with human users or ability to follow domain-specific rules, both of which are vital for deploying them in real world applications. We propose τ\tau-bench, a benchmark emulating dynamic conversations between a user (simulated by language models) and a language agent provided with domain-specific API tools and policy guidelines. We employ an efficient and faithful evaluation process that compares the database state at the end of a conversation with the annotated goal state. We also propose a new metric (pass^k) to evaluate the reliability of agent behavior over multiple trials. Our experiments show that even state-of-the-art function calling agents (like gpt-4o) succeed on <50%< 50\% of the tasks, and are quite inconsistent (pass^8 <25%< 25\% in retail). Our findings point to the need for methods that can improve the ability of agents to act consistently and follow rules reliably.

1 Introduction

There is increasing excitement around the potential of language agents [20, 24, 18, 1] to enable new levels of automation across various industries. However, their deployment in real-world systems requires several key desiderata to be satisfied. Agents must (1) interact seamlessly with both humans and programmatic APIs over long horizons to incrementally gather information and resolve intents, (2) accurately adhere to complex policies and rules specific to a task or domain, and (3) maintain consistency and reliability at scale, across millions of interactions. For instance, consider the case of an airline booking agent (Figure 1). When a user wants to change their flight reservation to a different destination airport, the agent needs to gather the required information by interacting with the user, check the airline policies using the guidelines provided, and find new flights and (if possible) rebook the user using complex reservation APIs. In addition, the agent should be consistent in its behavior across different kinds of users with the same request, and robust to small changes in the conversation flow that should not affect the end outcome.

Modeling realistic human interaction and rule following in agent evaluation is vital for developing and deploying trustworthy agents in the wild, and tackling challenges like long-context reasoning and planning in a methodical fashion. Existing benchmarks [27, 29, 12, 14, 16] for language agents often feature simplified instruction-following setups, where the agent autonomously interacts with an environment (web, code terminal, or APIs) given all the information upfront, without any human-in-the-loop interaction and without the need to consult any domain-specific guidelines.

In this work, we introduce τ\tau-bench (short for Tool-Agent-User Interaction Benchmark) to measure an agent's ability to interact with (simulated) human users and programmatic APIs while following domain-specific policies in a consistent manner. τ\tau-bench is built in a modular framework with (1) realistic databases and APIs, (2) domain-specific policy documents, and (3) instructions for

*Work done during internship. Code and data: https://github.com/sierra-research/tau-bench.

Preprint. Under review.

(a) τ\tau-bench setup

(b) Example trajectory in τ\tau-airline

Figure

Figure 1: (a) In τ\tau-bench, an agent interacts with database API tools and an LM-simulated user to complete tasks. The benchmark tests an agent's ability to collate and convey all required information from/to users through multiple interactions, and solve complex issues on the fly while ensuring it follows guidelines laid out in a domain-specific policy document. (b) An example trajectory in τ\tau-airline, where an agent needs to reject the user request (change a basic economy flight) following domain policies and propose a new solution (cancel and rebook). This challenges the agent in long-context zero-shot reasoning over complex databases, rules, and user intents.

diverse user scenarios and corresponding ground truth annotations. As a first demonstration, we focus on the realm of customer service and create two different domains where agents need to assist simulated users with diverse requests ( τ\tau-retail and τ\tau-airline). We leverage the generative capabilities of language models (LMs) for data creation and realistic human user simulation [15] in conjunction with manual annotation and verification.

We constructed τ\tau-bench in three stages, including manual schema and API design, LM-assisted generation of data entries, and manual scenario generation and verification for the user simulator. Our evaluation scheme compares the database state at the end of each episode with the ground truth expected state. This allows for objective measurement of the agent's decision making, while also providing room for stochastic variation in the conversation itself, since the user may pose the same request in different ways that result in the same end state of the database. We also introduce the metric of pass^k, which measures the consistency and robustness of the agent across k i.i.d. trials.

Our experiments reveal that agents built with simple LM constructs (like function calling or ReAct) perform poorly, highlighting the need for more sophisticated agent architectures. For instance, even state-of-the-art LMs like gpt-4o achieve low task success rates (pass^1) using function calling (~61% on τ\tau-retail and ~35% on τ\tau-airline). With increasing k, the chance of consistently solving a task drops rapidly, to as low as ~25% for pass^8 on τ\tau-retail for the same model. This showcases the fragile nature of such agents in handling stochasticity and partial information, which is common in human-agent interaction. Upon analyzing the failure cases, we find that current agents struggle with complex reasoning over databases, understanding and following ad-hoc policies, and handling compound (more than one) requests. We hope that τ\tau-bench enables the evaluation and development of more consistent and capable agents for real-world digital tasks involving human interaction.

References (28)

Cited by (233)