将技能编译为边界引导的运行时接口,大幅减少大模型代理的冗余计算。
SkillSmith: Compiling Agent Skills into Boundary-Guided Runtime Interfaces
- 离线编译技能包,提取细粒度操作边界,仅运行必要组件。
- 在SkillsBench上减少57.44%的令牌使用、50.57%的求解时间。
- 强模型编译成果可被弱模型复用,提升任务准确率。
近期,技能已被广泛应用于各类基于大语言模型(LLM)的智能体系统中。现有框架通常在匹配到运行时任务后,将技能作为上下文指导注入推理循环,以实现特定任务求解能力。我们发现这种执行范式引入了两大冗余:无关上下文注入和重复的技能专属推理与规划。为此,我们提出SkillSmith,一种以边界优先的编译-运行时框架,将技能包离线编译为最小可执行接口。通过从技能中提取细粒度操作边界,SkillSmith使智能体在运行时动态访问并仅执行相关组件,从而最小化不必要的上下文注入和冗余推理开销。在SkillsBench基准测试中,相比直接使用原始技能,SkillSmith将求解阶段令牌使用量降低57.44%,思维迭代次数减少42.99%,求解时间缩短50.57%(提速2.02倍),令牌比例成本下降57.44%。此外,由更强模型生成的编译产物可被更小或更高效的运行时模型复用,在原始技能解析失败时仍能提升任务准确率。代码与数据已公开于https://github.com/AetherHeart-AI/Aeloon。
原文摘要 · Abstract (English)
Recently, skills have been widely adopted in large language model (LLM)-based agent systems across various domains. In existing frameworks, skills are typically injected into the agent reasoning loop as contextual guidance once matched to a runtime task, enabling specialized task-solving capabilities. We find that this execution paradigm introduces two major sources of redundancy: irrelevant context injection and repeated skill-specific reasoning and planning. To this end, we propose SkillSmith, a boundary-first compiler-runtime framework that compiles skill packages offline into minimal executable interfaces. By extracting fine-grained operational boundaries from skills, SkillSmith enables agents to dynamically access and execute only the relevant components at runtime, thereby minimizing unnecessary context injection and redundant reasoning overhead. In the evaluation on SkillsBench benchmark, SkillSmith reduces solve-stage token usage by 57.44%, thinking iterations by 42.99%, solve time by 50.57% (2.02x faster), and token-proportional monetary cost by 57.44% compared with using raw-skills. Moreover, compiled artifacts produced by a stronger model can be reused by a smaller or more efficient runtime model, improving task accuracy in cases where raw skill interpretation fails. The source code and data are available at https://github.com/AetherHeart-AI/Aeloon.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。