arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.32025cs.CL
收藏

面向LLM智能体的生成式技能组合

Generative Skill Composition for LLM Agents

University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);Arizona State University(亚利桑那州立大学);Honda Research Institute USA(本田美国研究院)

Xinyu Zhao, Zhen Tan, Vaishnav Tadiparthi, Nakul Agarwal, Kwonjoon Lee, Ehsan Moradi Pari, Hossein Nourkhiz Mahjoub, Tianlong Chen

AI总结:

提出SkillComposer方法,将技能组合形式化为任务条件技能序列预测,通过约束自回归解码器联合决定技能子集、数量和顺序,在真实技能库上训练并验证其提升下游任务成功率。

摘要:

最近的LLM智能体受益于解决复杂任务的技能。技能封装了用于执行专业化任务的程序性知识和指令的模块化包,例如设置沙盒环境、运行测试套件或跨多个文件重构函数。随着技能库的增长并在任务和领域间变得可重用,选择合适的技能组合已成为一个核心瓶颈。现有方法分为两类:一类将智能体的推理暴露给整个技能集合;另一类通过嵌入或基于LLM的重排序器进行技能检索。两者都提供了有用的见解;然而,它们忽略了技能组合的结构性本质,即关于哪些技能、多少技能以及以何种顺序——这三个不可解耦的维度的联合决策。我们将其形式化为结构化技能组合:给定一个任务和一个技能库,预测一个可执行的技能计划,该计划联合指定激活的子集、数量和执行顺序。我们提出SkillComposer,它将结构化技能组合实例化为任务条件技能序列预测。SkillComposer在技能标识符上使用约束自回归解码器,因此子集、数量和顺序从单次解码过程中联合产生,并且连续技能之间的依赖关系被自然捕获。我们从真实、人工策划的技能库构建任务-组合对的训练集。然后,我们沿着两个轴评估SkillComposer:在保留测试集上的组合质量,以及在SkillsBench上跨两个生产级编码智能体的下游任务成功率。在GPT-5.2-Codex和Gemini-3-Pro-Preview上,SkillComposer相比无技能基线将通过率提高了+23.1和+18.2个百分点,超越了top-3检索,并以更低的提示词成本匹配了黄金技能检索的上限。

英文摘要:

Recent LLM agents benefit from skills for solving complex tasks. Skills encapsulate modular packages of procedural knowledge and instructions for performing specialized tasks, such as setting up a sandboxed environment, running a test suite, or refactoring a function across multiple files. As skill libraries grow and become reusable across tasks and domains, selecting an appropriate skill composition has emerged as a central bottleneck. Existing approaches fall into two categories. One exposes the agent's reasoning to the entire skill collection; the other performs skill retrieval via embeddings or LLM-based rerankers. Both provide useful insights; however, they miss the structural nature of skill composition, which is a joint decision over which skills, how many, and in what order -- three dimensions that cannot be decoupled. We formalize this as structured skill composition: given a task and a skill library, predict an executable skill plan that jointly specifies the activated subset, count, and execution order. We propose SkillComposer, which instantiates structured skill composition as task-conditioned skill sequence prediction. SkillComposer uses a constrained autoregressive decoder over skill identifiers, so subset, count, and order emerge jointly from a single decoding pass, and dependencies between successive skills are captured naturally. We build a training set of task-composition pairs from a real, human-curated skill library. We then evaluate SkillComposer along two axes: composition quality on a held-out test set, and downstream task success on SkillsBench across two production-grade coding agents. On GPT-5.2-Codex, Gemini-3-Pro-Preview, SkillComposer raises the pass rate by +23.1, +18.2pp over the no-skill baseline, surpassing top-3 retrieval and matching the gold-skill retrieval upper bound at lower prompt-token cost.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑