Cited by 66Artificial Intelligence in Healthcare and EducationMachine Learning in HealthcareTopic Modeling

MedAlign: A Clinician-Generated Dataset for Instruction Following with Electronic Medical Records

Open access
Fleming, Scott L., Lozano, Alejandro, Haberkorn, William J., Jindal, Jenelle A., Reis, Eduardo, Thapa, Rahul, Blankemeier, Louis, Genkins, Julian Z. +22 more·2024·Proceedings of the AAAI Conference on Artificial Intelligence

Abstract

The ability of large language models (LLMs) to follow natural language instructions with human-level fluency suggests many opportunities in healthcare to reduce administrative burden and improve quality of care. However, evaluating LLMs on realistic text generation tasks for healthcare remains challenging. Existing question answering datasets for electronic health record (EHR) data fail to capture the complexity of information needs and documentation burdens experienced by clinicians. To address these challenges, we introduce MedAlign, a benchmark dataset of 983 natural language instructions for EHR data. MedAlign is curated by 15 clinicians (7 specialities), includes clinician-written reference responses for 303 instructions, and provides 276 longitudinal EHRs for grounding instruction-response pairs. We used MedAlign to evaluate 6 general domain LLMs, having clinicians rank the accuracy and quality of each LLM response. We found high error rates, ranging from 35% (GPT-4) to 68% (MPT-7B-Instruct), and 8.3% drop in accuracy moving from 32k to 2k context lengths for GPT-4. Finally, we report correlations between clinician rankings and automated natural language generation metrics as a way to rank LLMs without human review. We make MedAlign available under a research data use agreement to enable LLM evaluations on tasks aligned with clinician needs and preferences.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1609/aaai.v38i20.30205

Cites

28 of 28 references verified0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Previous health-related benchmarks graded short responses, extracted fixed entities from responses, or used weakly correlated natural language generation metrics.

    “Previous health-related benchmarks graded short responses, extracted fixed entities from responses, or used weakly correlated natural language generation metrics (Jain et al., 2021; Fleming et al., 2024; McDuff et al., 2025).”

    From HealthBench: Evaluating Large Language Models Towards Improved Human Health (2025) · cites this paper as Fleming et al., 2024

    The Background and Related Work section says earlier EHR question-answering datasets focused on concise, factoid-style answers, supporting the short-response part. MedAlign also evaluates NLG metrics, but its Automated Evaluation section describes their correlations with clinician rankings as moderate and calls the strongest metric a reasonable, if coarse, measure. Our copy does not establish that previous benchmarks extracted fixed entities from responses. (LLM, conf=0.84)

    Experimental — accuracy not yet measured
  • Large language models have misinterpreted Electronic Health Record (EHR) data.

    “misinterpreted Electronic Health Record (EHR) data6”

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

Flagged first, then by citations

Research works printed but not linked: 18

  1. [1]Banerjee S and Lavie A. Meteor: An automatic metric for mt evaluation with improved correlation with human judgments. In Proceedings of the acl workshop on intrinsic and extrinsic evaluation measures for machine translation and/or summarization, pages 65– 72, 2005.
  2. [8]Dao T, Fu D, Ermon S, Rudra A, and Ré C. Flashattention: Fast and memory-efficient exact attention with io-awareness. Advances in Neural Information Processing Systems, 35: 16344– 16359, 2022.
  3. [9]Fan J. Annotating and characterizing clinical sentences with explicit why-qa cues. In Proceedings of the 2nd Clinical Natural Language Processing Workshop, pages 101– 106, 2019.
  4. [10]Freitag M, Rei R, Mathur N, Lo C.-k., Stewart C, Avramidis E, Kocmi T, Foster G, Lavie A, and Martins AF. Results of wmt22 metrics shared task: Stop using bleu–neural metrics are better and more robust. In Proceedings of the Seventh Conference on Machine Translation (WMT), pages 46– 68, 2022.
  5. [12]Hendrycks D, Burns C, Basart S, Zou A, Mazeika M, Song D, and Steinhardt J. Measuring massive multitask language understanding. In International Conference on Learning Representations, 2020.
  6. [14]Jin D, Pan E, Oufattole N, Weng W-H, Fang H, and Szolovits P. What disease does this patient have? a large-scale open domain question answering dataset from medical exams. Applied Sciences, 11 (14): 6421, 2021.
  7. [18]Lin C-Y. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pages 74– 81, 2004.
  8. [25]Oliveira L. E. S. e., Schneider ETR, Gumiel YB, Luz M. A. P. d., Paraiso EC, and Moro C. Experiments on portuguese clinical question answering. In Brazilian Conference on Intelligent Systems, pages 133– 145. Springer, 2021.
  9. [28]Papineni K, Roukos S, Ward T, and Zhu W-J. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th annual meeting of the Association for Computational Linguistics, pages 311– 318, 2002.
  10. [29]Popović M. chrf++: words helping character n-grams. In Proceedings of the second conference on machine translation, pages 612– 618, 2017.
  11. [35]Soni S, Gudala M, Pajouhi A, and Roberts K. Radqa: A question answering dataset to improve comprehension of radiology reports. In Proceedings of the Thirteenth Language Resources and Evaluation Conference, pages 6250– 6259, 2022.
  12. [38]Topsakal O and Akinci TC. Creating large language model applications utilizing langchain: A primer on developing llm apps fast. In Proceedings of the International Conference on Applied Engineering and Natural Sciences, Konya, Turkey, pages 10– 12, 2023.
  13. [41]Trotman A, Puurula A, and Burgess B. Improvements to bm25 and language models examined. In Proceedings of the 19th Australasian Document Computing Symposium, pages 58– 65, 2014.
  14. [43]Wei J, Bosma M, Zhao V, Guu K, Yu AW, Lester B, Du N, Dai AM, and Le QV. Finetuned language models are zero-shot learners. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=gEZrGCozdqR.
  15. [44]Wei Z, Xu X, Wang C, Liu Z, Xin P, and Zhang W. An index construction and similarity retrieval method based on sentence-bert. In 2022 7th International Conference on Image, Vision and Computing (ICIVC), pages 934– 938. IEEE, 2022.
  16. [45]Wu C, Zhang X, Zhang Y, Wang Y, and Xie W. Pmc-llama: Further finetuning llama on medical papers. arXiv preprint arXiv:2304.14454, 2023. · arXiv
  17. [49]Yue X, Zhang XF, Yao Z, Lin S, and Sun H. Cliniqg4qa: Generating diverse questions for domain adaptation of clinical question answering. In 2021 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), pages 580– 587. IEEE, 2021.
  18. [50]Zhang T, Koshre V, Wu F, Weinberger K, and Artzi Y. Bertscore: Evaluating text generation with bert. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=SkeHuCVFDr.

Cited by

Sorted by citations

Authors
Fleming, S. L., Lozano, A., Haberkorn, W. J., Jindal, J. A., Reis, E., Thapa, R., Blankemeier, L., Genkins, J. Z., Steinberg, E., Nayak, A., Patel, B., Chiang, C.-C., Callahan, A., Huo, Z., Gatidis, S., Adams, S., Fayanju, O., Shah, S. J., Savage, T., Goh, E., Chaudhari, A. S., Aghaeepour, N., Sharp, C., Pfeffer, M. A., Liang, P., Chen, J. H., Morse, K. E., Brunskill, E. P., Fries, J. A., & Shah, N. H.
Affiliations
  • Stanford Medicine (US)
  • Stanford University (US)
  • Hospital Israelita Albert Einstein (BR)
  • Stanford Health Care (US)
  • Vanderbilt University (US)
  • Mayo Clinic (US)
Venue
Proceedings of the AAAI Conference on Artificial Intelligence
Published
2024-03-24
Volume
38
Issue
20
Pages
22021-22030
ISSN
  • 2159-5399 (ISSN-L)
  • 2374-3468
OpenAlex
W4393157213
Cited by
66
References
28
Citations by year
2026: 11 · 2025: 29 · 2024: 23 · 2023: 3
FWCI
16.87
Type
conference paper
Language
en
Open access
Locations
  • Proceedings of the AAAI Conference on Artificial Intelligence (publishedVersion)
  • PubMed (publishedVersion)
  • PubMed Central (publishedVersion)
  • arXiv (Cornell University) (submittedVersion, cc-by)
  • AAAI Publications (The Association for the Advancement of Artificial Intelligence (AAAI)) (submittedVersion)
  • arXiv (Cornell University) (cc-by)
Funders
  • National Heart, Lung, and Blood Institute (75N92020C00008, 75N92020C00021, R01HL167974)
  • National Institute of General Medical Sciences (R35GM138353)
  • National Institute of Arthritis and Musculoskeletal and Skin Diseases (R01AR077604, R01AR079431)
  • National Institute of Biomedical Imaging and Bioengineering (P41EB027060, R01EB002524)
Topics
  • Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education
  • Physical Sciences › Computer Science › Artificial Intelligence › Machine Learning in Healthcare
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
Keywords
electronic health records, natural language instructions, large language models, LLM benchmark, clinical documentation burden, GPT-4

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review