arXiv cs.CL论文
SWE-bench Science:编码智能体能解决科学领域的工程任务吗?
本文提出 SWE-bench Science,一个面向科学软件工程的仓库级基准,包含来自 20 个科学领域、98 个仓库的 119 个任务,分为问题驱动、专家探索和工程集成三类。最佳智能体 Claude Code with Opus-5 的 pass@1 低于 50%,并存在四类失败机制:科学知识或抽象不足、探索误导或修复表面化、修复覆盖不完整或系统集成失败、无法泛化科学知识。配对消融实验表明,科学知识并非总是有益:良好引导可提升性能,而错误引导可能导致锚定效应。该基准为研究编码智能体的能力与失败机制提供了测试平台。
这篇是正式发表的长论文,站内提供中文解读,全文请到原文阅读 PDF。
Abstract:Software increasingly functions as part of the scientific instrument itself, making failures in scientific code capable of compromising not only program behavior but also the evidence underlying scientific conclusions. Yet existing evaluations of coding agents largely emphasize aggregate task success, providing limited insight into why agents fail when repairing scientific software. We introduce \textbf{SWE-bench Science}, a repository-level benchmark for scientific software engineering comprising 119 tasks from 98 GitHub repositories across 20 scientific domains. Each task is organized into one of three paradigms: Issue-driven, Expert-exploratory, and Engineering-integration. Even the best-performing agent, \textbf{Claude Code with Opus-5 (max), achieves a pass@1 below 50\%}, highlighting the substantial challenges posed by scientific software engineering. We identify four recurring failure mechanisms: deficits in scientific knowledge or abstraction, misguided exploration or surface-level repair, incomplete repair coverage or system integration, and failures to generalize scientific knowledge beyond observed cases in our analysis. We further conduct a paired ablation that removes explicit scientific guidance while preserving the repository and executable engineering context. The results show that scientific knowledge is not uniformly beneficial: well-grounded information can constrain repair and improve average performance and token efficiency, whereas poorly aligned guidance can induce anchoring and does not necessarily improve exact repair success. Together, SWE-bench Science provides a broad testbed for studying both the capabilities and failure mechanisms of coding agents in scientific software engineering.