HyperAIHyperAI

Command Palette

Search for a command to run...

AutoSaddler: 에이전트 실행 추적으로부터의 지속적 갱신을 통한 자동 하네스 최적화

초록

LLM 에이전트는 장기간 작업에서 여전히 신뢰성이 낮으며, 작은 국소적 실패가 장기간의 상호작용에 걸쳐 누적되어 전체 작업 실패로 이어질 수 있다. 외부 하네스(harness)가 견고성을 크게 향상시킬 수 있지만, 하네스 설계는 프롬프트, 도구 구성, 제어 로직의 방대한 공간을 탐색해야 하는 수동적이고 비용이 많이 드는 과정으로 남아 있다. 우리는 하네스 개선을 오프라인 학습 문제로 정식화하고 미니배치로부터의 실패 신호를 사용하여 하네스를 반복적으로 갱신하는 자동 하네스 최적화 프레임워크인 AutoSaddler를 제안한다. AutoSaddler는 실패 추적 진단, 하네스를 코드로 취급하는 구조화된 패치 생성, 그리고 검증 기반 갱신 선택을 결합한다. GAIA2, SWE-Bench Pro, Terminal-Bench 2.0에 대한 실험 결과, AutoSaddler는 해당 기본 하네스 대비 에이전트 성능을 크게 향상시켜 각각 9.0, 9.6, 10.0 퍼센트 포인트의 성능 향상을 달성했다. 추가적인 제거 연구는 효과적인 하네스 최적화가 피상적인 반성보다는 심층적인 디버깅, 제약 없는 편집보다는 표적화된 수정, 그리고 개별 궤적 특화 수리보다는 일반화를 고려한 선택이라는 세 가지 요소의 혜택을 받는다는 점을 시사한다. 이러한 결과는 자동 하네스 최적화가 더 높은 성능과 신뢰성을 갖춘 에이전트 시스템으로 나아가는 유망한 경로임을 보여준다.

One-sentence Summary

POSTECH, KAIST, et al. propose AutoSaddler, an automatic harness optimization framework that treats harness improvement as offline learning from agent execution traces, combining failure-trace diagnosis, structured code-based patch generation, and validation-based selection to substantially boost LLM agent robustness, achieving gains of 9.0, 9.6, and 10.0 percentage points on GAIA2, SWE-Bench Pro, and Terminal-Bench 2.0, respectively.

Key Contributions

  • AutoSaddler is an automatic harness optimization framework that formulates harness improvement for LLM agents as an offline learning problem, combining in-depth failure diagnosis, structured patch generation that treats the harness as code, and generalization-aware update selection to produce durable harness improvements.
  • On GAIA2, SWE-Bench Pro, and Terminal-Bench 2.0, AutoSaddler improves agent performance by 9.0, 9.6, and 10.0 percentage points over base harnesses, respectively, and outperforms the strongest automated baselines by 7.4, 4.4, and 6.7 points.
  • Ablation studies suggest that effective harness optimization benefits from deep debugging rather than shallow reflection, targeted modifications rather than unconstrained editing, and generalization-aware selection rather than trajectory-specific repair.

Introduction

Large language models exhibit jagged intelligence, performing well on some tasks while failing on closely related ones, which undermines their reliability in autonomous, multi-step agent applications. To mitigate this, developers build external harness layers (prompts, tools, middleware) around the model, but manually tuning these harnesses is slow, expensive, and hard to scale because the design space is vast and evaluating long-horizon trajectories is costly. The authors formulate automatic harness optimization as an offline learning problem and introduce AutoSaddler, a framework that iteratively refines the harness using failure signals from batches of training tasks. AutoSaddler combines in-depth diagnosis of failed trajectories, structured patching of the harness code, and generalization-aware selection to produce durable updates that improve agent performance across environments.

Method

The authors propose AutoSaddler, an iterative framework designed for the automatic optimization of LLM agent harnesses. They formulate this harness optimization as an offline learning problem, adopting a mini-batch training paradigm to manage the high cost of rollout-based evaluation. The optimization space is defined over three distinct classes of harness parameters, namely prompts, tools, and middleware, denoted as θ=(θprompt,θtool,θmiddleware)\theta = (\theta_{\text{prompt}}, \theta_{\text{tool}}, \theta_{\text{middleware}})θ=(θprompt,θtool,θmiddleware). The primary objective is to maximize the expected task performance over a target task distribution within a predefined rollout budget KKK.

Refer to the framework diagram for a comprehensive view of the iterative optimization loop.

As shown in the figure below, each iteration nnn begins by evaluating the current harness HnH_nHn, parameterized by θn\theta_nθn, on a mini-batch BnB_nBn sampled from the training set. The workflow then transitions into the Diagnosis-Patch Session. During this phase, the execution traces from the mini-batch, encompassing both successful and failed runs, are analyzed by a Diagnosis-Patch Agent. To mitigate long-context challenges, the agent is provided with the harness codebase and structured guidance to progressively retrieve relevant trace details. Based on this evidence, the agent identifies suspected root causes and proposes a structured patch Δθn\Delta \theta_nΔθn. Rather than allowing unconstrained edits, the patch space is strictly organized into three categories corresponding to the harness layers: Prompt, Tool, and Middleware. Furthermore, the authors divide these patch types into two higher-level groups: Capability Patches, which modify executable code or orchestration logic, and Steering Patches, which consist of textual edits. To optimize these effectively, AutoSaddler employs a Phased Patch Scheduling strategy, analogous to learning-rate scheduling, where optimization initiates with a Capability Patch phase before transitioning to a Steering Patch phase.

Following the generation of the updated harness Hn=Hn+ΔθnH_n' = H_n + \Delta \theta_nHn=Hn+Δθn, the system verifies the patch on the same mini-batch. If the patch yields a mini-batch improvement, it is further evaluated on the development set to estimate generalization. Regardless of the verification outcome, the workflow proceeds to the Reflection Session. Here, a Reflection Agent compares the pre-patch and post-patch traces, categorizing the outcomes into fixed, regressed, still-failing, and still-passing cases. Targeted self-reflection questions are utilized to elicit insights into the effectiveness of the patch, the addressed failure patterns, and any observed regressions. The extracted lessons, along with the patch description and evaluation metrics, are stored as node-level attributes in the EvoDAG.

The Evolution Session leverages the EvoDAG, a directed acyclic graph G=(V,E)\mathcal{G} = (V, E)G=(V,E) that serves as the cumulative memory of the optimization process. Each node vnVv_n \in VvnV represents a previously explored harness annotated with its associated lessons and performance signals, while each directed edge eEe \in EeE represents the diff between a parent harness and its descendant. Instead of merely continuing from the most recent harness, the Evolution Agent consults the full EvoDAG to synthesize the next candidate harness Hn+1H_{n+1}Hn+1. By composing elements from any subset of previously explored harnesses guided by accumulated lessons, this merge operation functions similarly to evolutionary search, enabling the framework to escape local optima by recombining successful components across different lineages. Once the rollout budget is exhausted, AutoSaddler returns the candidate harness that achieved the highest empirical development-set score.

Experiment

AutoSaddler is evaluated on three diverse benchmarks: GAIA2, SWE-Bench Pro, and Terminal-Bench 2.0, using base harnesses and compared against prompt-centric (GEPA) and harness-optimization (Meta-Harness) baselines. It consistently outperforms both the base harnesses and the strongest automated baselines, and on Terminal-Bench even surpasses a manually expert-tuned harness. Ablation studies demonstrate that its three core design principles (in-depth diagnosis, structured intervention, and generalization-aware selection) are essential: removing any of them substantially degrades performance, with generalization-aware selection proving most critical by preventing overfitting and reducing regressions on unseen scenarios.

The patch taxonomy organizes harness modifications into prompt, tool, and middleware categories. Each subtype is labeled as either Capability or Steering, distinguishing patches that extend or repair functional tooling from patches that guide agent behavior. This separation clarifies whether a patch changes what the agent can do or how it uses existing capabilities. Capability patches include adding new tools, modifying tool parameters, and fixing internal tool implementation, all of which extend or correct functional behavior. Steering patches include prompt rule additions or modifications, tool description fixes, and pre-tool-use hooks, which guide behavior without adding new functional capabilities.

AutoSaddler achieves the highest test-set Pass@1 on GAIA2, outperforming the default agent and all automated baselines. Ablation studies show that each of its three core design principles—in-depth diagnosis, structured intervention, and generalization-aware selection—contributes substantially to overall performance, with generalization-aware selection preventing the largest degradation when removed. AutoSaddler improves Pass@1 by 9.0 percentage points over the default agent (53.0% to 62.0%). It surpasses the strongest automated baseline, GEPA, by 7.4 percentage points (54.6% vs. 62.0%). Removing in-depth diagnosis drops Pass@1 from 62.0% to 57.8%. Removing structured intervention reduces Pass@1 from 62.0% to 56.9%. Ablating generalization-aware selection causes the largest performance drop, from 62.0% to 50.6%.

AutoSaddler discovers harnesses that consistently outperform both manual and automated baselines on SWE-Bench Pro and Terminal-Bench 2.0. On SWE-Bench Pro, it raises the average Pass@1 by 8.4 points over the SWE-agent manual harness and surpasses the best automated baseline GEPA by 6.2 points. On Terminal-Bench 2.0, it improves over the base Terminus 2 harness by 10.0 points and even beats the expert-tuned KIRA harness by 2.5 points. AutoSaddler achieves the highest average Pass@1 on SWE-Bench Pro, outperforming both the manual SWE-agent harness and the automated GEPA and Meta-Harness baselines. On Terminal-Bench 2.0, AutoSaddler surpasses the manually expert-tuned Terminus KIRA harness, demonstrating the effectiveness of automated harness optimization.

The patch taxonomy categorizes harness modifications into capability and steering patches, clarifying whether they extend tool functionality or guide agent behavior. AutoSaddler, an automated harness optimization method, consistently surpasses manual and automated baselines on GAIA2, SWE-Bench Pro, and Terminal-Bench 2.0. Ablation studies demonstrate that its three design principles of in-depth diagnosis, structured intervention, and generalization-aware selection are all essential, with generalization-aware selection being the most critical for maintaining performance.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp