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

REDO:面向编程智能体的免执行运行时错误检测

REDO: Execution-Free Runtime Error Detection for COding Agents

University of Pennsylvania(宾夕法尼亚大学);AWS AI Labs(亚马逊云科技人工智能实验室)

Shou Li, Andrey Kan, Laurent Callot, Bhavana Bhasker, Muhammad Shihab Rashid, Timothy B Esler

AI总结:

本文提出免执行的运行时错误检测方法 REDO,结合 LLM 与静态分析工具在无需运行代码的情况下检测错误,并构建 SWEDE 基准,实验证明其准确率和加权 F1 分数分别提升 11.0% 和 9.1%。

摘要:

随着基于 LLM 的智能体在解决复杂问题方面展现出卓越能力,人们越来越关注开发编程智能体以处理日益复杂的任务。尽管性能表现出色,这些编程智能体生成的程序或修改常包含运行时错误,可能导致代码失败,且难以被静态分析工具检测。增强编程智能体静态识别此类错误的能力可显著提升其整体性能。在本工作中,我们提出了面向编程智能体的免执行运行时错误检测(REDO),该方法将 LLM 与静态分析工具结合,无需代码执行即可为编程智能体检测运行时错误。此外,我们基于 SWE-Bench (lite) 提出了一个基准任务 SWE-Bench-Error-Detection (SWEDE),用于评估具有复杂外部依赖的仓库级问题中的错误检测。最后,通过对各种错误检测任务的定量和定性分析,我们证明 REDO 通过实现 11.0% 更高的准确率和 9.1% 更高的加权 F1 分数,优于当前最先进的方法;并提供了将 LLM 用于错误检测的优势的见解。

英文摘要:

As LLM-based agents exhibit exceptional capabilities in addressing complex problems, there is a growing focus on developing coding agents to tackle increasingly sophisticated tasks. Despite their promising performance, these coding agents often produce programs or modifications that contain runtime errors, which can cause code failures and are difficult for static analysis tools to detect. Enhancing the ability of coding agents to statically identify such errors could significantly improve their overall performance. In this work, we introduce Execution-free Runtime Error Detection for COding Agents (REDO), a method that integrates LLMs with static analysis tools to detect runtime errors for coding agents, without code execution. Additionally, we propose a benchmark task, SWE-Bench-Error-Detection (SWEDE), based on SWE-Bench (lite), to evaluate error detection in repository-level problems with complex external dependencies. Finally, through both quantitative and qualitative analyses across various error detection tasks, we demonstrate that REDO outperforms current state-of-the-art methods by achieving a 11.0% higher accuracy and 9.1% higher weighted F1 score; and provide insights into the advantages of incorporating LLMs for error detection.

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

↑