RBioBench: an execution-based benchmark for biomedical R code generation
Xihao Piao, Dong Wang, Ziwei Yang, Zhenyu He, Zhao Tian, Yilong Zhang, Erick Scott, Jiacheng Lin, Lingwei Zhu, Junjie Chen, Zheng Chen, Jimeng Sun
Abstract
Language models and coding agents increasingly generate R code for biomedical analyses, but reliable results require more than code that runs. Existing benchmarks rarely compare outputs with reference results or distinguish execution failures from silent errors that produce plausible but incorrect results. We introduce RBioBench, a benchmark of 296 Bioconductor and Pharmaverse tasks with hidden reference outputs and diagnostic tools that separate interface errors, which prevent code from running, from silent errors. Evaluated directly across all tasks, the best-performing model passes 55.4%; most clinical-task crashes stem from nonexistent functions or arguments. Agents that execute and revise code achieve pass rates of up to 82.4%, primarily by correcting interface errors, yet 25% of their error-free runs still generate incorrect outputs. These findings suggest that execution feedback helps agents learn how to use scientific software more than what analyses to perform. RBioBench offers a benchmark and a verifier for self-correcting scientific agents.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI, cs.LG
- Comments
- 36 pages, 5 figures; includes Supplementary Information. Tasks, inputs and result packages: https://huggingface.co/datasets/xihaopark/RBioBench
Related papers
What Do Code Judges Add Beyond Public Tests and Generator Priors?
Shared title terminologycs.SETaleb Alhajji, Yonghong He
Test-Centric Code Generation: Enhancing Test Diversity, Reliability, and Utilization
Shared title terminologycs.SEChaohang Wen, Zhao Tian, Shiqi Kuang et al.
ClarifySDK: A Benchmark and Development Kit for Coding Assistants that Ask Questions
Shared title terminologycs.SECedric Richter, Joshana Shakya, Amal Akli et al.
MEDSWE-BENCH: A Benchmark for Biomedical Software Engineering Agents
Shared title terminologycs.SEZhaoyang Zhu, Sicong Li, Zihan Liao et al.
FineCR: A Fine-Grained Benchmark for Evaluating LLMs on Raising Code Review and its Resolution
Shared title terminologycs.SETaufiqul Islam Khan, Shaowei Wang, Haoxiang Zhang et al.
SheetCraft: Fine-Tuning Code Agents for Execution-Guided Spreadsheet Reasoning and Construction
Shared title terminologycs.SEZuowei Zhang, Xiaotian Li, Siyuan Li et al.