NeurIPS 2026QuestionsPapersAreasAboutMarkdown

M4Bench: Evaluating Procedural Specification for Clinical EHR Derivation Agents

Hannes Ill, Rafi Al Attrach, Rajna Fani, Ahram Han, Ryohei Yamamoto, Marlene L Moerig, Dukyong Yoon, Leo Anthony Celi

NeurIPS page · Open on the map

Category: Multimodal, Audio & Medical Reasoning › Healthcare LLM Evaluation Benchmarks · Type: benchmark or dataset · Keywords: clinical variable derivation, EHR benchmark, procedural specifications, clinical AI evaluation, clinical data extraction

Areas: Code & Coding Agents › Code Verification › Coding agent benchmarks; AI Agents › Agentic Decision Making › Medical Agent Benchmarks; Evaluation & Benchmarks › Multidisciplinary Model Benchmarks › Medical LLM Benchmarks; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › Medical Agent Benchmarks

Summary

M4Bench is a benchmark of 28 clinical derivation tasks that evaluates how procedural specifications affect AI agents' performance on EHR variable extraction.

Explained to a 5-year-old

We made a big test for computers to read doctor notes. The computers have to figure out how to pick the right numbers and dates from the notes. We gave them simple rules and also special skills that doctors checked. The computers did better when they had the rules, but not perfectly. We also made a tool so anyone can use and improve the test.

Explained to a 5-year-old, longer

Imagine you have a big box of doctor notes that contain lots of numbers, dates, and facts about patients. Usually, doctors write down how to find a specific fact, like "look for the temperature taken in the last 24 hours." But sometimes the rules are hidden in codes or unclear. We created a test called M4Bench that gives computers many different tasks to do, each with clear rules about what to look for and how to combine information. We also gave the computers extra skills that doctors reviewed, like knowing how to handle missing data or choose the right time window. The computers were put in a special sandbox so we could see exactly what they did. When they used the clear rules, they got better at finding the right facts, but they still made mistakes, especially with tricky parts like deciding how many rows to output or where the time boundaries are. Only a few of the computer runs passed all the checks, and the overall score went up only a little. We also made sure the test works on different hospital datasets and that the improvements are not just because the computers memorized the dataset names. Finally, we released everything-tasks, skills, code, and logs-so other researchers can use and improve the test.

For a technical reader

The paper presents a benchmark (M4Bench) that measures how well AI agents can derive clinical variables from EHRs when given procedural specifications. It includes 28 tasks across 15 families on MIMIC-IV and eICU, with controlled completeness, format, and schema familiarity. A Docker-isolated Codex campaign evaluates agents, and clinician-reviewed skills are provided as versioned markdown. Results show modest gains from specifications and skills, but many runs fail strict diagnostics, indicating room for improvement.

Problem

Deriving clinical variables from electronic health records requires interpreting procedural specifications such as item codes, time windows, missingness rules, and output-grain choices, which can lead to inconsistent cohorts and conclusions.

Method

The benchmark comprises 28 derivation tasks across 15 families on MIMIC-IV and eICU, with controlled specifications that isolate completeness, delivery format, and schema familiarity. A Docker-isolated Codex campaign evaluates agents, and clinician-reviewed skills are provided as versioned markdown to assess procedural context.

Results

Specification completeness yields a +0.162 improvement on eight sentinel tasks, and clinician-reviewed skills add a modest +0.024, resulting in a combined +0.136 gain across all 28 tasks. Nonetheless, only 87 of 760 runs fully pass diagnostics and the overall F1 rises by only +0.003.

Contributions

It introduces a comprehensive benchmark of 28 clinical derivation tasks with controlled procedural specifications, provides clinician-reviewed skills in a versioned markdown format, and releases evaluation code and audit logs for reproducible assessment.

Limitations and assumptions

Only a small fraction of runs fully satisfy diagnostics, and improvements are modest in overall F1, indicating the benchmark captures partial agreement rather than full autonomous task completion.

Practical relevance

The benchmark offers a reproducible, clinician-reviewable evaluation framework for improving AI-based clinical variable derivation in real-world healthcare settings.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction