Atomix: 用于可靠智能体工作流的及时事务性工具使用
Atomix: Timely, Transactional Tool Use for Reliable Agentic Workflows
AI总结:
针对LLM智能体多步工作流中因故障、推测和并发导致的状态不一致问题,提出Atomix系统,通过进度感知事务将效果分组与冲突解决分离,实现可靠提交与回滚。
摘要:
LLM智能体执行多步工作流,通过工具改变外部状态。常见的编排器将工具返回视为结算触发器,因此故障、推测和并发智能体可能留下部分效果、丢失分支残留、陈旧写入或不可逆发送。正确的结算需要两个事实,而重试、检查点重放、锁和补偿各自混淆了这些事实:哪些效果必须一起结算,以及何时较早的冲突工作已耗尽。Atomix通过进度感知事务使这种分离明确化。运行时在执行期间记录读取和效果,当足迹完成时密封事务,并且仅在每个资源的前沿显示没有更早的冲突工作可能到达后才提交。提交是最终结算:Atomix释放可缓冲效果,接受可逆外部效果为最终状态,并让不可逆效果离开。中止抑制未释放的效果,并在可能的情况下补偿外部化的可逆效果。在代表性智能体工作负载上,这种组合在注入故障下改善了干净恢复,隔离了竞争和推测工作,并防止了正确分类的不可逆动作泄漏;微基准测试显示相对于工具延迟的微秒级包装开销。
英文摘要:
LLM agents execute multi-step workflows that mutate external state through tools. Common orchestrators treat tool return as the settlement trigger, so faults, speculation, and concurrent agents can leave partial effects, losing-branch residue, stale writes, or irreversible sends. Correct settlement needs two facts that retries, checkpoint replay, locks, and compensation each conflate: which effects must settle together, and when earlier conflicting work is exhausted. Atomix makes this split explicit with progress-aware transactions. The runtime records reads and effects during execution, seals a transaction when its footprint is complete, and commits only after per-resource frontiers show that no earlier conflicting work can still arrive. Commit is final settlement: Atomix releases bufferable effects, accepts reversible external effects as final, and lets irreversible effects leave the gate. Abort suppresses unreleased effects and compensates externalized reversible effects where possible. On representative agent workloads, this composition improves clean recovery under injected faults, isolates contending and speculative work, and prevents correctly classified irreversible actions from leaking; microbenchmarks show microsecond-scale wrapper overhead relative to tool latency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。