One Loss to Rule Them All: Marked Time-to-Event for Structured EHR Foundation Models
Zilin Jing, Vincent Jeanselme, Yuta Kobayashi, Simon A. Lee, Chao Pang, Aparajita Kashyap, Yanwei Li, Xinzhuo Jiang, Shalmali Joshi
NeurIPS 2026
TL;DR. We present a marked time-to-event pretraining objective for EHR foundation models, enabling robust transfer across datasets, downstream tasks, and model backbones..
Abstract. Clinical events captured in Electronic Health Records (EHR) are irregularly sampled and may consist of a mixture of discrete events and numerical measurements, such as laboratory values or treatment dosages. The sequential nature of EHR, analogous to natural language, has motivated the use of next-token prediction to train prior EHR Foundation Models (FMs) over events. However, this training only captures the order of medical codes. When an event occurs and what its associated value is (e.g., an abnormal lab) also help predict the likelihood of future clinical events. To model the full observation process, we propose ORA (One loss to Rule them All), a marked time-to-event pretraining objective that jointly models event timing and associated measurements. Across multiple datasets, downstream tasks, and model backbones, this objective consistently yields more generalizable representations than next-token prediction and pretraining losses that ignore continuous measurements. Importantly, the proposed objective yields improvements beyond traditional classification evaluation, including better regression and time-to-event prediction. Beyond introducing a new family of FMs, our ablations suggest a broader takeaway: pretraining objectives that account for EHR structure are critical for expanding downstream capabilities and generalizability.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:48 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes a new training objective for EHR Foundation model that jointly models event prediction with the TTE for next event prediction. The motivation to propose an objective that takes into account the nature of the structured EHR records is very valuable. However, there are exist many work in this area that propose architectures and objectives that are designed to augment next token prediction with TTE. Some of these work are highlighted by the reviewers but similar approaches can also be found in medical foundation models (example: https://www.nature.com/articles/s41586-025-09529-3 ). The work needs to better acknowledge the existing work, highlight how the approach is different and what specific shortcomings it overcomes, or even include a comparison.
Also, regarding comparison and benchmarking, In EHR foundation model, design choices like how binning is done, how time is discretized, .... have a big impact on the performance, and many of the existing EHR foundation models have different strategies when in comes to this. Authors first need to clarify the design choices made for their method (as raised by reviewers as well), and then discuss how these choices impact the evaluation and comparison. Finally, Reviewer Un7j has raised a number of concerns regarding the code-base that require clarification during the rebuttal.
Final justification
The authors have made a substantial effort to address reviewers' concerns through the rebuttal. These additions have strengthen the paper and I believe they provide support for acceptance.
One main remaining concern among the reviewers is the paper's claims relative to its contributions. In particular, the framing of "One Loss Rules Them All" appears to be an overstatement given the marginal evidence in experimental results and mathematical formulation, so the authors should consider moderating this claim in the revised manuscript.
I would also strongly recommend that the additional experiments provided during rebuttal to be incorporated into the revised version of the paper. In particular, the manuscript should include the additional computational cost analysis, sensitivity experiments for hyperparameters like (T), and description of details regarding binning choices, baseline implementations, and other experimental settings.
Read meta-review
Meta-review
This paper proposes a new training objective for EHR Foundation model that jointly models event prediction with the TTE for next event prediction. The motivation to propose an objective that takes into account the nature of the structured EHR records is very valuable. However, there are exist many work in this area that propose architectures and objectives that are designed to augment next token prediction with TTE. Some of these work are highlighted by the reviewers but similar approaches can also be found in medical foundation models (example: https://www.nature.com/articles/s41586-025-09529-3 ). The work needs to better acknowledge the existing work, highlight how the approach is different and what specific shortcomings it overcomes, or even include a comparison.
Also, regarding comparison and benchmarking, In EHR foundation model, design choices like how binning is done, how time is discretized, .... have a big impact on the performance, and many of the existing EHR foundation models have different strategies when in comes to this. Authors first need to clarify the design choices made for their method (as raised by reviewers as well), and then discuss how these choices impact the evaluation and comparison. Finally, Reviewer Un7j has raised a number of concerns regarding the code-base that require clarification during the rebuttal.
Final justification
The authors have made a substantial effort to address reviewers' concerns through the rebuttal. These additions have strengthen the paper and I believe they provide support for acceptance.
One main remaining concern among the reviewers is the paper's claims relative to its contributions. In particular, the framing of "One Loss Rules Them All" appears to be an overstatement given the marginal evidence in experimental results and mathematical formulation, so the authors should consider moderating this claim in the revised manuscript.
I would also strongly recommend that the additional experiments provided during rebuttal to be incorporated into the revised version of the paper. In particular, the manuscript should include the additional computational cost analysis, sensitivity experiments for hyperparameters like (T), and description of details regarding binning choices, baseline implementations, and other experimental settings.
1 comment
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes ORA, a pretraining objective that, per medical code, jointly models the discretised time-to-next-occurrence and its value, with a censoring term. It is evaluated across classification, time-to-event, and lab-value regression, across two datasets and two backbones (Transformer, Mamba), and includes a fixed-tokeniser/backbone ablation. I appreciate the breadth and the clean ablation design, but I have concerns about whether fair and reproducible comparisons support the main claims.
Strengths and weaknesses
S1. EHR modelling, especially in the foundation model setting, for time-to-events is novel and timely, and I appreciate the authors' contribution. It is well-motivated.
S2. The ablation is well-designed and cleanly separates the methodological contribution.
I have reviewed the provided code, and the weaknesses below are partly informed by the implementation.
W1. The tabular baselines (classification, TTE) are built from code counts only, as far as I can see, and the featuriser discards all numeric lab values and vital signs, whereas ORA and foundation models use those values through the tokeniser. Thus, the gap to XGBoost is large on lab-driven tasks (mortality, LOS) and smaller on utilisation/onset tasks. This is an unfair empirical setup.
W2. The code trains LightGBM (not XGBoost), tunes it with just 10 trials, and uses a zero-hidden-layer linear network for the DeepHit baseline. Please clarify which one you used and provide a more fairly-tuned baseline. The near-random numbers (around 0.55 C-index) suggest an underpowered baseline and not necessarily a large ORA advantage.
W3. In MIMIC-IV, ICD diagnoses are per-admission billing codes with no independent onset date, so "time to first diagnosis" is the interval to the next admission where the code is recorded, and for outpatient-diagnosed chronic conditions (Celiac, MASLD), this is whether/when the patient returns to admission. Combined with last-contact censoring (subjects censored before the horizon are dropped), the IPCW C-index assumption of independent censoring is likely violated.
W4. The compute item under the checklist answers "Yes" citing "hardware type and compute information," but no GPU type, memory, or runtime appears in the main text that I could see, and the significance item claims 95% CIs on ORA–baseline differences with p=0.05 markers, but the tables show only an undefined per-cell std with no significance testing.
W5. The Fig. 2 TTE baseline (0.545) does not match the appendix DeepHit average (0.595), and the task-specific baseline should not be different between the Transformer and Mamba panels? Also, the released regression-baseline code targets different labs than the reported tasks. The last-value regression baseline beats all models on Creatinine/Platelets (R^2=0.88/0.91), averaging R^2 across tasks kind of hides this.
W6. I am worried that the contribution of ORA over SurvEHR/ICareFM is modelling time and value jointly rather than factorised, which is reasonable but incremental. The "full joint likelihood" / "one loss to rule them all" might be overstating this, since the objective assumes conditional independence across codes.
W7. ICareFM has no usable implementation out yet, and SurvivEHR provides the architecture but no weights as far as I am aware. Also, SurvivEHR was trained on primary care data. Are the reported results in your work your own reconstructions? Yet the released code supports only motor/tpp/mtpp/mtpp_shared/ntp and has no ICareFM or SurvivEHR loss that I could find in your provided code.
Questions
- With more fairly set-up baselines, does ORA still beat task-specific models on classification and TTE?
- Why is the baseline reported/cited as XGBoost when LightGBM is used?
- Per-task censoring rates and incident-vs-carried-forward fractions for the TTE tasks and justification for IPCW C-index under last-contact censoring.
- Fix the Fig. 2 vs Table 7 baseline and the regression baseline code/targets.
- Correct or substantiate the compute and significance checklist answers.
- Are concurrent events excluded from supervision?
- Respond to the foundation model implementation code weakness above.
Limitations
See above.
Final justification
Issues regarding code reproducibility, metric inclusion, and improved tuning results led to my increasing my score. However, I remain insufficiently convinced by the variety of baselines and datasets included, and the rigour of the contribution.
Formatting concerns
The provided zip of code still has your guidance documents for the coding agent you were using.
4 comments
Rebuttal by Authors (Part II)
R3.4 — Censoring and the IPCW C-index in MIMIC-IV.
Thank you for this observation. We agree with this limitation of EHR-based survival analysis. Diagnosis timing is tied to clinical visits rather than condition onset; therefore, “time to diagnosis” often captures healthcare-seeking behavior in addition to disease biology. Because censoring and diagnosis recording share this mechanism, the independent-censoring assumption underlying IPCW may be violated. This is a known limitation of EHR survival analysis rather than one unique to our study. Because all methods use the same endpoint and censoring protocol, the comparison remains controlled, although IPCW may not remove all bias.
We added this limitation and clarified that predictions reflect time to recorded diagnosis rather than true clinical onset. Future work could explore covariate-adjusted censoring models to mitigate this bias.
R3.5.1 — Misalignment of TTE results and task-specific baseline.
Thanks for the feedback. The task-specific TTE baseline in Figure 2 is 0.595, matching the DeepHit average in Table 7. The task-specific baselines are identical across the Transformer and Mamba panels. We will make the axis labeling clearer so this value is unambiguous.
We also updated the regression cohorts for baseline in the codes. The reported tasks are creatinine, platelets, oxygen, and glucose.
R3.5.2 — The most-recent-value baseline beats all models on creatinine/platelets.
Thanks for pointing this out. Detailed regression results are reported in Appendix D.1.3, Table 8. Most-recent-value imputation is particularly strong for labs with high short-term stability, such as creatinine and platelets: when a lab changes slowly, its latest observed value is already a strong predictor. In contrast, ORA performs best on measurements that change more quickly, such as PaO2 and glucose.
R3.6 — Incremental contribution and “full joint likelihood".
We understand this concern. As stated in line 110, most baselines model medical events using a purely autoregressive loss, which makes time-value dependence difficult to capture (see Response R1.7) and is sensitive to concurrent events. ORA instead uses a code-specific likelihood that predicts, for each medical code at every unique timestamp, both the time to its next occurrence and its associated value. Compared with next-event prediction, this provides denser supervision and better matches downstream tasks. We agree that the objective assumes conditional independence across codes and add this as a limitation.
A second contribution is our comprehensive ablation of pretraining losses. Prior studies often introduce multiple model changes together, making the effect of the loss difficult to isolate. In contrast, our experiments show that the proposed loss is the most balanced across tasks (Response R1.1), architectures, and datasets. We believe this controlled analysis can guide the design of future healthcare foundation models.
R3.7 — Are SurvivEHR and ICareFM your own reconstructions?
Yes. We reconstructed both models because neither provides usable implementations or checkpoints for MIMIC-IV and our institutional datasets. This enables controlled ablations focused on the pretraining objective: we keep the code vocabulary, tokenization, and backbone fixed as in Section 4.4, and vary only the loss. Implementations are provided at /src/ora/models/architecture.
We implemented each objective as faithfully as the released material allowed. SurvivEHR was ported from its official code, using the same DeSurv competing-risk parameterization and per-code Gaussian value heads [2]. ICareFM has no public implementation, so we followed Supplement B.2–B.3: 48 hourly hazard bins; prediction heads conditioned on the queried threshold and direction; thresholds resampled at every training step; and masked binary cross-entropy on the first threshold crossing. We will add all implementation details to Appendix 4.
R3.8 — Are concurrent events excluded from supervision?
No. All concurrent events are retained, which is important for ICU datasets such as MIMIC-IV. ORA supervises the first future occurrence of each code, so multiple codes sharing a timestamp each contribute their own loss term without imposing an ordering. Objectives that autoregressively model Δt to a single next event must break ties among simultaneous events, which may contribute to SurvivEHR’s lower classification and TTE performance.
R3.9 — Coding-agent guidance documents
Thanks for pointing this out. We used a coding agent to refactor and deidentify the codebase. We have removed the guidance documents from the repository.
Note for Relative Paths of Anonymous Github
-
R3.1-3.2 XGBoost and Deephit Baselines:
/src/ora/omop_meds_tutorial/evaluation/baseline -
R.3.7 SurvivEHR and ICareFM:
/src/ora/models/architecture
[2] SurvivEHR official codes: https://github.com/cwlgadd/SurvivEHR
Rebuttal by Authors (Part I)
We thank the reviewer for the feedback. We update the anonymous github repo here: https://anonymous.4open.science/r/EHR_TTE
R3.1 — The tabular baselines discard numeric values.
We provide a stronger baseline by including value statistics in XGBoost. Similar to MEDS-Tab [1], we add per-code numerical statistics (count, count, sum, sum_sqd, min and max) over nested 7-day and full-history windows for each numerical code occurring at least 10 times. The new classification results on MIMIC-IV are:
Table 3.1. Value-added XGBoost Performance.
| Model | in_hospital_mortality | long_los | readmission | ami | masld | stroke |
|---|---|---|---|---|---|---|
| Old XGBoost | 0.882 (0.005) | 0.748 (0.003) | 0.726 (0.003) | 0.807 (0.008) | 0.700 (0.020) | 0.708 (0.023) |
| Value-added XGBoost | 0.928 (0.004) | 0.799 (0.002) | 0.746 (0.002) | 0.828 (0.007) | 0.686 (0.016) | 0.671 (0.018) |
| ORA (ours) | 0.965 (0.002) | 0.841 (0.002) | 0.747 (0.003) | 0.832 (0.007) | 0.722 (0.020) | 0.711 (0.018) |
Adding numerical values improves mortality and LOS, while slightly decreasing performance on MASLD and stroke, showing that naively adding numerical information is not always beneficial. ORA consistently improves performance (Figure 3) and remains better than value-added XGBoost.
R3.2 — LightGBM vs XGBoost and a more fairly tuned DeepHit.
The experiments used XGBoost. The LightGBM files were stale and were not used; we removed them and added the exact XGBoost configuration to the repository.
For DeepHit, we added the same value-aware features and searched 72 configurations over learning rate {1e-3,1e-4}, batch size {1024,2048}, dropout {0,0.1}, hidden width {0,64,128}, and weight decay {0,1e-4,1e-2}. The best MIMIC-IV TTE results for each task are:
Table 3.2. Value-added Deephit Performance.
| Model | ami | masld | stroke |
|---|---|---|---|
| Old DeepHit | 0.651 (0.029) | 0.560 (0.024) | 0.574 (0.085) |
| Value-added + tuned DeepHit | 0.804 (0.028) | 0.509 (0.024) | 0.736 (0.045) |
| ORA | 0.833 (0.030) | 0.723 (0.020) | 0.890 (0.027) |
The value-added, better-tuned DeepHit improves over the old DeepHit on AMI and stroke but underperforms on MASLD. Thus, the effect of adding raw tabular values is task-dependent, whereas ORA outperforms both DeepHit baselines on all three TTE tasks.
R3.3 — Checklist: GPU type, memory, runtime, and significance testing.
We pretrain all models with four NVIDIA H100 NVL GPUs, each with 96 GB of VRAM. Training costs are provided in Response R1.4.
The tables below report 95% confidence intervals for the performance difference between ORA and each baseline. An asterisk indicates statistical significance at p < 0.05. We will add this to the appendix B. We use the original XGBoost and Deephit results.
Table 3.3. Significance Testing Between ORA and Other FM Baselines.
Binary classification (ΔAUROC)
| Method | Mortality | Long LOS | Readmission | AMI | MASLD | Stroke |
|---|---|---|---|---|---|---|
| XGBoost | [0.074, 0.093]* | [0.088, 0.098]* | [0.014, 0.023]* | [0.005, 0.029]* | [-0.025, 0.048] | [-0.036, 0.037] |
| NTP | [0.033, 0.047]* | [0.036, 0.043]* | [0.011, 0.020]* | [0.004, 0.027]* | [-0.014, 0.055] | [-0.014, 0.054] |
| MOTOR | [0.007, 0.015]* | [0.005, 0.011]* | [-0.002, 0.005] | [-0.007, 0.010] | [-0.010, 0.030] | [-0.023, 0.026] |
| ICareFM | [0.025, 0.037]* | [0.041, 0.049]* | [0.022, 0.031]* | [0.011, 0.036]* | [0.022, 0.084]* | [0.024, 0.096]* |
| SurvivEHR | [0.059, 0.076]* | [0.103, 0.113]* | [0.026, 0.035]* | [0.011, 0.035]* | [0.001, 0.064]* | [0.069, 0.152]* |
Time-to-event (ΔC-index)
| Model | AMI | MASLD | Stroke |
|---|---|---|---|
| DeepHit | [0.029, 0.170]* | [0.199, 0.323]* | [0.266, 0.465]* |
| NTP | [-0.016, 0.096] | [-0.019, 0.055] | [0.039, 0.319]* |
| MOTOR | [-0.004, 0.055]* | [-0.004, 0.076]* | [-0.008, 0.114]* |
| ICareFM | [0.014, 0.136]* | [0.036, 0.123]* | [-0.025, 0.155] |
| SurvivEHR | [0.025, 0.128]* | [0.014, 0.098]* | [-0.056, 0.175] |
Regression (ΔR²)
| Method | Platelets | PaO2 | Glucose | Creatinine |
|---|---|---|---|---|
| Most Recent | [-0.313, -0.298] | [0.653, 0.741]* | [0.145, 0.298]* | [-0.290, -0.246] |
| NTP | [0.287, 0.300]* | [0.002, 0.014]* | [0.002, 0.012]* | [0.104, 0.124]* |
| MOTOR | [0.300, 0.315]* | [0.031, 0.041]* | [0.019, 0.030]* | [0.037, 0.058]* |
| ICareFM | [-0.245, -0.232] | [-0.023, -0.011] | [0.039, 0.066]* | [-0.205, -0.147] |
| SurvivEHR | [0.160, 0.176]* | [0.075, 0.091]* | [-0.016, -0.003] | [-0.016, 0.008] |
Across 13 tasks in three families, ORA significantly outperforms each comparison model on at least 9–10 tasks. ORA is significantly worse than ICareFM on three regression tasks, but ICareFM performs worse on classification and TTE tasks. Overall, ORA provides the most balanced performance across task families.
[1] Oufattole, Nassim, et al. “MEDS-Tab: Automated tabularization and baseline methods for MEDS datasets.” arXiv:2411.00200 (2024).
I appreciate the rebuttal by the authors. I have updated my score according to the convincingness of the rebuttal as well as how much the final paper could contribute.
Official Comment by Authors
Dear Reviewer,
Thank you for revisiting our rebuttal and updating your score. We greatly appreciate your careful and constructive feedback. We hope that the strengthened value-aware baselines, repository updates, and clarifications regarding censoring, significance testing, and concurrent events have addressed your main concerns. If any substantive concern remains unresolved, we would be grateful to hear it and would be happy to provide further clarification. Otherwise, given that the additional results continue to support our central claims, would you kindly consider raising your score? Thank you again for your time and thoughtful consideration.
Sincerely,
The Authors
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes ORA, a pretraining objective for structured EHR foundation models. The objective is based on the likelihood of patient trajectories characterized by a code-specific marked point process. The likelihood of a trajectory factorizes into the joint conditional likelihood of the time to the next event, value, and censoring indicator for each medical code given the history. The joint conditional likelihood can be further expressed by the intensity function of time and value, which are discretized so the intensity can be represented by a matrix. The paper experimented with both transformer and Mamba backbones on MIMIC-IV and a proprietary hospital dataset. After training the sequence models on the EHR records, they use linear probing to evaluate on various downstream tasks: binary classification, time-to-event prediction, and regression. ORA shows an overall improvement over prior EHR models. Further ablation studies isolated the effect of the loss functions with the tokenizer and backbone fixed and found that ORA is better than the next-token prediction loss that does not model next event time and numerical value, and the temporal point process-style loss that models the time of the next event but not the numerical value.
Strengths and weaknesses
Strengths:
- Clear formulation and motivation. The paper focuses on the pre-training objective of EHR records. It identifies the gaps in the pre-training objectives of prior work and proposes a new objective that jointly models time, value, and censoring. It does not introduce new sequence modeling architectures or tokenization techniques to confound the effect of the proposed objective.
- The work evaluates on a variety of downstream tasks including classification, regression, and time-to-event prediction, showing the generality of representation learning with ORA.
- The experiments include an important ablation that only isolates the effects of the objective functions, which is the core contribution of the paper, and show that ORA outperforms next-token prediction and temporal point process-style loss overall.
Weaknesses:
- Eq. 2 implicitly upweights later events, and this is not discussed. In the true likelihood (Eq. 1), each event appears as a target exactly once: for a three-event trajectory with three distinct codes, . In ORA's Eq. 2, every position contributes one factor per code: the first future occurrence of that code. So in the same example, event 3 (the first occurrence of ) is supervised at positions j=0, 1, 2 (three factors), event 2 at j=0, 1 (two factors), and event 1 at j=0 (one factor). The paper would be strengthened by acknowledging this asymmetry and reporting a stratified evaluation: on recursive prediction tasks, stratify test predictions by the number of events preceding the prediction time and compare ORA's gains over baseline methods or objectives across strata. If gains are uniform, the reweighting is empirically benign.
- The ablation study does not consider other marked temporal point process (MTPP) loss functions. The closest baselines in spirit to ORA, SurvivEHR and ICareFM, also use MTPP losses with different assumptions and tradeoffs. If ORA can show stronger performance over SurvivEHR and ICareFM’s losses with the same tokenizer and backbone model, then we can confirm that the ORA-specific tradeoffs and assumptions are better justified. Without this, the critique against SurvivEHR and ICareFM in Section 5.1 rests on a confounded comparison.
- Computing resources (hardware, time, memory) are not reported, contradicting the checklist response.
Questions
- The discretization is quite coarse (T = 8, V = 5). Do you have any insights on why that outperforms finer-grained hyperparameters? In Appendix B.4, you mentioned that more bins increase the number of parameters in the projection head and require longer training. Do you think that the finer-grained hyperparameters can match or even surpass the coarse-grained hyperparameters if the model is trained long enough?
- Section 5 explains why ICareFM outperforms ORA on regression. The provided explanation is that ICareFM isolates abnormal numerical events in its loss function. I am interested in the objective function perspective. Unlike ORA and SurvivEHR, ICareFM does not include value prediction in its pre-training objective but has the best regression performance. Intuitively speaking, its representations should be good for time-to-event prediction but not value regression. Therefore, ICareFM’s regression performance is surprising to me. Do you think the fact that abnormal numerical events are isolated in the loss function cancels out the fundamental defect of ICareFM’s objective function? Or are there other factors positively contributing to ICareFM’s performance on regression tasks?
Limitations
yes
Final justification
Updated after rebuttal: score raised from 4 to 5. The authors addressed the weaknesses I raised with a stratified evaluation, a controlled MTPP ablation, and reported compute requirements.
Formatting concerns
None
4 comments
Rebuttal by Authors (Part II)
R2.4 — Why does coarse discretization (T=8, V=5) win, and would finer bins win with a longer budget? Will the finer-grained hyperparameters match or surpass the coarse-grained hyperparameters with enough training?
Thanks for the question. It is possible that finer discretizations surpass coarser ones. In Appendix B.4, we report sensitivity analysis results on MIMIC-IV. We train each model with different {T,V} configuration until convergence and evaluate their downstream performance. The {T=8, V=5} wins over the others and {T=8, V=10} outperforms others in our institutional dataset, demonstrating this may depend on data distributions. While finer-grained intervals may better represent the true underlying distribution of the original value, there are fewer observed events per parameter to estimate, resulting in an empirical trade-off between model flexibility and data availability. We see a similar trend in MOTOR [1], which found that T=8 only slightly outperforms T=16 (see Figure 3).
Since we see the performance plateau, and because of the large computational cost associated with it, we don't do a full grid search with a much larger range of T and V. Future work could systematically investigate whether larger datasets shift the optimal discretization toward finer-grained settings.
R2.5 — Why does ICareFM win regression without an explicit value term?
ICareFM's objective does model values. It predicts whether a measurement will cross a threshold within 48 hours, and is redrawn at random across the whole value range at every training step — it is not fixed at an abnormal cutoff. Modeling P(v > ) is equivalent to modeling the cumulative density function associated with the value distribution, and therefore modeling the future value. Asking "will the value exceed ?" for many different is equivalent to learning the full distribution of the future value; ICareFM's supplemental details describe exactly this, recovering expected future values by sweeping (Suppl. Eq. 7). So the intuition that its representations should be good for timing but not for values does not hold: it is trained on a sweep-based encoding of the value distribution.
ORA’s likelihood uses both non-numerical and numerical codes leading to a balanced supervision, whereas ICareFM gradients provide stronger supervision for numerical value. However, because ICareFM ignores non-numerical codes entirely, it is one of the weakest baselines on the other two task families: on MIMIC-IV it reaches a C-index of 0.736 versus ORA's 0.815, and an AUROC of 0.761 versus 0.800, which is worse than vanilla next-token prediction on time-to-event. We will update the manuscript to provide the intuition that ORA reaches competitive regression performance while remaining best on classification and time-to-event, whereas ICareFM excels at regression but not the other task classes.
Rebuttal by Authors (Part I)
R2.1 - Stratify test predictions by the number of events preceding the prediction time and compare ORA's gains over baselines across strat.
We thank the reviewer and agree with your comment that an event late in a trajectory contributes more to the loss than an early one in Eq. 2 . We will state this more explicitly in Sec. 3.1. We follow your advice to design the stratified evaluation. For each task cohort, we count the events preceding every held-out prediction point and split the cohort at the 33rd/67th percentiles of that distribution into short, mid, and long context strata of equal size. We then compare each model against ORA's performance: Δ = metric(ORA) − metric(baseline) across the long (Δlong) and short (Δshort) strata, with a 95% bootstrap CI and resampling shared across models. The table below shows that ORA's advantage does not grow with context length. Across the ten binary and regression tasks, every long−short difference lies within ±0.035 and six of eight confidence intervals cover zero, indicating the difference across strata to be nonsignificant. On TTE, the point estimates are larger, but all four intervals cover zero.
Table2.1. Stratified Experiments Results. Δ = metric(ORA) − metric(baseline).
Binary - AUROC, averaged over 6 subtasks
| baseline | Δshort | Δlong | Δlong − Δshort |
|---|---|---|---|
| Context Clues | +0.047 | +0.040 | −0.007 [−0.031, +0.016] |
| iCareFM | +0.042 | +0.041 | −0.002 [−0.027, +0.022] |
| MOTOR | +0.009 | +0.002 | −0.007 [−0.022, +0.010] |
| SurvivEHR | +0.048 | +0.058 | +0.010 [−0.019, +0.037] |
TTE - C-index, averaged over 3 subtasks
| baseline | Δshort | Δlong | Δlong − Δshort |
|---|---|---|---|
| Context Clues | +0.077 | −0.007 | −0.084 [−0.193, +0.011] |
| iCareFM | +0.049 | +0.061 | +0.012 [−0.104, +0.131] |
| MOTOR | +0.021 | +0.094 | +0.074 [−0.009, +0.156] |
| SurvivEHR | +0.022 | +0.022 | −0.000 [−0.141, +0.112] |
Regression - R², averaged over 4 subtasks
| baseline | Δshort | Δlong | Δlong − Δshort |
|---|---|---|---|
| Context Clues | +0.177 | +0.168 | −0.009 [−0.024, +0.007] |
| iCareFM | −0.120 | −0.085 | +0.035 [+0.014, +0.055] |
| MOTOR | +0.112 | +0.096 | −0.016 [−0.026, −0.007] |
| SurvivEHR | +0.059 | +0.058 | −0.001 [−0.014, +0.011] |
R2.2 - The ablation study doesn't consider SurvivEHR and ICareFM.
Thanks for the question. As both SurvivEHR and ICareFM have no usable checkpoints on MIMIC-IV and Institutional Dataset, we re-implement the two models, with the exact same code vocabulary, tokenizer and backbone as MOTOR (also the same as for the ablation studies in Section 4.4). We fix the tokenization to MOTOR's as it uses joint event encoding for codes and RoPE with ages for time information, which outperforms other alternatives on most downstream tasks according to prior work [2]. To exclusively study the impact of the loss function, we implement the losses from SurvivEHR codebase and ICareFM paper (ICareFM has no released code; see Response R3.7 for details). We can therefore directly compare the two models in Figure 2 with the ablation studies in Figure 3. The aggregated results on MIMIC-IV with the Transformer backbone are as follows:
Table2.2. Ablation Study Between ORA, SurvivEHR and ICareFM.
| Objective | Classification (AUROC) | Time-to-event (C-index) | Regression (R²) |
|---|---|---|---|
| SurvivEHR | 0.739 | 0.752 | 0.356 |
| ICareFM | 0.761 | 0.736 | 0.511 |
| ORA | 0.800 | 0.815 | 0.415 |
Over all 13 MIMIC-IV tasks, ORA wins 11/13 against SurvivEHR and 10/13 against ICareFM. SurvivEHR's factorization of time from value and its inability to handle concurrent events degrade performance on all tasks; ICareFM buys its regression advantage by spending all supervision on numerical variables, and pays for it on the other two families.
R2.3 — Compute resources (hardware, time, memory) are not reported.
We pretrain all models with 4 NVIDIA H100 NVL GPUs with 96GB of VRAM. The training time and FLOPs are reported in the table below.
Table2.3. Training time and cost.
| Model | Training hours | Training TFLOPs |
|---|---|---|
| Context Clues-Llama | 4.7 | 0.9M |
| MOTOR | 8.6 | 1.7M |
| SurvivEHR | 49.3 | 1.8M |
| ICareFM | 10.0 | 2.9M |
| ORA | 15.0 | 2.8M |
Official Comment by Authors
Dear Reviewer,
Thank you for your thoughtful review. We hope that our rebuttal has addressed your concerns. In particular, we conducted the suggested stratified evaluation, provided controlled comparisons with SurvivEHR and ICareFM, and added analyses of computational cost and discretization. If any substantive concerns remain, we would be grateful for the opportunity to clarify them. Otherwise, would you kindly consider raising your score? Thank you again for your time and consideration.
Sincerely,
The Authors
Thank you for the thorough response. Most of my concerns have been addressed.
The stratified evaluation in R2.1 is the experiment I hoped to see, and the results support the empirically benign outcome as a valid resolution. The controlled ablation against SurvivEHR and ICareFM in R2.2 is substantive. The compute resources in R2.3 address my third weakness and should be added to the appendix.
R2.5 is clarifying. The description of ICareFM as sweeping thresholds across the value range rather than fixing them at abnormal cutoffs addresses the question I raised. It would help to update the Section 2 description of ICareFM in the revision to reflect the threshold-sweep interpretation.
Given the quality of the rebuttal, I have raised my score.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces ORA, a marked time-to-event pretraining objective for structured EHR foundation models. The proposed objective jointly models event timing and associated measurements, aiming to better capture the irregular and mixed-type nature of EHR data. The authors evaluate ORA across multiple datasets, downstream tasks, and model backbones, and report that it improves performance compared with standard next-token prediction and other pretraining objectives.
Strengths and weaknesses
Strengths:
- The paper studies the pretraining objective for structured EHR foundation models, which is an important and timely problem.
- The proposed marked time-to-event objective is mathematically supported and provides a reasonable way to model both event timing and associated measurements.
- The experiments are conducted across different model backbones and downstream tasks, which strengthens the empirical evaluation.
- The paper suggests an important broader message: EHR-specific pretraining objectives may be necessary for improving generalizability beyond standard next-token prediction.
Weaknesses:
- One major concern is that, in Figure 2, ORA does not appear to substantially outperform the baselines in many settings. The reported improvements seem modest in several cases.
- Some important implementation details are not fully clarified. For example, the paper should explain how time and value bins are defined, whether the binning strategy is consistent across datasets, and whether comparable information is provided to the baseline methods. Since the proposed objective relies on discretizing time and measurement values, these design choices may have an impact on performance.
- The paper also lacks sufficient ablation studies on key hyperparameters. It is unclear how sensitive ORA is to the number of time bins, value bins, and other design choices. Additional ablations would help determine whether the method is robust or requires careful tuning.
- Another concern is computational cost. Jointly modeling event timing and measurement values may introduce additional memory or training overhead compared with standard next-token prediction. The paper would be stronger if it reported the computational cost, training time, and scalability of ORA relative to the baselines.
- Finally, since continuous values are discretized into bins, it is not fully clear how the model supports downstream regression tasks. The authors should clarify whether regression performance comes from converting binned predictions back to continuous values, or from task-specific fine-tuning.
Questions
- What is the “institution dataset” mentioned in Line 194? Could the authors provide a reference, description, or link if available?
- What is the motivation for modeling time-to-event and measurement values within a single joint loss? Would a combination of two separate losses, one for event timing and one for values, achieve similar performance?
Limitations
Yes
Final justification
The rebuttal has partially addressed my concerns regarding performance, efficiency, and dataset details, and most of the authors’ explanations are reasonable. However, I remain my concern about the ranking claims cannot be particularly strong given the relatively small performance margins.
Formatting concerns
No
4 comments
Rebuttal by Authors (Part II)
R1.6 — What is the institutional dataset?
Thank you for raising this question. The institutional dataset is a de-identified EHR corpus from a large urban U.S. academic medical center. It contains approximately 6.7 million patients and inpatient, outpatient, primary-care, and emergency encounters from 1986–2023, including diagnoses, procedures, medications, laboratory tests, and visit information. It is mapped to the OMOP common data model and converted to the same event-stream format as MIMIC-IV, so both datasets use an identical pipeline. Tasks follow the same published benchmark suite used for MIMIC-IV and can therefore be reproduced on any OMOP source. The data cannot be publicly redistributed under the data-use agreement. To preserve anonymity, we cannot cite the dataset paper during review, but we will cite it in the final version. We will add the following summaries, together with cohort sizes, event counts, code-type breakdowns, and split sizes, to the revised appendix.
Table 4: Demographic distribution of MIMIC-IV and institutional data.
| MIMIC-IV% (n) | Institutional% (n) | |
|---|---|---|
| Sex | ||
| Female | 52.7 (191,984) | 55.7 (3,744,185) |
| Male | 47.3 (172,643) | 44.0 (2,955,940) |
| Missing | 0.0 (0) | 0.3 (16,814) |
| Ethnicity | ||
| Hispanic or Latino | 3.6 (13,303) | 8.3 (557,173) |
| Not Hispanic or Latino | 54.1 (197,088) | 16.6 (1,118,232) |
| Missing | 42.3 (154,236) | 75.1 (5,041,534) |
| Race | ||
| Asian | 2.7 (9,741) | 1.2 (83,697) |
| Black or African American | 7.9 (28,981) | 5.9 (396,677) |
| Native Hawaiian or Other Pacific Islander | 0.1 (266) | 0.1 (6,534) |
| Native American or Alaskan Native | 0.1 (502) | 0.1 (7,443) |
| White | 41.2 (150,073) | 16.9 (1,133,364) |
| Other | 3.5 (12,643) | 14.1 (944,342) |
| Missing | 44.5 (162,421) | 61.7 (4,144,882) |
Table 5. Mean (standard deviation) number of events by data type available in MIMIC-IV and institutional data.
| MIMIC-IV | Institutional | |
|---|---|---|
| Healthcare utilization (distinct events per year) | 16,816.6 (58,562.9) | 118.4 (162.1) |
| Conditions (occurrences per year) | 169.2 (414.6) | 98.9 (392.9) |
| Medications (occurrences per year) | 1,046.2 (3,077.3) | 84.3 (508.6) |
| Procedures (occurrences per year) | 82.1 (316.9) | 45.8 (222.7) |
| Lab Tests (occurrences per year) | 14,190.4 (52,040.3) | 817.0 (4,823.0) |
R1.7 — Why one joint loss rather than two separate losses?
Thanks for this question. The main motivation is that when an event happens and what values it carries are not independent in EHR data. For example, an ICU lab test is often ordered because an abnormal result is suspected: creatinine redrawn two hours later signals suspected deterioration and is far more likely to be extreme, while the same test at twenty-four hours is routine surveillance.
One of the baselines captures the alternative you suggested. For example, SurvivEHR assumes that time t and value v are conditionally independent given the history H: P[t,v|H] = P[t|H] · P[v|H], and fits two separate loss functions. It is one of the weakest baselines on classification and time-to-event (0.739 AUROC and 0.752 C-index vs. ORA's 0.800 and 0.815).
Note that SurvivEHR uses a different parametrization of the time and value functions. Based on your comment, we also report a fairer ablation model called ORA-Factorized. The only difference from the original ORA is that ORA-Factorized fits two separate heads: one for censoring-aware time-to-event intervals and one for numerical values. We pretrained it with the Transformer backbone on MIMIC-IV, and the downstream performance is as follows:
Binary classification — AUROC
| Model | Mortality | LOS | Readmission | AMI | MASLD | Stroke | Average |
|---|---|---|---|---|---|---|---|
| ORA (joint) | 0.965 (0.002) | 0.841 (0.002) | 0.745 (0.003) | 0.827 (0.007) | 0.714 (0.017) | 0.711 (0.018) | 0.801 |
| ORA-Factorized | 0.933 (0.003) | 0.801 (0.003) | 0.735 (0.003) | 0.823 (0.008) | 0.708 (0.019) | 0.694 (0.024) | 0.782 |
Time-to-event — C-index
| Model | AMI | MASLD | Stroke | Average |
|---|---|---|---|---|
| ORA (joint) | 0.833 (0.030) | 0.723 (0.020) | 0.890 (0.027) | 0.815 |
| ORA-Factorized | 0.817 (0.031) | 0.701 (0.018) | 0.871 (0.027) | 0.796 |
Regression — R²
| Model | Creatinine | Platelets | PaO₂ | Glucose | Average |
|---|---|---|---|---|---|
| ORA (joint) | 0.603 (0.028) | 0.605 (0.003) | 0.267 (0.005) | 0.186 (0.018) | 0.415 |
| ORA-Factorized | 0.573 (0.029) | 0.449 (0.004) | 0.266 (0.005) | 0.168 (0.016) | 0.364 |
Factorizing the joint objective degrades performance on every one of the three task families. This comparison indicates the necessity of modeling the time-value dependence in EHR trajectories.
Rebuttal by Authors (Part I)
R1.1 — Improvements over baselines look modest.
We agree that the family-averaged bars in Figure 2 are close and that the gains are modest. However, our evaluation is broader than those of prior published models, spanning classification, regression, and time-to-event (TTE) tasks. The prediction and TTE tasks are also challenging by design because they use at-risk cohorts, for which discrimination is more difficult (Line 455). To evaluate overall competitiveness, we additionally report the ranks of five foundation models across all 28 dataset–task evaluations from two datasets:
| Model | Best | Top-2 | Median rank | Worst |
|---|---|---|---|---|
| ORA (ours) | 16/28 | 22/28 | 1 | 0/28 |
| MOTOR | 1/28 | 15/28 | 2 | 0/28 |
| SurvivEHR | 3/28 | 8/28 | 3 | 8/28 |
| ICareFM | 7/28 | 7/28 | 4 | 9/28 |
| Context Clues | 1/28 | 4/28 | 4 | 11/28 |
ORA ranks first in 16 of 28 evaluations, ranks in the top two in 22, and is never the worst-performing model. This shows that ORA is the most balanced model across tasks. In contrast, the other MTPP-based models, SurvivEHR and ICareFM, perform best on several regression tasks but rank last on approximately one-third of the evaluations, suggesting that their objectives are better suited to a narrower set of downstream applications.
R1.2 — How are time and value bins defined, are they consistent across datasets, and do baselines receive comparable information?
Thanks for raising this question. We define the time and value bins in Lines 155–160. For each code, we compute the empirical distribution of the time since its previous occurrence (T) and, for numerical codes, its value distribution (V). Quantile boundaries are derived from these distributions so that labels are approximately uniform across bins. We conducted sensitivity analyses over different {T,V} configurations for each dataset; detailed results are reported in R2.2.
Among the baselines, only MOTOR and ICareFM discretize time in their objectives. MOTOR conducted a similar grid search and selected T=8. ICareFM divides future intervals into one-hour bins and does not report a grid search.
R1.3 — Sensitivity to the number of time and value bins.
Appendix B.4 reports an ablation over T ∈ {8,16} and V ∈ {5,10}. We select {T=8,V=5} for MIMIC-IV because it achieves the lowest average rank (1.33) across downstream tasks. We conducted the same ablation on the institutional dataset and selected {T=8,V=10}, which also achieves the lowest average rank.
R1.4 — Computational cost and training time of ORA.
Thank you for the suggestion. We pretrain each foundation model on one NVIDIA H100 GPU with 96 GB of VRAM for up to 20 epochs, using early stopping with a patience of 3. As shown below, ORA is more expensive than Context Clues-Llama and MOTOR, which do not model numerical values in their training objectives, but is comparable to SurvivEHR and ICareFM, which model both time and value. The additional cost is therefore primarily attributable to modeling numerical values rather than to ORA's architecture.
| Model | Training hours | Total TFLOPs |
|---|---|---|
| Context Clues-Llama | 4.7 | 0.9M |
| MOTOR | 8.6 | 1.7M |
| SurvivEHR | 49.0 | 1.8M |
| ICareFM | 10.0 | 2.9M |
| ORA | 15.0 | 2.8M |
R1.5 — How do discretized bins support continuous regression downstream?
Thanks for the question. The regression performance does not come from converting binned predictions back to continuous values, and there is no task-specific fine-tuning. Every downstream result in the paper is linear probing. At inference time,we extract the representation (before the TxV pretraining heads) and fit a task-specific head (logistic regression for classification, DeepHit for time-to-event, ordinary linear regression for lab regression). Essentially, the representation captures variability in lab values at least at a coarse-level, despite using discretized bins during pretraining, compared to baselines that do not model numerical models at all. Compared to baselines that model numerical codes, either discretized or continuous, ORA’s regression gain is not uniform, but ORA conversely performs better in prediction and time-to-event tasks compared to these baselines. Overall, we find that discretization is not entirely sufficient but improves performance broadly across all three classes of tasks, albeit variably. Scaling our method while modeling continuous values, but our joint modeling is critical to integrate for future work.
Official Comment by Authors
Dear Reviewer,
We sincerely thank you for your thoughtful review. We hope that our rebuttal has addressed your concerns. In particular, we reported the computational cost, provided a controlled factorized ORA ablation, clarified the relative improvement, and explained the discretization strategy. If any substantive concerns remain, we would be grateful for the opportunity to clarify them. Otherwise, would you kindly consider raising your score? Thank you again for your time and consideration.
Sincerely,
The Authors
Thank the authors for the additional experiments and detailed rebuttal. The response partially addressed my concerns regarding performance, efficiency, and dataset details. I have therefore raised my score.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal by Authors
We thank the AC for a meta-review that states precisely what the paper must establish. We answer the three points in order.
R0.1 Positioning against existing work that augments next-token prediction with time-to-event.
Thanks for raising this important point. We have a comprehensive comparison between our method and the existing baselines in Figure 1 and Table 1 (Appendix A). Following your suggestion, we add Delphi and present a clear distinction here:
"Mixed-type events" denotes whether the model can monitor both numerical and non-numerical codes in the loss function. "Time–Value Dependence" indicates whether the model considers the dependence between the time and the value of the same event (see Response 1.7 for more details). "Robust to concurrent events" denotes the ability to predict co-occurring events. "Censoring-Aware" refers to whether the model accounts for censored cases in its likelihood.
R0.2 How are the design choices made? What is their impact on downstream performance?
We agree that hyperparameter choice and its impact on downstream performance are critical. We discuss our design choices for both the tokenization and the loss function.
Input tokenization is held fixed to MOTOR's. Our goal is to isolate the impact of loss function. Hence, we fix other design aspects, using state-of-art tokenizations from MOTOR [1]. It uses joint event encoding for codes and RoPE with ages for time information, outperforming other alternatives on most downstream tasks [2]. This tokenization is used across ORA and all ablation studies in Section 4.4. We also evaluate two different backbones (Transformers and Mamba) to test the generalizability of our proposed loss across different architectures. More details can be found in Lines 166-183.
Hyperparameter grid search for output binning. We define the time and value bins in Lines 155-160. For each code, we compute the empirical distribution of the time interval since its previous event (T) and, for numerical codes, its value distribution (V). The quantile boundaries are determined by the empirical distribution, so we ensure that the true labels are approximately uniformly distributed over the bins. For the hyperparameter search, we have reported an ablation over
T ∈ {8, 16} × V ∈ {5, 10}in Appendix B.4. Specifically, we select{T=8, V=5}for MIMIC-IV as it has the best average performance on all downstream tasks. We also did an additional ablation study on Institutional Dataset and chose{T=8, V=10}as it achieves the best average rank. For other papers that also use discretized bins in their loss function, we fix their hyperparameters consistent with their original papers: 48 hourly hazard bins for ICareFM and T=8 time bins for MOTOR.R0.3 Reviewer Un7j's concerns about the codebase.
Reviewer un7j mainly raises three concerns about the codebase. We updated our anonymous GitHub repo at https://anonymous.4open.science/r/EHR_TTE/ and answer the questions as follows:
(1) The anonymous repository did not contain the SurvivEHR or ICareFM losses. We thank the reviewer for pointing out this mistake. We update the codes by including our implementations of both baseline models. We also explain in details how we implement the loss functions to stay as close as possible to the original papers.
(2) The code has no implementation consistent with the XGBoost model reported in the paper
We add the XGBoost implementation to the repo and clarify the error.
(3) The tabular baseline has no value information and the DeepHit model is not fairly tuned
We added a new meds_tab baseline that includes value statistics during feature extraction, and we did a grid search over 72 different configurations for the DeepHit model, with results reported in our response to reviewer Un7j. Both updates are included in the repo.
[1] Steinberg et al.,"MOTOR: A time-to-event foundation model for structured medical records."
[2] Guo, Lin Lawrence, et al. "Tokenization tradeoffs in structured EHR foundation models." arXiv preprint arXiv:2603.15644 (2026).