mlsanityData to 7 Oct 2026

EHR-Complex: Benchmarking Medical Agents for Complex Clinical Reasoning

arXiv 2606.23301 ↗First posted 22 Jun 2026cs.AIcited by 5

On the map: LLM reasoning → Clinical and biomedical applications

also in 1 more
Abstract (arXiv)

Clinical agents promise to democratize access to electronic health records (EHRs), yet existing benchmarks fail to reflect the complexity of practical EHR analysis, e.g., often operating on idealized, clean EHRs via static SQL generation rather than interactive execution. In this work, we introduce EHR-Complex, a large-scale benchmark designed for interactive clinical database reasoning. Built on the large MIMIC-IV substrate (365K patients, 31 tables, 500M+ records), EHR-Complex comprises about 52K tasks spanning six clinical intents, supporting both patient-level and population-level queries, where each task requires an agent to interact with a sandboxed environment by executing SQL queries or Python code. Notably, EHR-Complex considers the real-world SQL task complexity for longitudinal multi-table aggregation and compositional reasoning, resulting in 31.93 SQL structural components per query on average. Evaluation results on EHR-Complex reveal the clinical difficulty of these EHR reasoning scenarios, with the top-performing model achieving only 62.3% exact-match accuracy. Pass^k consistency drops below 50% for nearly all evaluated models at k=4, exposing broad stochastic fragility. A fine-grained analysis of more than 3,800 failed trajectories for representative LLMs reveals three dominant failure modes: SQL logic errors, medical-code lookup failures, and semantic misunderstandings. EHR-Complex provides a rigorous testbed for clinical agents and highlights remaining gaps in robust reasoning for large-scale EHR analysis.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Clinical and biomedical applications, one of 17 directions in LLM reasoning. Builds on 5 of its 27 references that are in the map. First posted on arXiv 22 Jun 2026.

Builds on

5 of 27 references.

References · 5

  1. 2024GPT-4o System Cardcited by 4,467
  2. 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,280
  3. 2024DeepSeek-V3 Technical Reportcited by 724
  4. 2026Kimi K2.5: Visual Agentic Intelligencecited by 449
  5. 2025FHIR-AgentBench: Benchmarking LLM Agents for Realistic Interoperable EHR Question Answeringcited by 20

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 5.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026ART: Action-based Reasoning Task Benchmarking for Medical AI Agents
  2. 2025EHR-R1: A Reasoning-Enhanced Foundational Language Model for Electronic Health Record Analysis
  3. 2026Patient-Similarity Cohort Reasoning in Clinical Text-to-SQL
  4. 2026ClinEnv: An Interactive Multi-Stage Long Horizon EHR Environment for Agents
  5. 2025From Conversation to Query Execution: Benchmarking User and Tool Interactions for EHR Database Agents
  6. 2026Beyond Prediction: Longitudinal Reasoning in EHR-Integrated Clinical AI ↗
  7. 2026LongMedBench: Benchmarking Medical Agents for Long-Horizon Clinical Decision-Making
  8. 2026PhysicianBench: Evaluating LLM Agents in Real-World EHR Environments