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.
翻译:指令微调已成为将大语言模型与多样化人类需求对齐的关键技术,并在医疗应用领域展现出巨大潜力。然而,先前研究主要在生物医学数据集上进行有限多样性的微调,这些数据集通常依赖基准测试或狭窄的任务范围,从而显著限制了模型在医疗指令遵循能力和泛化性方面的有效性。为弥补这一差距,我们提出使用GPT-4和ChatGPT,基于高质量专家筛选的种子集,创建了一个多样化的机器生成医疗指令微调数据集MedInstruct-52k。随后,我们在该数据集上对LLaMA系列模型进行微调,从而开发出AlpaCare。尽管相较于先前医疗大语言模型使用了更小的领域特定数据集,AlpaCare不仅在医疗应用中表现出卓越性能——在医疗自由格式指令评估中相对最佳基线模型获得高达38.1%的绝对性能提升,还在多个通用领域基准测试中平均实现了6.7%的绝对增益。人工评估进一步表明,AlpaCare在正确性和实用性方面均持续优于最佳基线模型。我们已在https://github.com/XZhang97666/AlpaCare 公开提供数据、模型及代码库。