TURF ranks tool-agent failures from repeated outcomes
Researchers propose TURF, a training-free method that ranks tool-agent failure risk from repeated outcomes and report wording. Read on for how it works.
Source: Grafy Research LabResearchers at the University of Texas at Dallas have introduced TURF, a training-free method for ranking which results from tool-using language model agents are most likely to have failed. It matters because an agent can report success after a database update, a shell command or an online purchase while leaving the underlying task incomplete or in the wrong state.
According to Tianhao Wang, Yuzhe Ou and Feng Chen, agents plan, call tools and interact with external environments before producing a final message. Those actions can change system state in ways the message does not reveal, such as modifying the wrong database row, leaving a shell task unfinished or buying an item that violates the user's constraints. When auditing every execution is too expensive, such a ranking can prioritise verification, human review or additional computation.
What can a tool-using agent get wrong while reporting success?
The paper identifies two blind spots. Step-level uncertainty does not necessarily mean the final outcome is uncertain, because different tool-call sequences can converge on the same task-relevant state and later observations can resolve earlier ambiguity. Conversely, agreement in final responses does not guarantee agreement in the environment: multiple runs can all report completion after leaving a database or shopping session in materially different states.
Semantic comparison fills part of that gap. It can separate reports with different meanings inside the same coarse outcome category, and recognise paraphrases that mean the same thing. TURF therefore asks whether outcome agreement and report agreement together help rank task-level failure risk.
How does TURF combine execution outcomes with report meaning?
TURF stands for Trajectory Uncertainty via Risk Fusion. Wang, Ou and Chen describe it as a passive, task-training-free framework that neither trains on correctness labels nor alters how the agent acts. Repeated rollouts of the same task provide observable outcomes and final responses or execution summaries.
Each observable outcome is mapped to a bucket. A smoothed Dirichlet count-posterior statistic then estimates dispersion across buckets while discounting small-sample variance, so concentrated outcomes are treated differently from outcomes spread across several buckets even when completion wording is similar.
A frozen natural language inference model estimates semantic dispersion through normalised spectral entropy, capturing graded agreement that discrete buckets miss. TURF-Rank, the default, averages the percentile ranks of the count and semantic scores within a comparable unlabeled reference cohort; TURF-Raw averages raw scores when no cohort is available.
Figure 1 shows why both views matter: in two hypothetical pools of six rollouts, every run reports completion, but one pool reaches a single observed state and the other reaches three. The letters label states, not correctness.
How do TURF-Fixed and TURF-Adaptive differ?
TURF-Fixed scores a prescribed number of executions. TURF-Adaptive uses a Bayesian stopping rule that can halt early when subsequent executions consistently agree with the first. The difference is sampling policy, not the underlying risk definition.
Fixed sampling spends the same rollout budget regardless of early agreement, while adaptive sampling tries to save executions where early rollouts already agree. The authors state that a code repository is available.
What did the evaluation on matched records find?
Wang, Ou and Chen evaluated TURF on 6,854 matched task–setting records across four tool-use environments, three language-model backbones and three seeds. Averaged over the six rollout budgets shared by all 15 baselines, , TURF-Fixed exceeded SGD by 5.14 percentage points in AUROC and 2.94 percentage points in AUPR. SGD had the highest mean scores among the baselines over those budgets, according to the paper.
In replay at a cap of trajectories, TURF-Adaptive inspected 24.00% fewer rollouts than TURF-Fixed at the same cap, while its AUROC and AUPR point estimates were lower by 0.56 and 0.28 percentage points respectively. The authors present adaptive stopping as fewer inspected rollouts in exchange for a small ranking-quality loss in that replay, not as an improvement on every measure.
The scores rank failure risk for review priority; they do not by themselves prove a low-risk result is correct.
How can readers explore the idea in Grafy?
Readers can explore the principle manually in Grafy Chat by running the same brief repeatedly across models side by side and logging the observable end state separately from the final wording — for example, whether a file was created, a record changed or a purchase step completed. Divergence behind similar replies is the blind spot TURF is designed to expose.
For file, shell or database-style tasks, Grafy Code lets readers inspect the end state after each run instead of trusting a closing summary. Readers who want the primary evidence can open the paper in Grafy Reader and compare its method with their own logs, flagging for review tasks where outcomes diverge, summaries disagree in meaning, or both signals move together.
Frequently asked questions
What does TURF check besides the agent's final message?
TURF checks two signals from repeated runs of the same task: how much the observable execution outcomes disperse across runs, and how much the final responses or execution summaries disagree in meaning. The first signal can expose different end states behind identical completion messages, while the second can separate different meanings that a coarse outcome category would group together.
How does TURF-Adaptive use fewer rollouts than TURF-Fixed?
TURF-Adaptive applies a Bayesian stopping rule that can halt sampling early when subsequent executions consistently agree with the first execution. In replay at a cap of 16 trajectories, it inspected 24.00% fewer rollouts than TURF-Fixed at the same cap, while its AUROC and AUPR point estimates were lower by 0.56 and 0.28 percentage points respectively.
How did TURF-Fixed compare with SGD across the shared budgets?
Across the six rollout budgets shared by all 15 baselines, averaged over the evaluation, TURF-Fixed exceeded SGD by 5.14 percentage points in AUROC and 2.94 percentage points in AUPR, according to Wang, Ou and Chen. SGD nevertheless had the highest mean AUROC and AUPR among the baselines over those budgets, so TURF-Fixed was compared with the strongest baseline in that set.


