TIMER: Temporal Instruction Modeling and Evaluation for Longitudinal Clinical Records

Abstract

Large language models (LLMs) have emerged as promising tools for assisting in medical tasks, yet processing Electronic Health Records (EHRs) presents unique challenges due to their longitudinal nature. While LLMs' capabilities to perform medical tasks continue to improve, their ability to reason over temporal dependencies across multiple patient visits and time frames remains unexplored. We introduce TIMER (**T**emporal **I**nstruction **M**odeling and **E**valuation for Longitudinal Clinical **R**ecords), a synthetic data generation framework that incorporates temporal distribution of instructions as a critical dimension in both instruction evaluation and tuning for longitudinal clinical records. We develop TIMER-Bench, the first time-aware benchmark that evaluates temporal reasoning capabilities over longitudinal EHRs, as well as TIMER-Instruct, an instruction-tuning methodology for LLMs to learn reasoning over time. We demonstrate that models fine-tuned with TIMER-Instruct improve performance by 7.3% on human-generated benchmarks and 9.2% on TIMER-Bench, indicating that temporal instruction-tuning improves model performance for reasoning over EHR. Our code is available at [TIMER](https://anonymous.4open.science/r/TIMER-2874).

Cite

Text

Cui et al. "TIMER: Temporal Instruction Modeling and Evaluation for Longitudinal Clinical Records." ICLR 2025 Workshops: SynthData, 2025.

Markdown

[Cui et al. "TIMER: Temporal Instruction Modeling and Evaluation for Longitudinal Clinical Records." ICLR 2025 Workshops: SynthData, 2025.](https://mlanthology.org/iclrw/2025/cui2025iclrw-timer/)

BibTeX

@inproceedings{cui2025iclrw-timer,
  title     = {{TIMER: Temporal Instruction Modeling and Evaluation for Longitudinal Clinical Records}},
  author    = {Cui, Hejie and Unell, Alyssa and Chen, Bowen and Fries, Jason Alan and Alsentzer, Emily and Koyejo, Sanmi and Shah, Nigam},
  booktitle = {ICLR 2025 Workshops: SynthData},
  year      = {2025},
  url       = {https://mlanthology.org/iclrw/2025/cui2025iclrw-timer/}
}