SWE-bench Science: Can Coding Agents Resolve Engineering Tasks in Science?
让AI编程助手去修复真实科学软件,连最强的那个也有一半以上任务没做对
研究团队构建了一个名为SWE-bench Science的新测试集,包含从化学、生物、物理等20个科学领域、98个真实GitHub代码仓库中挑出的119个修复任务。即便表现最好的AI编程助手Claude Code配合Opus-5,在严格的隐藏测试下正确修复率也不到50%。研究还发现,给AI额外补充科学背景知识并不总是有帮助,有时反而会拉低准确率。
他们做了什么
- 以往的编程测评大多是写简单函数或修一般软件的bug,这次测的是AI能否修复真正的科研代码,比如模拟程序或仪器数据处理流程,同时还要保证科学结论不出错
- 任务分成三类:issue驱动型(修复已知bug)、专家探索型(像科学家一样自己找出未知原因)、工程集成型(打通多个模块完成完整功能链)
- 测试了GPT-5.6-sol、Claude-Opus-5、DeepSeek-V4-Pro等8种AI配置,它们在公开可见的测试上大多能拿到90%以上的分数,但换成隐藏的严格私有测试后,正确率明显大幅下降
- 研究者把失败原因归纳为四类:缺乏科学知识或抽象能力、只做表面修复没找到真正病因、修复不完整导致系统其他部分出问题、无法把科学原理推广到没见过的新情况
- 在补充科学背景说明的对比实验中,DeepSeek-V4-flash的表现变好了,但GPT-5.6-sol的精确成功率反而下降,说明信息给得多不代表修复得更好

| Scientific domain | Tasks |
|---|---|
| Chemistry | 24 |
| Materials Science and Engineering | 16 |
| Biology | 13 |
| Biomedical Engineering | 12 |
| Physics | 11 |
| Mathematics | 7 |
| Astronomy | 7 |
| Atmospheric Science | 5 |
| Civil Engineering | 5 |
| Surveying and Mapping Science and Technology | 3 |
| Geophysics | 3 |
| Mechanics | 3 |
| Electrical Engineering | 2 |
| Marine Science | 2 |
| Geography | 1 |
| Aeronautical and Astronautical Science and Technology | 1 |
| Nuclear Science and Technology | 1 |
| Computer Science and Technology | 1 |
| Statistics | 1 |
| Information and Communication Engineering | 1 |
| Total | 119 |

为什么重要
随着AI越来越多地参与撰写和修改支撑科研结论的代码,一次有缺陷的修改可能悄悄损害的不只是程序运行,还有科学结论本身的可信度。这项研究用具体证据表明,现在的AI编程助手常常能骗过表面检查却漏掉深层的科学正确性,这对做科研软件开发或打造AI编程工具的人都很关键。

本文术语
- pass@1 · 一种严格的成功率指标,只有一次尝试就通过全部隐藏私有测试才算成功
- issue驱动型任务 · 基于真实报告过的bug构建的任务,要求AI直接修复
- 专家探索型任务 · 原因未知,需要AI像科学家一样自主调查根本原因的任务
- 工程集成型任务 · 需要打通多个文件和模块、完成一整套功能的任务
- 公开/私有测试 · 公开测试是AI调试时能看到的检查项,私有测试是提交后才启用的隐藏严格检查,用来判断是否真正修复成功

无法转载的图表
- Figure 1
论文原文摘要(英文)
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.
在 arXiv 阅读最新论文
- Compliance, Capability, and Conflict: Benchmarking Multimodal LLMs under System Messages让看图AI遵守隐藏的系统规则会明显拖累准确率,用户一旦故意要求它违规,情况会更糟
- EXIMO: VLM Guided Exploration of VLA Policies不用人工遥控演示,让会说话的AI来教机械臂做新家务
- Robust Incomplete Multimodal Sentiment Analysis via Iterative Proxy Correction文本信息缺失或损坏时,这个AI不靠一次性猜测,而是反复修正猜测结果,从而更准确地判断情绪
- Natural Language Code Retrieval for 1C:Enterprise: An Open Benchmark and Efficient Bi-Encoder首个用俄语提问就能搜索1C企业软件代码的公开基准和专用AI模型问世
- Remember, Verify, or Ask? Cross-Family Evaluation of Memory Commitment in LLM AgentsAI助手在该向你提问的时候,却更愿意自己去核实事实
- Reliable Financial Named Entity Recognition under Domain ShiftAI在正式文件里学到的自信,一到推特上就变得不可信
- When Irrelevant Text Matters: Affine Margin Shifts in Multimodal Large Language Models只插一句和图片无关的话,多模态AI的判断就会按固定规律偏移
- Rethinking Patch Based Multivariate Time Series Forecasting with Semantic Structured Partitioning别再机械切分时间序列,按语义把它切成有意义的块
METAL LAB 最新报道
图片来源: Zhipeng Xu et al., arXiv:2608.19799, CC BY 4.0