Introduction
The rapid advancement of Large Language Models (LLMs) has been largely driven by the discovery of scaling laws—predictable improvements in performance as compute, data, and model size increase. While Electronic Health Records (EHRs) also consist of sequential data, they differ significantly from natural language, utilizing standardized medical codes and irregular time intervals. This study investigates whether the same scaling principles apply to the structured, codified world of EHR data.
Methodology
To evaluate EHR scaling laws, the researchers developed a controlled experimental framework using a decoder-only transformer (Llama architecture) trained from scratch. This approach ensured that performance gains were derived solely from EHR data scaling rather than pre-trained linguistic knowledge.
Key methodological innovations included:
- Boundary-Preserving Batching: Unlike previous methods that concatenated patient timelines, this study strictly segmented batches by individual patient boundaries to prevent data leakage.
- IsoFLOP Profiling: Following the "Chinchilla" methodology, the authors fixed computational budgets (FLOPs) while varying model sizes to identify the loss-optimal configuration for any given compute level.
- Dataset: The models were trained on the MIMIC-IV database, comprising approximately 266 million tokens across 267,000 patient timelines.
Scaling Behavior in EHR Models
The experiments confirmed that EHR models exhibit predictable power-law relationships between compute, model size, and data. However, the scaling exponents differ from those found in natural language models, likely due to the higher semantic density and structural differences of medical codes.
As shown in the IsoFLOP curves, the researchers identified clear U-shaped parabolic relationships for fixed compute budgets. However, a significant "Data Wall" was encountered: performance plateaued at 28 million parameters. Scaling laws suggest that models larger than this require over 10 billion tokens to avoid overfitting, a threshold far exceeding the 266 million tokens available in MIMIC-IV.
Clinical Utility and Validation Loss
A critical finding of this research is the strong linear correlation between a model's validation loss and its zero-shot performance on clinical tasks, such as ICU mortality and 30-day readmission. This suggests that optimizing for next-token prediction is a reliable proxy for real-world clinical utility.
As validation loss decreased from 1.0 to 0.85, zero-shot ROC AUC for ICU mortality improved from 0.68 to 0.75. This direct translation from training metrics to clinical outcomes validates the foundation model approach for healthcare.
Conclusion
While EHR models obey scaling laws, current public datasets like MIMIC-IV are insufficient to support models beyond 28 million parameters. To reach a "GPT moment" in healthcare, the field requires massive, multi-institutional datasets exceeding 10 billion tokens. Future research should also explore whether transfer learning from general-purpose LLMs can improve data efficiency and alter these scaling dynamics.
Summary updated