[Paper Review] EHRSHOT: An EHR Benchmark for Few-Shot Evaluation of Foundation Models
EHRSHOT releases a longitudinal EHR dataset and a 141M-parameter clinical foundation model (CLMBR-T-base) with 15 few-shot tasks to evaluate foundation models in healthcare, plus reproducible code and data access.
While the general machine learning (ML) community has benefited from public datasets, tasks, and models, the progress of ML in healthcare has been hampered by a lack of such shared assets. The success of foundation models creates new challenges for healthcare ML by requiring access to shared pretrained models to validate performance benefits. We help address these challenges through three contributions. First, we publish a new dataset, EHRSHOT, which contains deidentified structured data from the electronic health records (EHRs) of 6,739 patients from Stanford Medicine. Unlike MIMIC-III/IV and other popular EHR datasets, EHRSHOT is longitudinal and not restricted to ICU/ED patients. Second, we publish the weights of CLMBR-T-base, a 141M parameter clinical foundation model pretrained on the structured EHR data of 2.57M patients. We are one of the first to fully release such a model for coded EHR data; in contrast, most prior models released for clinical data (e.g. GatorTron, ClinicalBERT) only work with unstructured text and cannot process the rich, structured data within an EHR. We provide an end-to-end pipeline for the community to validate and build upon its performance. Third, we define 15 few-shot clinical prediction tasks, enabling evaluation of foundation models on benefits such as sample efficiency and task adaptation. Our model and dataset are available via a research data use agreement from our website: https://ehrshot.stanford.edu. Code to reproduce our results are available at our Github repo: https://github.com/som-shahlab/ehrshot-benchmark
Motivation & Objective
- Provide a longitudinal EHR benchmark for few-shot evaluation of clinical foundation models.
- Release a pretrained clinical foundation model with publicly available weights.
- Define a diverse set of few-shot classification tasks spanning operational outcomes, labs, diagnoses, and imaging findings.
Proposed method
- Release EHRSHOT: 6,739 patients with 41.6 million coded events across 921,499 encounters in OMOP-CDM format.
- Pretrain CLMBR-T-base, a 141M parameter transformer, on structured EHR data from 2.57M patients using next-code autoregressive objective.
- Define 15 few-shot classification tasks across four task categories and provide k-shot evaluation with AUROC and AUPRC metrics.
- Evaluate two baselines: a count-based GBM with ontology-expanded features and CLMBR-T-base with a logistic regression head on top while freezing pretrained weights.
- Provide end-to-end reproducible pipeline including FEMR preprocessing and data processing code.
- Publish full model weights, dataset, task labels, and code under accessible licenses and data-use agreements.

Experimental results
Research questions
- RQ1How do pretrained clinical foundation models perform in few-shot settings across diverse, longitudinal EHR tasks?
- RQ2What are the sample-efficiency gains of a structured EHR foundation model compared to a count-based baseline in few-shot learning?
- RQ3How does model performance vary across task categories such as operational outcomes, lab value anticipation, new diagnoses, and chest X-ray findings?
- RQ4What are the limitations and transfer considerations when releasing model weights and a subset cohort from a single health system?
- RQ5Can a standardized preprocessing pipeline (OMOP-CDM with FEMR) support reproducible cross-site evaluation of clinical foundation models?
Key findings
- CLMBR-T-base outperforms the count-based GBM across all task categories for k ≤ 64 shots.
- Pretraining provides significant AUROC/AUPRC gains in few-shot settings for several tasks, especially between 8 and 128 shots.
- On the Assignment of New Diagnoses tasks, CLMBR-T-base lags behind GBM at higher data availability (k > 64).
- The benchmark reveals opportunities to improve pretraining and few-shot strategies due to task diversity.
- The work releases pretrained model weights and end-to-end reproducible code to enable community evaluation and extension.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.