给智能体加事务机制,让复杂任务更可靠。
Agentic Transaction: Towards ACID-Compliant Agent Systems

- 用事务思想重构智能体执行流程,确保每步操作可回滚、可验证。
- 在多个基准上提升10.6%性能,优于Claude Code等顶尖模型。
- 适合开发需要高可靠性、多步协作的自主系统开发者。
大型语言模型(LLM)智能体正从对话助手演变为能通过推理、工具调用、代码生成和工作区操作完成长周期任务的自主系统。随着智能体在持久化环境和多步骤流程中运行,其面临的问题与事务型数据库系统相似:可靠执行、结果一致性、安全并发和状态持久性。本文提出“智能体事务”概念,构建符合ACID原则的智能体系统框架,通过四个语义保证重新诠释经典ACID属性:语义原子性、语义一致性、语义隔离性和语义持久性。这些属性为应对模型不确定性与动态执行环境提供了理论基础。为实现该框架,我们设计了一个符合ACID的数据智能体,通过事务式探索-执行-验证循环、事务型技能枢纽、基于置信度分歧的验证、语义依赖感知的隔离以及事务感知的语义状态管理来实现上述保障。在广泛使用的基准测试中,该系统性能比现有最优智能体提升10.6%,包括Claude Code。本工作开启了将事务原理与系统架构扩展至可信、可扩展、自演化AI智能体系统的更广泛研究方向。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。