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

增强大语言模型代码生成:面向提升准确性、可靠性与延迟的多智能体协作和运行时调试的系统性评估

Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency

Nazmus Ashrafi, Salah Bouktif, Mohammed Mediani

AI总结:

本文系统评估了多智能体协作与运行时调试相结合对LLM代码生成的影响,通过19个模型和两个基准数据集验证其在准确性、可靠性和延迟方面的综合效果。

摘要:

大语言模型(LLMs)在自动化代码生成中的应用已成为人工智能研究的重要焦点。随着这些预训练模型持续演进,其理解和生成复杂代码结构的能力为自动化复杂编程任务、实现准确代码生成开辟了新的可能性。尽管当代基础模型展现出令人鼓舞的结果,研究者仍在探索最优的后训练策略以提升代码质量,这些策略包括监督微调、检索增强生成(RAG)、调试等。本文结合了两种广泛使用的方法,即多智能体协作和基于运行时执行信息的调试,以改进代码生成的功能性、可靠性和实际适用性。我们开展了一项实证研究,以扩展对单独策略以及所提出的两种策略活动组合的评估。本研究使用19个大语言模型,考察单独策略和所提出策略的表现,提供关于不同编程活动组合和训练范式如何影响代码生成有效性的全面见解。具体而言,我们实现了一个链式系统,将两种策略结合,并使用两个常用于代码生成的基准数据集,评估它们对功能准确性、代码可靠性和生成延迟的综合影响。我们的研究结果为寻求稳健的AI驱动编码解决方案的组织提供了有价值的见解,指导它们选择能够更好适应复杂后训练策略的模型,最终促进更有效、更可靠的代码生成技术的采用。

英文摘要:

The use of large language models (LLMs) for automated code generation has emerged as a significant focus within AI research. As these pretrained models continue to evolve, their ability to understand and generate complex code structures has opened new possibilities for automating intricate programming tasks for the sake of accurate code generation. Although contemporary foundational models demonstrate promoting results, researchers continue to explore optimal post-training strategies to enhance code quality. These include supervised fine-tuning, retrieval-augmented generation (RAG), debugging, and many others. In this paper, we combine two widely used approaches namely multi-agent collaboration and runtime execution information-based debugging, for improving code generation functionality, reliability, and practical applicability. We perform an empirical study in order to extend the evaluation of the individual strategies as well as the proposed composition of the activities of both strategies. Our study use 19 LLMs to examines the performance of individual and the proposed strategies, offering comprehensive insights into how different programming activities compositions and training paradigms influence code generation effectiveness. In particular, we implement a chained system that combines both strategies to assess their combined impact on functional accuracy, code reliability, and generation latency using two benchmark datasets commonly used for code generation. Our findings provide valuable insights for organizations seeking robust AI-driven coding solutions by guiding them in selecting models that can better adapt to complex post-training strategies, ultimately fostering the adoption of more effective and reliable code generation technologies.

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

↑