Skip to content

MEDSWE-BENCH: A Benchmark for Biomedical Software Engineering Agents

Zhaoyang Zhu, Sicong Li, Zihan Liao, Luyao Ma, Zhihua Zhang, Lei Liu, Yue Shen, Jian Wang, Jinjie Gu

cs.SE

Abstract

Subtle bugs in biomedical software can silently invalidate scientific and clinical conclusions without triggering runtime failures. Existing benchmarks miss this failure mode: PR-mined coding benchmarks suffer from pretraining leakage, while biomedical agent benchmarks largely omit multilingual, repository-level tasks, rigorous tests, and strong sandboxing. We introduce \textbf{\bench{}}, comprising \textbf{81} feature-level biomedical engineering tasks across \textbf{33} open-source repositories, \textbf{8} translational domains, and \textbf{8} languages. To construct it, we develop \textbf{\forge{}}, a multi-agent framework that extracts live-repository tasks, stress-tests contract-grounded scientific oracles under formula-free prompts, and evaluates patches in history-stripped, offline containers. Across six frontier reasoning models, top systems (\texttt{GPT-6.2 Sol} and \texttt{Claude Fable 5}) reach only \textbf{49.4\%} and \textbf{45.7\%} accuracy; open-source models trail proprietary ones by \textbf{3.1×\times} while using \textbf{27×\times} more tokens per solve, and \textbf{33.3\%} of tasks remain unsolved. Trajectory auditing reveals that \textbf{86.1\%} of true failures stem from scientific identification and realization rather than localization---over \textbf{80\%} of which pass agents' local tests while violating clinical conventions or repository contracts---and \textbf{75.1\%} attempt blocked upstream lookups, underscoring the need for hardened sandbox isolation.

Create a lesson

Metadata

Categories
cs.SE, cs.AI