arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.13946cs.SEcs.CL
收藏

CollabCoder: 通过协作决策实现计划-代码共演以提高代码生成效率

CollabCoder: Plan-Code Co-Evolution via Collaborative Decision-Making for Efficient Code Generation

Viettel AI, Viettel Group(越南Viettel集团AI部门);Hanoi University of Science and Technology(河内科学技术大学)

Duy Tung Doan, Quang Huy Phung, Dzung Nguyen, Khac-Hoai Nam Bui

AI总结:

CollabCoder通过动态多智能体协作提升代码生成效率,通过计划模块与代码模块的协作决策提高代码质量和鲁棒性,实验表明其在复杂任务中性能优于现有方法且计算开销更低。

摘要:

自动化代码生成仍然是软件工程中的持续挑战,传统多智能体框架常受限于静态规划、孤立执行、高计算开销和对复杂任务的适应性不足。本文介绍了CollabCoder,一种新的计划-代码共演框架,通过动态多智能体协作提升代码生成。核心思想是设计计划模块与代码模块之间的协作决策过程,以决定调试过程中应执行哪个模块。在广泛使用的基准测试中,实验表明CollabCoder在各种任务中都提高了代码质量和鲁棒性。重要的是,CollabCoder在性能上与或超过当前最先进的方法,同时减少计算开销,随着基准难度的增加,效率提升更加显著。在更具挑战性的LiveCodeBench和xCodeEval基准测试中,我们的方法在强基线基础上提高了11-20%的性能,同时将每个执行的API调用次数减少了4-10次平均。

英文摘要:

Automated code generation remains a persistent challenge in software engineering, as conventional multi-agent frameworks are often constrained by static planning, isolated execution, high computational overhead, and limited adaptability to complex tasks. This paper introduces CollabCoder, a novel Plan-Code Co-Evolution framework that improves code generation through dynamic multi-agent collaboration. The core idea is to design a collaborative decision-making process between the plan module and the code module to decide which module should be executed for the debugging process. Extensive experiments on widely used benchmarks demonstrate that CollabCoder consistently improves code quality and robustness across tasks. Importantly, CollabCoder achieves performance comparable to or exceeding current state-of-the-art methods while reducing computational overhead, with efficiency gains becoming more pronounced as benchmark difficulty increases. On the more challenging LiveCodeBench and xCodeEval benchmarks, our approach improves performance by 11-20% over strong baselines while reducing the number of API calls by an average of 4-10 per execution.

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

↑