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

SPEM:面向LLM智能体高效技能使用的结构感知过程记忆

SPEM: Structure-Aware Procedural Memory for Efficient Skill Use in LLM Agents

School of Intelligence Science and Technology, Nanjing University(南京大学智能科学与技术学院)

Ran Zhou, Zehui Kong, Fanyu Lin, Jiaheng Liu, Zhen Zhang, Yuxiang Ren

AI总结:

SPEM是面向LLM智能体的结构感知过程记忆框架,通过原子技能记忆与技能DAG记忆实现高效技能复用,在ALFWorld和SkillsBench上取得最优的有效性-效率权衡,降低了相关开销。

摘要:

基于大语言模型(LLM)的智能体越来越依赖可复用技能,但技能库的扩展使得高效且准确的技能使用变得困难。完整加载技能会产生高昂的token开销和运行时开销;相比之下,平面语义检索将技能视为独立的文本条目,忽略了依赖关系、执行顺序、状态转换和数据流约束。我们提出SPEM,这是一种用于LLM智能体高效技能使用的轻量级结构感知过程记忆框架。SPEM为单个技能维护原子技能记忆,为源自成功执行的可复用组合维护技能DAG记忆。对于新任务,SPEM在可用时复用高置信度的技能DAG模板;否则,它会检索原子技能并调用技能GNN进行状态和结构感知的技能选择。成功的执行会被写回为新的技能DAG,使过程记忆能够随时间积累。在ALFWorld和SkillsBench上的实验表明,SPEM实现了最佳的有效性-效率权衡,达到87.1%的ALFWorld成功率和38.38%的SkillsBench奖励,同时相比强基线降低了token和运行时成本。

英文摘要:

LLM-based agents increasingly rely on reusable skills. However, scaling skill libraries makes efficient and accurate skill use difficult. Full skill loading incurs high token and runtime overhead. In contrast, flat semantic retrieval treats skills as independent text entries, ignoring dependencies, execution order, state transitions, and data flow constraints. We propose SPEM, a lightweight structure-aware procedural memory framework for efficient skill use in LLM-based agents. SPEM maintains Atomic Skill Memory for individual skills and Skill-DAG Memory for reusable compositions derived from successful executions. For a new task, SPEM reuses high-confidence Skill-DAG templates when available. Otherwise, it retrieves atomic skills and invokes Skill-GNN for state- and structure-aware skill selection. Successful executions are written back as new Skill-DAGs, allowing procedural memory to accumulate over time. Experiments on ALFWorld and SkillsBench show that SPEM achieves the best overall effectiveness--efficiency trade-off, reaching 87.1% ALFWorld success and 38.38% SkillsBench reward while reducing token and runtime costs against strong baselines.

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

↑