RepoST:基于沙箱测试的可扩展仓库级编码环境构建
RepoST: Scalable Repository-Level Coding Environment Construction with Sandbox Testing
AI总结:
RepoST 提出通过沙箱测试隔离目标函数及其依赖来构建可扩展的仓库级代码执行反馈环境,并基于此构建大规模训练集 RepoST-Train 和评估集 RepoST-Eval,训练后模型在 HumanEval 和 RepoEval 上分别提升 5.5% 和 3.5% Pass@1。
摘要:
我们提出了 RepoST,一种可扩展的方法,用于构建为仓库级代码生成提供执行反馈的环境,同时服务于训练和评估。与现有工作试图构建整个仓库以进行执行不同——这对人类和 LLM 来说都具有挑战性——我们通过沙箱测试提供执行反馈,将给定的目标函数及其依赖项隔离到一个单独的脚本中进行测试。沙箱测试降低了外部依赖的复杂性,并使得能够大规模构建环境。我们使用该方法构建了 RepoST-Train,一个包含来自 832 个仓库的 7,415 个函数的大规模训练集。使用 RepoST-Train 提供的执行反馈进行训练,在 HumanEval 上带来了 5.5% 的 Pass@1 性能提升,在 RepoEval 上带来了 3.5% 的 Pass@1 性能提升。我们还构建了一个评估数据集 RepoST-Eval,并对 12 个代码生成模型进行了基准测试。
英文摘要:
We present RepoST, a scalable method to construct environments that provide execution feedback for repository-level code generation for both training and evaluation. Unlike existing works that aim to build entire repositories for execution, which is challenging for both human and LLMs, we provide execution feedback with sandbox testing, which isolates a given target function and its dependencies to a separate script for testing. Sandbox testing reduces the complexity of external dependencies and enables constructing environments at a large scale. We use our method to construct RepoST-Train, a large-scale train set with 7,415 functions from 832 repositories. Training with the execution feedback provided by RepoST-Train leads to a performance gain of 5.5% Pass@1 on HumanEval and 3.5% Pass@1 on RepoEval. We also build an evaluation dataset, RepoST-Eval, and benchmark 12 code generation models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。