BianCang: A Traditional Chinese Medicine Large Language Model

Sibo Wei, Xueping Peng, Yifei Wang, Tao Shen, Jiasheng Si, Weiyu Zhang, Fa Zhu, Athanasios V. Vasilakos, Wenpeng Lü, Jing Chi, Yinglong Wang

TL;DR

This paper introduces BianCang, a novel large language model (LLM) specifically designed for Traditional Chinese Medicine (TCM). BianCang utilizes a two-stage training process to overcome the challenges of TCM's unique theoretical framework and data scarcity, achieving state-of-the-art performance in TCM diagnosis and syndrome differentiation.

What Problem Does This Paper Address?

The field of medicine has seen significant advancements with the application of Large Language Models (LLMs). However, applying these models to Traditional Chinese Medicine (TCM) presents unique challenges. TCM's diagnostic approach, based on holistic principles like Yin-Yang balance and the "four diagnostic methods" (inspection, listening, inquiry, palpation), differs substantially from modern Western medicine's symptom-based, quantifiable approach. This theoretical divergence, coupled with a scarcity of high-quality, specialized TCM corpora, has led to LLMs struggling with accurate TCM diagnosis and syndrome differentiation. Existing medical LLMs often lack the nuanced understanding required for TCM's complex, experience-based reasoning.

Methods

BianCang employs a two-stage training strategy to address these challenges:

  1. Continual Pre-training: This stage focuses on injecting extensive domain-specific knowledge into a foundational LLM (specifically, Qwen2/2.5). This involves training on a massive corpus encompassing TCM textbooks, encyclopedias, medical records, and the Pharmacopoeia of the People's Republic of China. The goal is to build a robust understanding of TCM's theoretical underpinnings and clinical practices.
  2. Supervised Fine-Tuning (SFT): Following pre-training, the model undergoes SFT. This stage aims to activate and align the knowledge acquired during pre-training with specific TCM tasks. It involves training on carefully curated instruction-aligned datasets, including real hospital records for syndrome differentiation and disease diagnosis, and question-answer pairs from TCM literature. This process refines the model's ability to perform diagnostic tasks and generate relevant responses.

This two-stage approach is inspired by cognitive science principles, where pre-training builds declarative knowledge, and fine-tuning acts as a process of activation and proceduralization for task-specific behavior.

Datasets

The paper introduces and utilizes several datasets:

  • Pre-training Corpora:
    • TCM-specific: Medical books, encyclopedias, literature, Pharmacopoeia of the People's Republic of China, real patient medical records, and TCM syndrome knowledge bases.
  • General Domain: Datasets like COIG-CQIA, APE-210K, and Evol-Instruction-66K were included to prevent domain-specific over-specialization and catastrophic forgetting.
  • Supervised Fine-Tuning (SFT) Datasets:
    • ChP-TCM Dataset: This novel dataset, derived from the Pharmacopoeia of the People's Republic of China, includes ChP-KnowledgeQA and ChP-PrescriptionWriting for question-answering and prescription formulation.
  • Medical Record Data: Datasets like TCMSD-DD-SFT, TCM-WM-DiffDiag-SFT, and TCM-Plan-SFT were constructed from real hospital records for syndrome differentiation, differential diagnosis, and treatment planning.
  • Multi-turn Dialogue Data: DISC-Med-SFT was used to enhance conversational capabilities.
  • Exam Data: MLEC-QA (Chinese biomedical multiple-choice dataset) was adapted for SFT.
  • General Domain Data: MS-Agent-Bench and a custom Self-Cognition set were included.

Key Insights and Ideas

  • TCM's Unique Reasoning: The paper highlights the fundamental differences between TCM and Western medicine, emphasizing that TCM's abstract, experience-based approach requires specialized models that go beyond simple data pattern matching.
  • Two-Stage Training is Crucial: The effectiveness of the two-stage training (continual pre-training followed by SFT) is a key insight. It demonstrates that simply fine-tuning a general LLM is insufficient for complex domains like TCM; knowledge injection is a necessary first step.
  • Data Quality Matters: The construction of high-quality, domain-specific datasets (like the ChP-TCM dataset) is critical for achieving robust performance in specialized fields.
  • Smaller Models Can Excel: Interestingly, the paper notes that in some cases, the smaller BianCang-Qwen2.5-7B-Instruct model outperformed its larger 14B counterpart, suggesting that larger models can sometimes over-interpret instructions, leading to reduced accuracy.
  • Implicit Reasoning: BianCang's ability to achieve strong results with direct inference (DI) and a smaller gap between DI and Chain-of-Thought (CoT) performance indicates it has internalized key diagnostic reasoning patterns, rather than relying heavily on explicit CoT prompting.

Key Results

BianCang demonstrated state-of-the-art performance across multiple benchmarks:

  • TCM Syndrome Differentiation & Disease Diagnosis: BianCang-Qwen2.5-7B-Instruct achieved an accuracy of 78.90% on the TCMSD dataset (DI), outperforming the foundational Qwen2.5-7B by over 48 percentage points and surpassing the strongest TCM baseline, Lingdan-13B. In CoT settings, its accuracy reached 82.10%. Similar strong results were observed on TCMSD-BC, TCMDD, and TCMDD-BC datasets.
  • TCM Examination Tasks: BianCang achieved performance close to the large DeepSeek-R1 (670B) and secured the highest accuracy in the Integrated Chinese and Western Medicine (MLEC-CWM) subtask.
  • Chinese Medical Exams: In modern medicine exam tasks (CMB), BianCang achieved results second only to DeepSeek-R1 (671B), demonstrating its broad capabilities.
  • Subjective Evaluation: Human evaluations by TCM experts indicated that BianCang demonstrated superior professionalism, fluency, and safety compared to baseline models.

Limitations and Future Work

  • Inherent LLM Limitations: The authors acknowledge that BianCang, like all LLMs, has inherent limitations and cannot guarantee the accuracy of all responses. It is not a substitute for professional medical diagnosis or advice.
  • Potential for Over-interpretation: The observation that smaller models sometimes outperform larger ones suggests a need for further research into mitigating over-interpretation and improving training stability for very large models.
  • Future Directions: The paper suggests that BianCang's open-source nature will facilitate further research, validation, and improvement by the global community. Its applicability in integrative medicine tasks also points towards future work in combining TCM with Western medicine approaches. The authors also emphasize the importance of continued ethical considerations, particularly regarding herbal compatibility, medication safety during pregnancy, and drug-drug interactions.

Summary updated

BibTeX
@article{wei2025biancang,
  author = {Sibo Wei and Xueping Peng and Yifei Wang and Tao Shen and Jiasheng Si and Weiyu Zhang and Fa Zhu and Athanasios V. Vasilakos and Wenpeng Lü and Jing Chi and Yinglong Wang},
  title = {{BianCang: A Traditional Chinese Medicine Large Language Model}},
  journal = {IEEE Journal of Biomedical and Health Informatics},
  year = {2025},
  doi = {10.1109/jbhi.2025.3612415},
}
Figure