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

MarsCode Agent:AI 原生的自动化缺陷修复

MarsCode Agent: AI-native Automated Bug Fixing

ByteDance(字节跳动);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳))

Yizhou Liu, Pengfei Gao, Xinchen Wang, Jie Liu, Yexuan Shi, Zhao Zhang, Chao Peng

AI总结:

本文提出 AI 原生框架 MarsCode Agent,通过结合 LLM 与代码分析,并按规划、复现、定位、补丁生成及验证流程自动修复缺陷;其在 SWE-bench 上优于多数现有自动化方法。

摘要:

大语言模型(LLM)的最新进展已展现出将各类软件开发任务自动化的显著潜力,包括代码补全、测试生成和缺陷修复。然而,由于真实世界软件系统的复杂性和多样性,将 LLM 应用于自动化缺陷修复仍然具有挑战性。本文提出 MarsCode Agent,这是一种利用 LLM 自动识别并修复软件代码中缺陷的新颖框架。MarsCode Agent 将 LLM 的能力与先进代码分析技术相结合,以准确定位故障并生成补丁。该方法遵循规划、缺陷复现、故障定位、候选补丁生成和验证的系统化流程,以确保高质量的缺陷修复。我们在 SWE-bench(一个包含真实世界软件项目的综合基准)上评估了 MarsCode Agent,结果表明,与大多数现有自动化方法相比,MarsCode Agent 在缺陷修复方面取得了较高的成功率。

英文摘要:

Recent advances in large language models (LLMs) have shown significant potential to automate various software development tasks, including code completion, test generation, and bug fixing. However, the application of LLMs for automated bug fixing remains challenging due to the complexity and diversity of real-world software systems. In this paper, we introduce MarsCode Agent, a novel framework that leverages LLMs to automatically identify and repair bugs in software code. MarsCode Agent combines the power of LLMs with advanced code analysis techniques to accurately localize faults and generate patches. Our approach follows a systematic process of planning, bug reproduction, fault localization, candidate patch generation, and validation to ensure high-quality bug fixes. We evaluated MarsCode Agent on SWE-bench, a comprehensive benchmark of real-world software projects, and our results show that MarsCode Agent achieves a high success rate in bug fixing compared to most of the existing automated approaches.

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

↑