TL;DR
This paper introduces SURE-Act, a framework that teaches tool-using LLM agents to better handle uncertainty by learning from "what might have been." By training a separate controller on a new counterfactual dataset to rank alternative actions based on predicted success, cost, and risk, the authors achieve significant performance gains and more efficient decision-making in complex environments.
What Problem Does This Paper Address?
Building an LLM agent that can use tools is one thing; building one that knows when to use them is much harder. Agents often face a "last doubt" at decision points: Should I act now, search for more info, or ask the user for clarification?
The core challenge is that existing interaction logs are "factual"—they only record the outcome of the action the agent actually took. We don't know if a different choice would have been cheaper, faster, or safer. This lack of counterfactual data makes it difficult to train agents to balance the trade-offs between task success, interaction cost (e.g., annoying the user with questions), and the risk of irreversible errors (e.g., deleting a file).
Methods
The authors propose a three-phase pipeline called SURE-Act:
- Counterfactual Supervision: At various decision points in the
ToolSandboxenvironment, the authors "cloned" the environment state. They then forced the agent to try every legal meta-action (Ask, Search, Act-Reversible, Commit-Irreversible) and recorded the downstream outcomes. - Controller Training: They trained a separate, smaller model (Qwen3-1.7B with LoRA adapters) to act as an action-selection controller.
- Multi-head Prediction: The controller predicts three specific scores: success, interaction cost, and critical-error risk.
- Pairwise Ranking Loss: Beyond just regressing these scores, they used a ranking loss to explicitly teach the model which action is better than another at the same decision point.
- Inference with Intervention Control: During deployment, the controller suggests the best meta-action. To prevent the controller from overriding the base agent indefinitely (which can lead to "out-of-distribution" behavior), they implemented a stopping rule: if the controller picks the same action three times in a row, it hands control back to the base agent.
Datasets
- ToolSandbox: The primary benchmark used, which evaluates multi-turn tool use with persistent environment states.
- Counterfactual Dataset (New): The authors created a new resource containing 3,115 action outcomes derived from 1,036 unique decision points across 82 task families.
- Evaluation Pools: They tested on the original 82-family development pool and a separate, completely unseen pool of 89 task families.
Key Insights and Ideas
- Ranking > Regression: Simply predicting the "utility" of an action is hard. The authors found that supervising the difference in utility between two actions (ranking) significantly improved the controller's ability to pick the winner.
- The Intervention Paradox: Surprisingly, intervening more often often led to worse performance. There was a strong negative correlation (-0.77) between intervention frequency and task score. This highlights the importance of their "stopping rule"—knowing when to step back is just as important as knowing when to step in.
- Meta-Action Abstraction: By grouping hundreds of possible tool calls into four high-level "meta-actions," the authors made the decision-making process more generalizable and easier for a small controller to learn.
Key Results
- End-to-End Gains: SURE-Act improved the
ToolSandboxOverall Score by up to 0.0575 when using a Qwen3-4B backbone. - Efficiency: It was the only method tested that actually reduced discounted interaction cost (by 0.068) while maintaining or improving success rates.
- Outperforming Baselines: SURE-Act significantly outperformed adapted versions of existing state-of-the-art methods like SAGE-Agent (+0.1506) and Calibrate-Then-Act (+0.1438).
- Offline Superiority: In offline tests, the controller picked the best action 93 out of 120 times, far exceeding prompted or uncertainty-based baselines.
Limitations and Future Work
- Competence vs. Safety: Interestingly, while SURE-Act improved task completion, it actually increased the frequency of critical errors in some evaluations. The authors note this is a "task-competence result and not a safety one."
- Generalization to Unseen Tasks: While the model performed well on the development pool, the gains were less certain on the 89 completely unseen task families, suggesting that the controller's "common sense" about tool categories has limits.
- Stochasticity: The training labels were based on a single temperature-zero rollout. In highly stochastic environments, a single rollout might not accurately represent the "expected" utility of an action. Future work could involve multiple rollouts to get a more stable ground truth.
Summary updated