arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.07744cs.SE
收藏

PERFOPT-Bench:评估软件性能优化中的编码代理

PERFOPT-Bench: Evaluating Coding Agents on Software Performance Optimization

OPPO Research Institute(OPPO 研究院);University of Arizona(亚利桑那大学);City University of Hong Kong(香港城市大学)

Yingyun Cui, Yi Xie, Piaohong Wang, Jiawei Ma, Bo Liu, Liangliang Cao

AI总结:

该研究介绍PERFOPT-Bench基准,用于评估软件性能优化中编码代理的完整性能工程循环。通过7个长期任务评估7个不同的代理堆栈,发现优化性能取决于工作负载,原始加速作基准分数不安全,还提出中继试验可恢复额外空间。

摘要:

编码代理基准大多衡量代理能否生成功能正确的补丁,但生产软件还需要在实际执行目标上实现可测量的加速。性能优化是一项独特的代理任务,代理必须分析执行情况、诊断跨层瓶颈、在不破坏正确性的情况下编辑代码,并验证性能提升是可重现的而非测量假象。我们引入了PERFOPT-Bench,用于评估整个性能工程循环。每个任务提供一个正确但故意次优的代码库,要求代理提高目标性能指标;评分需要隐藏的正确性测试、经过验证的加速测量和轨迹级审核。我们在7个长期优化任务上评估了7个不同语言模型和代理框架的代理堆栈。结果表明,优化性能取决于工作负载,而非仅由模型身份决定。我们还发现,原始加速作为基准分数并不安全,因为一些大幅提升来自特定于基准的捷径利用;探索性的中继试验表明,在初始会话停止后,从外部化的优化摘要重新开始可以恢复额外的空间。

英文摘要:

Coding-agent benchmarks have largely measured whether agents can produce functionally correct patches, but production software also demands measurable speedups on real execution targets. Performance optimization is a distinct agentic task: agents must profile executions, diagnose cross-layer bottlenecks, edit code without breaking correctness, and verify that gains are reproducible rather than measurement artifacts. We introduce PERFOPT-Bench, a benchmark for evaluating this full performance-engineering loop. Each task provides a correct but deliberately suboptimal codebase and asks the agent to improve a target performance metric; scoring requires hidden correctness tests, verified-speedup measurement, and trajectory-level audit. We evaluate 7 agent stacks with different LLMs and agent frameworks on 7 long-horizon optimization tasks. The results show that optimization performance is workload-dependent rather than determined by model identity alone: no single stack dominates, and changing the agent framework can materially change the same LLM's per-task speedup profile. We further find that raw speedup is unsafe as a benchmark score, since some large gains arise from benchmark-specific shortcut exploitation; an exploratory relay pilot suggests that restarting from an externalized optimization summary can recover additional headroom after an initial session stops. The benchmark and our evaluation are available at: https://anonymous.4open.science/r/Dataset-D3CC.

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

↑