Instruction Tuning Large Language Models to Understand Electronic Health Records

Zhenbang Wu, Anant Dadu, Mike A. Nalls, F. Faghri, Jimeng Sun
2/3/2026

No official code found. Best implementation: zzachw/llemr (61 stars, MIT, last commit 2025-09-10).

Abstract

Large language models (LLMs) have shown impressive capabilities in solving a wide range of tasks based on human instructions. However, developing a conversational AI assistant for electronic health record (EHR) data remains challenging due to (1) the lack of large-scale instruction-following datasets and (2) the limitations of existing model architectures in handling complex and heterogeneous EHR data. In this paper, we introduce MIMIC-Instr , a dataset comprising over 400K open-ended instruction-following examples derived from the MIMIC-IV EHR database. This dataset covers various topics and is suitable for instruction-tuning general-purpose LLMs for diverse clinical use cases. Additionally, we propose Llemr , a general framework that enables LLMs to process and interpret EHRs with complex data structures. Llemr demonstrates competitive performance in answering a wide range of patient-related questions based on EHR data. Furthermore, our evaluations on clinical predictive modeling benchmarks reveal that the fine-tuned Llemr achieves performance comparable to state-of-the-art (SOTA) baselines using curated features. The dataset and code are available at https://github.com/zzachw/llemr .

DOISemantic Scholar

Code Implementations(1)

zzachw/llemrCommunity68%
MIT

NeurIPS'24 DB (Spotlight) | Instruction Tuning Large Language Models to Understand Electronic Health Records

615Jinja, ShellOct 31, 20241 years agoMIT
ai-assistantai4healthclinical-llmhealth-aimedical-llm

Similar Papers

Cite this paper

@article{wu2026instruction,
  title  = {Instruction Tuning Large Language Models to Understand Electronic Health Records},
  author = {Zhenbang Wu and Anant Dadu and Mike A. Nalls and F. Faghri and Jimeng Sun},
  year   = {2026},
  doi    = {10.52202/079017-1737},
  url    = {https://doi.org/10.52202/079017-1737},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1d940a08a9d389f18bb0f222f9d650ad2b057698.svg)](https://codeofpaper.com/paper/1d940a08a9d389f18bb0f222f9d650ad2b057698)

Discussion