Hippocrates: An Open-Source Framework for Advancing Large Language Models in Healthcare

Emre Can Acikgoz, Osman Batur Ince, Rayene Bench, Arda Anil Boz, Ilker Kesen, Aykut Erdem, Erkut Erdem · DOI

Introduction

The integration of Large Language Models (LLMs) into healthcare holds transformative potential, yet the field faces significant barriers. Most state-of-the-art medical models, such as Med-PaLM or GPT-4, are proprietary "black boxes" with opaque training methodologies and data. Conversely, existing open-source alternatives often lack the specialized domain expertise or rigorous evaluation protocols necessary for clinical trust.

Hippocrates addresses these challenges by providing a fully open-source framework designed to democratize medical AI. By offering unrestricted access to training data, code, and model checkpoints, Hippocrates enables researchers to build, refine, and verify models transparently. Its flagship 7B-parameter "Hippo" models, built on Mistral and LLaMA2 architectures, demonstrate that specialized training can allow smaller models to outperform open-source giants ten times their size.

Methodology: The Hippocrates Pipeline

To transform general-purpose LLMs into medical experts, the authors developed a systematic four-stage pipeline. This approach focuses on domain adaptation, instruction following, and alignment with clinical preferences.

The Hippocrates framework pipeline, illustrating the four stages from knowledge injection to evaluation.
  1. Medical Knowledge Injection (Continued Pre-training): The base models (LLaMA2-7B and Mistral-7B) undergo continued pre-training on a curated corpus of approximately 298 million medical tokens. This dataset includes clinical guidelines, patient case reports (PMC-Patients), and PubMedQA contexts, providing the foundational domain knowledge.
  2. Medical Instruction Tuning (Supervised Fine-Tuning): The models are trained to follow complex medical instructions using a massive dataset of 696K samples, including medical Q&A, flashcards, and terminology. This stage is critical for "unlocking" the model's ability to reason through clinical queries.
  3. Medical Preference Learning (RLAIF): To align models with clinical safety and accuracy, the framework employs Direct Preference Optimization (DPO). Instead of relying solely on expensive human expert labeling, the authors used GPT-4 to rank 15,000 responses based on medical accuracy. This Reinforcement Learning from AI Feedback (RLAIF) method was validated by showing substantial agreement (Kappa = 0.672) between GPT-4 and human physicians.
  4. Parameter-Efficient Training: Throughout the process, Low-Rank Adaptation (LoRA) is utilized to ensure computational efficiency, allowing high-performance tuning without the resource intensity of full-parameter updates.

Data and Evaluation Benchmarks

The Hippocrates project leverages a diverse array of public datasets across its training stages. Pre-training data draws from Meditron guidelines and PubMed Central. Instruction tuning incorporates nine distinct sources, such as WikiDoc and HealthCareMagic.

For evaluation, the models were rigorously tested against six major medical benchmarks: MedMCQA, MedQA (USMLE-style), PubMedQA, and USMLE Steps 1, 2, and 3. This comprehensive suite ensures that the models are assessed on a wide range of medical knowledge and reasoning tasks.

Key Results and Performance

The quantitative results highlight the effectiveness of the Hippocrates pipeline, particularly for the Mistral-based Hippo model.

Comparison of MedQA accuracy over time, showing Hippo-7B models outperforming significantly larger models.

On the MedQA (USMLE) benchmark, Hippo-Mistral 7B achieved a 5-shot accuracy of 59.9%. This performance is notable as it surpasses much larger models, including Meditron-70B (58.5%) and Qwen-72B (53.4%). Across all six benchmarks, Hippo-Mistral 7B averaged 62.1% accuracy, representing a significant improvement over the base Mistral 7B model's 39.3%.

Interestingly, the authors observed that Chain-of-Thought (CoT) prompting—a technique often used to improve reasoning in general LLMs—did not consistently enhance performance in the medical domain. This suggests that medical reasoning may require specialized prompting strategies distinct from general logic tasks.

Discussion and Analysis

Several key insights emerged from the development of Hippocrates:

  • Efficiency over Scale: The success of the 7B Hippo models suggests that high-quality, domain-specific data and a refined pipeline are more critical than raw parameter count for specialized medical tasks.
  • The Role of SFT: While continued pre-training provides the knowledge base, Supervised Fine-Tuning (SFT) provides the most dramatic leap in performance, enabling the model to effectively apply its knowledge to user queries.
  • Self-Calibration: Uncertainty quantification revealed that Hippo models are "self-aware," assigning higher probabilities to correct answers. This trait is vital for safety-critical applications where knowing when to be uncertain is as important as being right.

Limitations and Future Outlook

Despite its state-of-the-art performance among open-source models, Hippo still trails behind proprietary leaders like GPT-4. The 7B architecture also faces inherent constraints in multi-step, complex reasoning compared to larger models. Furthermore, the authors emphasize that these models are research tools and are not yet ready for clinical diagnosis without further safety tuning and human oversight.

Future work will focus on scaling the framework to larger architectures, improving multilingual support, and integrating Explainable AI (XAI) tools to better understand the model's decision-making processes. By maintaining an open-source ethos, Hippocrates aims to provide the foundation for the next generation of transparent, reliable medical AI.

Summary updated

BibTeX
@inproceedings{acikgoz2024hippocrates,
  author = {Emre Can Acikgoz and Osman Batur Ince and Rayene Bench and Arda Anil Boz and Ilker Kesen and Aykut Erdem and Erkut Erdem},
  title = {{Hippocrates: An Open-Source Framework for Advancing Large Language Models in Healthcare}},
  booktitle = {GenAI4Health @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=nSIEwsIT6r},
}
Figure