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

语言模型代理的自编程执行

Self-Programmed Execution for Language-Model Agents

Harvard Medical School(哈佛医学院)

Luke J. O'Connor

AI总结:

本文提出自编程执行(SPE)架构,使语言模型自身成为调度器,无需固定策略。通过agentic machines概念,实现无固定轮次策略的状态转移,并引入Spell语言处理程序自我编辑与重评估,实验表明前沿模型可完成复杂代理任务。

摘要:

现有语言模型代理的核心是固定调度程序负责轮次间状态转移。本文引入自编程执行(SPE),一种代理架构中模型完成本身即为调度程序,Harness评估此程序但不强加自身调度策略。我通过agentic machines概念形式化这一思想:SPE状态是从其中模型完成可加载嵌入式机器任一状态,意味着无固定轮次调度策略。在实践中实现SPE非 trivial,因为相同数据既是模型上下文又是可执行程序。因此我引入基于Lisp的Spell语言,其中程序可编辑并重评自身,效果表达如模型调用被结构化,使得重评编辑后的程序不重放其副作用。使用未训练于SPE或Spell的现有模型进行实验,显示前沿模型可在该模式下运作并完成挑战性代理任务。这些结果展示了LM如何在无固定调度策略下充当代理,并提出问题:训练于自编程执行的模型可能学会何种自调度策略。代码见https://github.com/lukejoconnor/spell。

英文摘要:

At the heart of a language model agent is an orchestrator program which is responsible for the state transition between consecutive turns. In existing systems, this program is implemented in the harness. This paper introduces self-programmed execution (SPE), in which the model completion is itself the orchestrator program, and the harness evaluates this program but does not impose any fixed orchestration policy. Formally, an SPE state of an agentic machine is one from which a model completion can load any successor state up to an embedding, and an instance of an SPE state is one which executes the model completion as a program. In practice, the program requires a language with unusual features, as its source code doubles as the content of the model's context window. I therefore introduce Spell, a Lisp dialect in which programs can edit and re-evaluate themselves, and effectful expressions like model invocations are structured such that re-evaluating an edited program does not replay its side effects. Experiments with existing models, not trained for SPE or Spell, show that frontier models can learn Spell in-context and accomplish challenging agentic tasks. These results demonstrate how an LM can act as an agent without any fixed orchestration policy, and they raise the question of what self-orchestration strategies might be learned by a model trained for self-programmed execution. Code is available at https://github.com/lukejoconnor/spell.

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

↑