M4Bench:评估临床电子健康记录推导智能体的程序规范
M4Bench: Evaluating Procedural Specification for Clinical EHR Derivation Agents
AI总结:
M4Bench是基于MIMIC-IV和eICU的临床推导任务基准,测试AI编码智能体的临床推导能力,发现规范完整性是奖励提升的主要来源,技能增益有限且与参考SQL表现接近。
摘要:
针对电子健康记录的临床研究依赖于衍生变量,这些变量的定义超出了数据库模式范畴,涉及项目编码、时间窗口、缺失值规则以及输出粒度选择,而这些因素会改变研究队列和下游结论。我们推出M4Bench,这是一个包含15个任务家族共28项临床推导任务的基准,基于MIMIC-IV和eICU数据集构建,用于测试AI编码智能体能否复现此类推导过程,以及经临床医生审核的智能体技能如何影响其结果。该基准的控制变量将技能价值分解为规范完整性、交付格式和模式熟悉度三个维度。在Docker隔离的Codex实验(GPT 5.4 Mini和GPT 5.5)中,具备技能的智能体相比无技能基线的奖励提升了0.136,28项任务中有26项表现得到改善。规范完整性是该提升的主要来源:在8项任务的控制子集上,仅操作规范就能使奖励提升0.162,而技能仅在此基础上额外提升0.024,该提升与零无显著差异。在10项任务的子集上,诱饵技能的得分与无技能情况相当,原始参考SQL与目标技能的表现几乎匹配,这说明通用上下文或技能格式并非奖励提升的原因。模式混淆和重构分别保留了86%和70%的技能增益(针对GPT 5.4 Mini的26项MIMIC-IV任务),这是一项描述性稳健性检查,而非对记忆能力的限制。针对全部28项任务的描述性Claude Code复现实验(Opus 4.7和Sonnet 4.6,共560次运行)结果方向一致,奖励提升0.120,28项任务中有21项表现改善。这些增益是与参考结果的部分一致,而非完成全部任务:在280次带技能的Codex运行中仅有25次通过所有严格检查,280次无技能的Codex运行中仅有13次通过,且技能几乎未改变智能体返回的行(关键F1值提升0.003)。技能以可版本控制、经临床医生审核的markdown交付格式发布,并附带家族级别的参考有效性审计。M4Bench作为开源基准发布了任务、技能、评估代码以及经清理的每次运行证据。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。