arXiv:2503.14443cs.LGcs.SE2025-03中稿 · ICLR被引 41

构建首个大规模自动化环境配置基准,评估大模型真实工程场景表现

EnvBench: A Benchmark for Automated Environment Setup

  • 设计涵盖千余仓库的跨语言基准,聚焦真实配置难题
  • 最佳方法仅成功配置29.47% JVM项目,验证任务挑战性
  • 提供自动检测机制,适合评测和优化智能开发工具

大型语言模型的进展使研究人员能聚焦软件工程中的实际仓库级任务。本文关注自动化仓库环境配置这一核心任务,即在系统上配置特定仓库的开发环境。现有研究虽提出创新代理策略,但评估常基于小规模数据集,难以反映真实配置复杂性。为此,我们引入全面的环境配置基准EnvBench,包含329个Python和665个JVM(Java、Kotlin)仓库,重点收录存在真实配置挑战的项目,排除仅靠确定性脚本即可完成的项目。为支持后续扩展与模型调优,我们实现两种自动评估指标:Python的静态分析检查缺失导入,JVM语言的编译检查。通过评估三种配置方法(含零样本基线与两种代理流程),使用GPT-4o和GPT-4o-mini双模型验证,最佳方案仅成功配置6.69%的Python项目和29.47%的JVM项目,表明当前方法仍面临显著挑战。该基准已在GitHub公开,数据集与实验轨迹可访问。

原文摘要 · Abstract (English)

Recent advances in Large Language Models (LLMs) have enabled researchers to focus on practical repository-level tasks in software engineering domain. In this work, we consider a cornerstone task for automating work with software repositories-environment setup, i.e., a task of configuring a repository-specific development environment on a system. Existing studies on environment setup introduce innovative agentic strategies, but their evaluation is often based on small datasets that may not capture the full range of configuration challenges encountered in practice. To address this gap, we introduce a comprehensive environment setup benchmark EnvBench. It encompasses 329 Python and 665 JVM-based (Java, Kotlin) repositories, with a focus on repositories that present genuine configuration challenges, excluding projects that can be fully configured by simple deterministic scripts. To enable further benchmark extension and usage for model tuning, we implement two automatic metrics: a static analysis check for missing imports in Python and a compilation check for JVM languages. We demonstrate the applicability of our benchmark by evaluating three environment setup approaches, including a simple zero-shot baseline and two agentic workflows, that we test with two powerful LLM backbones, GPT-4o and GPT-4o-mini. The best approach manages to successfully configure 6.69% repositories for Python and 29.47% repositories for JVM, suggesting that EnvBench remains challenging for current approaches. Our benchmark suite is publicly available at https://github.com/JetBrains-Research/EnvBench. The dataset and experiment trajectories are available at https://jb.gg/envbench.

环境配置LLM评估软件工程自动化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。