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

Anything2Skill: 将外部知识编译为智能体的可复用技能

Anything2Skill: Compiling External Knowledge into Reusable Skills for Agents

East China Normal University(华东师范大学);Shanghai AI Laboratory(上海人工智能实验室)

Qianjun Pan, Yutao Yang, Junsong Li, Jie Zhou, Kai Chen, Xin Li, Qin Chen, Liang He

AI总结:

提出Anything2Skill框架,将异构外部知识编译为可复用、可检索、可执行的技能,结合RAG显著提升智能体任务成功率。

摘要:

检索增强生成(RAG)使智能体在推理时能够访问外部知识,但主要检索的是碎片化的陈述性证据,导致智能体需要反复从段落、手册、示例、日志或轨迹中推断任务流程。这引发了一个根本性问题:能否从外部知识库中提取技能并安装到智能体中,使其快速逼近领域专业知识?在本文中,我们提出Anything2Skill,一个基于分类的框架,将异构外部知识编译为智能体可复用、可检索、可执行的技能。给定一个知识记录语料库,Anything2Skill首先将每条记录分解为证据窗口,并在技能树先验下执行规划与扩展的技能提取。然后将提取的候选技能转换为结构化的技能契约,指定调用条件、禁忌、动作步骤、工作流程步骤、约束、输出规范、支持证据和置信度分数。为了构建可部署的程序性记忆,Anything2Skill通过分类感知编译、注册表级协调、生命周期跟踪、版本化更新和可见的技能树投影,将提取的技能管理在持久化的SkillBank中。在推理时,智能体从原始知识库中检索任务特定段落,并从SkillBank中检索相关程序性技能,使RAG提供陈述性证据,而编译的技能提供可复用的程序性指导。在qsv和GitHub-CLI上的实验表明,Anything2Skill结合RAG分别实现了98.85%和94.10%的成功率,显著优于仅使用RAG的智能体。这些结果表明,将潜在的程序性知识编译为显式技能是从知识访问扩展到能力复用的有效途径。

英文摘要:

Retrieval-augmented generation (RAG) enables agents to access external knowledge at inference time, but it primarily retrieves fragmented declarative evidence, leaving agents to repeatedly infer task procedures from passages, manuals, examples, logs, or trajectories. This raises a fundamental question: can skills extracted from external knowledge bases be installed into an agent, enabling it to rapidly approximate domain expertise? In this paper, we propose Anything2Skill, a taxonomy-guided framework that compiles heterogeneous external knowledge into reusable, retrievable, and executable skills for agents. Given a corpus of knowledge records, \textsc{Anything2Skill} first decomposes each record into evidence windows and performs plan-and-expand skill extraction under a skill-tree prior. The extracted candidates are then converted into structured skill contracts that specify invocation conditions, contraindications, action moves, workflow steps, constraints, output specifications, supporting evidence, and confidence scores. To construct a deployable procedural memory, Anything2Skill manages the extracted skills in a persistent SkillBank through taxonomy-aware compilation, registry-level reconciliation, lifecycle tracking, versioned updates, and visible skill-tree projection. At inference time, agents retrieve both task-specific passages from the original knowledge base and relevant procedural skills from the SkillBank, allowing RAG to provide declarative evidence while compiled skills provide reusable procedural guidance. Experiments on qsv and GitHub-CLI show that Anything2Skill combined with RAG achieves 98.85\% and 94.10\% success rates, respectively, substantially outperforming RAG-only agents. These results suggest that compiling latent procedural knowledge into explicit skills is an effective way to extend retrieval-augmented agents from knowledge access toward capability reuse.

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

↑