arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.18893cs.DCcs.AIcs.SE
收藏

CodeCRDT:面向多智能体LLM代码生成的观测驱动协调

CodeCRDT: Observation-Driven Coordination for Multi-Agent LLM Code Generation

Sergey Pugachev

AI总结:

本文提出CodeCRDT,一种基于CRDT观测驱动的多智能体协调模式,通过共享状态监控替代消息传递,实现无锁并发代码生成,实验显示最高21.1%加速、100%收敛,并揭示了语义冲突率与质量-性能权衡。

摘要:

多智能体LLM系统因昂贵的协调成本而无法实现并行加速。我们提出CodeCRDT,一种观测驱动的协调模式,其中智能体通过监控具有可观测更新和确定性收敛的共享状态进行协调,而非显式消息传递。利用无冲突复制数据类型(CRDTs),CodeCRDT实现了无锁、无冲突的并发代码生成,并具备强最终一致性。在600次试验(6个任务,每种模式50次运行)中的评估显示了收益与权衡:某些任务加速高达21.1%,其他任务减速高达39.4%,且100%收敛,零合并失败。该研究形式化了针对随机LLM智能体的观测驱动协调,揭示了语义冲突率(5-10%)和质量-性能权衡,并基于任务结构提供了并行协调成功与失败的实证特征描述。

英文摘要:

Multi-agent LLM systems fail to realize parallel speedups due to costly coordination. We present CodeCRDT, an observation-driven coordination pattern where agents coordinate by monitoring a shared state with observable updates and deterministic convergence, rather than explicit message passing. Using Conflict-Free Replicated Data Types (CRDTs), CodeCRDT enables lock-free, conflict-free concurrent code generation with strong eventual consistency. Evaluation across 600 trials (6 tasks, 50 runs per mode) shows both benefits and trade-offs: up to 21.1% speedup on some tasks, up to 39.4% slowdown on others, and 100% convergence with zero merge failures. The study formalizes observation-driven coordination for stochastic LLM agents, revealing semantic conflict rates (5-10%) and quality-performance tradeoffs, and provides empirical characterization of when parallel coordination succeeds versus fails based on task structure.

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

↑