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

通过技能程序 harnessing LLM agents

Harnessing LLM Agents with Skill Programs

New York University(纽约大学);Salesforce AI Research(Salesforce人工智能研究)

Hongjun Liu, Yifei Ming, Shafiq Joty, Chen Zhao

AI总结:

本文提出 HASP 框架,通过将技能转化为可执行程序函数(PFs)来提升 LLM agent 在复杂任务中的表现,其核心方法是通过 PFs 在失败状态时介入并修正行动,主要贡献是通过模块化设计实现推理、训练和自改进的多场景应用。

摘要:

为复杂和长周期任务提供可重用技能已成为一种流行且成功的做法。然而,这些经验通常编码为文本指导,缺乏明确的机制来决定何时以及如何介入 agent 循环。为弥合这一差距,我们引入 HASP(通过技能程序 harnessing LLM agents),一种新的框架,将技能升级为可执行程序函数(PFs)。与被动建议不同,PFs 作为可执行的护栏,在易出错的状态下激活,并修改下一步行动或注入修正上下文。HASP 高度模块化:可以在推理时直接介入 agent 循环,训练后提供结构化监督,或通过进化验证的教师评审 PFs 实现自改进。实证上,HASP 在网页搜索、数学推理和编码任务中相比训练自由和训练方法取得了显著提升。例如,在网页搜索推理中,推理时的 PFs 使平均表现比(多循环)ReAct Agent 提高 25%,而训练后和受控进化则比 Search-R1 提高 30.4%。为了深入理解 HASP,我们的机制分析揭示了 PFs 如何触发和介入,技能如何内化,以及稳定技能库进化的必要性。

英文摘要:

Equipping LLM agents with reusable skills derived from past experience has become a popular and successful approach for tackling complex and long-horizon tasks. However, such lessons are often encoded as textual guidance that remains largely advisory, lacking explicit mechanisms for when and how to intervene in the agent loop. To bridge the gap, we introduce HASP(Harnessing LLM Agents with Skill Programs), a new framework that upgrades skills into executable Program Functions (PFs). Rather than offering passive advice, PFs act as executable guardrails that activate on failure-prone states and modify the next action or inject corrective context. HASP is highly modular: it can be applied at inference time for direct agent-loop intervention, during post-training to provide structured supervision, or for self-improvement by evolving validated, teacher-reviewed PFs. Empirically, HASP drives substantial gains compared to both training-free and training-based methods on web-search, math reasoning, and coding tasks. For example, on web-search reasoning, inference-time PFs alone improve the average performance by 25% compared to (multi-loop) ReAct Agent, while post-training and controlled evolution achieve a 30.4% gain over Search-R1. To provide deeper insights into HASP, our mechanism analysis reveals how PFs trigger and intervene, how skills are internalized, and the requirement for stable skill library evolution.

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

↑