Sequence Composition in EHR Foundation Model Pretraining
Not on the map. Why?
Abstract (arXiv)
Autoregressive electronic health record (EHR) foundation models predict the next event token in patient trajectories: sequences of structured medical events. A typical pretraining strategy is to concatenate all trajectories into a global stream and sample token windows from it. This gives patients with longer sequences more training exposure and allows tokens to attend across patient boundaries. We argue that these choices create a misalignment between pretraining and downstream clinical tasks. To explore this, we investigate how the composition of pretraining sequences affects clinical prediction performance. Using the global-stream approach as a baseline, we propose alternative sequence composition methods that control how patient trajectories contribute to pretraining sequences. Across four MIMIC-IV v2.2 tasks, our best method improves macro AUROC, AUPRC, F1, and balanced accuracy, with relative gains of 9.3% in F1 and 2.7% in AUPRC under a fixed training recipe. We find that these gains generalize across four additional evaluation settings, including the INSPIRE and eICU-CRD datasets, with improvements in macro AUROC, AUPRC, and F1 score. Our results show that simply changing how EHR data are presented to the model during pretraining can improve downstream performance, without changing the model or collecting additional data.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 13 of its 25 references that are in the map. First posted on arXiv 12 Oct 2026.
Builds on
13 of 25 references.
References · 13
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 399
- 2023EHRSHOT: An EHR Benchmark for Few-Shot Evaluation of Foundation Modelscited by 105
- 2020Language Models Are An Effective Patient Representation Learning Technique For Electronic Health Record Datacited by 87
- 2023In-context Pretraining: Language Modeling Beyond Document Boundariescited by 79
- 2024Zero Shot Health Trajectory Prediction Using Transformercited by 77
- 2024Fewer Truncations Improve Language Modelingcited by 35
- 2024EHRMamba: Towards Generalizable and Scalable Foundation Models for Electronic Health Recordscited by 32
- 2025Generative Medical Event Models Improve with Scalecited by 26
- 2024Analysing The Impact of Sequence Composition on Language Model Pre-Trainingcited by 25
- 2025Foundation Model of Electronic Medical Records for Adaptive Risk Estimationcited by 19
- 2025Exploring Scaling Laws for EHR Foundation Modelscited by 12
Built on by
Not cited yet.