SkillGrad: 像梯度下降一样优化智能体技能
SkillGrad: Optimizing Agent Skills Like Gradient Descent
AI总结:
提出SkillGrad框架,将技能包视为结构化参数,通过轨迹级损失、文本梯度诊断和动量记忆覆盖进行类梯度下降优化,在表格问答任务上平均提升6.7个百分点。
摘要:
智能体技能通过将可复用的程序化知识存储在结构化文件中,提供了一种轻量级的方式将LLM智能体适配到专业领域。然而,无论是从第三方下载还是自行生成,这些技能往往不可靠、不完整或过时。现有的技能演化方法通常通过启发式反思来解决这些缺陷,缺乏明确的优化公式。在本文中,我们提出了SkillGrad,一种受梯度下降启发的智能体技能优化框架。SkillGrad将技能包视为结构化参数,以梯度下降的方式进行优化:任务执行提供轨迹级损失证据,自动诊断随后提供指示修正方向的文本梯度。为了稳定跨迭代的优化,动量智能体将重复出现的诊断模式累积到持久记忆覆盖层中。最后,基于LLM的修补器通过对技能包进行层感知编辑来执行参数更新。在SpreadsheetBench Verified和WikiTableQuestions上的评估表明,SkillGrad在两个骨干LLM上始终优于基于训练的技能演化基线,平均比最强的基于训练的基线高出6.7个百分点。消融实验进一步表明,动量和对比诊断都对最终技能质量有贡献。
英文摘要:
Agent skills provide a lightweight way to adapt LLM agents to specialized domains by storing reusable procedural knowledge in structured files. However, whether downloaded from third parties or self-generated, these skills are often unreliable, incomplete, or outdated. Existing skill-evolution methods often address these deficiencies through heuristic reflections without an explicit optimization formulation. In this paper, we propose SkillGrad, a gradient-descent-inspired framework for optimizing agent skills. SkillGrad treats the skill package as a structured parameter to optimize in a gradient descent fashion: task executions provide trajectory-level loss evidence, automatic diagnoses then provide text-based gradients that indicate the correction directions. To stabilize optimization across iterations, a momentum agent accumulates recurring diagnostic patterns into a persistent memory overlay. Finally, an LLM-based patcher executes the parameter update by applying layer-aware edits to the skill package. Evaluated on SpreadsheetBench Verified and WikiTableQuestions, SkillGrad consistently outperforms training-based skill evolution baselines across two backbone LLMs, improving over the strongest training-based baseline by $6.7$ percentage points on average. Ablations further show that momentum and contrastive diagnosis both contribute to the final skill quality.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。