Abstract
The current generation of large language models (LLMs) is typically designed for broad, general-purpose applications, while domain-specific LLMs, especially in vertical fields like medicine, remain relatively scarce. In particular, the development of highly efficient and practical LLMs for the medical domain is challenging due to the complexity of medical knowledge and the limited availability of high-quality data. To bridge this gap, we introduce Baichuan-M1, a series of large language models specifically optimized for medical applications. Unlike traditional approaches that simply continue pretraining on existing models or apply post-training to a general base model, Baichuan-M1 is trained from scratch with a dedicated focus on enhancing medical capabilities. Our model is trained on 20 trillion tokens and incorporates a range of effective training methods that strike a balance between general capabilities and medical expertise. As a result, Baichuan-M1 not only performs strongly across general domains such as mathematics and coding but also excels in specialized medical fields. We have open-sourced Baichuan-M1-14B, a mini version of our model, which can be accessed through the following links:
- GitHub: baichuan-inc/Baichuan-M1-14B
- Hugging Face Base: baichuan-inc/Baichuan-M1-14B-Base
- Hugging Face Instruct: baichuan-inc/Baichuan-M1-14B-Instruct
Introduction: Building a Digital Doctor from the Ground Up
While general-purpose LLMs like GPT-4 demonstrate impressive capabilities, they often lack the "clinical intuition" and precision required for medical practice. Most domain-specific models are created by fine-tuning existing general models, but this approach often proves insufficient. Medical knowledge is complex and highly technical, requiring deep reasoning capabilities that can be "washed out" during the annealing phases of general-purpose training. Baichuan-M1 addresses this by building a medical foundation from the ground up, ensuring that domain expertise is integrated into the model's core from day one.
Methodology
The development of Baichuan-M1 involved a "from-scratch" training approach, leveraging a massive 20 trillion token corpus. Key technical innovations include:
- Three-Stage Curriculum Pre-training: The model follows a structured learning path, starting with "easy" general data, progressing to a mix of complex general and medical data, and concluding with an "annealing" phase focused on complex synthetic reasoning.
- Hybrid Attention Architecture: To balance efficiency and performance, the model alternates between Global Attention and Sliding Window Attention. A head dimension of 256 was utilized, which proved crucial for medical benchmark performance.
- Temporal Short Convolutions: Short convolution operations were added to the Key and Value states in the attention mechanism to enhance the model’s in-context learning (ICL) abilities.
- Adaptive Gradient Clipping (AGC): This novel strategy stabilizes early training by adjusting updates based on the average norm of recent gradients, preventing divergence when encountering difficult data.
- Three-Stage Reinforcement Learning: The alignment pipeline utilizes Exploratory Log-likelihood Optimization (ELO) for diverse reasoning, Token-Level Direct Preference Optimization (TDPO) for alignment, and Proximal Policy Optimization (PPO) for final policy refinement.
Data Strategy and Synthetic Reasoning
The training corpus consists of 12T English, 4T Chinese, 2T Multilingual, and 2T Code tokens. Crucially, over 1T tokens were sourced from 200+ authoritative medical sources, including textbooks and medical encyclopedias.
One of the primary challenges in medical AI is that real-world clinical notes often record only final decisions, omitting the underlying logic. Baichuan-M1 overcomes this by utilizing over 100B tokens of high-quality synthetic medical reasoning (Chain-of-Thought) data. By reconstructing the expert reasoning process, the model learns how to think through a diagnosis rather than just memorizing conclusions. Furthermore, the researchers found that aggressively upsampling the top 10-20% of high-quality data (up to 10x) significantly boosted performance without causing overfitting.
Performance Evaluation
The Baichuan-M1-14B-Instruct model demonstrates exceptional efficiency, outperforming models many times its size on specialized medical benchmarks.
With only 14B parameters, the model achieved an average score of 72.23 across medical benchmarks, surpassing the much larger Qwen2.5-72B-Instruct (70.51). It is now highly competitive with top-tier proprietary models like GPT-4o (75.00) and Claude 3.5 Sonnet (74.85). In specialized tasks like MedCalc (medical math), Baichuan-M1 scored 56.00, nearly doubling the performance of general-purpose models of similar scale.
Conclusion
Baichuan-M1 represents a significant step forward in domain-specific LLM development. By prioritizing medical data and reasoning from the start of training, the 14B model achieves performance comparable to the world's leading proprietary systems. While it excels at exams and knowledge retrieval, future work will focus on refining real-world clinical consultation, rare disease diagnosis, and the integration of multi-modal medical data.
Summary updated