English

CEHR-XGPT: A Scalable Multi-Task Foundation Model for Electronic Health Records

Machine Learning 2025-09-08 v2 Artificial Intelligence

Abstract

Electronic Health Records (EHRs) provide a rich, longitudinal view of patient health and hold significant potential for advancing clinical decision support, risk prediction, and data-driven healthcare research. However, most artificial intelligence (AI) models for EHRs are designed for narrow, single-purpose tasks, limiting their generalizability and utility in real-world settings. Here, we present CEHR-XGPT, a general-purpose foundation model for EHR data that unifies three essential capabilities - feature representation, zero-shot prediction, and synthetic data generation - within a single architecture. To support temporal reasoning over clinical sequences, CEHR-XGPT incorporates a novel time-token-based learning framework that explicitly encodes patients' dynamic timelines into the model structure. CEHR-XGPT demonstrates strong performance across all three tasks and generalizes effectively to external datasets through vocabulary expansion and fine-tuning. Its versatility enables rapid model development, cohort discovery, and patient outcome forecasting without the need for task-specific retraining.

Keywords

Cite

@article{arxiv.2509.03643,
  title  = {CEHR-XGPT: A Scalable Multi-Task Foundation Model for Electronic Health Records},
  author = {Chao Pang and Jiheum Park and Xinzhuo Jiang and Nishanth Parameshwar Pavinkurve and Krishna S. Kalluri and Shalmali Joshi and Noémie Elhadad and Karthik Natarajan},
  journal= {arXiv preprint arXiv:2509.03643},
  year   = {2025}
}