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

Skill-to-LoRA:从使用技能到学习行为以实现令牌高效的LLM智能体

Skill-to-LoRA: From Using Skills to Learning Behaviors for Token-Efficient LLM Agents

The Chinese University of Hong Kong(香港中文大学)

Tianyi Zhang, Zhonghao Qi

AI总结:

提出Skill-to-LoRA方法,将技能文本转换为LoRA适配器,替代运行时注入技能文档,在SWE-Skills-Bench上提升通过率并降低令牌成本。

摘要:

智能体技能通常以SKILL.md文件形式分发:描述工作流、工具、资源和领域约定的人类可读程序文档。虽然便于检查和重用,但这种设计需要将相同的可重用程序重复注入运行时上下文。我们提出Skill-to-LoRA(S2L),一种以行为为中心的技能表示,用技能特定的LoRA适配器替代运行时技能文本。S2L不是压缩技能文档本身,而是建模技能文本引起的行为变化:离线时,使用完整的SKILL.md合成技能引导的演示;在线时,省略完整文档,动态加载对应的LoRA适配器以激活学习到的技能行为。我们使用Qwen3.6-27B在SWE-Skills-Bench的21个技能子集上评估S2L。与无技能和完整技能文本基线相比,S2L的通过率分别提高2.9和5.2个百分点,同时相对于完整技能文本提示,每步令牌成本降低6.6%。S2L在18/21个技能上匹配或优于完整技能文本,在15/21个技能上匹配或优于无技能基线。控制实验进一步表明,性能提升依赖于技能特定的适配器对齐:错误LoRA和共享LoRA均降低性能。这些结果表明,许多程序性智能体技能可以从运行时指令转换为可训练、可动态加载的行为模块。代码将在接收后发布。

英文摘要:

Agent skills are commonly distributed as SKILL.md files: human-readable procedural documents that describe workflows, tools, resources, and domain conventions. While convenient for inspection and reuse, this design requires the same reusable procedure to be repeatedly injected into the runtime context. We propose Skill-to-LoRA(S2L), a behavior-centric skill representation that replaces runtime skill text with skill-specific LoRA adapters. Rather than compressing the skill document itself, S2L models the behavioral change induced by the skill text: offline, the complete SKILL.md is used to synthesize skill-guided demonstrations; online, the full document is omitted and the corresponding LoRA adapter is dynamically loaded to activate the learned skill behavior. We evaluate S2L with Qwen3.6-27B on a 21-skill subset of SWE-Skills-Bench. Compared with the no-skill and Full Skill Text baselines, S2L improves pass rate by 2.9 and 5.2 percentage points, respectively, while reducing per-step token cost by 6.6% relative to Full Skill Text prompting. S2L matches or improves Full Skill Text on 18/21 skills and the no-skill baseline on 15/21 skills. Control experiments further show that the gains depend on skill-specific adapter alignment: Wrong-LoRA and Shared-LoRA both reduce performance. These results suggest that many procedural agent skills can be converted from runtime instructions into trainable, dynamically loadable behavioral modules. Code will be released upon acceptance.

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

↑