arXiv:2605.06898cs.AI2026-05被引 1

让大模型自己写程序来指挥自己,摆脱固定流程限制。

Self-Programmed Execution for Language-Model Agents

论文配图:Self-Programmed Execution for Language-Model Agents
图 1 · 摘自论文原文
  • 大模型生成的代码直接作为调度程序,无需外部控制
  • 无需训练即可在现有模型上实现复杂任务,如规划与执行
  • 适合研究自组织智能体、自主决策系统的学者

现有语言模型智能体依赖固定的编排程序来控制各轮状态转换。本文提出自编程执行(SPE),即模型生成的内容本身充当编排程序,评估器仅验证其有效性,不施加固定策略。通过代理机形式化定义,SPE状态允许模型载入嵌套机器的任意状态,从而摆脱固定轮次调度。实现上面临挑战:数据既是上下文也是可执行程序。为此提出Spell——一种基于Lisp的语言,支持程序自我修改与重评,且模型调用等副作用不会重复触发。实验表明,未经SPE或Spell训练的前沿模型也能在此机制下完成复杂代理任务。结果证明大模型可在无固定编排的情况下自主行动,也引发对模型能否学习自编排策略的思考。代码已开源。

原文摘要 · Abstract (English)

At the heart of existing language model agents is a fixed orchestrator program responsible for the state transition between consecutive turns. This paper introduces self-programmed execution (SPE), an agent architecture in which the model completion is itself the orchestrator program, and the harness evaluates this program but does not impose its own orchestration policy. I formalize this idea using agentic machines: an SPE state is one from which a model completion can load any state of an embedded copy of the machine, meaning that it is subject to no fixed turn-to-turn orchestration policy. Realizing SPE in practice is nontrivial because the same data is both model context and executable program. I therefore introduce Spell, a Lisp-based language 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 operate in this regime 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 .

智能体自编程大模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。