DetourBench: Trajectory-Level Evaluation of Interactive Agents with Exact Minimum-Action Bounds

Hanlin Tian, Sihan Zhu, Zhao Yang, Yuxiang Wang, Zhiquan Hu, Yu Mi, Hongquan Zhu, Qiufei HuarXiv 2026 · arXiv

TL;DR

DetourBench introduces a new evaluation framework for interactive language-model agents that moves beyond binary success/failure "endpoint scoring." By constraining environments to finite transition systems, the authors can compute the exact minimum number of actions required for success, allowing them to measure an agent's "detour" (inefficiency) and precisely categorize different types of failures.

What Problem Does This Paper Address?

Most current benchmarks judge agents by their final state: did they reach the goal or not? This "endpoint scoring" is a coarse metric that hides significant differences in agent behavior.

As illustrated in Figure 1, endpoint scoring conflates a "direct success" with a "detoured success" where the agent wandered aimlessly before finishing. Similarly, it gives a zero score to both an agent that was one action away from success and an agent that never even found the first piece of evidence.

Figure 1: Endpoint evaluation versus trajectory-aware measurement. Endpoint success conflates direct and circuitous successful trajectories and assigns the same outcome to recoverable near-misses and irreversible failures. DetourBench compares charged accesses with the full-information minimum Lo and computes residual work RT from recoverable terminal states, separating outcome, oracle- relative excess interaction, and residual-distance progress.

To distinguish these cases, we need a defensible reference cost. While many benchmarks use "authored solutions," these only prove a task is solvable—they don't prove that a shorter, more efficient route doesn't exist.

Methods

DetourBench addresses this by modeling tasks as finite, partially observable transition systems. The key technical innovation is the use of exhaustive search over the complete transition graph to compute:

  1. $L_0$ (Full-Information Minimum): The absolute shortest path to success, assuming perfect knowledge of the environment.
  2. $R_T$ (Exact Residual Work): For failed episodes, the minimum number of additional actions that would have been required to reach the goal from the agent's final state.

This allows the authors to report several nuanced metrics:

  • Conditional Attainment: The ratio of the optimal path length to the agent's actual path length (for successful runs).
  • Normalized Detour (NDR): The excess interaction relative to the offline optimum.
  • Residual Progress: How close a failed agent got to the goal in terms of action distance.
  • Residual State Ratio (RSR): A measure of "waste," counting invalid or duplicate actions.

The evaluation pipeline, shown in Figure 2, ensures that once an agent discovers a resource identifier, it becomes "globally addressable," removing the need for the agent to pay navigation or backtracking costs for known resources.

Figure 2: DetourBench transition semantics and evaluation pipeline. Agents interact with partially observable finite transition systems in which discovered resource identifiers remain globally addressable. Exhaustive search computes the full-information minimum charged accesses Lo and residual work RT . Success, conditional attainment, residual progress, normalized detour, redundant interaction, and irreversible failure are reported separately.

Datasets

The authors introduce two complementary suites:

  • Controlled Mechanism Suite: 40 pairs of tasks (focused on Currency) where the environment graph and targets are fixed, but a single "signpost" sentence in the prompt is toggled to see how it affects discovery efficiency.
  • Integrated Workflow Suite: 25 complex, authored tasks grounded in real-world domains like clinical records, legal documents, software, and finance. These tasks require combining multiple sources, credentials, and workflow actions.

Key Insights and Ideas

  • Success is a Ceiling: On nearly a third of the integrated tasks, every model achieved 100% success. However, their efficiency (attainment) varied by up to 19%. Success rate alone failed to distinguish these models, but DetourBench's cost metrics successfully ordered them.
  • The "Near-Miss" is Real: Among recoverable failures, the median distance from the goal was only three accesses. Binary scoring ignores the fact that many agents are "nearly there" when they exhaust their budget.
  • Information Scent Matters: In the controlled intervention, removing a single signposting sentence caused success rates to plummet and "wasteful" reads of out-of-scope information to spike (see Figure 3).
  • Ranking Reversals: Interestingly, the model with the highest success rate isn't always the most efficient. For example, GLM had the lowest success rate in one set but higher conditional attainment than DeepSeek and Qwen on the tasks it did solve.

Key Results

The authors evaluated five model endpoints (Claude, Kimi, DeepSeek, Qwen, and GLM) across 375 episodes.

  • Model Performance: Claude-opus-5 led the pack with a 96.0% success rate and the highest conditional attainment (0.890).
  • Efficiency Spread: Even when models succeeded, they often took "detours." Conditional attainment ranged from 0.803 to 0.890 across models.
  • Signposting Impact: Removing a cue sentence dropped success by 41 points and increased out-of-scope reads by 2.9 per episode.

Detailed results for the Integrated Workflow Suite are summarized in Figure 4.

Table 2: Results on the 25-task Integrated Workflow Suite (N = 375). Conditional attainment and RSR are averaged over successful episodes (best in bold; lower RSR is better). Model identifiers correspond to endpoints in Section 5.

Limitations and Future Work

The authors acknowledge several limitations:

  • Oracle Advantage: The $L_0$ baseline is an "omniscient" oracle that knows the whole graph. It doesn't account for the fact that a real agent must explore to find information. Future work could involve developing "informed reference policies" that provide a more realistic baseline for partial observability.
  • Sample Size: The study used three repeats per task; more repeats would strengthen the stochastic analysis.
  • Human Baselines: The current study lacks human performance data for comparison.
  • Selection Bias: The tasks were specifically screened to ensure they could separate models by either success or cost, which might not reflect the distribution of "natural" workflows.

Summary updated

Abstract

Benchmarks judge language-model agents mainly by whether they reach the correct final state, not by how they got there. Endpoint scoring cannot separate an agent that retrieved exactly the evidence a decision required from one that read most of the environment, nor an agent that never located the evidence from one that stopped a single action short. Settling this needs a reference cost, and authored solutions establish only that a task is solvable, not that no shorter route exists. We present DetourBench, which constrains the environment until that minimum is computable. Each task is a finite, partially observable transition system with unit-cost accesses whose resources become globally addressable after discovery. Exhaustive search yields the full-information minimum action count $L_0$ with a replayable witness; from graph-recoverable terminal states it also yields exact residual work $R_T$, which separates an episode that stopped one access short from one that wandered, while an irreversible wrong commitment is recorded as having no finite residual distance rather than assigned one. Success, attainment, residual progress, and normalized detour are reported separately. Across 375 scored episodes --- five model endpoints, 25 integrated tasks, three repeats --- success ranges from 58.7% to 96.0% while conditional attainment ranges from 0.803 to 0.890 and orders the models differently. Among recoverable failures, residual work separates near-complete trajectories from costly incompletion and from irreversible commitment. We open-source the instances, oracle witnesses, and evaluation harness at https://github.com/DatagridsAI/DetourBench.
BibTeX
@misc{tian2026detourbench,
  author = {Hanlin Tian and Sihan Zhu and Zhao Yang and Yuxiang Wang and Zhiquan Hu and Yu Mi and Hongquan Zhu and Qiufei Hu},
  title = {{DetourBench: Trajectory-Level Evaluation of Interactive Agents with Exact Minimum-Action Bounds}},
  year = {2026},
  eprint = {2611.20844},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.20844},
}
Figure