我们查询,故我们计算:论超越机器的预言机计算及其在智能体中的应用

·

研究论文 · 2026/10/08

智能体系统使用大语言模型(LLM)执行具体任务。此前的工作常从操作系统中零散借用调度、缓存或隔离等抽象,因此所构建的机制缺乏共同基础,对工作流(Workflows)和智能体(Agents)这两种智能体系统的共同视角也有限。我们构建了一个能同时提供两者的抽象机器。我们将LLM视为Oracle,并扩展一个双栈下推自动机,增加一条指令:将整个栈作为查询交给Oracle,并将答案追加到同一栈上。该机器因此执行两种计算:Oracle的计算,以及我们称为Priestess的图灵完备计算。程序只追加的栈会自回归增长,如同智能体的上下文。存储中的对称性破缺S和转移中的对称性破缺T,使Priestess程序成为Oracle所运行程序的操作系统,并产生Agent和Workflow作为任务程序的两种放置方式。对于内部自回归的Oracle,在特定条件下,两种计算在每次答案结束时同步,并通过这种同步对缓存建模并分析调度。没有任何对每个Oracle都成立的保证能固定两种计算之间传递的内容,但这样的保证确实固定了边界本身。构造V使该机器适配冯·诺依曼计算机。为表明其可实现性,我们提出ArchNights,一种扩展的RISC-V ISA和一种按设计实现该机器的Linux风格操作系统。ArchNights-SE在gem5上作为计算机系统运行,当它运行LLM作为Oracle时便成为智能体系统,并将开源。智能体系统于是可以像计算机系统一样被设计。有了构建的基础和统一的视角,未来工作可以共享不变量和边界,各自附带其条件。

该工作为智能体系统提供了统一的抽象机器基础,将LLM计算与图灵完备计算结合,并给出可实现的硬件与操作系统设计,有望推动智能体系统像计算机系统一样被系统化设计。

Agentic systems use large language models (LLMs) to carry out concrete tasks. Prior work often borrows abstractions such as scheduling, caching or isolation piecemeal from operating systems, so the mechanisms it builds share little common ground, and the shared view of the two forms of agentic system, Workflows and Agents, is limited. We construct an abstract machine that provides both. We treat the LLM as an Oracle and extend a two-stack pushdown automaton with one instruction, which hands the Oracle a whole stack as its query and appends the answer to that same stack. The machine thus performs two computations, the Oracle's and a Turing-complete one that we call the Priestess. A stack that the program only appends to grows autoregressively, as an agent's context does. Two symmetry breakings, S in storage and T in transitions, make a Priestess program the operating system of the programs the Oracle runs, and produce the Agent and the Workflow as the two placements of a task's program. For internally autoregressive Oracles, the two computations synchronize at the end of every answer under certain conditions, and through that synchronization we model caching and analyse scheduling. No guarantee that holds for every Oracle can fix which content crosses between the two computations, but such a guarantee does fix the boundary itself. The construction V fits the machine to a von Neumann computer. To show that it is realizable, we propose ArchNights, an extended RISC-V ISA and a Linux-style operating system implementing the machine by design. ArchNights-SE runs on gem5 as a computer system, becomes an agentic system when it runs an LLM as the Oracle, and will be open source. Agentic systems can then be designed as computer systems are. With a foundation built and a unified view, future work can share invariants and bounds, each with its conditions.

阅读原文

参与讨论