TL;DR
EHR foundation models promise to revolutionize clinical AI by reducing label dependency and generalizing across diverse medical tasks. This paper introduces a rigorous, multi-institutional benchmark of 14 clinical tasks to systematically evaluate 6 state-of-the-art EHR foundation models. The findings reveal a nuanced reality: while these models excel in data-scarce scenarios and improve demographic fairness, they struggle significantly with rare diseases, suffer from poor risk calibration, and fail to transport reliably between different hospitals.
What Problem Does This Paper Address?
Building machine learning models for Electronic Health Records (EHR) has traditionally been a rigid, expensive process. Standard supervised learning requires researchers to curate and meticulously label massive datasets for every single task—whether predicting mortality or diagnosing a specific chronic condition.
EHR Foundation Models (FMs) aim to disrupt this paradigm. By pre-training on massive volumes of unlabeled patient timelines using self-supervised learning, they learn robust, generalized representations of patient health. In theory, these models should require very little labeled data to adapt to new downstream tasks and should easily transfer across different hospitals.
However, the field has lacked a standardized way to validate these promises. Previous evaluations were often siloed within single institutions (like MIMIC-IV), relied strictly on population-level discrimination metrics (like AUROC), and ignored critical clinical deployment realities like risk calibration (how accurate the predicted probabilities actually are) and demographic fairness. This paper introduces a comprehensive, reproducible benchmark to evaluate whether EHR FMs truly deliver on their clinical promises.
Methods
The authors benchmarked 6 state-of-the-art structured EHR foundation models: CEHR-BERT, CEHR-GPT, CORE-BEHRT, LLAMA, MAMBA, and MOTOR. To ensure a fair comparison, all models were constrained to a similar parameter count (~120 million) and embedding dimensionality (768).
The models were evaluated using two primary adaptation strategies:
- Linear Probing: Training a simple logistic regression head on top of frozen embeddings extracted from the FMs.
- Fine-Tuning: Updating all the weights of the foundation model on the downstream task.
These were compared against strong tabular baselines (FEMR and MEDS-TAB) paired with standard classifiers like LightGBM and XGBoost. Crucially, the evaluation framework expanded beyond simple discrimination (AUROC) to rigorously measure calibration (Expected Calibration Error and Brier Score) and subpopulation fairness (maximal absolute performance gaps across sex, race, and healthcare utilization tiers).
Datasets
The benchmark evaluates models across more than 6 million patients using two primary datasets standardized into the Medical Event Data Standard (MEDS) format:
- CUMC: A massive, diverse dataset from the Columbia University Irving Medical Center containing longitudinal records spanning 1986 to 2023.
- MIMIC-IV: A widely used, publicly available intensive care unit (ICU) dataset.
- Stanford-EHR (EHRSHOT): Used exclusively to evaluate cross-institutional transportability by testing a model trained at Stanford directly on the CUMC dataset.
The benchmark comprises 14 curated prediction tasks, including 3 operational/prognostic outcomes (In-hospital mortality, 30-day readmission, and prolonged length-of-stay) and 11 distinct disease phenotypes (ranging from acute events like Myocardial Infarction to chronic conditions like Type 2 Diabetes and Schizophrenia).
Key Insights and Ideas
- The Low-Label Lifeline: FMs provide their highest value when labeled data is extremely scarce (e.g., only 100 training samples). In these data-starved regimes, FMs systematically crush traditional supervised baselines. However, as labeled data scales up to 100,000 samples, traditional tabular baselines catch up, narrowing or entirely eliminating the FM advantage.
- The Rare Disease Blindspot: FMs consistently fail to outperform baselines on low-prevalence conditions (<1% prevalence in the dataset, such as Ischemic Stroke or Chronic Lymphocytic Leukemia). Standard self-supervised pre-training losses (like next-token prediction) optimize for the most frequent clinical events, effectively washing out the subtle signals required to detect rare diseases.
- Fine-Tuning is Not a Silver Bullet: When linear probing underperforms on low-prevalence conditions, fully fine-tuning the model's weights does not bridge the gap. Instead, it often degrades performance further due to overfitting on limited positive labels (see Figure 2).
- The Discrimination vs. Calibration Trade-Off: Top-performing models in terms of discrimination (such as MOTOR) frequently rank among the worst in calibration. For clinical utility, a model that accurately separates sick patients from healthy ones (high AUROC) but provides wildly inaccurate probability estimates (poor calibration) can lead to dangerous clinical miscalculations.
- The Transportability Wall: Cross-institutional transportability remains broken. A MAMBA model pre-trained at Stanford and evaluated at Columbia consistently underperformed compared to its locally trained counterpart. This failure is driven by massive institutional variations in coding density, clinical workflows, and healthcare utilization practices rather than simple population shifts.
Key Results
- Low-Label Superiority: FMs demonstrate a massive discriminative performance gap over baselines when trained on just $N=100$ samples, though this gap shrinks significantly at $N=100,000$ (see Figure 1).
- Top Performers: Overall, MOTOR (which utilizes a unique time-to-event pre-training objective) and CEHR-GPT achieved the highest average rankings for discriminative performance across both datasets.
- Fairness Gains: Pre-training on large, diverse patient populations successfully translated into fairer downstream models. FMs consistently achieved better average fairness rankings (smaller performance gaps across demographic subgroups) than traditional supervised baselines.
- Fine-Tuning Degradation: As illustrated in Figure 2, full fine-tuning fails to consistently improve performance over linear probing for low-prevalence conditions like Ischemic Stroke, and can actively harm performance.
Limitations and Future Work
The authors note several critical boundaries of the current benchmark:
- Task Constraints: The evaluation is strictly limited to binary classification tasks, omitting time-to-event (survival analysis) or continuous regression tasks.
- Scale Limitations: Due to compute constraints, the study focused on models capped at ~120 million parameters; scaling laws for larger clinical models remain an open question.
- Transportability Scope: Cross-site generalization was only evaluated using a single model architecture (MAMBA) from a single external institution.
Future Directions: To unlock true clinical utility, future EHR FMs must move beyond standard language modeling losses and design pre-training objectives that explicitly preserve rare clinical events to improve risk calibration. Furthermore, achieving true model transportability will require deep, process-level harmonization of how clinical workflows and data logging practices are handled across different hospital systems.
Summary updated