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

FeatureArc:针对演进特征的编码智能体基准测试

FeatureArc: Benchmarking Coding Agents on Evolving Features

Hunyuan Team, Tencent(腾讯混元团队);The Chinese University of Hong Kong(香港中文大学)

Yunlong Wang, Alyssa Wu, Cuiyun Gao, Jia Feng, Songyuanyi Lu, Zhichao Hu

AI总结:

该研究推出FeatureArc基准及对应流水线,针对10个编码智能体在73个演进特征任务上评估,发现其全特征成功率仅28.5%,继承缺陷是主要失败原因,为Hunyuan开发提供指导。

摘要:

软件特征通常会随时间演进:开发者会在新用例和需求出现时扩展其首个版本,且每次扩展都基于之前编写的代码。大多数特征基准测试会在固定代码库上评估单个请求,而特征演进需要在智能体自身之前的代码上评估连续扩展,并检查特征是否保持正确。我们推出FeatureArc,用于针对演进特征评估编码智能体,同时提供从仓库历史构建任务的流水线。该基准结合了同一特征连续阶段间的依赖关系、明确的需求与接口契约,以及四种编程语言的可执行检查。流水线会验证新行为的未通过(F2P)测试,以及每个阶段前后参考代码上现有行为的通过-通过(P2P)测试。我们在73个经人工审核、阶段数为2至10的任务上评估了10个编码智能体,每个智能体在一个持久会话和工作区中运行,无外部测试反馈或回滚。评估显示第一阶段与全特征成功之间存在差距:汇总成功率从第一阶段的62.7%降至最终代码上测试全特征时的28.5%。轨迹分析发现继承缺陷是常见失败机制,存在于72.9%的后续失败阶段中。这些早期错误常未被检测到:在失败后的阶段中,智能体约95%的时间会忽略早期错误,且其自测很少重新检查早期阶段。因此,在阶段间无人工检查的情况下自主演进特征,仍是当前编码智能体面临的重大挑战。在腾讯,该流水线将内部评估扩展至该场景,并指导腾讯大语言模型家族Hunyuan的开发。

英文摘要:

A software feature usually evolves over time: developers extend its first version as new use cases and requirements arrive, and each extension builds on code written earlier. Most feature benchmarks evaluate a single request on a fixed codebase. Feature evolution requires evaluating successive extensions on an agent's own earlier code and checking whether the feature remains correct. We introduce FeatureArc to evaluate coding agents on evolving features, together with a pipeline that constructs its tasks from repository histories. The benchmark combines dependencies between successive stages of the same feature, explicit requirements and interface contracts, and executable checks across four programming languages. The pipeline validates fail-to-pass (F2P) tests for new behavior and pass-to-pass (P2P) tests for existing behavior on the reference code before and after each stage. We evaluated 10 coding agents on 73 manually reviewed tasks of 2 to 10 stages. Each agent works in one persistent session and workspace without external test feedback or rollback. The evaluation reveals a gap between first-stage and whole-feature success: pooled success falls from 62.7% at the first stage to 28.5% when the whole feature is tested on the final code. Trajectory analysis identifies inherited defects as a common failure mechanism, present in 72.9% of failed later stages. These earlier errors often remain undetected: in stages following a failure, agents leave the earlier error unnoticed about 95% of the time, and their self-tests rarely revisit earlier stages. Evolving a feature autonomously, without human checks between stages, therefore remains a substantial challenge for current coding agents. At Tencent, the pipeline extends internal evaluations to this setting and guides the development of Hunyuan, Tencent's family of large language models.

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

↑