arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.07935cs.AIcs.MA
收藏

TraceFix:基于TLA+反例的智能体协调协议修复

TraceFix: Repairing Agent Coordination Protocols with TLA+ Counterexamples

Rutgers University(新泽西州普林斯顿大学)

Shuren Xia, Qiwei Li, Taqiya Ehsan, Jorge Ortiz

AI总结:

TraceFix通过TLA+反例迭代修复智能体协调协议,实现高效验证与执行,提升任务完成率和稳定性。

摘要:

我们提出了TraceFix,一种以验证为导向的大型语言模型(LLM)多智能体协调流水线。智能体从任务描述中合成协议拓扑结构作为结构化中间表示(IR),生成PlusCal协调逻辑,并通过TLA+模型检查器(TLC)的反例迭代修复协议,直至验证成功。验证的进程体被编译为每个智能体的系统提示,并在运行时监控下执行,拒绝超出拓扑的协调操作。在48个任务上,所有任务达到完整TLA+验证;62.5%的任务首次通过,无任务需要超过四次修复迭代。状态空间跨度六个数量级,但每个任务的验证时间均在60秒内完成。3456次运行比较显示,拓扑监控执行在任务完成率(89.4%平均,81.5%完整)和运行时性能上表现最佳,使用验证协议的运行时在模型能力降低时退化率约为基线的一半。固定运行时下的配对消融实验显示,TLA+验证的协议将死锁/活锁(DL/LL)从31.1%降至14.1%,在故障注入下分离最大。

英文摘要:

We present TraceFix, a verification-first pipeline for Large Language Model (LLM) multi-agent coordination. An agent synthesizes a protocol topology as a structured intermediate representation (IR) from a task description, generates PlusCal coordination logic, and iteratively repairs the protocol using counterexamples from the TLA+ model checker (TLC) until verification succeeds. Verified process bodies are compiled into per-agent system prompts and executed under a runtime monitor that rejects out-of-topology coordination operations. On 48 tasks spanning 16 scenario families, all tasks reach full TLC verification; 62.5% pass on the first attempt and none requires more than four repair iterations. State spaces span six orders of magnitude yet verification completes in under 60 s for every task. A 3,456-run runtime comparison shows that topology-monitored execution achieves the highest task completion (89.4% average, 81.5% full) and that runtimes using the verified protocol degrade at roughly half the rate of prompt-only and chat-only baselines when model capability is reduced. A paired ablation under a fixed runtime shows that TLC-verified protocols cut deadlock/livelock (DL/LL) from 31.1% to 14.1%, with the largest separation under fault injection.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑