English

Pretraining EHR Foundation Models with Patient-Aware Sampling

Machine Learning 2026-07-24 v1

Abstract

Autoregressive foundation models for electronic health records (EHRs) typically inherit pretraining methods from language modeling, where patient trajectories are concatenated into a single token stream and windows are sampled from that stream. In EHR data, this choice is consequential: windows may mix multiple patients, and patients with longer records contribute more optimization updates, potentially introducing bias. We propose Patient Sampling, a pretraining sequence-construction method that allows us to control how training signal is distributed across patients. We compare this method to the standard approach, which we refer to as Global Stream. We show that stochastic Patient Sampling with controllable weighting improves performance on real-world EHR data. Across downstream clinical tasks on MIMIC-IV v2.2 and v3.1, Patient Sampling improves Macro AUROC and AUPRC over the Global Stream baseline. These results identify training and validation sequence construction as important and underexplored design choices for autoregressive EHR foundation models.

Cite

@article{arxiv.2607.22114,
  title  = {Pretraining EHR Foundation Models with Patient-Aware Sampling},
  author = {Joshua Placidi and Yuxuan Liu and Jinpei Han and Marek Rei and A. Aldo Faisal},
  journal= {arXiv preprint arXiv:2607.22114},
  year   = {2026}
}

Comments

Accepted at the Workshop on Structured Data for Health at the 43rd International Conference on Machine Learning (ICML 2026). 7 pages, 4 figures