TL;DR
SkillAdam brings the core principles of the popular Adam optimizer—momentum and adaptive learning rates—into the discrete, non-differentiable world of LLM agent prompt optimization. By tracking historical failure modes (first moment) and dynamically scaling an text-edit budget based on performance volatility (second moment), it achieves state-of-the-art agent performance while slashing optimization costs by over 67%.
What Problem Does This Paper Address?
Large Language Model (LLM) agents excel at general tasks but frequently stumble in specialized domains that require strict adherence to complex, long-tail rules (e.g., navigating specific airline booking policies or visa regulations). To fix this, developers use "Agent Skills"—modular packages of natural language instructions and guidelines that steer the agent's behavior.
While manually writing these skills is tedious, automating their creation via "skill self-evolution" loops (where an LLM iteratively rewrites instructions based on task feedback) has historically been highly unstable. The authors identify two primary flaws in current heuristic approaches:
- Directional Instability: Because updates are driven by small batches of local feedback, a revision that fixes one problem often accidentally deletes or overrides a rule that fixed a previous problem.
- Lack of Update Adaptivity: Current methods lack a principled way to decide how much of a skill document to rewrite at any given step, leading to erratic performance swings.
Methods
Instead of treating skill refinement as a series of ad-hoc prompt rewrites, SkillAdam introduces a framework functionally analogous to the Adam optimizer, mapping continuous mathematical concepts directly into discrete language space.
The framework relies on two core mechanisms:
- Evolving Issue Tracker (Functional First Moment $m_t$): Instead of aggregating numerical gradients, SkillAdam maintains a persistent, structured memory of identified errors, their current status, and past solution attempts. This ensures that new skill patches build upon historical corrections rather than overwriting them.
- Volatility-Driven Edit Budget (Functional Second Moment $v_t$): SkillAdam calculates the variance (volatility) of case-level improvements across a mini-batch. If a skill modification yields highly inconsistent results (improving some cases but degrading others), the framework shrinks the "edit budget" for the next iteration to enforce cautious, localized tweaks. If the gains are stable and uniform, it expands the budget to allow broader, systemic updates.
The overall optimization loop follows a standard sequence: Rollout $\rightarrow$ Moment Estimation $\rightarrow$ Skill Patch Generation $\rightarrow$ Multi-metric Acceptance Gating.
Datasets
The authors evaluated SkillAdam across seven diverse benchmarks spanning ten distinct evaluation slices, categorized by task complexity:
- Short-Horizon Tasks (<10 tool calls per task):
- SearchQA (Open-domain QA)
- SpreadsheetBench (Spreadsheet manipulation)
- OfficeQA (Grounded reasoning over historical documents)
- DocVQA (Visual document QA)
- LiveMathematicianBench (Mathematical theorem proving)
- Long-Horizon Tasks ($\ge$10 tool calls per task):
- ALFWorld (Text-based embodied household tasks)
- DeepPlanning (Multi-step shopping and travel planning, evaluated across Shopping Levels 1–3 and Travel EN)
Key Insights and Ideas
- Functional vs. Numerical Optimization: The paper proves that the mathematical intuition behind gradient descent variants can be successfully translated into discrete language spaces. You don't need actual gradients if you can build language-based proxies for direction (issue tracking) and magnitude (edit budgets).
- The Danger of "Uncontrolled Revisions": Prompt engineering frameworks often fail because they give the LLM too much freedom to rewrite text from scratch. Restricting the edit scope based on historical performance volatility acts as an essential regularizer.
- Procedural Generalization: Skills optimized via SkillAdam exhibit strong cross-model transferability (e.g., transferring skills optimized on GPT-5.5 to GPT-5.4-mini). This suggests the framework encourages the formulation of robust, high-level task procedures rather than brittle, model-specific prompt engineering.
Key Results
SkillAdam consistently outperformed both human-authored baselines and SOTA prompt optimization algorithms (like SkillOpt, TextGrad, and GEPA):
- Performance Leaps: On the highly challenging long-horizon DeepPlanning benchmark, SkillAdam improved the average accuracy to 28.3%, compared to SkillOpt's 21.7% and NoSkill's 15.8%. Notably, on the DP-Travel slice where other methods nearly failed entirely, SkillAdam achieved 11.7% accuracy.
- Massive Cost Reductions: SkillAdam reduced total token consumption by 67.3% and API requests by 68.8% relative to SkillOpt. Measured by performance gain per million tokens, SkillAdam is roughly four times more efficient than prior SOTA.
- Superior Stability: Optimization curves show that SkillAdam finds a powerful skill revision in its very first iteration and maintains stable, upward trajectory dynamics without the erratic performance crashes typical of heuristic methods.
Limitations and Future Work
- Cumulative Ablation Constraints: The authors note that their ablation study was cumulative, meaning they did not fully isolate the independent effect of the optimization memory when the edit budget was active, leaving room for deeper exploration of how these two components interact.
- Dependence on LLM Evaluators: The framework relies heavily on the quality of the underlying LLM judge and patch generator. Biases or systematic blind spots in the base model's reasoning could propagate into the evolved skills.
- Future Directions: A natural next step would be extending this functional optimization paradigm to multi-agent collaboration setups or multi-file skill packages.
Summary updated