HuggingFace Daily Papers(社区热门论文)· HuggingFace Daily Papers(社区热门论文)·· 7 天前AI 评分41
LibraryDesignBench:智能体能否为智能体设计代码库?
AI 导读
研究者推出 LibraryDesignBench,一个两阶段基准,让智能体根据只定义能力与用例、不规定设计的规格实现完整代码库,再由来自不同模型族的三个用户智能体以程序正确性和简洁性评估。
正文
Abstract:Agents increasingly build on code written by other agents, and they reimplement rather than reuse, growing the codebases later agents must work in. To measure how well agents design libraries for other agents, we introduce LibraryDesignBench, a two-phase benchmark in which an agent implements a full-featured library from a specification that defines required capabilities and potential use cases without prescribing the design. We evaluate the library through the correctness and simplicity of programs written by three user agents from different model families. The benchmark spans 242 expert-validated programming problems across 15 library-design tasks in four languages. On eleven of the fifteen tasks, agent designers reproduce the abstractions of the human-written production library. Downstream agents adopt agent- and human-written libraries alike but underuse them, reimplementing capabilities the library already provides. Our failure analysis finds that downstream agents write extra code mainly because agent-written libraries are rigid or hard to use, not because capabilities are missing. We also experiment with giving designers more prescriptive, agent-first guidance and having them test their library with subagents; this improves downstream scores and yields simpler programs. LibraryDesignBench provides both a testbed for evaluating library-design practices for agent users and an initial design baseline that improves downstream reuse.
| Comments: | 26 pages, 6 figures, 11 tables. Code and data: this https URL |
| Subjects: | Artificial Intelligence (cs.AI); Computation and Language (cs.CL); Software Engineering (cs.SE) |
| Cite as: | arXiv:2609.36730 [cs.AI] |
| (or arXiv:2609.36730v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2609.36730 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Gabriel Orlanski [view email]
[v1]
Tue, 29 Sep 2026 05:04:44 UTC (294 KB)
来源:HuggingFace Daily Papers(社区热门论文) · arxiv.org