arXiv:2509.25248cs.SEcs.AI2025-09被引 1

构建真实开源软件编译基准,评估大模型智能体实战能力

BuildBench: Benchmarking LLM Agents on Compiling Real-World Open-Source Software

  • 设计涵盖多样项目特性的真实编译挑战集
  • 提出新基线代理在复杂项目上达最优编译成功率
  • 适合关注AI辅助软件工程与安全的开发者

自动编译开源软件(OSS)是重要但繁琐复杂的任务,对大模型智能体极具挑战性。现有方法依赖人工规则,难以适应需定制配置或环境的项目;近期研究仅在高评分项目上测试,低估了真实挑战。实际中常缺乏编译说明,依赖关系未文档化,成功编译甚至需修改源码或构建脚本。我们提出更具挑战性与真实性的基准 BUILD-BENCH,包含质量、规模与特性更丰富的开源项目。同时提出强基线智能体 OSS-BUILD-AGENT,其增强的构建指令检索模块在该基准上表现领先,且能适应异构项目特征。我们还分析不同设计选择对整体性能的影响,为未来研究提供指导。我们认为,BUILD-BENCH 上的表现能真实反映智能体处理复杂软件工程任务的能力,将推动软件开发与安全领域的创新。

原文摘要 · Abstract (English)

Automatically compiling open-source software (OSS) projects is a vital, labor-intensive, and complex task, which makes it a good challenge for LLM Agents. Existing methods rely on manually curated rules and workflows, which cannot adapt to OSS that requires customized configuration or environment setup. Recent attempts using Large Language Models (LLMs) used selective evaluation on a subset of highly rated OSS, a practice that underestimates the realistic challenges of OSS compilation. In practice, compilation instructions are often absent, dependencies are undocumented, and successful builds may even require patching source files or modifying build scripts. We propose a more challenging and realistic benchmark, BUILD-BENCH, comprising OSS that are more diverse in quality, scale, and characteristics. Furthermore, we propose a strong baseline LLM-based agent, OSS-BUILD-AGENT, an effective system with enhanced build instruction retrieval module that achieves state-of-the-art performance on BUILD-BENCH and is adaptable to heterogeneous OSS characteristics. We also provide detailed analysis regarding different compilation method design choices and their influence to the whole task, offering insights to guide future advances. We believe performance on BUILD-BENCH can faithfully reflect an agent's ability to tackle compilation as a complex software engineering tasks, and, as such, our benchmark will spur innovation with a significant impact on downstream applications in the fields of software development and software security.

大模型智能体软件工程编译基准开源软件

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