# One Loss to Rule Them All: Marked Time-to-Event for Structured EHR Foundation Models

*Zilin Jing, Vincent Jeanselme, Yuta Kobayashi, Simon Lee, Chao Pang, Aparajita Kashyap, Yanwei Li, Xinzhuo Jiang, Shalmali Joshi*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150016) · [OpenReview](https://openreview.net/forum?id=lNy0GEHZYE) · [Open on the map](../papers.html#p150016)

Category: [Causality, Privacy & Learning Theory](../pcat/11.md) › [Longitudinal Clinical Risk Modeling](../pgroup/569.md) · Type: new method · Keywords: time-to-event modeling, clinical event sequences, foundation models, pretraining objectives, generalization, healthcare AI

Areas: [Evaluation & Benchmarks](../areas/evaluation.md) › Multidisciplinary Model Benchmarks › Event Stream Modeling

## Summary
ORA introduces a marked time-to-event pretraining objective that jointly models event timing and associated measurements, yielding more generalizable representations for sequential clinical data than prior next-token prediction approaches.

## Explained to a 5-year-old
We want a computer to learn when important things happen in a patient's health record and also what numbers are involved. The computer is taught using a special loss that looks at both the timing and the values together. This helps the computer make better predictions about health outcomes. Over many examples, the computer gets better at guessing when events will occur and how they will affect each other.

## Explained to a 5-year-old, longer
Imagine a doctor writes down when a patient gets a fever and also writes down the temperature. The computer reads these notes and wants to understand both when the fever happened and how hot it was. The old way only looked at when events happened, like reading a story word by word. The new way looks at both the time and the numbers together. This helps the computer learn more about how health events are connected. By training on many patient records, the computer can predict future health problems more accurately. It also works well for different types of predictions, like how long until a condition worsens or how a lab value will change. The researchers showed that this new training method works better than the old one on many different datasets and tasks. They also found that focusing on both timing and values helps the model generalize to new situations, which is useful for real-world medical care.

## For a technical reader
The paper proposes a new pretraining loss that models both event timing and associated continuous measurements for sequential clinical data. This marked time-to-event objective is trained alongside standard next-token prediction, allowing the model to capture richer temporal and value information. Experiments across multiple datasets and downstream tasks demonstrate that this joint modeling leads to more generalizable representations and better performance on regression and survival predictions. The authors also provide ablations showing the importance of accounting for measurement values in the pretraining objective.

## Problem
Models trained on irregularly sampled clinical event sequences using next-token prediction fail to capture both the timing of events and the influence of event values on subsequent events, limiting their ability to model the full observation process.

## Method
The approach introduces a marked time-to-event pretraining objective that jointly models the timing of events and the associated continuous measurements, training the model to predict both when events occur and their values.

## Results
The approach achieved more generalizable representations and improved performance on regression and time-to-event prediction tasks compared to baseline methods.

## Contributions
A new pretraining objective that jointly models event timing and measurements for sequential clinical data, and evidence that accounting for such structure enhances downstream generalization across tasks and model architectures.

## Practical relevance
By incorporating clinical event structure into foundation models, this work enables more reliable and generalizable predictions for real-world healthcare applications.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150016)
