TL;DR
ActiveSaddler introduces automated curriculum learning to the optimization of LLM agent "harnesses" (prompts, tools, and control logic). By modeling the training process as a non-stationary bandit that adaptively prioritizes specific failure patterns, it significantly improves agent performance and cost-efficiency compared to fixed training schedules.
What Problem Does This Paper Address?
Building reliable LLM agents often involves optimizing their "harness"—the external scaffolding of prompts, tool interfaces, and runtime logic that surrounds the model. Existing Automated Harness Optimization (AHO) methods focus on how to update this harness based on feedback but usually treat the curriculum (the set of training scenarios used to generate that feedback) as fixed or predetermined.
This creates a major efficiency gap. As an agent's harness evolves, the scenarios most useful for further improvement change. A fixed schedule might waste a limited rollout budget on already-resolved failures or move on from critical, unresolved weaknesses too quickly. The authors argue that for optimization to be truly effective, the curriculum must co-evolve with the agent.
Methods
ActiveSaddler formulates scenario selection as a non-stationary multi-armed bandit problem. Instead of treating individual tasks or broad categories as arms, it introduces failure-pattern arms.
The system operates in an iterative loop with three core components:
- Failure-Pattern Extractor: When an agent fails, an LLM abstracts the root cause into a reusable "failure pattern" (e.g., "Batch event replacement fails to partition ambiguous dates"). These patterns become the arms of the bandit.
- Arm Prioritizer: An LLM-based scorer estimates the "learning progress" potential for each arm. It evaluates four factors: Severity (is it still failing?), Fixability (can a harness patch solve it?), Breadth (will a fix generalize?), and Side-effect risk (will a fix break other things?).
- Exploration Controller: At each step, the system decides whether to PULL (revisit a known failure pattern to refine a fix) or DRAW (explore unseen scenarios to discover new failure modes).
Datasets
The authors evaluated ActiveSaddler on two challenging benchmarks:
- GAIA2: A benchmark for general-purpose assistants in a simulated smartphone environment, featuring complex, multi-step tasks across different "Universes" (personas).
- Terminal-Bench 2.0 (TB2): A suite of 89 realistic command-line tasks covering system administration, machine learning, and cybersecurity.
Key Insights and Ideas
- The "Pattern" Granularity is Key: Ablations showed that failure-pattern arms outperform both broad category-level arms (which conflate distinct issues) and fine-grained scenario-level arms (which fragment recurring issues). Patterns provide the right level of abstraction for an optimizer to "understand" what it is trying to fix.
- Dynamic Prioritization: The value of a training task is not static. Figure 11 in the paper shows how "pull probability" mass shifts dynamically across different failure patterns as the harness evolves, proving that a fixed order is inherently sub-optimal.
- Cost-Efficiency through Intelligence: While ActiveSaddler adds LLM overhead to manage the curriculum, it drastically reduces the number of expensive task-agent rollouts needed to reach a target accuracy. On GAIA2, it reached 58.5% accuracy at a total cost of $298, whereas the baseline required $1,360 to reach the same level.
Key Results
- Performance Gains: ActiveSaddler improved test Pass@1 by 4.4 percentage points on GAIA2 and 7.5 percentage points on Terminal-Bench 2.0 over the same optimizer using a fixed scenario order.
- Superior Repair Rate: The system is much better at converting observed failures into successes. As shown in Figure 3b, ActiveSaddler achieved a "fix rate" of 50% on GAIA2 and 75% on TB2, nearly doubling the effectiveness of the baseline AutoSaddler.
Limitations and Future Work
- Safety and Security: The authors explicitly note that ActiveSaddler focuses on task performance. In production, automated updates to control logic and tool interfaces could introduce security risks (like privilege escalation) that require independent safety filters not currently included in the framework.
- LLM Dependency: The system relies heavily on high-reasoning LLMs (like GPT-4o or o1) for failure diagnosis and arm scoring. Future work could explore using smaller, specialized models to reduce the curriculum-management overhead.
- Offline vs. Online: The current work is framed for offline optimization (pre-deployment). Extending this adaptive curriculum to online, "on-the-job" learning for agents is a promising next step.
Summary updated