Medical large language models are vulnerable to data-poisoning attacks
Top Cited Papers
Open Access
- 8 January 2025
- journal article
- research article
- Published by Springer Nature in Nature Medicine
- Vol. 31 (2) , 618-626
Abstract
The adoption of large language models (LLMs) in healthcare demands a careful analysis of their potential to spread false medical knowledge. Because LLMs ingest massive volumes of data from the open Internet during training, they are potentially exposed to unverified medical knowledge that may include deliberately planted misinformation. Here, we perform a threat assessment that simulates a data-poisoning attack against The Pile, a popular dataset used for LLM development. We find that replacement of just 0.001% of training tokens with medical misinformation results in harmful models more likely to propagate medical errors. Furthermore, we discover that corrupted models match the performance of their corruption-free counterparts on open-source benchmarks routinely used to evaluate medical LLMs. Using biomedical knowledge graphs to screen medical LLM outputs, we propose a harm mitigation strategy that captures 91.9% of harmful content (F1 = 85.7%). Our algorithm provides a unique method to validate stochastically generated LLM outputs against hard-coded relationships in knowledge graphs. In view of current calls for improved data provenance and transparent LLM development, we hope to raise awareness of emergent risks from LLMs trained indiscriminately on web-scraped data, particularly in healthcare where misinformation can potentially compromise patient safety.Keywords
Funding Information
- Neurosurgery Research and Education Foundation -- Medical Student Summer Research Fellowship 2023
- U.S. Department of Health & Human Services | NIH | National Cancer Institute (3P30CA016087-41S1)
This publication has 30 references indexed in Scilit:
- MedCPT: Contrastive Pre-trained Transformers with large-scale PubMed search logs for zero-shot biomedical information retrievalBioinformatics, 2023
- Large language models propagate race-based medicinenpj Digital Medicine, 2023
- Large language models in medicineNature Medicine, 2023
- Large language models encode clinical knowledgeNature, 2023
- Health system-scale language models are all-purpose prediction enginesNature, 2023
- BioGPT: generative pre-trained transformer for biomedical text generation and miningBriefings in Bioinformatics, 2022
- Learning a Health Knowledge Graph from Electronic Medical RecordsScientific Reports, 2017
- Systematic Poisoning Attacks on and Defenses for Machine Learning in HealthcareIEEE Journal of Biomedical and Health Informatics, 2014
- Evaluation of the Unified Medical Language System as a Medical Knowledge SourceJournal of the American Medical Informatics Association, 1998
- The Unified Medical Language System (UMLS) of the National Library of Medicine.1990