TL;DR
Researchers have developed ORA, a new pretraining objective for Electronic Health Record (EHR) foundation models that jointly models when a medical event occurs and what its numerical value is. By moving beyond simple "next-token prediction," ORA creates more versatile models that excel not just at classification, but also at predicting future lab values and the timing of clinical events.
What Problem Does This Paper Address?
The "EHR-as-Language" analogy has dominated recent medical AI. By treating medical codes (diagnoses, medications, labs) like words in a sentence, researchers have successfully applied Large Language Model (LLM) techniques to patient data. However, this analogy is leaky.
Unlike natural language, EHR data is irregularly sampled (weeks might pass between doctor visits) and multimodal (a "Glucose" event isn't just a label; it comes with a critical numerical value). Standard next-token prediction (NTP) ignores these dimensions, treating a high blood sugar reading the same as a normal one if they share the same code. This leaves a massive gap in a model's ability to understand the actual physiological trajectory of a patient.
Methods
The authors propose ORA, a marked time-to-event pretraining objective. Instead of just asking "What is the next code?", ORA asks: "Given the patient's history, when will code m appear next, and what will its value be?"
Key technical components include:
- Joint Modeling: It models the joint probability of the time interval ($\Delta t$) and the numerical value ($v$) for every possible future medical code.
- Discretization: To make this computationally feasible, the authors use a 2D grid of "bins" (quantiles) for time and values. The model predicts which bin a future event will fall into, essentially turning a complex regression problem into a structured classification problem.
- Backbone Agnostic: The researchers proved ORA isn't tied to a specific architecture; they successfully integrated it with both standard Transformers and the newer Mamba (state-space) architectures.
- Censoring Awareness: The loss function accounts for "censored" events—cases where an event hasn't happened yet by the end of the record—preventing the model from becoming biased toward only short-term predictions.
Datasets
The study utilized two massive, high-fidelity datasets:
- MIMIC-IV: A widely used public dataset containing records for ~364,000 patients from Beth Israel Deaconess Medical Center.
- CUMC: A private dataset from Columbia University Irving Medical Center covering a staggering 6.7 million patients over nearly 40 years.
The models were evaluated on a suite of 15 downstream tasks, including binary classification (e.g., mortality), time-to-event prediction (e.g., onset of heart failure), and numerical regression (e.g., predicting future creatinine levels).
Key Insights and Ideas
- The "Value" of Values: The biggest "aha" moment is that modeling numerical values doesn't just help with regression tasks; it actually improves the model's performance on standard classification tasks like mortality prediction. The "mark" (value) provides essential context that discrete codes lack.
- Objective > Architecture: A major finding was that the choice of pretraining loss (NTP vs. TPP vs. ORA) had a more significant impact on performance than the choice of model backbone (Transformer vs. Mamba). This suggests that how we teach these models is currently more important than the specific neural network "plumbing" we use.
- Balanced Generalization: While some specialized models (like ICareFM) perform slightly better on specific regression tasks, they often "collapse" on classification. ORA provides the most balanced performance across the board, making it a true "foundation" objective.
Key Results
ORA consistently outperformed standard next-token prediction and time-only models across both datasets:
- Classification: On MIMIC-IV, ORA achieved an average 0.800 AUROC, outperforming the strongest non-ORA baselines.
- Time-to-Event (TTE): ORA reached a 0.815 C-index on MIMIC-IV, showing a superior ability to predict when diseases will manifest.
- Regression: ORA significantly outperformed NTP and TPP in predicting future lab values, showing that it successfully captures the underlying physiological trends in the data.
- Generalizability: The performance gains held steady when switching from a Transformer to a Mamba backbone, confirming the robustness of the objective.
Limitations and Future Work
The authors identify two primary areas for improvement:
- Quantile Sensitivity: The current model relies on fixed quantile bins for time and values. While scalable, this might struggle with "peaky" or multimodal distributions (e.g., a lab value that is almost always exactly the same). Future work could explore adaptive binning or continuous likelihood functions.
- Independence Assumption: The current version of ORA assumes that the first occurrences of different medical codes are conditionally independent given the patient's history. This is a simplification; in reality, a spike in one lab value is often highly correlated with the sudden appearance of a new diagnosis code. Relaxing this assumption could lead to even more powerful predictive capabilities.
Summary updated