arXiv:2503.11951cs.AI2025-03被引 72

让大模型协作更可靠,自动处理错误并恢复。

SagaLLM: Context Management, Validation, and Transaction Guarantees for Multi-Agent LLM Planning

  • 用事务机制和独立验证代理保证多智能体协作一致
  • 在规划任务中显著提升一致性与容错能力
  • 适合需要高可靠性、可恢复的复杂系统应用

本文提出SagaLLM,一种结构化多智能体架构,解决当前基于大模型的规划系统四大核心问题:自我验证不可靠、上下文丢失、缺乏事务保障、智能体间协调不足。现有框架虽利用大模型进行任务分解与通信,但难以确保分布式流程中的一致性、回滚与约束满足。SagaLLM通过引入萨加(Saga)事务模式,结合持久化记忆、自动补偿机制与独立验证代理,利用大模型生成式推理自动化传统上需手动编码的协调逻辑,包括状态追踪、依赖分析、日志模式生成与恢复编排。尽管放宽了严格的ACID保证,但通过模块化检查点与可补偿执行,确保整体流程的一致性与可恢复性。实证评估显示,独立大模型常违反相互依赖约束或无法从中断中恢复;而SagaLLM在多个规划领域中显著提升了一致性、验证准确率与不确定环境下的自适应协调能力,为真实世界、可扩展的大模型多智能体系统奠定坚实基础。

原文摘要 · Abstract (English)

This paper introduces SagaLLM, a structured multi-agent architecture designed to address four foundational limitations of current LLM-based planning systems: unreliable self-validation, context loss, lack of transactional safeguards, and insufficient inter-agent coordination. While recent frameworks leverage LLMs for task decomposition and multi-agent communication, they often fail to ensure consistency, rollback, or constraint satisfaction across distributed workflows. SagaLLM bridges this gap by integrating the Saga transactional pattern with persistent memory, automated compensation, and independent validation agents. It leverages LLMs' generative reasoning to automate key tasks traditionally requiring hand-coded coordination logic, including state tracking, dependency analysis, log schema generation, and recovery orchestration. Although SagaLLM relaxes strict ACID guarantees, it ensures workflow-wide consistency and recovery through modular checkpointing and compensable execution. Empirical evaluations across planning domains demonstrate that standalone LLMs frequently violate interdependent constraints or fail to recover from disruptions. In contrast, SagaLLM achieves significant improvements in consistency, validation accuracy, and adaptive coordination under uncertainty, establishing a robust foundation for real-world, scalable LLM-based multi-agent systems.

多智能体大模型规划事务机制容错恢复

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