代理事务:迈向符合ACID的代理系统
研究论文 · 2026/08/18
大型语言模型(LLM)代理正从对话助手演变为通过推理、工具使用、代码生成和工作区操作执行长期任务的自主系统。随着代理在持久环境和多步骤工作流中运行,它们面临与事务数据库系统类似的问题:可靠执行、一致结果、安全并发和持久状态管理。我们引入代理事务的概念,并提出一个符合ACID的代理系统框架,通过四个语义保证重新诠释经典ACID属性:语义原子性、语义一致性、语义隔离和语义持久性。这些属性为构建可靠的代理系统提供了原则性基础,尽管存在模型不确定性和动态执行环境。为实例化该框架,我们开发了一个符合ACID的数据代理,通过事务性探索-执行-验证循环、事务性技能中心、基于置信度分歧的验证、语义依赖感知隔离和事务感知语义状态管理来实现这些保证。在广泛使用的基准上的实验结果表明,我们的系统比最先进的代理(包括Claude Code)提高了10.6%。这项工作开辟了更广泛的研究议程,将事务原则和系统架构扩展到构建可信、可扩展和自进化的AI代理系统。
该论文提出了一种新颖的框架,将数据库事务的ACID属性应用于LLM代理系统,以解决可靠性和一致性问题。实验结果表明其有效性,为构建可信赖的自主代理提供了新思路,对AI系统设计具有重要参考价值。
Large language model (LLM) agents are evolving from conversational assistants into autonomous systems that execute long-horizon tasks through reasoning, tool use, code generation, and workspace manipulation. As agents increasingly operate over persistent environments and multi-step workflows, they face challenges analogous to those addressed by transactional database systems: reliable execution, consistent outcomes, safe concurrency, and durable state management. We introduce the concept of an agentic transaction and propose an ACID-compliant agent system framework that reinterprets the classical ACID properties for agent execution through four semantic guarantees: Semantic Atomicity, Semantic Consistency, Semantic Isolation, and Semantic Durability. Together, these properties provide a principled foundation for building reliable agent systems despite model uncertainty and dynamic execution environments. To instantiate this framework, we develop an ACID-compliant data agent that realizes these guarantees through transactional exploration-execution-validation cycles, transactional skill hubs, confidence divergence-based validation, semantic dependency-aware isolation, and transaction-aware semantic state management. Experimental results on widely used benchmarks show that our system achieves a 10.6% improvement over state-of-the-art agents, including Claude Code. This work opens a broader research agenda on extending transactional principles and system architectures toward building trustworthy, scalable, and self-evolving AI agent systems.