JingFang: A Traditional Chinese Medicine Large Language Model of Expert-Level Medical Diagnosis and Syndrome Differentiation-Based Treatment

Yehan Yan, Tianhao Ma, Ruotai Li, Xinhan Zheng, Guodong Shan, Chisheng Li · OpenReview

Abstract

Traditional Chinese medicine (TCM) plays a vital role in health protection and disease treatment, but its practical application requires extensive medical knowledge and clinical experience. Existing TCM Large Language Models (LLMs) exhibit critical limitations of uncomprehensive medical consultation and diagnoses, and inaccurate syndrome differentiation-based treatment. To address these issues, this study establishes JingFang (JF): a novel TCM Large Language Model that demonstrates the expert-level capability of medical diagnosis and syndrome differentiation-based treatment. We innovate a Multi-agent Dynamic Collaborative Chain-of-Thought Mechanism (MDCCTM) for medical consultation, enabling JF with effective and accurate diagnostic ability. In addition, a Syndrome Agent and a Dual-Stage Retrieval Scheme (DSRS) are developed to significantly enhance the capacity of JF for disease treatment based on syndrome differentiation. JingFang not only facilitates the application of LLMs but also promotes the effective practice of TCM in human health protection and disease treatment.

Introduction

The practice of Traditional Chinese Medicine (TCM) is fundamentally distinct from Western medicine, relying heavily on "syndrome differentiation" (Bian Zheng)—the holistic analysis of a patient's physiological state—to determine a "tailored treatment" (Lun Zhi). While Large Language Models (LLMs) show promise in healthcare, existing TCM-oriented models struggle with rigid consultations that fail to ask necessary follow-up questions and often bypass the critical intermediate step of syndrome differentiation, leading to inaccurate prescriptions. Furthermore, real-world TCM records are often noisy, containing administrative data that obscures essential diagnostic patterns.

To bridge this gap, we introduce JingFang (JF), a multi-agent LLM system designed to emulate the iterative diagnostic process of expert TCM practitioners.

Methodology

The JingFang framework is built upon three core pillars designed to mirror the clinical workflow of TCM:

The JingFang LLM Framework architecture, illustrating the flow from consultation to syndrome differentiation and treatment recommendation.

Multi-Agent Collaborative Consultation Mechanism (MACCM)

JF utilizes a "Manager Agent" to assemble a specialized team of "Specialist Agents" (e.g., Pediatrics, Gynecology, Internal Medicine) alongside a "General Agent." These agents collaborate to generate and refine diagnostic questions based on the classical "Ten Questions Song" framework. This iterative process, which the authors also refer to as a Multi-agent Dynamic Collaborative Chain-of-Thought Mechanism (MDCCTM), ensures that consultations are both comprehensive and deep.

Syndrome Agent

The Syndrome Agent is fine-tuned using Low-Rank Adaptation (LoRA) on a Qwen2.5-7B base and a RoBERTa-based classifier. It is trained on a meticulously cleaned dataset of 43,000 clinical cases to map consultation results to one of 170 distinct TCM syndrome types, ensuring a rigorous intermediate diagnostic step.

Dual-Stage Retrieval Scheme (DSRS)

Rather than generating prescriptions from scratch, JF employs a DSRS to ensure accuracy:

  1. Stage 1: Filters a database of 80,000 prescriptions based on syndrome attributes like etiology and affected organs.
  2. Stage 2: Employs a hybrid ranking system (lexical and semantic) to identify the most relevant classic formulas.

Results and Evaluation

JingFang was evaluated against both general-purpose and domain-specific state-of-the-art models.

Comparative performance of JingFang against various LLMs, showing the percentage of wins, ties, and losses in expert-led evaluations.

Key findings include:

  • Syndrome Differentiation Precision: JF achieved a weighted precision of 0.8185, representing a 21.1% improvement over Claude-Opus-4.5 and a 124% improvement over the leading TCM model, HuaTuo.
  • Expert Validation: In evaluations by five TCM experts across dimensions of proactiveness, accuracy, and practicality, JF won or tied in over 83% of cases.
  • Retrieval Efficacy: The DSRS module provided more aligned prescriptions than standard retrieval methods in 85% of test cases.

Conclusion

JingFang demonstrates that a multi-agent architecture combined with high-quality, domain-specific fine-tuning can achieve expert-level performance in TCM. While current work focuses on text-based interaction, future iterations will aim to integrate multimodal data, such as tongue and pulse patterns, to fully capture the "Four Diagnostics" of traditional practice.

Summary updated

BibTeX
@misc{yan2025jingfang,
  author = {Yehan Yan and Tianhao Ma and Ruotai Li and Xinhan Zheng and Guodong Shan and Chisheng Li},
  title = {{JingFang: A Traditional Chinese Medicine Large Language Model of Expert-Level Medical Diagnosis and Syndrome Differentiation-Based Treatment}},
  year = {2025},
  eprint = {2502.04345},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.04345},
}
Figure