TURF: Outcome-Grounded Uncertainty Quantification for Tool-Interacting LLM Agents

Tianhao Wang, Yuzhe Ou, Feng ChenarXiv 2026

TL;DR

An LLM agent can cheerfully report "Done" even after modifying the wrong database row or buying the wrong item online. TURF (Trajectory Uncertainty via Risk Fusion) is a training-free method that ranks how likely an agent's task is to have failed by running it multiple times and combining two signals: how much the actual execution outcomes vary, and how much the final text reports disagree in meaning. It beats 15 existing uncertainty baselines and includes an adaptive stopping rule that cuts rollout costs by nearly a quarter with minimal loss in ranking quality.

What Problem Does This Paper Address?

Tool-interacting LLM agents—whether managing databases, running shell commands, or shopping online—don't just generate text; they alter external system states. When auditing every single execution is too expensive, practitioners need uncertainty quantification (UQ) to flag which completed tasks warrant human review.

Existing UQ methods mostly look at response text or step-by-step token probabilities, which creates two blind spots:

  1. Local ambiguity doesn't mean outcome failure: An agent might take different sequences of tool calls that all converge to the exact same, correct final state.
  2. Text agreement hides state disagreement: Multiple runs can all end with "Done" while leaving a database or shopping cart in materially different states.

TURF bridges this gap by grounding uncertainty in what the agent actually did alongside what it said.

Methods

Given a task and a budget of $B$ repeated executions (rollouts), TURF computes two complementary risk scores without training on any correctness labels:

TURF workflow schematic
  1. Count Risk (Outcome Dispersion): An environment-specific adapter extracts the observable execution outcome (e.g., a database state signature or purchase status) and maps it to a discrete bucket. Because raw empirical entropy can be noisy with small sample sizes, TURF places a Dirichlet pseudo-posterior over the bucket counts and subtracts a variance penalty ($\kappa\sqrt{v_n}$) so tasks only rank high when dispersion is backed by solid evidence, plus a small surprisal tie-breaker.
  2. Semantic Risk (Report Disagreement): A frozen Natural Language Inference (NLI) model measures how strongly each rollout's terminal response entails the others. (When terminal text is uninformative—like click[buy now] in WebShop—TURF builds a deterministic summary from recorded milestones.) This forms a repaired positive-semidefinite kernel whose normalized spectral entropy captures graded semantic disagreement.

Fusion: Because the two risks live on different scales, TURF-Rank (the default) converts each to a percentile rank within an unlabeled reference cohort and averages them. When no cohort is available, TURF-Raw averages the raw scores directly.

Sampling Policies: TURF-Fixed inspects the full budget $B$. TURF-Adaptive treats the first rollout as an anchor and uses a Bayesian two-view stopping rule to halt early once posterior evidence shows subsequent rollouts consistently match the anchor's outcome and meaning.

Datasets

The authors evaluate TURF on 6,854 matched task–setting records across four tool-use benchmarks:

  • AgentBench-DB (DBBench) (300 tasks): database interaction.
  • AgentBench-OS (144 tasks): operating-system interaction.
  • WebShop (200 tasks): interactive online shopping.
  • GAIA (139 validation tasks from Levels 1 and 2): web-assisted question answering.

Every task was run 16 times across three LLM backbones (Qwen3.5-9B, Gemma-3-12B, GPT-OSS-20B) and three random seeds.

Key Insights and Ideas

  • Execution traces beat "Done": Forming outcome buckets from actual execution traces rather than normalized final responses improves macro AUROC by +1.35 points and AUPR by +1.40 points overall—and by +6.22 AUROC / +6.69 AUPR on DBBench.
  • Two signals are better than one: Fusing outcome dispersion with semantic disagreement consistently improves AUPR over either signal alone (e.g., +0.81 to +1.14 AUPR points over count risk alone).
  • Consistency $\neq$ correctness: TURF-Adaptive's early stopping certifies that the first rollout's outcome recurs, not that it is correct. An agent that repeats the exact same mistake every time will still trigger an early stop.
  • Rank fusion balances scales: Averaging percentile ranks prevents one risk metric's native range from dominating the other, outperforming raw averaging when a comparable reference cohort is available.

Key Results

  • Outperforms 15 baselines: Averaged across six rollout budgets ($B \in \{2, 3, 4, 6, 8, 12\}$), TURF-Fixed beats the strongest baseline (SGD) by 5.14 percentage points in AUROC and 2.94 percentage points in AUPR.
  • Beats adapted agent-UQ methods: TURF-Fixed also outperforms nine recent agent-UQ adaptations (such as AgentUQ–Obs-NLL, TRACER–Local, and TER–NativeJudge) by 11.82–23.76 AUROC points.
  • Adaptive savings: At a cap of $B = 16$, TURF-Adaptive inspects 24.00% fewer rollouts (12.16 vs. 16) and 19.26% fewer decision steps than TURF-Fixed, with only a 0.56-point dip in AUROC and 0.28-point dip in AUPR.
  • Live runs: In live runs at cap 16, TURF-Adaptive saved 18.7%–38.3% in generation tokens and 19.9%–40.5% in tool calls.

Limitations and Future Work

Because TURF relies on consistency across repeated runs, it can give false reassurance if an agent confidently repeats the same mistake in every execution; the authors emphasize it should be used to prioritize verification, not to waive safety checks. Additionally, TURF-Rank assumes access to a comparable unlabeled reference cohort (though TURF-Raw removes this requirement), outcome bucketing relies on environment-specific adapters, and the method outputs a relative risk ranking rather than a calibrated failure probability.

Summary updated

BibTeX
@misc{wang2026turf,
  author = {Tianhao Wang and Yuzhe Ou and Feng Chen},
  title = {{TURF: Outcome-Grounded Uncertainty Quantification for Tool-Interacting LLM Agents}},
  year = {2026},
  eprint = {2612.04571},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.04571},
}
Figure