TL;DR
This paper introduces ORA, a novel pretraining objective for Electronic Health Record (EHR) foundation models that jointly models when a medical event will happen and what its numerical value will be. By treating EHR data as a marked temporal point process rather than a text-like sequence of tokens, ORA delivers superior generalizability across classification, time-to-event, and regression tasks using both Transformer and Mamba architectures.
What Problem Does This Paper Address?
Electronic Health Records (EHRs) are fundamentally different from natural language. While sentences flow in a predictable sequence of words, clinical records consist of irregularly timed, heterogeneous events (like diagnoses, procedures, and lab tests) that are frequently accompanied by vital continuous measurements (such as blood pressure or glucose levels).
Many recent EHR foundation models try to force this data into a standard Large Language Model (LLM) framework using Next-Token Prediction (NTP). However, this approach treats time and continuous values as an afterthought, often relying on clunky discretization or ignoring them entirely during loss calculation. Existing alternatives that attempt to model time-to-event (TTE) either assume time and value are independent, focus exclusively on "abnormal" lab results, or break down when multiple events happen simultaneously. The authors address this gap by designing a pretraining loss that natively respects the joint, irregular, and concurrent structure of EHR data.
Methods
The authors propose ORA, a marked time-to-event pretraining objective based on a composite code-specific likelihood. Instead of predicting the next token overall, ORA models the joint distribution of the time-to-event ($\Delta t$) and the associated numerical value ($v$) for every potential future medical code simultaneously.
To make this computationally tractable and handle concurrent events smoothly, ORA uses a discretized joint distribution over time-value quantiles (extending survival analysis methods like DeepHit). The neural network outputs a code-specific probability matrix where each entry represents the likelihood of an event occurring within a specific time and value bin. Crucially, ORA is backbone-agnostic; the authors demonstrate its efficacy by plugging it into both standard decoder-only Transformers and state-space Mamba architectures.
Datasets
The authors evaluated ORA across two massive datasets:
- MIMIC-IV: A widely used public dataset containing data from ~364,000 patients admitted to intensive care units between 2008 and 2022.
- CUMC: A large, private dataset from Columbia University Irving Medical Center containing records for 6.7 million patients across inpatient, outpatient, and emergency services spanning from 1986 to 2023.
They split the data into training, tuning, and test sets to rigorously evaluate 15 downstream tasks spanning binary classification, time-to-event prediction, and lab value regression.
Key Insights and Ideas
- EHRs are not text: The core "aha" moment is that treating EHR data like natural language severely limits a model's downstream capabilities. Pretraining objectives must align with the actual data-generating process (irregular time + continuous marks).
- Joint modeling acts as a regularizer: Modeling time and value together provides a massive boost. If you only model time, you lose the predictive power of lab values. If you only model abnormal values, you ruin the model's ability to do general classification. Joint modeling yields robust, general-purpose representations.
- Code-specific marginalization: By modeling each code independently and marginalizing missing values, ORA elegantly handles the structural missingness and censoring inherent in real-world medical data without blowing up the vocabulary size.
Key Results
Across 15 tasks on both datasets, ORA achieved the most balanced and robust performance compared to all major baselines (including MOTOR, Context Clue, SurvivEHR, and ICareFM).
- Classification & TTE: On MIMIC-IV using a Transformer backbone, ORA achieved the best average AUROC for binary classification (0.800) and the best average C-index for time-to-event prediction (0.815).
- Regression: While highly specialized models like ICareFM scored higher on pure regression tasks ($R^2$ of 0.511 vs ORA's 0.415 on MIMIC-IV), they suffered from severe performance degradation in classification and TTE. ORA remained highly competitive while maintaining top-tier performance elsewhere.
- Architecture Agnostic: These gains held true whether using a Transformer or a Mamba backbone, proving that the pretraining loss formulation—not just model capacity—drives the improvement.
Limitations and Future Work
- Quantile Discretization: ORA relies on fixed, quantile-based bins for time and values. While scalable, this might smooth out sharply peaked or highly multimodal distributions. Future work could explore adaptive binning or continuous likelihood parameterizations.
- Conditional Independence Assumption: The composite likelihood assumes that the first future occurrences of different medical codes are conditionally independent given patient history. Relaxing this assumption to model inter-code dependencies could improve fidelity.
- Regression Suboptimality: ORA doesn't uniformly beat specialized regression models. Combining ORA with threshold-conditioned or continuous value-centric losses could bridge this gap for heavy regression use cases.
Summary updated