Introduction
Adapting Large Language Models (LLMs) to the clinical domain is a complex task due to specialized terminology and high-stakes reasoning requirements. While common approaches involve either training from scratch or simple fine-tuning, this research explores a "middle ground": Continuous Pretraining (CP). By continuing the training of general-purpose models like Mistral 7B and Mixtral 8x7B on 50 billion tokens of medical data, the authors establish a robust knowledge foundation that significantly enhances downstream performance when paired with instruction fine-tuning and advanced prompting.
Methodology
The study employs a four-stage adaptation framework designed to maximize domain expertise while minimizing catastrophic forgetting:
- Continuous Pretraining (CP): Models were trained on a 65-billion-token blend (50B clinical, 15B general) to inject domain knowledge while preserving general reasoning capabilities.
- Instruction Fine-Tuning (IFT): Models were tuned on a curated mix of medical and general instruction sets (approx. 500M tokens).
- NEFTune: Random noise was injected into embedding layers during fine-tuning. This acts as a regularizer, preventing overfitting to specific phrasing and forcing the model to learn underlying medical concepts.
- MedPrompt: Implementation of complex prompting strategies, including Chain-of-Thought (CoT) reasoning and Dynamic Few-shot learning.
Continuous Pretraining Dynamics
A key insight from the study is that CP acts as a "force multiplier." While raw pretrained models may not show immediate gains in multiple-choice accuracy, they become significantly more receptive to subsequent fine-tuning.
As illustrated in the figure above, smaller models like Mistral 7B see a more pronounced performance jump from CP compared to larger models like Mixtral 8x7B. This suggests that massive models may already possess significant "latent" medical knowledge from their initial general training.
Results and Prompting Strategies
The combination of CP, NEFTune, and advanced prompting yielded state-of-the-art results. For instance, the Mistral 7B "Instruct" version improved from 42.89% to 62.69% on MedQA benchmarks through CP and NEFTune.
The impact of prompting is particularly striking. As shown in the comparison of Mixtral variants, applying the MedPrompt strategy (incorporating CoT) pushed accuracy on MedQA beyond 75%. This demonstrates that sophisticated inference-time techniques can sometimes provide a larger performance boost than weeks of expensive training.
Conclusion
Continuous pretraining provides a vital foundation for clinical LLMs, but its full potential is only realized when combined with robust fine-tuning techniques like NEFTune and advanced prompting strategies. While these models excel at medical benchmarks, future work must address real-world clinical nuances, including patient safety, bias mitigation, and explainability in practice.
Summary updated