MedAlpaca: An Open-Source Collection of Medical Conversational AI Models and Training Data
Paper: arXiv:2304.08247 (April 2023) Authors: Tianyu Han, Lisa C. Adams, Jens-Michalis Papaioannou, Paul Grundmann, Tom Oberhauser, Alexei Figueroa, et al.
Overview
MedAlpaca is an open-source collection of medical conversational AI models built by fine-tuning open large language models on curated medical dialogue data. The project aims to make medical LLM research reproducible and accessible, releasing all model weights, training scripts, and datasets publicly.
Models
The collection includes several variants fine-tuned from open base models:
- medalpaca-7b / 13b: LLaMA-based models fine-tuned on medical instruction data
- medalpaca-lora-7b: a parameter-efficient LoRA variant fine-tuned on a single consumer GPU
- Models derived from Stanford Alpaca checkpoints, further tuned on medical conversation data
- The MedDialog dataset of English medical consultations
- Health-care Q&A extracted from StackExchange
- Medical articles from wikiHow
- Handcrafted conversation-style prompts covering anamnesis (patient history taking) and clinical dialogue
- Fine-tuning open LLMs on domain-specific conversational data yields plausible medical dialogue at a fraction of the cost of proprietary models.
- The authors explicitly position MedAlpaca as a research prototype, not a clinical decision-support system.
- Limitations include the risk of hallucinated medical facts, lack of rigorous clinical evaluation, and open questions around regulatory compliance (e.g., GDPR, HIPAA, EU AI Act).
- The work highlights privacy as a motivation: running models locally can help keep sensitive patient data within institutional infrastructure.
Training Data
The training corpus aggregates multiple medical instruction sources, including:
Key Findings and Discussion
Significance
Released in April 2023 amid rapid growth of medical LLM projects (e.g., Med-PaLM, ChatDoctor), MedAlpaca became one of the earliest fully open medical fine-tuning pipelines, contributing datasets, code, and checkpoints that subsequent healthcare LLM research has built upon.
> Note: Quantitative benchmark details should be verified against the original paper PDF.