arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2606.04781cs.AIcs.LG
收藏

AIP: 一种用于学习和治理智能体技能的图表示

AIP: A Graph Representation for Learning and Governing Agent Skills

Neo4j USA(Neo4j美国公司);Neo4j UK(Neo4j英国公司)

Zachary Blumenfeld, Jim Webber

AI总结:

提出Agent指令协议(AIP),将有向执行图作为技能表示,通过编译人类编写的技能提升任务表现,并支持技能的可诊断修复与治理。

摘要:

当前的智能体技能主要由自由形式的散文组成,要求智能体在每个会话中阅读、解释并重新推导如何行动。这带来了两个叠加的成本:在实现密集型任务上降低了可靠性,并且技能创建和改进困难,因为编辑散文是一个脆弱的过程,人类和智能体都难以处理,特别是对于模型训练中代表性不足的领域特定程序性知识。智能体指令协议(AIP)通过将技能建模为有向执行图来解决这两个问题:离散步骤作为节点,由确定性脚本或自然语言描述支持,通过显式类型的输入/输出边连接,并由模式验证的YAML规范管理。一个编译器元技能将现有的人类编写的技能转换为这种形式。好处是双重的。首先,将人类编写的技能编译为AIP后,Claude Sonnet在SkillsBench的27个真实智能体任务上的平均任务奖励从0.60提高到0.71,通过率从53%提高到67%——这是统计上显著的提升(Wilcoxon符号秩检验p=0.011),在12个任务中获胜,2个失败,13个平局——通常耗时更少。该图为智能体提供了经过验证、可运行的单元,而不是要求它从自然语言中重新推导代码、命令和工具调用。其次,在创建和改进方面,由于每个技能都经过模式验证、功能可测试且可逐节点寻址,因此可以精确诊断和修复故障。两个作者编写的技能故障被追溯到脚本级别。在调整AIP规范并重新编译后,两者均恢复且无回归(一个任务从0/5变为5/5),将技能改进转变为可测量的调优循环,而不是散文重写。相同的图结构支持语料库级别的治理和技能内省,并为基于技能的强化学习提供了自然的动作空间。

英文摘要:

Agent Skills today consist largely of free-form prose requiring the agent to read, interpret, and re-derive how to act in every session. This imposes two compounding costs: reduced reliability on implementation-heavy tasks, and difficulty in skill creation and improvement, since editing prose is a fragile process that both humans and agents struggle with, particularly for domain-specific procedural knowledge underrepresented in model training. The Agent Instruction Protocol (AIP) addresses both by modeling a skill as a directed execution graph: discrete steps as nodes backed by deterministic scripts or natural-language descriptions, connected by explicit typed input/output edges, and governed by a schema-validated YAML specification. A compiler meta-skill translates existing human-written skills into this form. The benefits are twofold. First, compiling human-written skills to AIP raised Claude Sonnet's mean task reward from 0.60 to 0.71 and pass rate from 53% to 67% across 27 real agent tasks from SkillsBench - a statistically significant gain (Wilcoxon signed-rank p = 0.011), winning 12 tasks to 2 with 13 ties - often in less wall-clock time. The graph delivers vetted, runnable units to the agent rather than asking it to re-derive code, commands, and tool calls from natural language. Second, on creation and improvement, because each skill is schema-validated, functionally testable, and addressable node-by-node, failures can be diagnosed and repaired precisely. Two authored-skill failures were traced to the script level. After adjusting the AIP spec and recompiling, both recovered with zero regressions (one task going from 0/5 to 5/5), turning skill improvement into a measurable tuning loop rather than a prose rewrite. That same graph structure supports corpus-level governance and skill introspection, and provides a natural action space for reinforcement learning over skills.

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

↑