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

评估基于LLM的从零开始软件生成在端到端CLI工具场景中的表现

Evaluating LLM-Based 0-to-1 Software Generation in End-to-End CLI Tool Scenarios

Harbin Institute of Technology, Shenzhen, China(哈尔滨工业大学(深圳));Independent Researcher, China(独立研究者,中国);Singapore Management University, Singapore(新加坡管理大学)

Ruida Hu, Xinchen Wang, Chao Peng, Cuiyun Gao, David Lo

AI总结:

本文提出CLI-Tool-Bench基准,用于评估从零生成CLI工具的能力,发现顶级模型成功率低于43%,指出生成代码倾向单体化。

摘要:

大型语言模型(LLM)正在推动向意图驱动开发转变,其中代理从零构建完整软件。然而,现有基准无法评估这种从零开始生成能力,因为依赖预定义框架忽略仓库结构规划,且刚性白盒单元测试缺乏端到端行为验证。为弥合这一差距,我们引入CLI-Tool-Bench,一个结构无关的基准,用于评估从零生成CLI工具的能力。它包含100个多样化的现实仓库,通过黑盒差分测试框架评估。代理生成的软件在沙箱中执行,通过多层等价度度量比较系统副作用和终端输出与人工编写的结果。评估七种最先进的LLM后,发现顶级模型成功率低于43%,凸显了从零生成的持续挑战。此外,更高的token消耗并不保证更好的性能,且代理倾向于生成单体代码。

英文摘要:

The evolution of Large Language Models (LLMs) has catalyzed a paradigm shift towards intent-driven software development, where autonomous agents are expected to design and deliver complete, runnable software systems from scratch. However, existing benchmarks fail to adequately assess this 0-to-1 generation capability due to two fundamental limitations. First, they rely on predefined structural scaffolds, which reduces the task to mere file-filling. Second, they depend on rigid white-box unit testing, which forces generated code to conform to specific internal implementations rather than validating end-to-end user-centric behavior. To bridge this gap, we introduce CLI-Tool-Bench, a novel, structure-agnostic benchmark designed to evaluate the ground-up generation of Command-Line Interface (CLI) tools. Powered by an automated black-box differential testing framework, the benchmark comprises 94 high-quality, real-world repositories spanning diverse programming languages and complexity levels. For each task, agents are provided with an empty workspace, forcing them to autonomously handle repository planning and dependencies. We evaluate the generated software by executing it in isolated sandboxes. The system-level side effects and terminal outputs are then compared against human-written oracles using a rigorous multi-tiered equivalence metric. Extensive evaluation of seven state-of-the-art LLMs reveals that the top-tier models achieve a maximum overall success rate of only 43.8%, highlighting that 0-to-1 software generation remains a highly challenging frontier. Furthermore, we discover that agents exhibit a strong tendency to generate monolithic code structures, and that higher token consumption does not necessarily yield better task performance.

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

↑