M4Bench: Evaluating Procedural Specification for Clinical EHR Derivation Agents
Not on the map. Why?
Abstract (arXiv)
Clinical research over electronic health records depends on derived variables whose definitions sit outside the schema, in item codes, time windows, missingness rules, and output-grain choices that change cohorts and downstream conclusions. We introduce M4Bench, 28 clinical derivation tasks across 15 task families on MIMIC-IV and eICU, to test whether AI coding agents can reproduce such derivations and how clinician-reviewed agent skills change their results. Its controls decompose the value of skills into specification completeness, delivery format, and schema familiarity. In a Docker-isolated Codex campaign (GPT 5.4 Mini and GPT 5.5), skills raise reward by 0.136 over the no-skill baseline, with 26 of 28 tasks improving. Specification completeness accounts for most of this gain: on an eight-task control subset, an operational spec alone raises reward by 0.162, and skills add only 0.024 on top, indistinguishable from zero. On a ten-task subset, decoy skills score like no skill and raw reference SQL nearly matches targeted skills, arguing against generic context or the skill format as the explanation. Schema obfuscation and restructuring preserve 86% and 70% of the skill gain (GPT 5.4 Mini, 26 MIMIC-IV tasks), a descriptive robustness check rather than a bound on memorization. A descriptive Claude Code replication on all 28 tasks (Opus 4.7 and Sonnet 4.6, 560 runs) is directionally consistent (+0.120, 21 of 28 tasks improving). These gains are partial agreement with the reference, not completed tasks: only 25 of 280 with-skill and 13 of 280 no-skill Codex runs pass every strict check, and skills barely change which rows agents return (key F1 +0.003). Skills are released as a versioned, clinician-reviewable markdown delivery format, with a family-level reference-validity audit. M4Bench releases tasks, skills, evaluation code, and sanitized per-run evidence as an open-source benchmark.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 17 of its 39 references that are in the map. Submitted 27 Oct 2026.
Builds on
17 of 39 references.
References · 17
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2026SkillsBench: Benchmarking How Well Agent Skills Work Across Diverse Taskscited by 370
- 2024Benchmarking Retrieval-Augmented Generation for Medicinecited by 360
- 2024ProSA: Assessing and Understanding the Prompt Sensitivity of LLMscited by 162
- 2023EHRSHOT: An EHR Benchmark for Few-Shot Evaluation of Foundation Modelscited by 117
- 2025SWE-bench Goes Live!cited by 100
- 2024Croissant: A Metadata Format for ML-Ready Datasetscited by 91
- 2024EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Recordscited by 85
- 2024MedCalc-Bench: Evaluating Large Language Models for Medical Calculationscited by 78
- 2023EHRSQL: A Practical Text-to-SQL Benchmark for Electronic Health Recordscited by 54
- 2024AntiLeakBench: Preventing Data Contamination by Automatically Constructing Benchmarks with Updated Real-World Knowledgecited by 49
- 2025FHIR-AgentBench: Benchmarking LLM Agents for Realistic Interoperable EHR Question Answeringcited by 27
5 more
- 2025EHRStruct: A Comprehensive Benchmark Framework for Evaluating Large Language Models on Structured Electronic Health Record Taskscited by 8
- 2026MedCalc-Bench Doesn't Measure What You Think: A Benchmark Audit and the Case for Open-Book Evaluationcited by 5
- 2026Can LLM Agents Generate Real-World Evidence? Evaluating Observational Studies in Medical Databasescited by 5
- 2025M3: Conversational LLMs Simplify Secure Clinical Data Access, Understanding, and Analysiscited by 4
- 2025EMR-AGENT: Automating Cohort and Feature Extraction from EMR Databasescited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026The Last Mile of Coding Agents for Long-Document Tasks: An Empirical Study on Clinical Trial Protocol Digitization
- 2026ART: Action-based Reasoning Task Benchmarking for Medical AI Agents
- 2026PhysicianBench: Evaluating LLM Agents in Real-World EHR Environments
- 2026EHR-Complex: Benchmarking Medical Agents for Complex Clinical Reasoning
- 2026Benchmark of THReD: Evaluating an LLM Agent and Its Preprocessing Tools for Turning Electronic Health Records into AI-Ready Datasets
- 2026Beyond Prediction: Longitudinal Reasoning in EHR-Integrated Clinical AI ↗
- 2026CodeClinic: Evaluating Automation of Coding Skills for Clinical Reasoning Agents
- 2026VirtualTrialHarness: Coordinating Agentic Operationalization of Virtual Trial Protocols Across Complex Clinical Schemas