HERA Teaches AI Agents When to Stop Instead of Acting
Introduction
A tool-using agent can execute a long sequence of actions and still fail at a more basic judgment: recognizing that a task has no valid solution. Continuing to call tools in that situation wastes time and compute, and in practical deployments may trigger incorrect or costly actions. HERA, short for Harness-Environment Co-Evolution for Reliable Agentic Abstention, treats this judgment as a first-class agent capability. Its goal is not simply to make an agent act more often, but to help it decide when acting is justified and when abstaining is the correct outcome.
What HERA changes
- Abstention becomes an explicit evaluation target. The work focuses on agentic abstention: identifying an infeasible task and stopping rather than producing an unsupported solution. Existing approaches commonly optimize a model or its harness against a fixed task collection, which can leave them exposed to failure modes that were not represented during optimization.
- Infeasible tasks are generated systematically. HERA begins with a task known to be solvable and applies controlled mutations to its environment. The result is an infeasible counterpart that requires abstention. This creates verifiable feasible–infeasible pairs while preserving enough of the original structure to make the distinction meaningful.
- The harness and environment evolve together. When an agent fails, the failure is used to revise the harness—the surrounding logic responsible for planning, tool use, checking, and stopping decisions. The same weakness also informs the creation of new environments and tasks, forming a feedback loop that continually probes the system’s blind spots.
- Caution does not have to reduce productivity. On held-out tasks, the evolved harness reportedly improves abstention accuracy from 61.7% to 83.3%. Feasible-task completion rises from 68.3% to 76.7% at the same time, suggesting that better refusal behavior need not come from simply refusing more requests.
Why it matters
The broader contribution is methodological. Instead of relying on a static benchmark, HERA makes the environment an active source of new challenges. A failure is not only an error to record; it becomes a signal for changing the harness and generating another test case. This is a closer approximation of deployment, where agents encounter novel combinations of constraints rather than a repeated list of benchmark patterns.
The reported transfer results are also notable. The best evolved harness improves abstention accuracy across 19 other LLMs by an average of 15.3 percentage points without model-specific optimization. The authors further report that smaller models can match the performance of more capable models with an estimated 85% lower cost when assisted by the harness. These findings point to an important engineering alternative to scaling: reliability can also come from better orchestration, verification, and stopping policies.
The supplied material does not include the full benchmark composition, baselines, or environment details, so the reported figures should not be treated as universal guarantees. Still, HERA frames “knowing when to stop” as a capability that can be generated, measured, and improved through an ongoing interaction between agents and the worlds in which they operate.
Source: Hugging Face Daily Papers
Comments
Checking sign-in status...
Loading comments...