TRAJECT-Bench:A Trajectory-Aware Benchmark for Evaluating Agentic Tool Use

Pengfei He, Zhenwei Dai, Bing He, Hui Liu, Xianfeng Tang, Hanqing Lu, Juanhui Li, Jiayuan Ding, Subhabrata Mukherjee, Suhang Wang, Yue Xing, Jiliang Tang, Benoit Dumoulin

TL;DR

TRAJECT-Bench is a new, high-fidelity benchmark that shifts the evaluation of Large Language Model (LLM) agents from "did they get the right answer?" to "did they use the tools correctly?" By analyzing over 5,000 queries across 1,200+ production-style APIs, researchers identified a critical performance bottleneck when agents move from short to mid-length tool sequences (3–5 tools) and highlighted how current retrieval methods fail to capture indirect user intent.

What Problem Does This Paper Address?

In the world of AI agents, LLMs act as the "brain," while external APIs and tools act as the "hands." Until now, we’ve mostly been grading these agents on their final output—essentially just checking the "homework answer." However, this approach has a major flaw: an LLM might arrive at the correct answer using its internal training data even if it called the completely wrong tools, or called them in a nonsensical order.

Existing benchmarks often rely on "toy" or simulated tools and focus on short, shallow trajectories. This masks the "how" and "why" of agent failure. We don't just need to know if the agent finished the task; we need to know if it selected the right tools, provided the correct parameters, and respected dependencies between steps.

Methods

The authors introduce TRAJECT-Bench, which stands out through three key design choices:

  1. High-Fidelity Toolset: They curated 1,228 executable tools from RapidAPI across 10 diverse domains (e.g., Finance, Travel, Music). These aren't just descriptions; they are validated, executable, and have meaningful outputs.
  2. Trajectory Complexity: The benchmark tests two structures: Parallel (calling multiple independent tools at once) and Sequential (where the output of Tool A is the required input for Tool B).
  3. Dual-Difficulty Queries: For every task, they generated a "Simple" version (explicit instructions) and a "Hard" version (naturalistic, indirect language). This forces the model to infer intent rather than just matching keywords to API names.
Overview of TRAJECT-Bench query and trajectory construction

To evaluate these, they use Trajectory-Aware Metrics, such as Trajectory Exact Match (EM) and Tool Usage (checking if parameters like dates or IDs are formatted correctly), alongside traditional final-answer accuracy.

Datasets

The primary contribution is the TRAJECT-Bench dataset, which includes:

  • 1,228 executable tools across 10 domains.
  • 5,670 queries paired with ground-truth trajectories.
  • A comparison against existing benchmarks like ToolBench, Gorilla, and BFCL, showing that TRAJECT-Bench is the first to combine large-scale toolsets with trajectory scaling and query difficulty analysis.

Key Insights and Ideas

  • The "Scaling Wall": Performance doesn't degrade linearly as tasks get harder. There is a sharp "bottleneck" when moving from 3 tools to 5 tools. Most state-of-the-art models handle short chains well but struggle significantly as the horizon expands.
Performance drop as tool trajectory length increases
  • Semantic Retrieval is a Double-Edged Sword: While RAG (Retrieval-Augmented Generation) helps models manage massive toolsets, it becomes a massive bottleneck for "Hard" queries. Retrievers often fail to find the necessary tools because they look for semantic similarity rather than the logical steps required to solve an indirect request.
  • Failure Modes: The researchers identified specific "bugs" in LLM reasoning:
  • Similar Tool Confusion: Confusing two tools with overlapping capabilities (e.g., Spotify vs. YouTube Music).
  • Parameter-Blind Selection: Choosing the right tool but ignoring the specific constraints required by its parameters.
  • Redundant Calling: A "cover-all-bases" strategy where models call unnecessary tools "just in case," increasing latency and cost.

Key Results

The evaluation of top-tier models (Claude-4, Gemini-2.5-pro, DeepSeek, etc.) revealed a stark "reasoning gap":

  • Gemini-2.5-pro and Claude-4 led the pack, but even they saw massive drops on hard queries. For example, Claude-4’s Exact Match (EM) score plummeted from 0.846 on simple queries to 0.445 on hard ones.
  • Agentic Iteration Wins: Using an iterative "ReAct" (Reason + Act) loop with dynamic retrieval significantly outperformed static, single-turn tool selection. On parallel hard queries, Claude-4 improved its EM from 0.445 to 0.473 when allowed to think and retrieve tools turn-by-turn.
  • Inclusion vs. Accuracy: Models often have high "Inclusion" scores (they called the right tools eventually) but low "Exact Match" scores (they called them in the wrong order or with extra junk calls), proving that final answer accuracy overestimates an agent's actual reliability.

Limitations and Future Work

While comprehensive, the paper acknowledges a few boundaries:

  • Graph Topology: The current version focuses on parallel and sequential chains. Real-world tasks often involve more complex Directed Acyclic Graphs (DAGs) or trees, which the authors plan to include in future versions.
  • Agent Architectures: The study primarily looks at individual LLMs and basic ReAct agents. Future work could explore more complex multi-agent orchestrations.
  • Dynamic Environments: The tools are executable, but the benchmark doesn't yet fully simulate "world state" changes that might occur over very long-running agent tasks.

Summary updated

BibTeX
@inproceedings{he2026traject,
  author = {Pengfei He and Zhenwei Dai and Bing He and Hui Liu and Xianfeng Tang and Hanqing Lu and Juanhui Li and Jiayuan Ding and Subhabrata Mukherjee and Suhang Wang and Yue Xing and Jiliang Tang and Benoit Dumoulin},
  title = {{TRAJECT-Bench:A Trajectory-Aware Benchmark for Evaluating Agentic Tool Use}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=TZWnWvsQ0X},
}
Figure