AlpaCare: Instruction-tuned Large Language Models for Medical Application

Xinlu Zhang, Chenxin Tian, Xianjun Yang, Lichang Chen, Zekun Li, Linda Ruth Petzold · DOI

TL;DR

This paper introduces AlpaCare, a new medical large language model (LLM) fine-tuned on a diverse, machine-generated dataset called MedInstruct-52k. AlpaCare significantly outperforms existing medical LLMs on both medical and general tasks, demonstrating the crucial role of data diversity in achieving robust performance.

What Problem Does This Paper Address?

Large Language Models (LLMs) have shown immense promise in the medical domain, but their effectiveness is often limited by the datasets used for instruction fine-tuning (IFT). Many existing medical LLMs are trained on datasets with limited diversity, focusing on narrow task scopes or specific benchmarks. This can lead to models that struggle to generalize to various real-world medical inquiries and may exhibit "game-the-metric" issues, failing to truly align with user needs. The authors aim to bridge this gap by creating a more diverse IFT dataset specifically for medical applications, thereby improving both medical proficiency and generalizability of LLMs.

Methods

The core of AlpaCare's development lies in its novel dataset generation pipeline and subsequent fine-tuning.

  1. Diverse Medical IFT Dataset Generation (MedInstruct-52k):
    • Clinician-Curated Seed Set: The process begins with a high-quality seed set of 167 medical tasks, meticulously curated by clinicians. This seed set covers diverse topics, viewpoints (e.g., patient, clinician, student), task types (e.g., summarization, classification), and difficulty levels (1-5).
  2. GPT-4 for Task Generation: GPT-4 is used to iteratively generate new medical instructions, leveraging the seed set as demonstrations. This semi-automated approach aims to create a broad array of tasks.
  3. ChatGPT for Response Generation: ChatGPT (GPT-3.5-turbo) is then employed to generate responses to these tasks. This choice was made to balance cost and effectiveness, with a clinician evaluation confirming the high quality of the generated responses.
  4. Filtering: To ensure textual diversity, instructions with high Rouge-L similarity to existing ones are filtered out.
  5. Result: This process yields MedInstruct-52k, a dataset of 52,000 diverse machine-generated medical instruction-response pairs.
  6. LLM Fine-tuning (AlpaCare):
    • The MedInstruct-52k dataset is used to fine-tune LLaMA-series models. The authors specifically mention fine-tuning LLaMA-7B and LLaMA-13B models.
  7. New Evaluation Benchmark (MedInstruct-test):
    • To address the lack of comprehensive evaluation sets for medical LLMs, the authors introduce MedInstruct-test, a set of 216 clinician-crafted free-form medical instructions. This benchmark also spans various difficulty levels.

Datasets

  • Training Dataset: MedInstruct-52k (newly created, 52,000 instruction-response pairs).
  • Evaluation Datasets:
    • iCliniq (real patient-doctor conversations)
    • MedInstruct-test (newly created, 216 clinician-crafted medical instructions)
    • General domain benchmarks: AlpacaFarm, MMLU, BBH, TruthfulQA, StrategyQA, DROP.
  • Medical multiple-choice benchmarks: MedQA, HeadQA, PubmedQA, MedMCQA.
  • Medical summarization dataset: MeQSum.

Key Insights and Ideas

  • Diversity is Key for Medical LLMs: The most striking insight is that a diverse medical IFT dataset, even if smaller than some previous ones, leads to significantly better performance than models trained on less diverse or general-domain data. This highlights that simply having more data isn't enough; the quality and variety of instructions matter immensely for medical applications.
  • Medical LLMs Don't Always Outperform General LLMs: Surprisingly, the authors found that some medical LLMs, despite being trained on medical data, did not consistently outperform general LLMs on medical tasks. This suggests that the way the medical data is structured and utilized (i.e., diverse IFT) is more critical than just the domain of the data itself.
  • Semi-Automated Generation is Effective: The pipeline of using GPT-4 for task generation and ChatGPT for response generation, guided by a clinician-curated seed set, proves to be a cost-effective and efficient way to create high-quality, diverse medical IFT data.
  • Generalizability Boost: AlpaCare not only excels in medical tasks but also shows improved performance on general domain benchmarks, indicating that diverse medical training can enhance broader instruction-following capabilities.

Key Results

  • Medical Free-form Evaluation: AlpaCare achieved up to a 38.1% absolute gain over best baselines on medical free-form instruction evaluations.
  • General Domain Evaluation: AlpaCare achieved 6.7% absolute gains averaged over multiple general domain benchmarks.
  • Human Evaluation: Human studies showed AlpaCare consistently outperformed baselines in terms of correctness (+12%) and helpfulness (+49%).
  • 13B Model Comparison: AlpaCare-13B consistently outperformed other 13B models on both iCliniq and MedInstruct datasets.
  • Backbone Agnostic: AlpaCare's performance advantage was observed across different LLM backbones (LLaMA, LLaMA-2, LLaMA-3), underscoring the impact of the dataset.
  • Dataset Diversity: MedInstruct-52k exhibits the highest linguistic diversity (measured by entropy) compared to other medical IFT datasets, which is correlated with improved model performance.

Limitations and Future Work

  • Hallucinations: The authors acknowledge that using "teacher" LLMs like GPT-4 and ChatGPT for knowledge generation could lead to hallucinations.
  • Future Work: To mitigate hallucinations and enhance reliability, they plan to integrate LLMs with the internet and knowledge graphs.
  • Ethical Considerations: The paper emphasizes that AlpaCare is an assistant tool and should not replace healthcare professionals. Rigorous validation by medical practitioners is crucial. The development also necessitates ongoing research into safety, privacy, and reliability in clinical settings.
  • Model Limitations: While AlpaCare shows improved truthfulness scores compared to other baselines, the rate of correct answers is still noted as being low, indicating potential for hallucinations.

Summary updated

Abstract

Instruction-finetuning (IFT) has become crucial in aligning Large Language Models (LLMs) with diverse human needs and has shown great potential in medical applications. However, previous studies mainly fine-tune LLMs on biomedical datasets with limited diversity, which often rely on benchmarks or narrow task scopes, and hence significantly limit the effectiveness on their medical instruction-following ability and generalizability. To bridge this gap, we propose creating a diverse, machine-generated medical IFT dataset, MedInstruct-52k, using GPT-4 and ChatGPT with a high-quality expert-curated seed set. We then fine-tune LLaMA-series models on the dataset to develop AlpaCare. Despite using a smaller domain-specific dataset than previous medical LLMs, AlpaCare not only demonstrates superior performance on medical applications, with up to 38.1% absolute gain over best baselines in medical free-form instruction evaluations, but also achieves 6.7% absolute gains averaged over multiple general domain benchmarks. Human evaluation further shows that AlpaCare consistently outperforms best baselines in terms of both correctness and helpfulness. We offer public access to our data, model, and codebase in https://github.com/XZhang97666/AlpaCare.
BibTeX
@misc{zhang2023alpacare,
  author = {Xinlu Zhang and Chenxin Tian and Xianjun Yang and Lichang Chen and Zekun Li and Linda Ruth Petzold},
  title = {{AlpaCare: Instruction-tuned Large Language Models for Medical Application}},
  year = {2023},
  eprint = {2310.14558},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.14558},
}
Figure