PMC-LLaMA: Towards Building Open-source Language Models for Medicine

Chaoyi Wu, Weixiong Lin, Xiaoman Zhang, Ya Zhang, Yanfeng Wang +1 more
4/27/2023
cs.CL

Official code: chaoyi-wu/PMC-LLaMA (680 stars, last commit 2024-07-08).

Abstract

Recently, Large Language Models (LLMs) have showcased remarkable capabilities in natural language understanding. While demonstrating proficiency in everyday conversations and question-answering situations, these models frequently struggle in domains that require precision, such as medical applications, due to their lack of domain-specific knowledge. In this paper, we describe the procedure for building a powerful, open-source language model specifically designed for medicine applications, termed as PMC-LLaMA. Our contributions are threefold: (i) we systematically investigate the process of adapting a general-purpose foundation language model towards medical domain, this involves data-centric knowledge injection through the integration of 4.8M biomedical academic papers and 30K medical textbooks, as well as comprehensive fine-tuning for alignment with domain-specific instructions; (ii) we contribute a large-scale, comprehensive dataset for instruction tuning. This dataset encompasses medical question-answering (QA), rationale for reasoning, and conversational dialogues, comprising a total of 202M tokens; (iii) we conduct thorough ablation studies to demonstrate the effectiveness of each proposed component. While evaluating on various public medical question-answering benchmarks, our lightweight PMCLLaMA, which consists of only 13 billion parameters, exhibits superior performance, even surpassing ChatGPT. All models, codes, datasets can be found in https://github.com/chaoyi-wu/PMC-LLaMA.

View on arXivView PDF

Code Implementations(1)

The official codes for "PMC-LLaMA: Towards Building Open-source Language Models for Medicine"

68062Shell, PythonApr 25, 20232 years ago

Similar Papers

Cite this paper

@article{wu2023pmcllama,
  title  = {PMC-LLaMA: Towards Building Open-source Language Models for Medicine},
  author = {Chaoyi Wu and Weixiong Lin and Xiaoman Zhang and Ya Zhang and Yanfeng Wang and Weidi Xie},
  year   = {2023},
  eprint = {2304.14454},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.14454v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.14454.svg)](https://codeofpaper.com/paper/2304.14454)

Discussion