Cited by 300Topic ModelingArtificial Intelligence in Healthcare and EducationMultimodal Machine Learning Applications

PMC-LLaMA: toward building open-source language models for medicine

Open access
Wu, Chaoyi, Lin, Weixiong, Zhang, Xiaoman, Zhang, Ya, Xie, Weidi, Wang, Yanfeng·2024·Journal of the American Medical Informatics Association

Abstract

Objective: Recently, large language models (LLMs) have showcased remarkable capabilities in natural language understanding. While demonstrating proficiency in everyday conversations and question-answering (QA) situations, these models frequently struggle in domains that require precision, such as medical applications, due to their lack of domain-specific knowledge. In this article, we describe the procedure for building a powerful, open-source language model specifically designed for medicine applications, termed as PMC-LLaMA. Materials and methods: We adapt a general-purpose LLM toward the medical domain, involving data-centric knowledge injection through the integration of 4.8M biomedical academic papers and 30K medical textbooks, as well as comprehensive domain-specific instruction fine-tuning, encompassing medical QA, rationale for reasoning, and conversational dialogues with 202M tokens. Results: While evaluating various public medical QA benchmarks and manual rating, our lightweight PMC-LLaMA, which consists of only 13B parameters, exhibits superior performance, even surpassing ChatGPT. All models, codes, and datasets for instruction tuning will be released to the research community. Discussion: Our contributions are 3-fold: (1) we build up an open-source LLM toward the medical domain. We believe the proposed PMC-LLaMA model can promote further development of foundation models in medicine, serving as a medical trainable basic generative language backbone; (2) we conduct thorough ablation studies to demonstrate the effectiveness of each proposed component, demonstrating how different training data and model scales affect medical LLMs; (3) we contribute a large-scale, comprehensive dataset for instruction tuning. Conclusion: In this article, we systematically investigate the process of building up an open-source medical-specific LLM, PMC-LLaMA.

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.1093/jamia/ocae045

Cites

16 of 16 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?

  • LLMs have shown the ability to perform accurate single-turn medical question-answering.

    “Recently, LLMs have shown the ability to encode clinical knowledge7,8, retrieve relevant medical texts9, and perform accurate single-turn medical question-answering3,10–12.”
  • The 13B parameter PMC-LLaMA model demonstrates superior performance on various public medical QA benchmarks, even surpassing ChatGPT in certain evaluations.

    “The 13B parameter PMC-LLaMA model demonstrates superior performance on various public medical QA benchmarks, even surpassing ChatGPT in certain evaluations.”
  • Current benchmarks largely focus on multiple-choice problems.

    “Current benchmarks, which largely focus on multiple-choice problems2,7,8, fail to adequately reflect the practical utility of LLMs in real-world clinical scenarios.”
  • All results were obtained using a 3-shot prompting strategy except for MCQA tasks, where a zero-shot prompting setting was used to align with previous studies.

    “All results presented here were obtained using a 3-shot prompting strategy (more details in the “Evaluation Settings” section in Supplementary), except for MCQA tasks, where we used a zero-shot prompting setting to align with previous studies7,8,19.”
  • Current benchmarks fail to adequately reflect the practical utility of large language models in real-world clinical scenarios.

    “Current benchmarks, which largely focus on multiple-choice problems2,7,8, fail to adequately reflect the practical utility of LLMs in real-world clinical scenarios.”

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: 25

  1. OpenAI. OpenAI. Introducing ChatGPT. OpenAI; 2023. Accessed April 2, 2024. https://openai.com/blog/chatgpt/ 02. OpenAI. GPT-4 technical report. arXiv:2303.08774. 2023, pre- print: not peer reviewed. · arXiv
  2. Nori H, King N, et al. Capabilities of GPT-4 on medical challenge problems. arXiv 230313375. 2023, preprint: not peer reviewed.
  3. Touvron H, Lavril T, Izacard G, Martinet , et al. LLaMA: open and efficient foundation language models. arXiv 230213971. 2023, preprint: not peer reviewed.
  4. Han T, Adams LC, et al. MedAlpaca -an open-source collection of medical conversational AI models and training data. arXiv 230408247. 2023, preprint: not peer reviewed.
  5. Yunxiang L, et al. Chatdoctor: a medical chat model fine-tuned on LLaMA model using medical domain knowledge. arXiv 230314070. 2023, preprint: not peer reviewed.
  6. Anil R, Dai AM, et al. PaLM 2 technical report. arXiv abs/ 2305.10403. 2023, preprint: not peer reviewed. https://api.seman- ticscholar.org/CorpusID:258740735
  7. Du Z, Qian Y, Liu X, et al. GLM: General Language Model Pre- training with Autoregressive Blank Infilling. ACL; 2022. Accessed April 2, 2024. https://aclanthology.org/2022.acl-long.26
  8. Peng B, et al. Instruction tuning with GPT-4. arXiv 230403277. 2023, preprint: not peer reviewed.
  9. Chung HW, et al. Scaling instruction-finetuned language models. arXiv 221011416. 2022, preprint: not peer reviewed.
  10. Iyer S, et al. OPT-IML: scaling language model instruction meta learning through the lens of generalization. arXiv 221212017. 2022, preprint: not peer reviewed.
  11. Zhang K, et al. BiomedGPT: a unified and generalist biomedical generative pre-trained transformer for vision, language, and multi- modal tasks. arXiv 230517100. 2023, preprint: not peer reviewed.
  12. Jin Q, et al. PubMedQA: a dataset for biomedical research ques- tion answering. ACL. 2019:2567-2577.
  13. Pal A, Umapathi LK, et al. MedMCQA: a large-scale multi-subject multi-choice dataset for medical domain question answering. In: Conference on Health, Inference, and Learning. PMLR; 2022:248-260.
  14. Loshchilov I, Hutter F. Decoupled Weight Decay Regularization. ICLR; 2018.
  15. Chen T, et al. Training deep nets with sublinear memory cost. arXiv 160406174. 2016, preprint: not peer reviewed.
  16. Hu EJ, Shen Y, et al. LoRA: Low-Rank Adaptation of Large Lan- guage Models. ICLR; 2021.
  17. Liu X, Ji K, Fu Y, et al. P-Tuning: Prompt Tuning Can Be Compa- rable to Fine-Tuning Across Scales and Tasks. ACL; 2022:61-68. Accessed April 2, 2024. https://aclanthology.org/2022.acl-short.8
  18. Kaplan J, McCandlish S, Henighan TJ, et al. Scaling laws for neural language models. arXiv abs/2001.08361. 2020, preprint: not peer reviewed. https://api.semanticscholar.org/CorpusID:210861095 · arXiv
  19. Chen Z, Cano AH, Romanou A, et al. MEDITRON-70B: scaling medical pretraining for large language models. arXiv abs/ 2311.16079. 2023, preprint: not peer reviewed. https://api.seman- ticscholar.org/CorpusID:265456229
  20. Moor M, Huang Q, Wu S, et al. Med-Flamingo: a multimodal medical few-shot learner. In: Proceedings of the 3rd Machine Learning for Health Symposium. PMLR; 2023:225:353-367. https://proceedings.mlr.press/v225/moor23a.html
  21. Li C, Wong C, Zhang S, et al. LLaVA-Med: training a large language-and-vision assistant for biomedicine in one day. NIPS. 2023;36;28541-28564.
  22. Liu J, Jin J, Wang Z, Cheng J, Dou Z, Rong Wen J. RETA-LLM: a retrieval-augmented large language model toolkit. arXiv abs/ 2306.05212. 2023, preprint: not peer reviewed. https://api.seman- ticscholar.org/CorpusID:259108339
  23. Schick T, Dwivedi-Yu J, Dess� ı R, et al. Toolformer: language mod- els can teach themselves to use tools. NIPS. 2024;36:68539-68551.
  24. Yang R, Song L, Li Y, et al. GPT4Tools: teaching large language model to use tools via self-instruction. NIPS. 2023;36:71995-72007.
  25. All rights reserved. For permissions, please email: journals.permissions@oup.com Journal of the American Medical Informatics Association, 2024, 00, 1-11 https://doi.org/10.1093/jamia/ocae045 Research and Applications · DOI

Cited by

Sorted by citations

Authors
Wu, C., Lin, W., Zhang, X., Zhang, Y., Xie, W., & Wang, Y.
Affiliations
Shanghai Jiao Tong University (CN)
Corresponding author
Wang, Yanfeng
Venue
Journal of the American Medical Informatics Association
Published
2024-04-13
Volume
31
Issue
9
Pages
1833-1843
ISSN
  • 1067-5027 (ISSN-L)
  • 1527-974X
OpenAlex
W4394782456
Cited by
300
References
16
Citations by year
2026: 83 · 2025: 160 · 2024: 57
FWCI
44.27
Type
journal article
Language
en
Open access
Locations
  • Journal of the American Medical Informatics Association (publishedVersion, other-oa)
  • PubMed Central (publishedVersion, other-oa)
  • PubMed (publishedVersion)
Funders
  • National Key R&D Program of China (2022ZD0160702)
  • Science and Technology Commission of Shanghai Municipality (22511106101, 18DZ2270700, 21DZ1100100)
  • Higher Education Discipline Innovation Project 111 (BP0719010)
  • State Key Laboratory of UHD Video and Audio Production and Presentation.
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Multimodal Machine Learning Applications
Keywords
open-source language models, medical large language models, instruction tuning, medical question answering, domain-specific fine-tuning, medical textbooks, biomedical literature, conversational dialogue, medical reasoning, instruction-tuning dataset
MeSH terms
Humans, Natural Language Processing

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