Skip to content

HERA proposes harness-environment co-evolution, improving agent abstention accuracy to 83.3%HERA: Harness-Environment Co-Evolution for Reliable Agentic Abstention

Paper Tracker· arXiv:2610.06563· Han Luo, Bingbing Wen, Guang Yang, Zora Zhiruo Wang, Pan Lu, Lucy Lu Wang·Indexed by this site · 2026-10-06· Originally publishedAlignment

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

HERA co-evolves the harness and environment, raising Luna's Abstain on HERA-BENCH from 61.7% to 83.3%.

Questions
LLM agents often continue acting even when tasks are infeasible. The authors argue this harms performance, increases API costs and latency, and may cause unintended actions. Optimizing a harness against fixed tasks generalizes poorly to unseen failure modes.
Methods
HERA uses controlled environment mutations to turn solvable tasks into instances with identical requests that require abstention, then uses failure diagnosis to alternately modify the harness and generate new environment tasks. Model weights are fixed. A candidate is adopted only if both Abstain and Pair do not decrease on the validation set and at least one increases.
Experiments and results
Luna's co-evolved Abstain, Act, and Pair on HERA-BENCH are 83.3%, 76.7%, and 70.0% (Table 1). The average improvement across these two metrics for the 19 other LLMs is 15.3 and 12.5 percentage points. The authors estimate Luna+HERA's API cost is 85% lower.
Limitations and future work
The paper does not specifically discuss limitations. The evaluation includes Luna and 19 other models, 60 HERA-BENCH pairs, the training pool expanded to 50 pairs, and cost analysis covering 14 models. The paper does not report the number of repetitions or statistical tests for the main evaluation.
Experimental setupGPT-5.6-Luna、GPT-5.6-Terra et al. · HERA-BENCH、cumulative training pools T0–T6 et al. · Abstain、Pair et al.
Evaluated models
GPT-5.6-LunaGPT-5.6-TerraGPT-5.6-SolGPT-6-AstraClaude Opus 5Claude Sonnet 5Gemini 3.1 Pro (Preview)Gemini 3.8 FlashGemini 3.5 Flash-LiteGrok 4.6DeepSeek-V4.1-FlashGLM-5.2GLM-5.3GLM-5.3-FlashKimi K3Qwen3.8-2.4T-A95BQwen3.8 FlashMiniMax-M3Mistral Medium 3.5Mistral Large 3
Benchmarks
HERA-BENCHcumulative training pools T0–T6fixed validation set
Metrics
AbstainPairActOver-abstain
AI summaryHERA is a harness-environment co-evolution framework for agentic abstention, addressing the problem that LLM agents cannot recognize infeasible tasks in tool-use environments. It consists of two parts: first, through controlled environment variation, it automatically converts solvable tasks into infeasible tasks requiring abstention, constructing verifiable feasible-infeasible task pairs; second, a co-evolution process uses failures on previous tasks to drive harness adjustments and generates execution environments and tasks targeting prior weaknesses. On held-out evaluation tasks, the evolved harness improves abstention accuracy from 61.7% to 83.3% and feasible task completion from 68.3% to 76.7%, achieving the highest scores on both metrics among compared methods. The harness transfers to 19 other LLMs without model-specific optimization, improving abstention accuracy by an average of 15.3 percentage points and enabling smaller models to reach the performance of stronger models at roughly 85% lower cost.

HERA is a harness-environment co-evolution framework for agentic abstention, addressing the problem that LLM agents cannot recognize infeasible tasks in tool-use environments. It consists of two parts: first, through controlled environment variation, it automatically converts solvable tasks into infeasible tasks requiring abstention, constructing verifiable feasible-infeasible task pairs; second, a co-evolution process uses failures on previous tasks to drive harness adjustments and generates execution environments and tasks targeting prior weaknesses. On held-out evaluation tasks, the evolved harness improves abstention accuracy from 61.7% to 83.3% and feasible task completion from 68.3% to 76.7%, achieving the highest scores on both metrics among compared methods. The harness transfers to 19 other LLMs without model-specific optimization, improving abstention accuracy by an average of 15.3 percentage points and enabling smaller models to reach the performance of stronger models at roughly 85% lower cost.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Agents often keep acting on infeasible tasks; HERA co-evolves the harness and environment according to failures.

    LLM agents in tool environments often fail to recognize that a task is infeasible and therefore should stop acting (agentic abstention).

    • Scenario: The authors argue that continuing to act when a request is underspecified or the environment lacks the prerequisites for completion harms task performance, adds unnecessary API cost and latency, and can even lead to unintended or irreversible actions.
    • Existing approaches: One line directly optimizes the model (supervised fine-tuning, reinforcement learning, online policy optimization); another fixes the model and optimizes an external harness, which manages context, memory and skills, tool use, action validation, and control logic for continuing, resuming, or stopping. The authors state the former has received more attention, while harness optimization remains largely unexplored for agentic abstention.
    • Limitations of fixed tasks: Optimizing a harness against fixed tasks exposes only limited failures; once these failures are adapted to, the same examples provide weaker signal about remaining weaknesses. The authors therefore consider letting the task distribution itself adapt, continuously generating new examples that challenge current capabilities.
    • This paper proposes: HERA performs harness–environment co-evolution: it automatically constructs verifiable feasible/infeasible task pairs and uses past failures to drive harness modifications and the generation of new environments and tasks. The evaluation set HERA-BENCH contains 60 verified task pairs.
    • Visible information: A pair of tasks shares the same request; whether it is completable is determined by the environment mutation. The solver cannot see reference answers, private acceptance rules, or feasibility labels (Appendix A.2).
  2. What related research exists?

    Related work is divided into refusal, agentic abstention, and harness evolution; the authors state the environment changes along with failures.

    LLM Refusal and Model-Side Optimization

    • LLM abstention: Wen et al. (2025) define it as not answering when uncertain. The paper categorizes reasons into three types: insufficient query or context information, temporal or factual gaps in model knowledge, and safety or value-based inappropriateness to answer, and lists corresponding datasets, without treating them as baselines in this paper.
    • Model-side optimization: The introduction contrasts supervised fine-tuning, reinforcement learning, and online policy optimization (Agarwal et al., 2026; Chen et al., 2026a;b), as well as optimizing harnesses with fixed models (Shao et al., 2026; Wang et al., 2026; Karten et al., 2026). The authors claim the latter remains largely unexplored in agentic abstention.

    Agentic Abstention

    • Luo et al. (2026): The paper claims they introduce agentic abstention (original: first introduce), evaluating in QA, web, and terminal environments whether agents know when to stop rather than act, and finding that current agents often fail to recognize situations where they should abstain.
    • Liu et al. (2026): Construct executable environment–task pairs, creating situations where abstention rather than action is appropriate through controlled changes to tasks or environments.
    • Lin et al. (2026b): Address related stopping problems from a budget-aware perspective, i.e., whether agents can estimate remaining resource requirements and identify situations where task completion is unlikely within budget.

    The paper notes that in these works, environments are fixed or generated independently of agent performance; this paper uses failure-driven environment generation and then iteratively improves the harness using the resulting environments.

    Harness Evolution

    • Local scaffolding: Khattab et al. (2023), Opsahl-Ong et al. (2024), Yuksekgonul et al. (2025), Agrawal et al. (2026) optimize prompts, examples, or language model programs.
    • Full harness: Meta-Harness (Lee et al., 2026) searches harness code using execution feedback; Agentic Harness Engineering (Lin et al., 2026a) co-evolves prompts, tools, middleware, skills, and memory; AEVO (Zhang et al., 2026c) optimizes the process and context that guide subsequent evolution. There are also failure-driven self-refinement, runtime editing, search generalization, and population evolution (Zhang et al., 2026b;d;e; Shao et al., 2026).
    • Task selection and generalization: Task-CoEvolve (Miyai et al., 2026) adjusts the selection of validation tasks as the harness changes. Wang et al. (2026) question whether the benefits of harness evolution generalize beyond tasks repeatedly used during optimization.

    The paper claims that previous methods typically improve harnesses against fixed environments; this paper evolves the harness together with the environment–task ecosystem and applies it to agentic abstention.

    Baseline Methods and Data

    • Baselines: H0, H0 + abstention prompt, Harness-only evolution, Task-augmented harness evolution, Task generation from H0 failures. All are compared on the cumulative training pool and HERA-BENCH (§4).
    • Environment synthesis: Stage 1 environment construction follows Dong et al. (2026). The introduction analogizes co-evolution to Meng et al.'s (2026) adaptive data generation.

    The authors position this paper as: keeping model weights fixed, using execution failures to simultaneously drive harness adaptation and harder executable environment–task generation.

  3. How does the paper address this problem?

    HERA first creates feasible–infeasible pairs with identical requests, then alternately updates the harness and environment using failures.

    HERA has two phases: first construct verifiable feasible–infeasible task pairs, then let the harness and environment update alternately based on failures. The underlying language model weights remain fixed.

    Task Pair Construction

    • Environment: Starting from an environment theme, use a deep research agent A (with fixed research strategy and research tools) to build a theme-aligned structured database, then iteratively expand it. A bounded encoding process produces a candidate tool set under the tool generation strategy, and filters out tools that are not executable or inconsistent with the database schema, yielding an executable environment Eθ. The paper does not name the specific model of agent A. The approach follows Dong et al. (2026).
    • Tasks: A task proposer generates tasks based on the data and tool capabilities. To avoid the same model both proposing and self-evaluating, an independent solver attempts tasks only through the public tool interface; only tasks that can be completed and verified are retained, denoted Qθ, along with reference trajectories. Appendix A.1 states this independent solver is GPT-5.6 Sol.
    • Mutation: For each (Eθ, Qθ), N independent proposers generate mutation proposals (the paper does not specify N). A semantic strategy πsem checks whether the mutation is consistent with the task and environment semantics; a rescue strategy πres checks whether there are still unintended alternative paths to complete the task. Those that fail enter a proposal refinement loop. Approved proposals p⋆θ are applied to the original environment by operator M.

    Mutation is written as Eθ′=M(Eθ;p⋆θ), i.e., without changing the task request, a mutated environment for abstention evaluation is obtained.

    Co-evolution Loop

    Each round maintains an environment pool Eg and the current harness Hk. Each item in the pool is the same task instruction with its paired feasible environment (Act) and infeasible environment (Abstain). The agent executes on both sides, with trajectories recorded as Rk. An LLM-based failure analyst categorizes task completion failures and abstention failures by cause, yielding diagnostics Fk. The paper does not name the analyst model.

    • Environment Evolution: For environments where the current agent fails to abstain appropriately, the environment designer modifies the parent environment P's data, tool behavior, or constraints according to Fk, then goes through §3.1's task generation and environment mutation; Fk also guides the proposers in these two phases. New pairs undergo the same verification: feasible instances have executable solutions, abstention instances are infeasible.
    • Admission: Candidate batches are evaluated with the current Hk. If the proportion of infeasible instances that fail to abstain appropriately exceeds a threshold τ, the entire batch enters the cumulative training pool, including instances the current harness already handled correctly; otherwise, modify or replace the batch. In experiments, τ=0.4, meaning at least 2 out of 5 infeasible instances fail (§4, Appendix B.4).
    • Harness Evolution: After the training pool updates to Eg+1, new diagnostics are first obtained on all instances. The optimizer can modify prompts, memory, sub-agents, skills, tools, and control logic, but the model remains unchanged. Consecutive updates are written as Hk,i+1=Optimize(Hk,i,Fk,i). Each step builds on the previous candidate, regardless of whether that candidate improved; the training pool is fixed within n steps. Appendix A.3 sets the number of sequential candidates per block to 4.

    Checkpoint Selection

    • Metrics: Abstain is the proportion of correct abstentions on infeasible instances; Pair is the proportion of pairs where the feasible instance is completed and the infeasible instance is correctly abstained. Act (feasible task completion rate) is recorded in the appendix but not used for selection.
    • Adoption Criteria: All candidates are compared with the round's starting Hk on a fixed validation set. A candidate is adopted only if both Abstain and Pair do not decrease and at least one strictly improves; among eligible candidates, the paper's so-called best eligible candidate is selected as Hk+1, otherwise Hk is retained. Validation results are used only for checkpoint selection, not fed back to the optimizer.
    • Data Isolation: The validation set is disjoint from the entire cumulative training pool and HERA-BENCH, and remains unchanged across rounds. Appendix C.1 states the validation set is 15 pairs. HERA-BENCH tasks and trajectories do not enter task generation, harness modification, or checkpoint selection (Appendix A.3).

    Runtime Interface

    • Base harness H0: A minimal tool-calling agent based on the OpenAI Agents SDK, with environment tools exposed via MCP. After receiving a task, it alternates between model replies and tool calls until a final reply or reaching 30 turns (§4).
    • Editable Scope: Each round can modify prompts, memory, harness-level tools, skills, control logic, and sub-agent configurations. Environment tool implementations and semantics, task descriptions, scoring rules, data splits, and execution budgets cannot be modified during optimization (Appendix A.4).
    • Budget: At most 30 agent turns per task variant, and each model reply has at most 8192 output tokens (Appendix A.2). If the generation budget is exhausted without obtaining 5 valid pairs, the round is marked incomplete; the paper does not report whether this occurred.
  4. What experiments did the paper conduct?

    Luna's Abstain on HERA-BENCH goes from 61.7% to 83.3%; the Pair column has a higher baseline elsewhere.

    Experimental Setup

    • Models: Development and main comparisons use GPT-5.6-Luna. The same final harness is then evaluated on 19 models without per-model optimization: GPT-5.6-Terra, GPT-5.6-Sol, GPT-6-Astra, Claude Opus 5, Claude Sonnet 5, Gemini 3.1 Pro (Preview), Gemini 3.8 Flash, Gemini 3.5 Flash-Lite, Grok 4.6, DeepSeek-V4.1-Flash, GLM-5.2, GLM-5.3, GLM-5.3-Flash, Kimi K3, Qwen3.8-2.4T-A95B, Qwen3.8 Flash, MiniMax-M3, Mistral Medium 3.5, Mistral Large 3 (Table 3, Appendix A.2). None are fine-tuned. Temperature and top-p use API defaults; reasoning settings are in Table 4, mostly High, Luna is Default.
    • Data: The training pool starts with 20 pairs, adds 5 pairs each of six rounds, accumulating to 50 pairs (100 instances). The validation set is 15 pairs, fixed (Appendix C.1). HERA-BENCH is 60 pairs (60 feasible, 60 infeasible), domains disjoint from training, then manually revised by the authors (§4, Appendix D).
    • Baselines: H0; H0 + abstention prompt; harness evolution only on initial training tasks; adding extra task pairs each round without environment evolution; generating extra pairs only from H0 initial failures, then doing harness optimization in batches (§4).
    • Metrics: Abstain, Act, Pair definitions in §4. The appendix also defines Over-abstain: the proportion of feasible tasks where the agent explicitly abstains on all or necessary parts, which is not the complement of Act.
    • Protocol: Same environment tools and scoring protocol. Solvers do not see reference answers, private acceptance rules, or task-side labels. The paper does not name the final scoring reviewer model, nor report the number of repetitions per HERA-BENCH task. Validation set selection states one rollout per task variant (Appendix A.3).
    • Co-evolution parameters: Six rounds; τ=0.4; 4 sequential candidates per optimization block (Appendix A.3).

    Main Results

    GPT-5.6-Luna, HERA-BENCH, units % (Table 1):

    Swipe horizontally to read the table

    MethodAbstainActPair
    H061.768.348.3
    H0 + abstention prompt68.363.346.7
    Harness-only evolution76.771.760.0
    Task-augmented harness evolution80.075.065.0
    Task generation from H0 failures78.375.073.3
    Co-evolution83.376.770.0
    • Authors' interpretation: Explicit abstention prompts increase Abstain but decrease feasible task completion; relative to H0, harness evolution is higher on both. The abstract claims Abstain and feasible task completion are highest among compared methods.
    • Pair exception: In Table 1's Pair column, Task generation from H0 failures is 73.3, co-evolution is 70.0. The introduction's 48.3% to 70.0% is relative to H0, not all baselines.
    • Training pool: The authors claim co-evolution on the final 50-pair training pool achieves 86.0% Abstain and 78.0% Pair, both exceeding the second-best baseline by 10.0 percentage points (Table 2, Table 6). The authors argue this supports the need for both harness updates and environment/task updates, and for multiple rounds.

    Cross-Model Transfer

    The final harness is developed on GPT-5.6-Luna and evaluated on other models after fixing. The table below is part of Table 3 (Abstain / Pair, %). Omitted: Terra, Sol, Claude Opus 5, three Geminis, Grok 4.6, DeepSeek-V4.1-Flash, GLM-5.3, GLM-5.3-Flash, Kimi K3, Qwen3.8 Flash, MiniMax-M3. The table includes Mistral Large 3, which has the lowest H0 Abstain.

    ModelH0Final Harness
    GPT-5.6-Luna61.7 / 48.383.3 / 70.0
    GPT-6-Astra81.7 / 70.091.7 / 80.0
    Claude Sonnet 540.0 / 33.360.0 / 41.7
    GLM-5.231.7 / 15.050.0 / 33.3
    Qwen3.8-2.4T-A95B40.0 / 35.080.0 / 63.3
    Mistral Medium 3.510.0 / 8.326.7 / 20.0
    Mistral Large 36.7 / 3.316.7 / 5.0
    • Authors' interpretation: The authors claim average improvements of 15.3 and 12.5 percentage points in Abstain and Pair across 19 other LLMs, with gains ranging from 6.7–40.0 and 1.7–28.3 percentage points, varying by model. Under H0, GPT-6-Astra's Abstain is 81.7%, higher than Luna's 61.7%; Final Harness still reaches 91.7% / 80.0%.
    • Act does not always increase: In Table 5, several models show decreased Act, including GPT-5.6-Terra (83.3 to 78.3), Claude Sonnet 5 (70.0 to 66.7), Gemini 3.8 Flash (60.0 to 56.7), Grok 4.6 (81.7 to 80.0), Mistral Medium 3.5 (61.7 to 60.0), Mistral Large 3 (21.7 to 20.0). The authors do not explain these decreases.
    • Over-abstain: In Table 5, most are 0.0. Mistral Large 3 goes from 13.3 to 15.0; Luna from 0.0 to 1.7. The denominator is the 60 feasible instances in HERA-BENCH.

    Co-evolution Dynamics

    • What was measured: Figure 2 tracks Abstain, Pair, Act for each fixed task batch on subsequent harnesses. B0 is the initial 20 pairs; Bi (i≥1) is the 5 pairs newly introduced in round i. Ti is the cumulative pool.
    • Results: The authors claim new batches tend to be lower than earlier batches under the same harness. For example, the authors claim H5 performs worse on newly introduced B6 than on B0 and most previous batches; after B6 is included, H6 improves that batch's Abstain and Act from 60.0% to 80.0%. B6 has only 5 pairs.
    • Authors' interpretation: The authors claim this is the expected co-evolution dynamics. Act for earlier batches is largely stable, with fluctuations but generally slightly upward; Act is not explicitly targeted when generating new tasks. The authors argue abstention gains can be achieved without sacrificing the ability to complete feasible tasks. Other curve endpoints in Figure 2 are not given point-by-point in the text.

    Cost and Evolution Content

    • Cost: Figure 3 covers 14 models. The authors report median multiples of 2.09 and 3.31 for API cost and token usage after applying HERA. GPT-5.6-Luna + HERA has Pair of 70.0%, same as base GPT-6-Astra; estimated per-episode API cost is $0.0091 vs $0.0610, which the authors claim is about 85% lower. They also name Gemini-3.5-Flash-Lite but do not give its dollar cost.
    • Harness example: Figure 4 shows a representative update sequence. H0 is the base executor; H1 adds an evidence-based decision gate; H2 does cross-source evidence reconciliation; H3 jointly verifies constraints before consequential actions; H4 extends to authorization relationships and cumulative privacy constraints. The caption states green regions are logic newly introduced or refined relative to the previous version.
    • Environment changes: Appendix E.3 categorizes the main changes of the 30 retained pairs across six rounds relative to parent tasks into four types: new constraint combinations, evidence validity and access, more entities or relationships, and specification and interface revisions. The authors claim focus shifts across rounds: E3–E4 introduce interacting constraints that must be considered together, E5 mainly expands existing problems, E6 focuses on whether evidence is available and whether surface restrictions still apply. The bar heights in Figure 6 cannot be verified bar-by-bar in text conversion.

    Other Ablations and Analyses

    • T6 Abstain/Act (Table 2): Harness-only 64.0/66.0; Task-augmented 74.0/76.0; H0 failures 76.0/82.0; co-evolution 86.0/88.0.
    • T6 Pair (Table 6, same order): 46.0, 58.0, 68.0, 78.0.
    • Early overlap: Co-evolution and "task generation from H0 failures" have identical Abstain/Act at T0, T1: 95.0/90.0 and 96.0/92.0, diverging from T2 onward (Table 2).
    • Changes with pool expansion: Harness-only Abstain drops from 90.0 at T0 to 64.0 at T6; co-evolution from 95.0 at T0 to 86.0 at T6 (Table 2).
    • Missing parameter sweeps: The paper does not report ablations on τ, number of candidates, or validation set size.
  5. What are some points that can be further explored?

    The paper does not list limitations or future directions separately.

    Limitations and future directions noted by the authors

    The paper does not specifically discuss limitations. There is no Limitations, Future Work, or equivalent dedicated section. The conclusion does not frame any result as a shortcoming, nor does it list follow-up experiments. The ethics statement and reproducibility statement describe research practices and appendix materials, not limitations.

    Experimental coverage

    • Models: The task execution model is GPT-5.6-Luna; the final harness is additionally evaluated on 19 models in Table 3, for a total of 20, none of which are fine-tuned.
    • Data: The training pool of 20 pairs was expanded to 50 pairs over six rounds; the validation set has 15 pairs; HERA-BENCH has 60 pairs, with domains disjoint from training and revised through manual author review (§4, Appendix C.1, Appendix D).
    • Controls: Five settings in §4: H0, fixed abstention prompt, harness-only evolution, task expansion without environment evolution, and task generation using only H0 initial failures.
    • Explicitly stated protocols: Cost and token analysis covers the 14 models in Figure 3. Appendix A.3 states validation set selection uses one rollout per task variant, 4 candidates, and τ=0.4.
    • Unreported items: The paper does not report the number of repetitions for the main HERA-BENCH evaluation, statistical significance tests, or inter-annotator agreement, nor does it name the models used for the failure analyst, environment designer, and harness optimizer.
  6. Summarize the main content of the paper

    HERA co-evolves the harness and environment using failures and improves Abstain in transfer evaluation.

    HERA, with fixed model weights, co-evolves the harness and executable environments based on failures to improve agentic abstention.

    • Problem: Agents often continue acting on infeasible tasks. The authors argue that fixed task sets expose limited failures, and signals weaken after adaptation.
    • Method: Controlled mutations generate feasible/infeasible pairs with the same request, and check that the infeasible side has no alternative completion paths. Failure diagnostics simultaneously modify the harness (prompts, memory, skills, tools, and control logic) and generate new environment tasks. The harness is replaced only if both Abstain and Pair do not decrease and at least one improves on the validation set.
    • Main results: On HERA-BENCH, Luna, co-evolution relative to H0: Abstain from 61.7% to 83.3%, Act from 68.3% to 76.7%, Pair from 48.3% to 70.0% (Table 1). The Pair column also has a baseline of 73.3%.
    • Training pool and transfer: On the final 50 pairs, Abstain 86.0%, Pair 78.0%, the authors claim both exceed the second-best baseline by 10.0 percentage points. The same harness improves Abstain and Pair by an average of 15.3 and 12.5 percentage points across 19 other LLMs.
    • Cost and authors' conclusions: The authors claim Luna+HERA achieves 70.0% Pair of base Astra with an estimated 85% lower per-episode API cost. The authors claim the harness transfers beyond the development model; in Table 5, some models show decreased Act, which the authors do not explain.
Read originalarxiv.org