医学领域大型语言模型中的记忆现象:普遍性、特征与影响
Memorization in Large Language Models in Medicine: Prevalence, Characteristics, and Implications
AI总结:
本研究探讨医学领域大型语言模型的记忆现象,分析其普遍性、特征及对医疗应用的影响。
摘要:
大型语言模型(LLMs)在医学领域展现出显著潜力,许多研究通过持续预训练或在医学数据上进行微调来增强领域特定的准确性和安全性。然而,一个关键的开放性问题依然存在:LLMs在多大程度上会记忆医学训练数据。记忆在某些情况下是有益的,当它使LLMs在领域适应过程中保留有价值医学知识时。然而,它也引发了担忧。LLMs可能会无意中重现敏感的临床内容(例如,患者特定的细节),过度的记忆可能会降低模型的泛化能力,增加误诊的风险,并导致不恰当的推荐。这些风险进一步被LLMs的生成性质放大,因为它们不仅能够浮现记忆的内容,还可能产生过于自信、误导性的输出,这可能会阻碍临床应用。在本研究中,我们提出了一项关于医学领域LLMs记忆的研究,评估其普遍性(它发生的频率)、特征(记忆了什么)、规模(记忆了多少内容)以及潜在的下游影响(记忆如何影响医学应用)。我们系统地分析了常见的适应场景:(1)在医学语料库上持续预训练,(2)在标准医学基准上微调,(3)在真实世界临床数据上微调,包括来自耶鲁纽黑文医疗系统超过13000份独特的住院记录。结果表明,记忆在所有适应场景中都很普遍,并且显著高于在一般领域报告的水平。此外,记忆在持续预训练和微调过程中具有不同的特征,并且是持久的:持续预训练期间记忆的87%内容在微调到新的医学任务后仍然存在。
英文摘要:
Large Language Models (LLMs) have demonstrated significant potential in medicine, with many studies adapting them through continued pre-training or fine-tuning on medical data to enhance domain-specific accuracy and safety. However, a key open question remains: to what extent do LLMs memorize medical training data. Memorization can be beneficial when it enables LLMs to retain valuable medical knowledge during domain adaptation. Yet, it also raises concerns. LLMs may inadvertently reproduce sensitive clinical content (e.g., patient-specific details), and excessive memorization may reduce model generalizability, increasing risks of misdiagnosis and making unwarranted recommendations. These risks are further amplified by the generative nature of LLMs, which can not only surface memorized content but also produce overconfident, misleading outputs that may hinder clinical adoption. In this work, we present a study on memorization of LLMs in medicine, assessing its prevalence (how frequently it occurs), characteristics (what is memorized), volume (how much content is memorized), and potential downstream impacts (how memorization may affect medical applications). 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 across all adaptation scenarios and significantly higher than that reported in the general domain. Moreover, memorization has distinct characteristics during continued pre-training and fine-tuning, and it is persistent: up to 87% of content memorized during continued pre-training remains after fine-tuning on new medical tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。