Memorization in large language models in medicine prevalence characteristics and implications
Large Language Models (LLMs) have demonstrated significant potential in medicine, with many studies adapting them through continued pretraining or fine-tuning on medical data. However, a key question remains: to what extent do LLMs memorize medical training data-that is, recall or regenerate content seen during continued pretraining or fine-tuning. In this work, we investigate memorization of LLMs in medicine, assessing its prevalence (frequency), characteristics (what is memorized), volume (how much), and potential downstream impacts. We systematically analyze common adaptation scenarios: (1) continued pretraining on medical corpora, (2) fine-tuning on standard medical benchmarks, and (3) fine-tuning on real-world clinical data, including over 13,000 unique inpatient records from Yale New Haven Health System. The results demonstrate that memorization is prevalent and significantly higher than that in the general domain. Memorization has distinct characteristics during continued pretraining and fine-tuning, and it is persistent: up to 87% of content memorized during continued pretraining remains after fine-tuning. Memorization can be categorized into three types: beneficial (e.g., accurate recall of clinical guidelines), uninformative (e.g., templated language), and harmful (e.g., sensitive clinical content). We offer practical recommendations to facilitate beneficial memorization, minimize uninformative memorization, and mitigate harmful memorization to protect patient privacy and improve medical utility.
Authors
- Lingfei Qian (ORCID: https://orcid.org/0000-0001-6406-7069)
- Anran Li (ORCID: https://orcid.org/0009-0008-0987-3752)
- Jimin Huang (ORCID: https://orcid.org/0000-0002-3501-3907)
- Yan Hu (ORCID: https://orcid.org/0000-0003-4510-3903)
- Zhong‐Lin Lu (ORCID: https://orcid.org/0000-0002-7295-727X)
- Qingyu Chen (ORCID: https://orcid.org/0000-0002-6036-1516)
- Yangyang Fu (ORCID: https://orcid.org/0000-0002-9507-1420)
- Lucila Ohno‐Machado (ORCID: https://orcid.org/0000-0002-8005-7327)
- Yih Chung Tham (ORCID: https://orcid.org/0000-0002-6752-797X)
- Meirong Du (ORCID: https://orcid.org/0000-0002-5307-6784)
- Siru Liu (ORCID: https://orcid.org/0000-0002-5003-5354)
- Yin Yu
- Hua Xu
- Qianqian Xie (ORCID: https://orcid.org/0000-0002-9588-7454)
- Rui Zhu (ORCID: https://orcid.org/0000-0002-5985-1235)
- Zihao Sun (ORCID: https://orcid.org/0009-0000-5915-8871)
- Yifan Yang (ORCID: https://orcid.org/0009-0002-6868-1220)
- X. C. Ai (ORCID: https://orcid.org/0000-0003-3856-2415)
- H.S. Cho
- Erica Stutz
Institutions
- National Institutes of Health (US)
- National University of Singapore (SG)
- Vanderbilt University (US)
- United States National Library of Medicine (US)
- Yale University (US)
- University of California San Diego (US)
- Yale New Haven Health System (US)
- The University of Texas Health Science Center (US)
- Imperial College London (GB)
- Vanderbilt University Medical Center (US)
- The University of Texas Health Science Center at Houston (US)
Publication Details
- Journal
- Nature Communications
- Published
- 2026-06-19
- DOI
- https://doi.org/10.1038/s41467-026-73779-6
- Citations
- 1
- Primary Topic
- Artificial Intelligence in Healthcare and Education
- Type
- preprint
- Field-Weighted Citation Impact
- 6.59
Funders
- Foundation for the National Institutes of Health
- National Institutes of Health
- U.S. National Library of Medicine