Gistify! 通过运行时执行实现代码库级别的理解
Gistify! Codebase-Level Understanding via Runtime Execution
AI总结:
提出Gistify任务,要求编程LLM生成最小自包含文件以复现代码库特定功能,评估模型在结构理解、执行流建模及代码补丁生成方面的能力,发现现有先进模型在长执行轨迹任务上表现不佳。
摘要:
随着编程智能体日益部署于大型代码库中,自动设计具有挑战性的代码库级别评估的需求变得至关重要。我们提出了Gistify任务,要求编程LLM创建一个单一、最小且自包含的文件,以复现代码库的特定功能。该编程LLM被授予代码库的完整访问权限及特定入口点(例如python命令),生成的文件必须复制在完整代码库下运行同一命令的输出,同时仅包含执行该命令所必需的核心组件。成功完成Gistify任务既需要对代码库的结构性理解、对其执行流的准确建模,也需要生成潜在大型代码补丁的能力。研究结果表明,当前最先进的模型难以可靠地解决Gistify任务,尤其是那些具有长执行轨迹的任务。
英文摘要:
As coding agents are increasingly deployed in large codebases, the need to automatically design challenging, codebase-level evaluation is central. We propose Gistify, a task where a coding LLM must create a single, minimal, self-contained file that can reproduce a specific functionality of a codebase. The coding LLM is given full access to a codebase along with a specific entrypoint (e.g., a python command), and the generated file must replicate the output of the same command ran under the full codebase, while containing only the essential components necessary to execute the provided command. Success on Gistify requires both structural understanding of the codebase, accurate modeling of its execution flow as well as the ability to produce potentially large code patches. Our findings show that current state-of-the-art models struggle to reliably solve Gistify tasks, especially ones with long executions traces.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。