Fudan University  ·  arXiv:2605.31308

What do agent benchmarks actually test?

TraceGraph — pooling many models' runs into one shared decision landscape of Access, Trap, and Repair

TraceGraph·traces become graphs; models become traffic

A pass rate ranks. A landscape explains.

Junjie Nian  ·  Kang Chen  ·  Ge Zhang  ·  Yixin Cao  ·  Yugang Jiang

The one idea

A score ranks systems. It does not reveal what process they ran.

Agent benchmarks now record rich interaction traces — interleaved thoughts, tool calls, and environment feedback — yet evaluation still collapses each rollout to a single number: pass / fail, reward, leaderboard average. Three agents can finish within three points of each other and have travelled completely different routes: one explores broadly and repairs its mistakes, one stays shallow and avoids risk, one reaches far but keeps falling into traps. TraceGraph recovers those routes by placing many models' trajectories onto one shared map.

Left: three models score 58, 57, and 55 on the same benchmark — within three points. Right: on a shared decision landscape built from pooled rollouts, the same three models follow visibly different paths through cores, gates, and traps, labelled explorer-plus-repair, safe-but-shallow, and trap-prone explorer.
Fig. 1Pass rates hide process diversity. Left: three agents land within three points. Right: on a shared landscape built from pooled rollouts they take distinct routes — broad exploration with repair, shallow trap-avoidance, or high-access navigation with more trap exposure.
01

One scalar, many processes

A pass rate is a thin read-out. It ranks systems but cannot say whether a model reached a productive region, avoided a failure trap, or recovered after entering one.

02

A shared coordinate system

Align trajectories by observable action–observation states and they stop being arbitrary traces — they form recurring traffic patterns over the same task-specific terrain.

03

Three events, two questions

Read each rollout as Access, Trap exposure, and Repair. Then ask the two questions a score can't: what process does each model supply, and what process does each benchmark demand?

How TraceGraph works

Traces become a graph. The terrain is fixed before any model is named.

The order matters: TraceGraph builds one landscape per task from pooled rollouts, and only then overlays outcomes and compares models. Graph construction defines the terrain; model and benchmark analyses are overlays on it. Model identity is never part of the signature, the distance, or the graph.

The three-stage TraceGraph pipeline. Stage 1: action–observation steps from five benchmark splits are encoded into sparse observable keys and compared with IDF-weighted Jaccard similarity, then pooled into a mutual-k-nearest-neighbour graph decomposed into biconnected components and articulation gates. Stage 2: outcome-informed overlays mark productive cores and trap regions. Stage 3: three rollout events — Access, Trap, and Repair — are read from each model's path, and the trap overlay seeds a runtime detector for a SWE-bench recovery pipeline.
Fig. 2Three stages. (1) Encode each step as observable keys; pool all models into a mutual-kNN graph; decompose into blocks (BCCs) and articulation gates. (2) Overlay outcome-informed productive cores and trap regions. (3) Read each rollout as Access · Trap · Repair — and reuse the trap overlay as a runtime trigger.
  1. sim

    Encode steps; link by what's observable

    Each action–observation step becomes a sparse set of keys — tool and action type, command class, observation pattern, file cue, temporal phase. Similarity is IDF-weighted Jaccard overlap, so a rare traceback at a specific file weighs more than a bare “read”.

    sim(i,j) = k∈Ki∩Kj idf(k)k∈Ki∪Kj idf(k)
  2. BCC

    Pool into a shared graph; find its gates

    Mutual-kNN edges over all pooled steps form one task graph, decomposed into biconnected components (shared states) and the articulation points between them — the gates where a run can branch into qualitatively different continuations. 82 of 100 graph-found gates match a human-judged strategy or phase change.

  3. A·E·R

    Overlay outcomes; read three events

    Diffuse each block's centered reward over the graph; the high-positive quantile is a core, the low-negative a trap. Then every rollout reads as three bits — Access (reaches a core), Trap exposure (enters a trap), Repair (visits a trap, later reaches a core).

The overlays are descriptive, not predictive: they locate where high- and low-outcome traffic concentrates, not whether an unseen run will pass. A trap is a low-outcome region — not a label for “bad action”. TraceGraph is a measurement scaffold, not a score.

Supply & demand

Models navigate differently. Benchmarks reward different processes.

Once the landscape is fixed, model identity is just traffic over the same terrain. Two compact profiles fall out: a model's supply (how often it shows each event, relative to peers on the same tasks) and a benchmark's demand (how much each event separates winning from losing traffic).

Model supply — distinct styles

DeepSeek-V3.2 is the clearest high-Access, high-Repair navigator; Qwen3-Next is low on both — conservative and shallow rather than robustly recovering. Others sit between. Same scores, different process signatures.

Benchmark demand — different targets

Access is universally positive, but the diagnostic axes split: τ²-bench is strongly trap-averse (−0.401), while SWE-bench uniquely rewards Repair (+0.111). Avoiding traps and recovering from them are different design targets.

What the question becomes

Benchmark difficulty isn't one hidden factor — it's a mixture of exploration, avoidance, and recovery demands. The supply–demand profiles say which mixture each benchmark tests, and which models match it.

Two heatmaps. Left, model supply: task-centered residuals over Access, Trap, and Repair for five models; DeepSeek-V3.2 is strongly positive on Access and Repair while Qwen3-Next is strongly negative on all three. Right, benchmark demand: high-minus-low outcome contrasts; Access is positive everywhere, tau-squared-bench is strongly negative on Trap, MCPBench and TerminalBench are also trap-averse, and SWE-bench has by far the largest positive Repair demand.
Fig. 3Two profiles, one landscape. (left) Model supply — DeepSeek-V3.2 is distinctly high-Access / high-Repair; Qwen3-Next is low on all three. (right) Benchmark demand — Access is positive everywhere, τ²-bench is sharply trap-averse, and SWE-bench alone demands Repair. Filled markers denote 95% bootstrap CIs excluding zero.

The map pays off

A trap region, discovered offline, becomes a runtime trigger.

If traps are repeatable trajectory states, they should flag moments where a small recovery policy can help. Because SWE-bench has the clearest positive Repair demand, TraceGraph turns its trap overlay into a live detector: when a rollout enters a historical failure region, fork the same prefix and try a lightweight continuation — no oracle, no gold patch.

7,329trajectories · 427 tasks · 5 observational models
+3.1ptresolved rate · SWE-bench Verified · per provider
82%agree with a human-judged strategy / phase change

On trap-triggered states across the 500-instance SWE-bench Verified pool, the best pooled single-factor policy lifts official resolved rate from 40.4 → 43.5% (+3.1 pt, p=0.016) per provider and 41.0 → 44.8% (+3.8 pt, p=0.045) on common-fired instances — with the active lever differing by provider.

Detect, then prefix-fork

The detector stores canonicalized key sets from trap-side states and fires only when a live SWE-bench step matches a failure region and carries a local file cue on an edit/submit action. On firing, it snapshots the workspace and resumes the identical prefix under a temperature bump (Hot) or a conservative, log-only diagnosis Note.

Gains are real, and provider-specific

Across three fresh providers (Qwen3.6-35B-A3B, GLM-5.1, DeepSeek-V4-Pro), pooled recovery beats baseline at fired states. The route differs: Qwen3.6 benefits most from the diagnosis note (+4.7 pt), while GLM-5.1 and DeepSeek-V4 gain most from the temperature bump (+4.6 / +3.4 pt) — per-provider deltas on small fired subsets, less powered than the pooled result above.

A single SWE-bench task on the shared landscape. Left: the block quotient graph with green core blocks, amber trap blocks, blue articulation gates, and gray other blocks. Right: three model trajectories drawn as arrows — DeepSeek-R1 repairs from a trap block back to a core, Gemini navigates directly, and Qwen3-Next cycles between two trap blocks without escaping.
Fig. 4One task, three journeys (SWE-bench django-9296). (left) The block graph — green cores, amber traps, blue gates. (right) R1 repairs from a trap back to a core; Gemini navigates directly; Qwen3-Next cycles in a trap without escaping — exactly the differences a scalar score erases.

A descriptive instrument, not a predictor

The roles are outcome-informed by design, so TraceGraph explains where high- and low-outcome traffic concentrates — it is not a blind success predictor. A trap marks a low-outcome region, not useless behaviour: 36% of trap blocks are judged exploration. The recovery gains are local downstream improvements on a structurally-selected SWE-bench subset, not a universal repair result.

Built from 5 benchmark splits · 427 tasks · 16.1 blocks / task MCPBench · Search · SWE-bench · τ²-bench · TerminalBench — gated cx-cmu trajectory release · observational models: DeepSeek-R1, DeepSeek-V3.2, Gemini-2.5-Flash, Qwen3-235B, Qwen3-Next

Watch

Same score, different journeys — a visual essay

A silent vector essay, drawn live in your browser — no video file. A pass rate flattens three different journeys; a shared landscape with cores, traps, and gates reads them as Access, Trap, and Repair — and the traps can guide recovery.

Cite

Reference

Junjie Nian, Kang Chen, Ge Zhang, Yixin Cao, Yugang Jiang

Fudan University    Equal contribution

Correspondence: kchen24@m.fudan.edu.cn

@misc{nian2026tracegraph,
  title   = {TraceGraph: Shared Decision Landscapes for Diagnosing
             and Improving Agent Trajectories},
  author  = {Nian, Junjie and Chen, Kang and Zhang, Ge and
             Cao, Yixin and Jiang, Yugang},
  year    = {2026},
  eprint  = {2605.31308},
  archivePrefix = {arXiv},
  primaryClass = {cs.CL},
  note    = {TraceGraph},
  url     = {https://arxiv.org/abs/2605.31308},
}

Access · Trap · Repair — the process a benchmark really tests.