Command Palette
Search for a command to run...
EvoHarness-RL: 장기 과업 수행 LLM 에이전트를 위한 자기 진화형 런타임 하네스 학습
EvoHarness-RL: 장기 과업 수행 LLM 에이전트를 위한 자기 진화형 런타임 하네스 학습
초록
장기 과업을 수행하는 LLM 에이전트는 상태 유지, 진행 상황 추적, 도구 호출, 결과 검증 및 상호작용 간 경험 재사용을 위해 외부 실행 지원에 점점 더 의존하고 있다. 그러나 효과적인 하네스 활용은 잡음이 섞인 상호작용 궤적으로부터 상태를 형성하는 문제와 외부 상태 접근에 대한 런타임 제어라는 두 가지 상호 연관된 과제를 야기한다. 기존 에이전트는 일반적으로 프롬프트, 휴리스틱 또는 도메인별 관례를 통해 이 두 가지를 모두 처리하므로, 외부 작업 공간과 그 사용 정책이 수동으로 설계된다. 이 문제를 해결하기 위해 우리는 에이전트가 오프라인에서 하네스 정책을 학습하고, 런타임 과업 실행 중에 이를 배포하여 외부 하네스 상태를 구축 및 갱신하는 하네스 정책 학습 문제를 연구한다. 우리는 신념(Belief), 진행 상황(Progress), 경험(Experience)을 정책 지향적 하네스 상태로 노출하는 EvoHarness-RL을 소개한다. 지도 학습 기반 하네스 미세 조정은 기본 에이전트에게 하네스 행동 공간과 유용한 외부 상태를 구축하는 방법을 가르치는 반면, 비용 인지형 GRPO는 장기 상호작용 중에 해당 상태를 선택적으로 읽고, 갱신하고, 통합하는 조정 정책을 탐색한다. Qwen3-8B LLM을 사용하여 ALFWorld에서 구현된 EvoHarness-RL은 96.9%의 성공률을 달성했으며, 두 가지 주요 역학을 밝혀냈다. 첫째, 하네스 어닐링(annealing)은 훈련을 통해 반복적인 하네스 사용 패턴을 모델 정책에 내재화하여 에이전트가 빈번한 하네스 호출에서 선택적 외부 상태 접근으로 전환하도록 한다. 둘째, 하네스 진화(evolution)는 진행 상황 갱신과 경험 통합을 통해 하네스를 간결하고 과업 적응적인 상태 기반으로 정제한다. 이러한 결과는 장기 과업 에이전트가 단순히 더 강력한 도구나 더 큰 메모리를 추가하는 것을 넘어, 외부 하네스 작업 공간을 구축하고 조정하기 위한 학습 가능한 정책으로부터 이점을 얻는다는 것을 시사한다.
One-sentence Summary
Researchers from the University of Illinois Urbana–Champaign and Meta AI propose EvoHarness-RL, a method that learns self-evolving runtime harness policies for long-horizon LLM agents through supervised harness fine-tuning and cost-aware GRPO, coordinating selective access to Belief, Progress, and Experience (BPE) state, achieving 96.9% success on ALFWorld with Qwen3-8B and revealing harness annealing and evolution.
Key Contributions
- EvoHarness-RL is introduced as a trainable coordination layer that structures the external workspace as Belief, Progress, and Experience (BPE) and defines harness meta-actions for runtime state construction and updating.
- A two-stage training recipe uses supervised harness fine-tuning on expert demonstrations to bootstrap harness use, followed by cost-aware GRPO to optimize selective read, update, and consolidation policies for external state.
- On ALFWorld with a Qwen3-8B model, EvoHarness-RL reaches 96.9% success, and analysis reveals harness annealing (internalizing harness-use patterns into selective external-state access) and harness evolution (experience consolidation creating a compact, task-adaptive state substrate).
Introduction
LLM agents performing long-horizon tasks rely on an external harness of tools, memory, verifiers, and state trackers to maintain context, track progress, and recover from errors. While these components are increasingly sophisticated, the agent’s policy for accessing them is typically fixed by prompts or heuristics, leaving the agent unable to learn when to read, update, or consolidate external state as part of its own decision-making. The authors propose EvoHarness-RL, a trainable coordination layer that unifies the harness into a Belief, Progress, and Experience workspace and equips the agent with compact meta-actions to query and modify it. A two-stage training recipe first bootstraps harness use from demonstrations and then, via cost-aware reinforcement learning, optimizes the tradeoff between task success and the interaction budget consumed by harness actions, turning harness access from a static scaffold into a learned runtime policy.
Method
The authors introduce EvoHarness-RL, a trainable coordination layer that enables an agent to actively manage an external harness workspace during long-horizon tasks. The system comprises a unified BPE state abstraction, a compact agent-harness action protocol, an environment adapter that grounds the abstraction in a specific domain, and a two-stage cost-aware training pipeline. Together, these components allow the policy to decide when to read from or write to the harness, trading off information access against interaction cost.
The harness state is structured into three functional roles: Belief, Progress, and Experience (BPE). At each step t, the harness renders
Ht=(Bt,Pt,Et),where Bt stores task-relevant facts inferred from interaction (e.g., object states and locations), Pt maintains a list of subgoal-status records (gi,σi) that externalize what has been attempted and what remains open, and Et holds cross-episode knowledge such as skills, failure modes, and search priors. This compact representation addresses recurrent failure modes in long-horizon execution: losing track of the current environment state, forgetting progress, and repeatedly rediscovering known procedures.
To interact with the BPE workspace, the policy uses a small set of meta-actions
Abpe={track,commit,recall,note},which respectively read from Bt, update subgoal status in Pt, retrieve reusable knowledge from Et, and record new insights for later consolidation. The full action space at step t is the union of environment actions and harness actions, A=Aenv∪Abpe. Given the observation ot, the rendered harness state Ht, and task context ct, the policy samples
at∼πθ(⋅∣ot,Ht,ct).All actions consume the same interaction budget, so the agent must learn when querying the harness is worth its cost.
The BPE interface is functional rather than implementation-specific, so an environment adapter bridges domain signals to the general abstraction. The adapter processes observations, action results, and verifier feedback, maintains internal stores for belief, progress, and experience, and renders the policy-facing triplet (Bt,Pt,Et). It also grounds the four harness actions in the target domain. In the ALFWorld instantiation, Belief is a world-state store updated after each environment step; the policy issues track[object] or track[world] to inspect it on demand. Progress is a bounded list of subgoal-status entries, populated by commit[subgoal] to externalize execution steps. Experience is a cross-episode skill store organized into general skills, task-specific skills, common mistakes, and object-location search priors. The policy uses recall[query] to access prior knowledge and note[insight] to queue new lessons. During parallel rollout collection, the main skill store is fixed within a batch, and a consolidation model merges accumulated notes and trajectory summaries into the store at epoch boundaries.
The policy is trained in two stages. First, supervised fine-tuning (SFT) bootstraps the model on teacher trajectories that intermix environment actions and BPE harness actions. The teacher demonstrations teach the model both task-solving behavior and the basic semantics of when to track, commit, recall, or note, while the experience collected during teacher rollouts initializes the skill store. Second, the policy is optimized with Group Relative Policy Optimization (GRPO), using a cost-aware reward that combines a sparse success signal with auxiliary shaping terms:
R(τ)=task successRsucc(τ)+efficiency bonusλeffReff(τ)+action diversityλdiv(u)Rdiv(τ)−spam penaltyλspamRspam(τ)−format penaltyλinvRinv(τ).Task completion provides a sparse reward of 10 only when the episode is solved. The efficiency bonus Reff(τ)=max(0,1−∣τ∣/Tmax) is granted exclusively on success, penalizing redundant harness queries. To prevent policy collapse into ignoring harness actions or falling into repetitive loops, a time-dependent vocabulary diversity bonus is applied:
Rdiv(τ)=∣τ∣∣{verb(at):at∈τ}∣,λdiv(u)=2λdivmax(1+cosUπu),where u is the current RL epoch and U is the annealing horizon. This curriculum encourages broad exploration of harness actions early in training and gradually decays to force specialization. Fixed penalties Rspam and Rinv suppress degenerate repetitions and malformed syntax.
Experiment
Experiments on ALFWorld evaluate EvoHarness-RL against frozen and trainable baselines, ablate its belief-progress-experience harness, and test generalization to unseen environments. The findings confirm that all three harness components work synergistically and are essential for long-horizon tasks, while RL optimization enables the policy to internalize routine scaffolding, reduce costly harness calls, and robustly generalize beyond training distributions. The cross-episode experience store evolves from rapid accumulation into a compact, task-adaptive memory, reinforcing that the harness becomes a learned coordination mechanism rather than a static memory.
EvoHarness-RL with Qwen3-8B achieves state-of-the-art performance on the ALFWorld seen split, substantially surpassing all baselines and matching top frontier models. The BPE framework universally improves success rates across model scales, with the largest gains on weaker frontier models. Two-stage training from prompt scaffolding to supervised fine-tuning to reinforcement learning progressively lifts performance, validating the pipeline. EvoHarness-RL on Qwen3-8B attains a 96.9% average success rate, matching Claude Opus 4.5 and decisively outperforming trainable agents like SkillOS and SkillRL. Applying the explicit harness boosts GPT-4.1 by over 22 absolute points and GPT-5 by over 25 points, demonstrating broad benefits for struggling frontier models. Even Claude Opus 4.5, already near the performance ceiling, gains +2.1 points from the harness, reaching 98.5%. The progression from prompt-time scaffolding (56.4%) to supervised fine-tuning (68.6%) to reinforcement learning (96.9%) validates the two-stage training pipeline. The BPE framework provides consistent improvements across all model sizes, confirming that externalizing belief, progress, and experience is critical for long-horizon task execution.
Ablating any single BPE component lowers overall success, demonstrating that belief, progress, and experience act synergistically. Removing belief tracking hits object localization tasks hardest, disabling progress degrades long-horizon multi-step tasks, and discarding reusable experience causes the largest average drop, especially for complex state-change tasks. Without belief, success on Clean and Cool drops sharply, while Heat is unaffected, showing that explicit object tracking matters most for localization and state verification. Disabling experience yields the lowest overall average success rate (48.6%) and heavily impacts complex state-change tasks like Heat. Ablating progress disproportionately harms long-horizon dependent subgoal tasks such as Pick2.
On ALFWorld unseen tasks, a prompt-time harness lifts ReAct's average success rate from 50.0% to 77.6%, but supervised fine-tuning to imitate harness calls reduces generalization to 69.4%. The RL-optimized policy, trained with cost-aware GRPO, reaches 86.6%, showing it learns to selectively use the harness for robust performance in novel environments. The prompt-time harness strongly improves over ReAct on most tasks, but SFT degrades performance on Cool and Heat, suggesting imitation overfits to seen harness-use patterns. The RL-optimized policy achieves near-perfect scores on Look (94.4%), Cool (95.2%), and Pick2 (88.2%), substantially outperforming all other variants.
Experiments on ALFWorld seen and unseen tasks evaluate EvoHarness-RL, which externalizes belief, progress, and experience through a BPE harness and is trained via a two-stage pipeline ending with cost-aware reinforcement learning. The harness universally improves success rates across model scales, and ablations reveal that each component is essential, with belief, progress, and experience synergistically addressing localization, long-horizon planning, and complex state changes. On unseen tasks, the RL-optimized policy learns to selectively invoke the harness, achieving robust generalization while imitation overfits, confirming that explicit state tracking and selective tool use are key for long-horizon execution.