arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.24358cs.SEcs.CL
收藏

通过代理驱动的标注和评估自动评估代码代理

Automatically Benchmarking LLM Code Agents through Agent-Driven Annotation and Evaluation

Shanghai Jiao Tong University(上海交通大学)

Lingyue Fu, Bolun Zhang, Hao Guan, Yaoming Zhu, Lin Qiu, Weiwen Liu, Xuezhi Cao, Xunliang Cai, Weinan Zhang, Yong Yu

AI总结:

本文提出代理驱动的基准构建流程,引入PRDBench包含50个真实Python项目,通过专门模型提升评估准确性,验证了框架的可扩展性和鲁棒性。

摘要:

近期代码代理的进步使项目级自动化软件开发成为可能,但现有评估基准面临两大局限:创建高质量项目级数据集需要大量领域专业知识,导致标注成本高且多样性有限;其次,尽管Agent-as-a-Judge范式通过灵活指标缓解了传统单元测试的刚性,但其依赖上下文学习(ICL)一般LLM导致评估不准确。为此,我们提出代理驱动的基准构建流程,利用人类监督高效生成多样化项目级任务。基于此,我们引入PRDBench,包含50个真实Python项目,涵盖20个领域,每个项目均配有结构化产品需求文档(PRDs)和全面标准。此外,为克服一般LLM评估的不准确性,我们提出由专用微调模型驱动的高可靠评估框架。基于Qwen3-Coder-30B,我们的专用PRDJudge在固定接口场景中达到90%以上的人类对齐度。大量实验表明,我们的框架为评估最先进代码代理提供了可扩展、稳健且高精度的评估方法。

英文摘要:

Recent advances in code agents have enabled automated software development at the project level, supported by large language models (LLMs). However, existing benchmarks for code agent evaluation face two major limitations. First, creating high-quality project-level evaluation datasets requires extensive domain expertise, leading to prohibitive annotation costs and limited diversity. Second, while recent Agent-as-a-Judge paradigms address the rigidity of traditional unit tests by enabling flexible metrics, their reliance on In-Context Learning (ICL) with general LLMs often results in inaccurate assessments that misalign with human standards. To address these challenges, we propose an agent-driven benchmark construction pipeline that leverages human supervision to efficiently generate diverse project-level tasks. Based on this, we introduce PRDBench, comprising 50 real-world Python projects across 20 domains, each with structured Product Requirement Documents (PRDs) and comprehensive criteria. Furthermore, to overcome the inaccuracy of general LLM judges, we propose a highly reliable evaluation framework powered by a specialized, fine-tuned model. Based on Qwen3-Coder-30B, our dedicated PRDJudge achieves over 90% human alignment in fixed-interface scenarios. Extensive experiments demonstrate that our suite provides a scalable, robust, and highly accurate framework for assessing state-of-the-art code agents.

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

↑