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

从历史到状态:为LLM代理的常域技能学习

From History to State: Constant-Context Skill Learning for LLM Agents

School of Computing and Augmented Intelligence, Arizona State University(计算与增强智能学院,亚利桑那州立大学)

Haoyang Xie, Xinyuan Wang, Yancheng Wang, Puda Zhao, Feng Ju

AI总结:

本文提出常域技能学习框架,通过轻量任务模块学习可重用流程,利用确定性跟踪器生成紧凑状态块,结合SFT和在线RL提升性能,减少提示词用量。

摘要:

大型语言模型(LLM)代理越来越多地用于操作浏览器、文件、代码和工具,使个人助手成为自然的部署目标。然而,个人代理面临隐私成本与能力之间的紧张关系:云模型能执行多步骤工作流但会暴露敏感中间上下文给外部API,而本地模型保持隐私但可靠性较低。两种设置都需反复支付长技能提示和增长历史的代价。我们提出常域技能学习,一种用于重复代理工作流的上下文到权重框架:可重用的流程在轻量任务家族模块中学习,而推理仅依赖当前观察和紧凑状态块。确定性跟踪器从任务进度渲染此状态块,并提供对齐的子目标奖励,因此每个模块可通过步骤级SFT训练并通过在线RL优化。在ALFWorld、WebShop和SciWorld上,我们的代理在Qwen3-4B、Qwen3-8B和Llama-3.1-8B上均表现出色。使用Qwen3-8B时,SFT+RL在ALFWorld上达到89.6%的未见成功,在WebShop上达到76.8%的成功率,在SciWorld上达到66.4%的未见成功。它们在匹配或超过强大发布的代理训练结果的同时,将每轮提示词数量减少2-7倍,相对于受控ReAct提示基线,表明过程上下文可以被移动到权重中。

英文摘要:

Large language model (LLM) agents are increasingly used to operate browsers, files, code and tools, making personal assistants a natural deployment target. Yet personal agents face a privacy-cost-capability tension: cloud models execute multi-step workflows well but expose sensitive intermediate context to external APIs, while local models preserve privacy but remain less reliable. Both settings also pay repeatedly for long skill prompts and growing histories. We propose constant-context skill learning, a context-to-weights framework for recurring agent workflows: reusable procedures are learned in lightweight task-family modules, while inference conditions only on the current observation and a compact state block. A deterministic tracker renders this state block from task progress and supplies aligned subgoal rewards, so each module can be trained with step-level SFT and refined through online RL. Across ALFWorld, WebShop, and SciWorld, our agents achieve strong performance across Qwen3-4B, Qwen3-8B, Qwen3-14B, and Llama-3.1-8B. With Qwen3-8B, SFT+RL reaches 89.6% unseen success on ALFWorld, 76.8% success on WebShop, and 66.4% unseen success on SciWorld. They match or exceed strong published agent-training results while reducing prompt tokens per turn by 2-7x relative to controlled ReAct prompting baselines, showing that procedural context can be moved from prompts into weights. Code is available at https://github.com/haoyangxie/constant-context-skill-learning.

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

↑