arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.01569cs.AIcs.SE
收藏

CaveAgent:将LLM转变为具有状态的运行时操作符

CaveAgent: Transforming LLMs into Stateful Runtime Operators

Hong Kong Generative AI Research and Development Center (HKGAI)(香港生成式AI研究与开发中心(HKGAI))
Maohao Ran, Zhenglin Wan, Cooper Lin, Yanting Zhang, Hongyu Xin, Hongwei Fan, Yibo Xu, Beier Luo, Yaxin Zhou, Wangbo Zhao, Lijie Yang, Lang Feng, Fuchao Yang, J… 展开作者

Maohao Ran, Zhenglin Wan, Cooper Lin, Yanting Zhang, Hongyu Xin, Hongwei Fan, Yibo Xu, Beier Luo, Yaxin Zhou, Wangbo Zhao, Lijie Yang, Lang Feng, Fuchao Yang, Jingxuan Wu, Yiqiao Huang, Chendong Ma, Yusen Huang, Dailing Jiang, Jianbo Deng, Sirui Han, Yang You, Bo An, Yike Guo, Jun Song

AI总结:

CaveAgent通过引入双流架构,将LLM从文本生成器转变为运行时操作符,解决了长周期任务中上下文漂移问题,提升了多轮交互的稳定性和数据处理能力。

摘要:

LLM-based agents在复杂任务执行方面能力不断增强,但现有代理系统仍受限于以文本为中心的范式,难以处理长周期任务,因为多轮依赖脆弱且上下文漂移严重。我们提出了CaveAgent框架,将工具使用从『LLM-as-Text-Generator』转变为『LLM-as-Runtime-Operator』。CaveAgent引入双流架构,颠覆传统范式:而非将LLM的文本上下文作为主要工作区,工具作为辅助,CaveAgent将持久的Python运行时作为状态的中心位置,轻量级语义流作为其调度器。除了利用代码生成解决相互依赖的子任务(例如循环、条件语句)在单步中,CaveAgent引入『具有状态的运行时管理』:它注入、操控和检索复杂的Python对象(例如DataFrames、数据库连接),这些对象在多轮中持续存在,不同于现有基于代码的方法仍局限于文本。CaveAgent进一步提供一个集成了运行时的技能管理系统,扩展了Agent Skills开放标准,通过可执行技能注入实现生态系统互操作性。这种持久机制作为高保真的外部内存,减少多轮交互中的上下文漂移,并在不丢失信息的情况下保留处理过的数据,供下游应用使用。评估显示在挑战性基准测试中表现一致,使CaveAgent能够处理导致JSON-based和code-based代理上下文溢出的数据规模。可访问的运行时状态进一步提供可编程验证的反馈,使自动化评估和奖励信号生成无需人工标注,并建立未来研究在可验证奖励强化学习(RLVR)中的结构基础。

英文摘要:

LLM-based agents are increasingly capable of complex task execution, yet current agentic systems remain constrained by text-centric paradigms that struggle with long-horizon tasks due to fragile multi-turn dependencies and context drift. We present CaveAgent, a framework that shifts tool use from ``LLM-as-Text-Generator'' to ``LLM-as-Runtime-Operator.'' CaveAgent introduces a dual-stream architecture that inverts the conventional paradigm: rather than treating the LLM's text context as the primary workspace with tools as auxiliary, CaveAgent elevates the persistent Python runtime as the central locus of state, with a lightweight semantic stream serving as its orchestrator. Beyond leveraging code generation to resolve interdependent sub-tasks (e.g., loops, conditionals) in a single step, CaveAgent introduces \textit{Stateful Runtime Management}: it injects, manipulates, and retrieves complex Python objects (e.g., DataFrames, database connections) that persist across turns, unlike existing code-based approaches that remain text-bound. CaveAgent further provides a runtime-integrated skill management system that extends the Agent Skills open standard, enabling ecosystem interoperability through executable skill injections. This persistence mechanism serves as a high-fidelity external memory that reduces context drift in multi-turn interactions and preserves processed data for downstream applications without information loss. Evaluations show consistent improvement across challenging benchmarks, enabling CaveAgent to handle data scales that cause context overflow in both JSON-based and code-based agents. The accessible runtime state further provides programmatically verifiable feedback, enabling automated evaluation and reward signal generation without human annotation and establishing a structural foundation for future research in Reinforcement Learning with Verifiable Rewards (RLVR).

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

↑