辨证、协同与安全:面向中医处方生成的结构化推理与知识驱动对齐
摘要
本文提出一个渐进式四阶段框架,用于大语言模型生成中医处方,解决了结构化推理、纵向适应和安全合规方面的空白,其中一个7B模型在中医特定评估指标上零样本超越GPT-5。
arXiv:2609.25755v1 Announce Type: new
Abstract: Applying large language models to Traditional Chinese Medicine (TCM) prescription generation reveals three clinically critical gaps: models produce end-to-end mappings without auditable reasoning following the li-fa-fang-yao paradigm (SR Gap), treat each encounter in isolation without follow-up adjustment via sui zheng jia jian (LA Gap), and fail to enforce absolute contraindication rules such as Shi Ba Fan (SC Gap). We propose a progressive four-stage framework (SFT $\to$ PG-CoT $\to$ Dynamic $\to$ K-RL) that addresses each gap: PG-CoT constrains CoT distillation under the li-fa-fang-yao paradigm to produce auditable diagnostic chains, Dynamic SFT models patient trajectories with explicit transition reasoning, and K-RL encodes deterministic pharmacological rules as rule-based DPO preference signals. Across 12 fine-tuned models and 6 zero-shot baselines, our framework substantially improves prescription quality over zero-shot baselines---with a 7B model (Mistral-7B) surpassing zero-shot GPT-5 on all three TCM evaluation metrics.
查看缓存全文
缓存时间: 2026/09/23 09:17
# Syndrome, Synergy, and Safety: Structured Reasoning and Knowledge-Driven Alignment for TCM Prescription Generation
Source: [https://arxiv.org/html/2609.25755](https://arxiv.org/html/2609.25755)
ZhiCheng DuAffiliation:Tsinghua UniversityHaoxuan LiAffiliation:Tsinghua UniversityPeiwu QinAffiliation:Corresponding author: pwqin1979@gmail\.com\.Affiliation:Guangdong Provincial Laboratory of Traditional Chinese Medicine Hengqin
###### Abstract
Applying large language models to Traditional Chinese Medicine \(TCM\) prescription generation reveals three clinically critical gaps: models produce end\-to\-end mappings without auditable reasoning following the*li\-fa\-fang\-yao*paradigm \(SR Gap\), treat each encounter in isolation without follow\-up adjustment via*sui zheng jia jian*\(LA Gap\), and fail to enforce absolute contraindication rules such as*Shi Ba Fan*\(SC Gap\)\. We propose a progressive four\-stage framework \(SFT→\\toPG\-CoT→\\toDynamic→\\toK\-RL\) that addresses each gap: PG\-CoT constrains CoT distillation under the*li\-fa\-fang\-yao*paradigm to produce auditable diagnostic chains, Dynamic SFT models patient trajectories with explicit transition reasoning, and K\-RL encodes deterministic pharmacological rules as rule\-based DPO preference signals\. Across 12 fine\-tuned models and 6 zero\-shot baselines, our framework substantially improves prescription quality over zero\-shot baselines—with a 7B model \(Mistral\-7B\) surpassing zero\-shot GPT\-5 on all three TCM evaluation metrics\.
## 1Introduction
Figure 1:Visual abstract\. We identify three clinical gaps in LLM\-based TCM prescription generation \(left\), propose a progressive four\-stage framework that addresses each gap on top of a common SFT foundation \(center\), and demonstrate three targeted outcomes \(right\)\.Traditional Chinese Medicine \(TCM\) is widely practiced, yet junior practitioners often lack the experience for safe prescribing—especially in follow\-up visits, a substantial share of TCM outpatient care\. TCM prescribing requires a structured reasoning chain from syndrome differentiation to formula composition—any missed step risks patient safety\.
Large language models \(LLMs\) could assist, yet deploying them for TCM prescription generation raises concerns about whether their outputs meet TCM’s rigorous clinical standards\. Current medical LLMs exhibit three clinically critical gaps \(detailed clinical background in Appendix[A](https://arxiv.org/html/2609.25755#A1)\):
#### Structured Reasoning Gap \(SR Gap\)\.
LLMs produce end\-to\-end symptom\-to\-prescription mappings without any mechanism to audit whether the output follows the*li\-fa\-fang\-yao*chain, the stepwise reasoning path from pathomechanism to medication that is treated as the unified logic linking syndrome differentiation to prescribing\([Jiang et al\., 2012](https://arxiv.org/html/2609.25755#bib.bib9);[Xie, 2023](https://arxiv.org/html/2609.25755#bib.bib23)\)\.
#### Longitudinal Adaptation Gap \(LA Gap\)\.
Follow\-up visits require*sui zheng jia jian*\(adjusting herbs and dosages as symptoms evolve\)\. Existing medical LLMs treat each encounter in isolation without dynamic adjustment, which may seriously endanger patient safety\.
#### Safety Compliance Gap \(SC Gap\)\.
Medical LLMs do not strictly enforce TCM’s absolute*Shi Ba Fan*\(Eighteen Incompatibilities\) and*Shi Jiu Wei*\(Nineteen Mutual Antagonisms\) rules\([Long et al\., 2013](https://arxiv.org/html/2609.25755#bib.bib11)\), which may yield hidden safety violations—life\-threatening contraindicated combinations\.
To address these three gaps, we propose a four\-stage framework—baseline supervised fine\-tuning \(SFT\)→\\toParadigm\-Guided Chain\-of\-Thought \(PG\-CoT\)→\\toDynamic→\\toKnowledge\-Driven Reinforcement Learning \(K\-RL\)—that progressively builds interpretability, longitudinal adaptation, and hard safety on top of a common foundation \(Figure[1](https://arxiv.org/html/2609.25755#S1.F1)\)\. Our contributions are:
1. 1\.PG\-CoTthat combines CoT distillation with the*li\-fa\-fang\-yao*paradigm to produce auditable diagnostic chains, improving reasoning transparency\.
2. 2\.Dynamic follow\-up modelingthat incorporates*sui zheng jia jian*transition reasoning on patient trajectories, enabling longitudinal prescription adjustment\.
3. 3\.K\-RLthat encodes TCM pharmacological rules \(*Shi Ba Fan*,*Shi Jiu Wei*\) as rule\-based DPO preference signals constructed from synthetic safety pairs, reducing contraindication violations\.
4. 4\.A comprehensive evaluation across12 fine\-tuned modelsand6 zero\-shot baselineswith stage\-wise ablation and adversarial probing, demonstrating that paradigm\-constrained fine\-tuning outperforms zero\-shot high\-parameter models\.
Figure[2](https://arxiv.org/html/2609.25755#S3.F2)overviews the full four\-stage pipeline\.
## 2Related Work
### 2\.1Medical NLP and TCM
LLMs have shown strong performance in medical question answering\([Singhal et al\., 2023](https://arxiv.org/html/2609.25755#bib.bib16)\)and diagnostic reasoning\([Tu et al\., 2024](https://arxiv.org/html/2609.25755#bib.bib18)\), with English systems like Med\-PaLM 2\([Singhal et al\., 2025](https://arxiv.org/html/2609.25755#bib.bib17)\)reaching expert levels\. Chinese models such as HuatuoGPT\([Zhang et al\., 2023](https://arxiv.org/html/2609.25755#bib.bib28)\)focus on general medical QA\. TCM\-specific NLP remains sparse: prior work addresses NER, relation extraction, and syndrome classification\([Zhang et al\., 2022](https://arxiv.org/html/2609.25755#bib.bib29)\), while recent TCM\-centric LLMs such as BenTsao\([Wang et al\., 2023](https://arxiv.org/html/2609.25755#bib.bib21)\)fine\-tune on domain knowledge but do not tackle prescription generation or structured reasoning\.[Yue et al\. \(2024\)](https://arxiv.org/html/2609.25755#bib.bib26)propose a TCM benchmark focused on knowledge recall rather than prescription quality\. No prior work systematically models longitudinal follow\-up reasoning in TCM prescription generation\.
### 2\.2Chain\-of\-Thought and Knowledge Distillation
Chain\-of\-thought prompting\([Wei et al\., 2022](https://arxiv.org/html/2609.25755#bib.bib22)\)and distillation\([Ho et al\., 2023](https://arxiv.org/html/2609.25755#bib.bib6);[Hsieh et al\., 2023](https://arxiv.org/html/2609.25755#bib.bib7)\)improve performance on complex tasks via intermediate reasoning\. In medicine, CoT has been used for English QA\([Singhal et al\., 2023](https://arxiv.org/html/2609.25755#bib.bib16);[Zhang et al\., 2023](https://arxiv.org/html/2609.25755#bib.bib28)\), but the reasoning is free\-form\. For TCM, free\-form CoT risks generating clinically illogical rationales because the reasoning must follow the fixed*li\-fa\-fang\-yao*paradigm\. Constrained CoT that mirrors this clinical structure is needed to ensure auditable diagnostic chains\.
### 2\.3Safety Alignment and RLAIF
RLHF\([Ouyang et al\., 2022](https://arxiv.org/html/2609.25755#bib.bib14)\)and DPO\([Rafailov et al\., 2023](https://arxiv.org/html/2609.25755#bib.bib15)\)align LLMs with human preferences\. RLAIF\([Bai et al\., 2022](https://arxiv.org/html/2609.25755#bib.bib1);[Lee et al\., 2024](https://arxiv.org/html/2609.25755#bib.bib10)\)replaces human annotators with LLM judges, inheriting their biases\. TCM contraindications \(Shi Ba Fan, Shi Jiu Wei\) are deterministic pharmacological facts, not preferences\. Using rule\-based rewards offers zero annotation cost, full interpretability, and guaranteed consistency—an underexplored direction that we investigate asK\-RL\.
### 2\.4Longitudinal Clinical Modeling
Longitudinal patient modeling has been explored in medical dialogue corpora\([Zeng et al\., 2020](https://arxiv.org/html/2609.25755#bib.bib27)\)and conversational diagnostic AI\([Tu et al\., 2025](https://arxiv.org/html/2609.25755#bib.bib19)\)\. However, clinical follow\-up reasoning differs fundamentally: each “turn” is a clinical decision adjustment based on therapeutic feedback, not a conversational continuation\. Existing models do not support explicit symptom\-evolution comparison and justification of herb/dosage changes, which is exactly the*sui zheng jia jian*capability we address\.
## 3Method
### 3\.1Task Definition
We formulate thelongitudinal TCM prescription generationtask as follows\. Given a patient record𝐱\\mathbf\{x\}consisting of symptoms, tongue and pulse descriptions, and optional prior prescription history, the model must produce:
1. 1\.Areasoning chain𝐫=\(r1,r2,…,rK\)\\mathbf\{r\}=\(r\_\{1\},r\_\{2\},\\ldots,r\_\{K\}\)following the*li\-fa\-fang\-yao*diagnostic paradigm \(syndrome differentiation→\\totreatment principle→\\toformula rationale→\\tosafety verification\),
2. 2\.Aprescription𝐲=\{\(hi,di\)\}i=1N\\mathbf\{y\}=\\\{\(h\_\{i\},d\_\{i\}\)\\\}\_\{i=1\}^\{N\}of herb–dosage pairs\.
In the follow\-up setting, the model additionally receives the initial prescription𝐲\(0\)\\mathbf\{y\}^\{\(0\)\}and must reason about symptom evolution before generating an adjusted prescription𝐲\(1\)\\mathbf\{y\}^\{\(1\)\}\. We factor the joint probability as:
P\(𝐫,𝐲∣𝐱\)=P\(𝐫∣𝐱\)⋅P\(𝐲∣𝐫,𝐱\)P\(\\mathbf\{r\},\\mathbf\{y\}\\mid\\mathbf\{x\}\)=P\(\\mathbf\{r\}\\mid\\mathbf\{x\}\)\\cdot P\(\\mathbf\{y\}\\mid\\mathbf\{r\},\\mathbf\{x\}\)\(1\)where𝐫\\mathbf\{r\}conditions prescription generation on explicit diagnostic reasoning, providing intermediate supervision\.
Three properties distinguish this from standard text\-to\-text generation: \(1\) the reasoning chain must follow a fixed clinical paradigm rather than free\-form inference; \(2\) follow\-up prescriptions depend on the initial visit, introducing longitudinal dependencies; and \(3\) the output must satisfy hard safety constraints \(herb incompatibility rules\), not merely soft preferences\.
Figure 2:Four\-stage training pipeline\. Baseline SFT establishes basic prescription ability from 40K clinical records;PG\-CoTinjects auditable reasoning via 16\.5K*li\-fa\-fang\-yao*CoT samples; Dynamic SFT extends to longitudinal trajectories;K\-RLapplies DPO with synthetic preference pairs whose reward is the rule\-based safety scoreS\(𝐲\)S\(\\mathbf\{y\}\)from TCMSafetyChecker\. LoRA adapters are inherited stage by stage; DPO is initialized from the Dynamic adapter\.
### 3\.2PG\-CoT: Paradigm\-Guided Chain\-of\-Thought Distillation
A naive application of chain\-of\-thought to TCM would encourage free\-form reasoning\. However, clinical validity in TCM requires adherence to the*li\-fa\-fang\-yao*paradigm: any deviation from this structured chain can produce plausible\-sounding but clinically unjustifiable rationales\. To quantify this, we conducted a pilot experiment \(Appendix[D](https://arxiv.org/html/2609.25755#A4)\) comparing free\-form CoT against a variant that explicitly follows the*li\-fa\-fang\-yao*structure\. The structured variant shows substantially higher clinician\-rated auditability \(\+0\.29\) and lower logical inconsistency \(−\-0\.12\) while also improving prescription quality \(Appendix[D](https://arxiv.org/html/2609.25755#A4)\), confirming that the paradigm constraint acts as a performance\-enhancing inductive bias rather than a limitation\.
Based on this evidence, we proposePG\-CoT\(Paradigm\-Guided Chain\-of\-Thought\)\. PG\-CoT distills structured diagnostic chains from a strong reasoning model \(DeepSeek\-R1\) into smaller student models, while strictly enforcing the*li\-fa\-fang\-yao*sequence\. Unlike general CoT distillation\([Ho et al\., 2023](https://arxiv.org/html/2609.25755#bib.bib6);[Hsieh et al\., 2023](https://arxiv.org/html/2609.25755#bib.bib7)\)that encourages free\-form reasoning, PG\-CoT produces clinically auditable rationales where each step corresponds to a verifiable diagnostic decision \(Figure[3](https://arxiv.org/html/2609.25755#S3.F3)\)\.
Figure 3:Output morphology comparison on one held\-out initial visit \(Mistral\-7B\)\. Baseline produces a prescription list only; PG\-CoT and Dynamic SFT yield structured*li\-fa\-fang\-yao*chains with syndrome analysis, treatment principle, formula rationale, and safety verification\.#### Static CoT structure\.
For initial visits, each training sample follows:
𝐱sx⟶rsyn→rprinc→rform→rsafe⏟structured reasoning chain⟶𝐲rx\\mathbf\{x\}\_\{\\text\{sx\}\}\\longrightarrow\\underbrace\{r\_\{\\text\{syn\}\}\\to r\_\{\\text\{princ\}\}\\to r\_\{\\text\{form\}\}\\to r\_\{\\text\{safe\}\}\}\_\{\\text\{structured reasoning chain\}\}\\longrightarrow\\mathbf\{y\}\_\{\\text\{rx\}\}where eachrkr\_\{k\}is a structured text segment:
- •Syndrome analysis\(rsynr\_\{\\text\{syn\}\}\): integrates symptoms, tongue coating, and pulse qualities to identify the pathogenesis and derive the zheng \(pattern\), including zang\-fu organ vacuity/repletion\.
- •Treatment principle\(rprincr\_\{\\text\{princ\}\}\): establishes the therapeutic strategy \(e\.g\., “warm yang and promote fluid resolution” or “fortify the spleen and transform phlegm”\)\.
- •Formula rationale\(rformr\_\{\\text\{form\}\}\): explains the jun\-chen\-zuo\-shi \(king\-minister\-assistant\-courier\) compatibility logic of each core herb\.
- •Safety verification\(rsafer\_\{\\text\{safe\}\}\): checks for contraindication rule violations \(Section[3\.4](https://arxiv.org/html/2609.25755#S3.SS4)\)\.
### 3\.3Dynamic Regime: Longitudinal Follow\-up Modeling
The defining clinical skill in follow\-ups is*sui zheng jia jian*: adjusting herbs and dosages based on symptom evolution\. We address the LA Gap \(Section[1](https://arxiv.org/html/2609.25755#S1)\) through longitudinal follow\-up modeling with dynamic CoT\.
Because the clinical dataset lacks unique patient identifiers, we construct pseudo\-IDs to link encounters into patient trajectories \(17,985 trajectories from 124,593 records\)\. We filter follow\-up transitions by Jaccard similarity of herb sets \(0\.3≤J<0\.90\.3\\leq J<0\.9, clinically meaningful adjustment\), yielding 24,689 dynamic samples; full details are in Appendix[C](https://arxiv.org/html/2609.25755#A3)\.
#### Dynamic CoT structure\.
For follow\-up visits, the reasoning chain is extended to reason about the transition:
\(𝐱\(1\),𝐲\(0\)\)\\displaystyle\(\\mathbf\{x\}^\{\(1\)\},\\mathbf\{y\}^\{\(0\)\}\)⟶revol→radj→rnew→rsafe⏟dynamic CoT chain\\displaystyle\\longrightarrow\\underbrace\{r\_\{\\text\{evol\}\}\\to r\_\{\\text\{adj\}\}\\to r\_\{\\text\{new\}\}\\to r\_\{\\text\{safe\}\}\}\_\{\\text\{dynamic CoT chain\}\}⟶𝐲\(1\)\\displaystyle\\longrightarrow\\mathbf\{y\}^\{\(1\)\}whererevolutionr\_\{\\text\{evolution\}\}compares symptoms between visits \(improvement, persistence, new manifestations\),radjustmentr\_\{\\text\{adjustment\}\}explains specific herb additions/removals \(e\.g\., “heat has resolved, therefore remove Shi Gao; spleen deficiency persists, therefore add Bai Zhu”\), andrnew\_formular\_\{\\text\{new\\\_formula\}\}summarizes the new prescription’s compatibility logic\.
The key distinction from static CoT is the introduction oflongitudinal dependency: the model must understand not just*what to prescribe*but*why this prescription should differ from the previous one*\.
### 3\.4K\-RL: Knowledge\-Driven Preference Alignment
TCM contraindications \(e\.g\.,*Shi Ba Fan*pairs\) are deterministic pharmacological facts rather than learned preferences\. We address the SC Gap \(Section[1](https://arxiv.org/html/2609.25755#S1)\) by exploringK\-RL\(Knowledge\-Driven Reinforcement Learning\) as an initial attempt to replace human preference annotation with rule\-based domain knowledge as the reward signal; the resulting safety effects are analyzed in Section[5](https://arxiv.org/html/2609.25755#S5)\.
#### TCMSafetyChecker\.
We implement a rule\-based safety scorer grounded in TCM pharmacological hard knowledge:
- •Shi Ba Fan\(Eighteen Incompatibilities\): 6 core pairs with derived synonyms \(e\.g\., licorice↔\\leftrightarrowGan Sui / Da Ji / Yuan Hua / Hai Zao; Aconite↔\\leftrightarrowBei Mu / Gua Lou / Ban Xia / Bai Ji\)\. Penalty:−0\.5\-0\.5\.
- •Shi Jiu Wei\(Nineteen Mutual Antagonisms\): 10 pairs \(e\.g\., Ding Xiang↔\\leftrightarrowYu Jin; Ren Shen↔\\leftrightarrowWu Ling Zhi\)\. Penalty:−0\.3\-0\.3\.
- •Toxic herb check: herbs classified as “highly toxic” \(e\.g\., raw Chuan Wu, Ma Qian Zi\)\. Penalty:−0\.1\-0\.1\.
Synonym expansion prevents alias\-based evasion \(e\.g\., Hei Shun Pian→\\toFu Zi, Bei Xi Xin→\\toXi Xin\)\. The final safety score is:
S\(𝐲\)=max\(0,1\+∑v∈𝒱wv⋅𝟙\[v∈𝐲\]\)S\(\\mathbf\{y\}\)=\\max\\left\(0,\\,1\+\\sum\_\{v\\in\\mathcal\{V\}\}w\_\{v\}\\cdot\\mathbb\{1\}\[v\\in\\mathbf\{y\}\]\\right\)\(2\)where𝒱\\mathcal\{V\}is the set of detected violations andwvw\_\{v\}is the penalty weight\.
#### DPO preference pair construction\.
We construct preference pairs for Direct Preference Optimization\([Rafailov et al\., 2023](https://arxiv.org/html/2609.25755#bib.bib15)\)as follows:
- •Chosen\(𝐲w\\mathbf\{y\}\_\{w\}\): LLM\-assisted prescriptions that pass both the TCMSafetyChecker withS\(𝐲\)=1\.0S\(\\mathbf\{y\}\)=1\.0and human review \(37,884 samples before decontamination; 37,098 after\)\.
- •Rejected\(𝐲l\\mathbf\{y\}\_\{l\}\): the same prescriptions with synthetically injected contraindication herbs \(e\.g\., adding Gan Sui to a prescription containing licorice\)\.
- •Filtering: 2,101 outputs that contained safety violations are excluded from the chosen set, ensuring that positive examples are unambiguously safe\.
This synthetic\-negative strategy avoids manual preference annotation and produces unambiguous contrast pairs, but its narrow distribution may not cover the adversarial scenarios encountered at evaluation time, a potential factor in K\-RL’s model\-dependent effects \(Section[5\.1](https://arxiv.org/html/2609.25755#S5.SS1.SSS0.Px3); Limitations\)\.
#### Training procedure\.
DPO is initialized from the*Dynamic SFT*adapter \(Section[3\.3](https://arxiv.org/html/2609.25755#S3.SS3)\) to preserve reasoning and longitudinal capabilities\. The DPO objective is:
ℒDPO\\displaystyle\\mathcal\{L\}\_\{\\text\{DPO\}\}=−𝔼\[logσ\(βlogπθ\(𝐲w\|𝐱\)πref\(𝐲w\|𝐱\)\\displaystyle=\-\\mathbb\{E\}\\Big\[\\log\\sigma\\big\(\\beta\\log\\tfrac\{\\pi\_\{\\theta\}\(\\mathbf\{y\}\_\{w\}\|\\mathbf\{x\}\)\}\{\\pi\_\{\\text\{ref\}\}\(\\mathbf\{y\}\_\{w\}\|\\mathbf\{x\}\)\}−βlogπθ\(𝐲l\|𝐱\)πref\(𝐲l\|𝐱\)\)\]\\displaystyle\\quad\-\\beta\\log\\tfrac\{\\pi\_\{\\theta\}\(\\mathbf\{y\}\_\{l\}\|\\mathbf\{x\}\)\}\{\\pi\_\{\\text\{ref\}\}\(\\mathbf\{y\}\_\{l\}\|\\mathbf\{x\}\)\}\\big\)\\Big\]\(3\)We setβ=0\.1\\beta=0\.1and learning rate5×10−65\\times 10^\{\-6\}, and train for only 1 epoch to avoid alignment tax \(the degradation of model capabilities from overfitting on preference data\)\.
### 3\.5Training Overview
All stages share a parameter\-efficient fine\-tuning backbone\([Hu et al\., 2022](https://arxiv.org/html/2609.25755#bib.bib8)\); GPU, quantization, hyperparameters, and scale\-adaptive settings are in Appendix[B](https://arxiv.org/html/2609.25755#A2)\.
## 4Experimental Setup
We evaluate our four\-stage pipeline on 12 fine\-tuned models via QLoRA, targeting the three clinical gaps in Section[1](https://arxiv.org/html/2609.25755#S1)\(SR, LA, and SC\) through stage\-wise ablation on a unified held\-out test set of 871 cases\. We additionally compare against 6 zero\-shot baselines \(Section[5\.2](https://arxiv.org/html/2609.25755#S5.SS2)\)\. Training details are in Appendix[B](https://arxiv.org/html/2609.25755#A2), prompt templates in Appendix[M](https://arxiv.org/html/2609.25755#A13), and reproducibility information in Appendix[L](https://arxiv.org/html/2609.25755#A12)\.
### 4\.1Data and Models
Our dataset is constructed from 124,593 TCM outpatient records, progressively filtered into four experimental datasets \(Table[1](https://arxiv.org/html/2609.25755#S4.T1); details in Appendix[C](https://arxiv.org/html/2609.25755#A3)\)\. All models are evaluated on the same held\-out test set with decontamination via input\-text fingerprint matching\.
Table 1:Dataset statistics\. Sx = symptoms, FU = follow\-up, Rsn = reasoning\. All training counts are after train/test decontamination\. Baseline is sampled to 40K from 94,986 decontaminated records\. All stages share the same 871\-case test set\.We evaluate 12 models spanning six families and three scale tiers:Small\(<<7B\): Qwen3\.5\-0\.8B, Qwen3\.5\-2B, Gemma\-2\-2B, Phi\-3\-Mini\-3\.8B;Medium\(7–14B\): Qwen3\.5\-9B, LLaMA\-3\.1\-8B, Mistral\-7B\-v0\.3, DeepSeek\-R1\-Distill\-Llama\-8B \(DS\-R1\-Distill\-8B\), Gemma\-2\-9B;Large\(\>\>14B\): Qwen3\.5\-27B, Gemma\-2\-27B, Mistral\-Small\-24B\. The complete model list is in Appendix[E](https://arxiv.org/html/2609.25755#A5); structured output compliance analysis is in Appendix[I](https://arxiv.org/html/2609.25755#A9)\.
We additionally compare against 6 zero\-shot baselines \(Table[4](https://arxiv.org/html/2609.25755#S4.T4)\): 3 high\-parameter general\-purpose models \(GPT\-5, DeepSeek\-V3, LLaMA\-4\-Scout\) and 3 TCM\-specific models \(Baichuan2\-7B, HuatuoGPT, BenTsao\)\. All are evaluated zero\-shot on the same test set and adversarial probe set\.
### 4\.2Evaluation Metrics
To simultaneously assess prescription accuracy and auditability under professional TCM standards, we adopt three metrics: PQS, CQS, and VR\. Design rationale and implementation details are in Appendix[F](https://arxiv.org/html/2609.25755#A6)\.
#### PQS\.
PQS=0\.30F1H\+0\.35Accdose\+0\.15J\+0\.10OKcnt\+0\.10S\\begin\{split\}\\text\{PQS\}=\\;&0\.30F1\_\{H\}\+0\.35\\text\{Acc\}\_\{\\text\{dose\}\}\+0\.15J\\\\ &\+0\.10\\text\{OK\}\_\{\\text\{cnt\}\}\+0\.10S\\end\{split\}\(4\)whereF1HF1\_\{H\}: herb\-set F1;Accdose\\text\{Acc\}\_\{\\text\{dose\}\}: dosage accuracy \(40% tolerance\);JJ: herb\-set Jaccard;OKcnt\\text\{OK\}\_\{\\text\{cnt\}\}: herb count reasonableness;SS: safety score \(Section[3\.4](https://arxiv.org/html/2609.25755#S3.SS4)\)\.
#### CQS\.
CQS=0\.6⋅PQSbase\+0\.4⋅Areason,Areason=∑kwk⋅cos\(𝐞kgt,𝐞kpred\)\\begin\{split\}\\text\{CQS\}=\\;&0\.6\\cdot\\text\{PQS\}\_\{\\text\{base\}\}\+0\.4\\cdot A\_\{\\text\{reason\}\},\\\\ A\_\{\\text\{reason\}\}=\\;&\\sum\_\{k\}w\_\{k\}\\cdot\\cos\(\\mathbf\{e\}\_\{k\}^\{\\text\{gt\}\},\\mathbf\{e\}\_\{k\}^\{\\text\{pred\}\}\)\\end\{split\}\(5\)wherePQSbase\\text\{PQS\}\_\{\\text\{base\}\}is the baseline SFT PQS \(format\-stable across stages\), andAreasonA\_\{\\text\{reason\}\}is the section\-weighted cosine similarity between predicted and ground\-truth CoT segments \(section weights in Appendix[F](https://arxiv.org/html/2609.25755#A6)\)\. Embeddings: Qwen3\-Embedding\-8B\. For non\-CoT outputs, we report PQS only\.
#### VR\.
Adversarial probe set𝒫\\mathcal\{P\}: 53 prompts \(24 direct, 17 contextual, 12 open\-generation\), validated with 100% trigger rate\.
VR=1\|𝒫\|∑p∈𝒫\[S\(𝐲^p\)<1\]\\text\{VR\}=\\frac\{1\}\{\|\\mathcal\{P\}\|\}\\sum\_\{p\\in\\mathcal\{P\}\}\\mathbb\{1\}\\\!\\left\[S\(\\hat\{\\mathbf\{y\}\}\_\{p\}\)<1\\right\]\(6\)Lower VR is better\. Evaluated on 10 fine\-tuned models across all four stages\.
#### Format bias caveat\.
PQS comparisons between baseline and CoT models must account for aformat bias: CoT outputs embed prescriptions in long structured text, causing parser mis\-extraction that biases baseline PQS upward \(Appendix[H](https://arxiv.org/html/2609.25755#A8)\)\.
PQS↑\\uparrowCQS↑\\uparrowModelScaleZero\-shotBasePG\-CoTDynK\-RLSmall models \(<<7B\)Qwen3\.5\-0\.8B0\.8B0\.3440\.6390\.7070\.7230\.716Qwen3\.5\-2B2B0\.4720\.6990\.7110\.7150\.702Gemma\-2\-2B2B0\.1600\.6040\.3870\.3760\.553Phi\-3\-Mini3\.8B0\.1080\.6430\.4220\.4420\.501Medium models \(7–14B\)LLaMA\-3\.1\-8B8B0\.2000\.7100\.7270\.7310\.724Mistral\-7B7B0\.1130\.7010\.7280\.7320\.766DS\-R1\-Distill\-8B8B0\.1110\.5600\.5660\.5700\.597Gemma\-2\-9B9B0\.3670\.7170\.7210\.7280\.729Qwen3\.5\-9B9B0\.5140\.4490\.5840\.5220\.5191Large models \(\>\>14B\)Mistral\-24B24B0\.3960\.7210\.7230\.7180\.731Qwen3\.5\-27B27B0\.4330\.5660\.5720\.5770\.581Gemma\-2\-27B27B0\.3530\.6830\.6760\.6830\.701
- •All models are fine\-tuned via QLoRA and evaluated on the same 871\-case held\-out test set with decontamination\. “Base” = baseline SFT; “Dyn” = Dynamic SFT; “K\-RL” = DPO on Dynamic adapter\. Stage\-wise PQS andAreasonA\_\{\\text\{reason\}\}in Appendix[G](https://arxiv.org/html/2609.25755#A7)\. PQS comparisons across stages must account for format bias \(Appendix[H](https://arxiv.org/html/2609.25755#A8)\)\.
- 1Qwen3\.5\-9B shows zero\-shot PQS exceeding baseline SFT PQS, attributed to strong Chinese\-centric pretraining combined with verbose SFT output reducing extraction accuracy; see Appendix[O](https://arxiv.org/html/2609.25755#A15)for discussion\.
Table 2:Main results \(PQS and CQS\) on fine\-tuned models across training stages\. Zero\-shot PQS provided for reference\.- •VR is evaluated on 53 adversarial probes \(24 direct, 17 contextual, 12 open\-generation\) with 100% trigger rate\. “Base” = baseline SFT; “Dyn” = Dynamic SFT; “K\-RL” = DPO on Dynamic adapter\. Qwen3\.5\-2B \(small\) and Qwen3\.5\-9B \(medium\) are excluded due to generation failure on adversarial prompts \(empty or unparseable outputs\)\.
Table 3:Adversarial safety results \(VR\) on fine\-tuned models across training stages\.- •All baselines are evaluated zero\-shot on the same 871\-case test set and 53 adversarial probes\. CQS for zero\-shot baselines is computed from their free\-form outputs using the same structured parsing pipeline; outputs that cannot be parsed into the*li\-fa\-fang\-yao*format receive reducedAreasonA\_\{\\text\{reason\}\}scores\. Our models use the K\-RL \(final\) training stage\. MoE models report total parameters \(DeepSeek\-V3: 671B total, 37B active; LLaMA\-4\-Scout: 109B total, 17B active\)\.
Table 4:Comparison results \(PQS, CQS, and VR\) with high\-parameter models\.
## 5Results and Analysis
### 5\.1Main Results
Tables[2](https://arxiv.org/html/2609.25755#S4.T2)–[3](https://arxiv.org/html/2609.25755#S4.T3)present results across 12 fine\-tuned models and four training stages; Table[4](https://arxiv.org/html/2609.25755#S4.T4)compares representative fine\-tuned models against zero\-shot baselines\. Notably,Mistral\-7B at only 7B parameters surpasses zero\-shot GPT\-5 on all three TCM evaluation metrics, demonstrating that paradigm\-constrained fine\-tuning at a modest scale can exceed the zero\-shot capability of far larger models\.
#### SR Gap: PG\-CoT delivers auditable, high\-quality reasoning\.
Domain SFT is the prerequisite foundation; on top of it, PG\-CoT produces structured*li\-fa\-fang\-yao*chains with high reasoning alignment \(Figure[3](https://arxiv.org/html/2609.25755#S3.F3)\) and CQS that matches or exceeds baseline PQS despite format bias \(Appendix[H](https://arxiv.org/html/2609.25755#A8)\)\. Our fine\-tuned models substantially outperform both high\-parameter general\-purpose models and TCM\-specific models on prescription quality and reasoning alignment \(Table[4](https://arxiv.org/html/2609.25755#S4.T4)\)\.
#### LA Gap: Dynamic SFT and K\-RL progressively improve longitudinal adaptation\.
Dynamic SFT preserves clinical quality while enabling*sui zheng jia jian*reasoning, and K\-RL further amplifies gains\. Medium\-scale models benefit most from the full pipeline, improving monotonically across all stages \(Table[5](https://arxiv.org/html/2609.25755#S5.T5)\)\.
#### SC Gap: Structured reasoning and K\-RL substantially reduce safety violations\.
PG\-CoT’s dedicatedrsafetyr\_\{\\text\{safety\}\}verification sharply reduces adversarial VR, and K\-RL delivers the most consistent VR reductions on models with high baseline vulnerability\. Our fine\-tuned models achieve lower VR than all zero\-shot baselines, including models orders of magnitude larger \(Table[4](https://arxiv.org/html/2609.25755#S4.T4)\)\.
### 5\.2Comparison with Zero\-Shot Baselines
Table[4](https://arxiv.org/html/2609.25755#S4.T4)compares representative fine\-tuned models against high\-parameter general\-purpose and TCM\-specific models in a zero\-shot setting \(full results in Appendix[N](https://arxiv.org/html/2609.25755#A14)\)\. Domain\-specific fine\-tuning with structured reasoning delivers prescription quality that even high\-parameter general\-purpose models \(e\.g\., DeepSeek\-V3 at 671B\) cannot match zero\-shot\. TCM\-specific models \(7B scale\), despite incorporating medical knowledge during training, lack the*li\-fa\-fang\-yao*paradigm constraint and longitudinal reasoning that our framework provides\. The gap is most pronounced on CQS, where paradigm\-guided reasoning alignment gives our models a substantial advantage, and on VR, where K\-RL’s rule\-based alignment provides additional safety beyond what zero\-shot generation achieves\.
### 5\.3Stage\-by\-Stage Ablation
Table 5:Stage\-by\-stage ablation\. A = Baseline, B = PG\-CoT, C = Dynamic, D = K\-RL\. PQS deltas reflect format bias on CoT outputs; CQS combines reasoning alignment and prescription quality\.Figure 4:Stage\-wise CQS trajectories on representative medium\-scale models across training stages\.Figure[4](https://arxiv.org/html/2609.25755#S5.F4)and Table[5](https://arxiv.org/html/2609.25755#S5.T5)decompose the stage\-wise trajectory on three representative models\. PG\-CoT \(A→\\toB\) introduces auditable structure with CQS reaching∼\{\\sim\}0\.72 on Mistral models; the apparent PQS drop is largely format bias\. Dynamic SFT \(B→\\toC\) preserves CQS while adding longitudinal reasoning capability\. K\-RL \(C→\\toD\) further lifts CQS on all three models, with the largest gain on Mistral\-7B\. The progressive improvement confirms that each stage contributes incrementally to clinical quality \(detailed scaling and model family analysis in Appendix[O](https://arxiv.org/html/2609.25755#A15)\)\.
#### Format bias\.
CoT outputs embed prescriptions in long structured text, causing parser mis\-extraction that biases baseline PQS upward\. Detailed quantification is provided in Appendix[H](https://arxiv.org/html/2609.25755#A8)\.
## 6Conclusion
We proposed a progressive four\-stage framework \(SFT→\\toPG\-CoT→\\toDynamic→\\toK\-RL\) that targets three clinical gaps in LLM\-based TCM prescription generation: the absence of auditable reasoning, the lack of longitudinal follow\-up adjustment, and hidden contraindication violations\. By constraining CoT distillation under the*li\-fa\-fang\-yao*paradigm, modeling patient trajectories with*sui zheng jia jian*transition reasoning, and encoding deterministic pharmacological rules as rule\-based DPO preference signals constructed from synthetic safety pairs, our framework substantially improves TCM prescription quality, reasoning auditability, and adversarial safety across diverse model families and scales, demonstrating that paradigm\-constrained fine\-tuning is an effective strategy for specialized clinical domains\.
## Limitations
This work has several limitations\. First, the TCMSafetyChecker covers only explicit herb incompatibility rules \(*Shi Ba Fan*,*Shi Jiu Wei*\) and toxicity classifications; it does not assess clinical indication\-level safety \(e\.g\., whether a heat\-clearing herb is appropriate for a cold syndrome\) or dosage safety beyond the 40% tolerance window\. Our VR metric provides stage\- and architecture\-discriminative safety signal beyond rule\-level pass rates, but the probe set covers only 53 scenarios and may not reflect the full range of safety challenges in clinical practice\.
Second, the safety benefits of PG\-CoT and K\-RL remain model\-dependent\. K\-RL achieves the lowest VR on some architectures \(e\.g\., LLaMA\-3\.1\-8B: 0\.038; Mistral\-7B: 0\.271\) but increases VR on Gemma\-2\-9B \(0\.132→\\to0\.189\); PG\-CoT sharply reduces VR on Gemma\-2\-9B \(0\.340→\\to0\.094\) but can increase VR on others \(e\.g\., Phi\-3\-Mini: 0\.382→\\to0\.401\)\. We identify two potential contributing factors: \(1\) K\-RL’s synthetic negatives are distributionally narrow—rejected samples inject specific contraindication pairs into otherwise valid prescriptions, causing DPO to overfit to “obvious violation” patterns without learning generalizable safety reasoning; \(2\) the rule\-based checker produces a binary signal \(violation present or absent\) that may inadequately cover the output distribution for some models\. For deterministic rule enforcement, a post\-hoc safety checker remains the simpler and more reliable approach; K\-RL’s intended advantage of*internalizing*safety preferences is only partially achieved\.
Third, our experimental design is a sequential pipeline where each training stage builds on its predecessor\. This means the individual contributions of PG\-CoT, Dynamic SFT, and K\-RL cannot be fully disentangled: K\-RL is warm\-started from the Dynamic SFT adapter, so its additional benefit over continued SFT training—rather than rule\-based DPO specifically—is confounded\. A controlled ablation \(e\.g\., comparing SFT\+DPO without knowledge\-based pairs against SFT\+K\-RL\) would provide cleaner attribution\. The sequential structure is a practical choice for progressive training and the main results demonstrate the cumulative value of the full pipeline, but readers should interpret stage\-wise deltas with this interdependence in mind\. Notably, the headline result of a 7B fine\-tuned model surpassing zero\-shot GPT\-5 is primarily driven by domain SFT \(Stage 1\); PG\-CoT, Dynamic SFT, and K\-RL provide incremental improvements in reasoning auditability, longitudinal structure, and safety alignment on top of this SFT foundation\.
Fourth, our longitudinal trajectory extraction relies on pseudo\-IDs rather than true patient identifiers, which may introduce both missed links \(same patient split across IDs\) and false links \(different patients merged under one ID\)\. The unified test set contains only initial\-visit cases \(871 static\); Dynamic models are therefore evaluated on the same static cases as PG\-CoT models, so CQS differences reflect model capability rather than test\-case type, and longitudinal reasoning capability is tested indirectly through maintained prescription quality plus qualitative case studies \(Appendix[J](https://arxiv.org/html/2609.25755#A10)\)\. A stratified evaluation on follow\-up cases would provide more direct evidence of Dynamic CoT’s value\.
Fifth, our clinical data originates from specific outpatient departments; generalization to other institutional settings, geographic regions, or TCM practice traditions has not been validated\.
Sixth, PG\-CoT’s reasoning chains are distilled from DeepSeek\-R1; any errors in the teacher model’s outputs that pass human review are inherited by all student models, though PG\-CoT’s structured output format itself mitigates this risk by making errors auditable and correctable\.
Seventh, while our expert evaluation \(Appendix[K](https://arxiv.org/html/2609.25755#A11)\) confirms progressive quality improvement across stages \(Cohen’sκ\\kappa= 0\.77, substantial agreement\), it covers only two raters, 100 cases, and one model \(Mistral\-24B\); the findings may not generalize to all model families\. A prospective study with real\-world deployment would be needed to assess practical clinical impact\.
## Ethics Statement
This work uses de\-identified clinical records from TCM outpatient departments for research purposes\. No personally identifiable information is retained in the dataset or model outputs\. The data used in this study has been approved by the institutional ethics committee of the originating hospital, and all records were de\-identified prior to our access\. The TCMSafetyChecker is designed as a supplementary verification tool and is not intended to replace professional clinical judgment\. All TCM pharmacological rules encoded in the system are drawn from established pharmacopeial references\. The models and outputs presented in this paper are for research purposes only and must not be used for clinical decision\-making without appropriate medical oversight and regulatory approval\.
We disclose that AI was used for polishing the writing of this manuscript\. All scientific content, experimental design, and analysis were conducted by the authors\.
## Data Availability
Upon publication, we will release an anonymized subset of the clinical data that protects patient privacy, together with training code, evaluation scripts, model adapters, the TCMSafetyChecker rule set, and the adversarial probe set to facilitate replication of our safety evaluation\.
## References
- Baiet al\.\(2022\)Y\. Bai, S\. Kadavath, S\. Kundu, A\. Askell, J\. Kernion, A\. Jones, A\. Chen, A\. Goldie, A\. Mirhoseini, C\. McKinnon,et al\.Constitutional AI: harmlessness from AI feedback\.External Links:2212\.08073,[Link](https://arxiv.org/abs/2212.08073),[Document](https://dx.doi.org/10.48550/arXiv.2212.08073)Cited by:[§2\.3](https://arxiv.org/html/2609.25755#S2.SS3.p1.1)\.
- DeepSeek\-AIet al\.\(2025\)DeepSeek\-AI, D\. Guo, D\. Yang, H\. Zhang, J\. Song, R\. Zhang, R\. Xu, Q\. Zhu, S\. Ma, P\. Wang,et al\.DeepSeek\-R1: incentivizing reasoning capability in LLMs via reinforcement learning\.Computing Research RepositoryarXiv:2501\.12948\.External Links:[Link](https://arxiv.org/abs/2501.12948),[Document](https://dx.doi.org/10.48550/arXiv.2501.12948)Cited by:[Appendix C](https://arxiv.org/html/2609.25755#A3.SS0.SSS0.Px3.p1.1)\.
- DeepSeek\-AIet al\.\(2024\)DeepSeek\-AI, A\. Liu, B\. Feng, B\. Wang, B\. Tang, C\. Chen, C\. Cheng, J\. Dai, Z\. Deng,et al\.DeepSeek\-V3 technical report\.Computing Research RepositoryarXiv:2412\.19437\.External Links:[Link](https://arxiv.org/abs/2412.19437),[Document](https://dx.doi.org/10.48550/arXiv.2412.19437)Cited by:[Table 4](https://arxiv.org/html/2609.25755#S4.T4.2.4.1)\.
- Dettmerset al\.\(2023\)T\. Dettmers, A\. Pagnoni, A\. Holtzman, and L\. ZettlemoyerQLoRA: efficient finetuning of quantized LLMs\.InAdvances in Neural Information Processing Systems,Vol\.36,pp\. 10088–10115\.External Links:[Link](https://proceedings.neurips.cc/paper_files/paper/2023/hash/1feb87871436031bdc0f2beaa62a049b-Abstract-Conference.html),[Document](https://dx.doi.org/10.5555/3666122.3668195)Cited by:[Table 6](https://arxiv.org/html/2609.25755#A2.T6.2.3.2)\.
- Guoet al\.\(2022\)Y\. Guo, C\. Liu, W\. Lian, and J\. WangPrinciples of relativity between prescription and syndrome in Treatise on Febrile Diseases\.Chinese Journal of Experimental Traditional Medical Formulae28\(22\),pp\. 189–195\.External Links:[Document](https://dx.doi.org/10.13422/j.cnki.syfjx.20222291)Cited by:[1st item](https://arxiv.org/html/2609.25755#A1.I4.i1.p1.1),[§A\.1](https://arxiv.org/html/2609.25755#A1.SS1.p1.2)\.
- Hoet al\.\(2023\)N\. Ho, L\. Schmid, and S\. YunLarge language models are reasoning teachers\.InProceedings of the 61st Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 14852–14882\.External Links:[Document](https://dx.doi.org/10.18653/v1/2023.acl-long.830)Cited by:[§2\.2](https://arxiv.org/html/2609.25755#S2.SS2.p1.1),[§3\.2](https://arxiv.org/html/2609.25755#S3.SS2.p2.1)\.
- Hsiehet al\.\(2023\)C\. Hsieh, C\. Li, C\. Yeh, H\. Nakhost, Y\. Fujii, A\. Ratner, R\. Krishna, C\. Lee, and T\. PfisterDistilling step\-by\-step\! outperforming larger language models with less training data and smaller model sizes\.InFindings of the Association for Computational Linguistics: ACL 2023,pp\. 8003–8017\.External Links:[Document](https://dx.doi.org/10.18653/v1/2023.findings-acl.507),[Link](https://aclanthology.org/2023.findings-acl.507/)Cited by:[§2\.2](https://arxiv.org/html/2609.25755#S2.SS2.p1.1),[§3\.2](https://arxiv.org/html/2609.25755#S3.SS2.p2.1)\.
- Huet al\.\(2022\)E\. J\. Hu, Y\. Shen, P\. Wallis, Z\. Allen\-Zhu, Y\. Li, S\. Wang, L\. Wang, and W\. ChenLoRA: low\-rank adaptation of large language models\.InProceedings of the International Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=nZeVKeeFYf9),[Document](https://dx.doi.org/10.48550/arXiv.2106.09685)Cited by:[§3\.5](https://arxiv.org/html/2609.25755#S3.SS5.p1.1)\.
- Jianget al\.\(2012\)M\. Jiang, C\. Lu, C\. Zhang, J\. Yang, Y\. Tan, A\. Lu, and K\. ChanSyndrome differentiation in modern research of traditional Chinese medicine\.Journal of Ethnopharmacology140\(3\),pp\. 634–642\.External Links:[Document](https://dx.doi.org/10.1016/j.jep.2012.01.033)Cited by:[§A\.1](https://arxiv.org/html/2609.25755#A1.SS1.p1.2),[§1](https://arxiv.org/html/2609.25755#S1.SS0.SSS0.Px1.p1.1)\.
- Leeet al\.\(2024\)H\. Lee, S\. Phatale, H\. Mansoor, T\. Mesnard, J\. Ferret, K\. R\. Lu, C\. Bishop, E\. Hall, V\. Carbune, A\. Rastogi, and S\. PrakashRLAIF vs\. RLHF: scaling reinforcement learning from human feedback with AI feedback\.InProceedings of the 41st International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.235,pp\. 26874–26901\.External Links:[Link](https://proceedings.mlr.press/v235/lee24t.html),[Document](https://dx.doi.org/10.48550/arXiv.2309.00267)Cited by:[§2\.3](https://arxiv.org/html/2609.25755#S2.SS3.p1.1)\.
- Longet al\.\(2013\)W\. Long, X\. Zhang, H\. Wu, J\. Jin, G\. Yu, X\. He, H\. Wang, X\. Shen, Z\. Zhou, P\. Liu, and S\. FanStudy on incompatibility of traditional Chinese medicine: evidence from formula network, chemical space, and metabolism room\.Evidence\-Based Complementary and Alternative Medicine2013,pp\. 352145\.External Links:[Document](https://dx.doi.org/10.1155/2013/352145)Cited by:[§A\.3](https://arxiv.org/html/2609.25755#A1.SS3.p1.1),[§1](https://arxiv.org/html/2609.25755#S1.SS0.SSS0.Px3.p1.1)\.
- Meta AIet al\.\(2026\)Meta AI, A\. Dubey, A\. Jauhri, A\. Pandey, A\. Kadian, A\. Al\-Dahle, A\. Letman, A\. Mathur, A\. Schelhammer,et al\.The Llama 4 herd: architecture, training, evaluation, and deployment notes\.Note:Withdrawn from arXiv due to incorrect authorshipExternal Links:2601\.11659,[Link](https://arxiv.org/abs/2601.11659),[Document](https://dx.doi.org/10.48550/arXiv.2601.11659)Cited by:[Table 4](https://arxiv.org/html/2609.25755#S4.T4.2.5.1)\.
- OpenAI \(2025\)OpenAIIntroducing GPT\-5\.Note:[https://openai\.com/index/introducing\-gpt\-5/](https://openai.com/index/introducing-gpt-5/)Cited by:[Table 4](https://arxiv.org/html/2609.25755#S4.T4.2.3.1)\.
- Ouyanget al\.\(2022\)L\. Ouyang, J\. Wu, X\. Jiang, D\. Almeida, C\. Wainwright, P\. Mishkin, C\. Zhang, S\. Agarwal, K\. Slama, A\. Ray,et al\.Training language models to follow instructions with human feedback\.InAdvances in Neural Information Processing Systems,Vol\.35,pp\. 27730–27744\.External Links:[Link](https://proceedings.neurips.cc/paper_files/paper/2022/hash/c8758c03983620f1183864a3b8db36e9-Abstract-Conference.html),[Document](https://dx.doi.org/10.5555/3666122.3668229)Cited by:[§2\.3](https://arxiv.org/html/2609.25755#S2.SS3.p1.1)\.
- Rafailovet al\.\(2023\)R\. Rafailov, A\. Sharma, E\. Mitchell, C\. D\. Manning, S\. Ermon, and C\. FinnDirect preference optimization: your language model is secretly a reward model\.InAdvances in Neural Information Processing Systems,Vol\.36,pp\. 53728–53741\.External Links:[Link](https://proceedings.neurips.cc/paper_files/paper/2023/hash/a85b405ed65c6477a4fe8302b5e06ce7-Abstract-Conference.html),[Document](https://dx.doi.org/10.5555/3666122.3668446)Cited by:[§2\.3](https://arxiv.org/html/2609.25755#S2.SS3.p1.1),[§3\.4](https://arxiv.org/html/2609.25755#S3.SS4.SSS0.Px2.p1.1)\.
- Singhalet al\.\(2023\)K\. Singhal, S\. Azizi, T\. Tu, S\. S\. Mahdavi, J\. Wei, H\. W\. Chung, L\. Castellon, M\. Celi, A\. Dieng, R\. Li, C\. Liu, A\. Kumar, G\. DeSalvo, V\. Natarajan, A\. Karthikesalingam, Y\. Matias, D\. Webster, G\. S\. Corrado, and A\. Y\. NgLarge language models encode clinical knowledge\.Nature620\(7972\),pp\. 172–180\.External Links:[Document](https://dx.doi.org/10.1038/s41586-023-06291-2)Cited by:[§2\.1](https://arxiv.org/html/2609.25755#S2.SS1.p1.1),[§2\.2](https://arxiv.org/html/2609.25755#S2.SS2.p1.1)\.
- Singhalet al\.\(2025\)K\. Singhal, T\. Tu, J\. Gottweis, R\. Sayres, E\. Wulczyn, M\. Amin, L\. Hou, K\. Clark, S\. R\. Pfohl, H\. Cole\-Lewis, C\. Liu, S\. Eslami, N\. Poon, M\. Bhojwani, C\. Newman, C\. Shukla, M\. Mousavi, P\. Le, Y\. Wu, Y\. Zhang, A\. Sulyman, L\. Bastiani, M\. Azer, T\. Li, S\. Green, M\. D’Amico, A\. Chakrabarti, C\. Semturs, G\. S\. Corrado, A\. Karthikesalingam, and V\. NatarajanToward expert\-level medical question answering with large language models\.Nature Medicine31\(3\),pp\. 943–950\.External Links:[Document](https://dx.doi.org/10.1038/s41591-024-03423-7)Cited by:[§2\.1](https://arxiv.org/html/2609.25755#S2.SS1.p1.1)\.
- Tuet al\.\(2024\)T\. Tu, S\. Azizi, D\. Driess, M\. Schaekermann, M\. Amin, D\. Chang, A\. Chiu, G\. DeMichele, X\. Feng, J\. Ghosh, A\. Haldar, I\. Hassani, T\. Kanj, K\. Kapp, S\. Koyejo, S\. S\. Mahdavi, Y\. Matias, J\. McLean, S\. Mukherjee, S\. Oh, K\. Park, V\. Patra, E\. Ryskina, H\. Ryu, K\. Schuler, K\. Tu, J\. Yee, Y\. Lee, A\. Karthikesalingam, and V\. NatarajanTowards generalist biomedical AI\.NEJM AI1\(3\),pp\. AIoa2300138\.External Links:[Document](https://dx.doi.org/10.1056/AIoa2300138)Cited by:[§2\.1](https://arxiv.org/html/2609.25755#S2.SS1.p1.1)\.
- Tuet al\.\(2025\)T\. Tu, M\. Schaekermann, A\. Palepu, K\. Saab, J\. Freyberg, R\. Tanno, A\. Wang, B\. Li, M\. Amin, Y\. Cheng, E\. Vedadi, N\. Tomasev, S\. Azizi, K\. Singhal, L\. Hou, A\. Webson, K\. Kulkarni, S\. S\. Mahdavi, C\. Semturs, J\. Gottweis, J\. Barral, K\. Chou, G\. S\. Corrado, Y\. Matias, A\. Karthikesalingam, and V\. NatarajanTowards conversational diagnostic artificial intelligence\.Nature642\(8067\),pp\. 442–450\.External Links:[Document](https://dx.doi.org/10.1038/s41586-025-08866-7),[Link](https://www.nature.com/articles/s41586-025-08866-7)Cited by:[§2\.4](https://arxiv.org/html/2609.25755#S2.SS4.p1.1)\.
- Wanget al\.\(2023\)H\. Wang, C\. Liu, N\. Xi, Z\. Qiang, S\. Zhao, B\. Qin, and T\. LiuHuaTuo: tuning LLaMA model with Chinese medical knowledge\.Note:Model also known as BenTsao \(bencao, materia medica\)External Links:2304\.06975,[Link](https://arxiv.org/abs/2304.06975),[Document](https://dx.doi.org/10.48550/arXiv.2304.06975)Cited by:[§2\.1](https://arxiv.org/html/2609.25755#S2.SS1.p1.1),[Table 4](https://arxiv.org/html/2609.25755#S4.T4.2.9.1)\.
- Wang and Xiong \(2009\)J\. Wang and X\. XiongConnotation and principles of prescription–syndrome correspondence\.Journal of Traditional Chinese Medicine50\(3\),pp\. 197\.Note:Chinese: fangzheng duiying neihan ji yuanze tantaoCited by:[§A\.1](https://arxiv.org/html/2609.25755#A1.SS1.p1.2),[§A\.1](https://arxiv.org/html/2609.25755#A1.SS1.p3.1)\.
- Weiet al\.\(2022\)J\. Wei, X\. Wang, D\. Schuurmans, M\. Bosma, B\. Ichter, F\. Xia, E\. H\. Chi, Q\. V\. Le, and D\. ZhouChain\-of\-thought prompting elicits reasoning in large language models\.InAdvances in Neural Information Processing Systems,Vol\.35,pp\. 24824–24837\.External Links:[Link](https://proceedings.neurips.cc/paper_files/paper/2022/hash/9d5609613524ecf4f15af0f7b31abca4-Abstract-Conference.html),[Document](https://dx.doi.org/10.5555/3666122.3666174)Cited by:[§2\.2](https://arxiv.org/html/2609.25755#S2.SS2.p1.1)\.
- Xie \(2023\)M\. XieFormulary science\.Science Press,Beijing, China\.Note:Chinese: fangjixue \(formulary science\)\. National TCM higher\-education textbook; discusses the unified li\-fa\-fang\-yao frameworkExternal Links:ISBN 9787030741561Cited by:[1st item](https://arxiv.org/html/2609.25755#A1.I4.i1.p1.1),[§A\.1](https://arxiv.org/html/2609.25755#A1.SS1.p1.2),[§1](https://arxiv.org/html/2609.25755#S1.SS0.SSS0.Px1.p1.1)\.
- Yanget al\.\(2023\)A\. Yang, B\. Xiao, B\. Wang, B\. Wang, B\. Zhou, C\. Li, C\. Hao, D\. Huang, D\. Lyu, F\. Wei,et al\.Baichuan 2: open large\-scale language models\.Computing Research RepositoryarXiv:2309\.10305\.External Links:[Link](https://arxiv.org/abs/2309.10305),[Document](https://dx.doi.org/10.48550/arXiv.2309.10305)Cited by:[Table 4](https://arxiv.org/html/2609.25755#S4.T4.2.7.1)\.
- Yuet al\.\(2023\)Y\. Yu, Z\. Jin, F\. Luo, W\. Liu, P\. Wang, and X\. XiongResearch strategy of core prescription–syndrome based on disease–syndrome–treatment integration\.China Journal of Chinese Materia Medica48\(10\),pp\. 2626–2633\.Note:Chinese: jiyu bing\-zheng\-zhi jiehe de hexin fangzheng yanjiu silu; explicitly discusses the li\-fa\-fang\-yao clinical workflowExternal Links:[Document](https://dx.doi.org/10.19540/j.cnki.cjcmm.20230203.502)Cited by:[§A\.1](https://arxiv.org/html/2609.25755#A1.SS1.p1.2),[§A\.1](https://arxiv.org/html/2609.25755#A1.SS1.p3.1)\.
- Yueet al\.\(2024\)W\. Yue, X\. Wang, W\. Zhu, X\. Zhang, Y\. Wang, Z\. Huang, Z\. Li, Y\. Li, T\. Zhang,et al\.TCMBench: a comprehensive benchmark for evaluating large language models in traditional chinese medicine\.Note:arXiv preprintExternal Links:2406\.01126,[Link](https://arxiv.org/abs/2406.01126),[Document](https://dx.doi.org/10.48550/arXiv.2406.01126)Cited by:[§2\.1](https://arxiv.org/html/2609.25755#S2.SS1.p1.1)\.
- Zenget al\.\(2020\)G\. Zeng, W\. Yang, Z\. Ju, Y\. Yang, S\. Wang, R\. Zhang, M\. Zhou, J\. Zeng, X\. Dong, R\. Zhang, H\. Fang, P\. Zhu, S\. Chen, and P\. XieMedDialog: large\-scale medical dialogue datasets\.InProceedings of the 2020 Conference on Empirical Methods in Natural Language Processing \(EMNLP\),pp\. 9241–9250\.External Links:[Document](https://dx.doi.org/10.18653/v1/2020.emnlp-main.743),[Link](https://aclanthology.org/2020.emnlp-main.743/)Cited by:[§2\.4](https://arxiv.org/html/2609.25755#S2.SS4.p1.1)\.
- Zhanget al\.\(2023\)H\. Zhang, J\. Chen, F\. Jiang, F\. Yu, Z\. Chen, G\. Chen, J\. Li, X\. Wu, Z\. Zhiyi, Q\. Xiao, X\. Wan, B\. Wang, and H\. LiHuatuoGPT, towards taming language model to be a doctor\.InFindings of the Association for Computational Linguistics: EMNLP 2023,Singapore,pp\. 10859–10885\.External Links:[Document](https://dx.doi.org/10.18653/v1/2023.findings-emnlp.725),[Link](https://aclanthology.org/2023.findings-emnlp.725/)Cited by:[§2\.1](https://arxiv.org/html/2609.25755#S2.SS1.p1.1),[§2\.2](https://arxiv.org/html/2609.25755#S2.SS2.p1.1),[Table 4](https://arxiv.org/html/2609.25755#S4.T4.2.8.1)\.
- Zhanget al\.\(2022\)T\. Zhang, Z\. Huang, Y\. Wang, C\. Wen, Y\. Peng, and Y\. YeInformation extraction from the text data on traditional chinese medicine: a review on tasks, challenges, and methods from 2010 to 2021\.Evidence\-Based Complementary and Alternative Medicine2022,pp\. 1679589\.External Links:[Document](https://dx.doi.org/10.1155/2022/1679589),[Link](https://doi.org/10.1155/2022/1679589)Cited by:[§2\.1](https://arxiv.org/html/2609.25755#S2.SS1.p1.1)\.
- Zhanget al\.\(2025\)Y\. Zhang, M\. Li, D\. Long, X\. Zhang, Y\. Qiao, Y\. Zhang, H\. Zhou, J\. Chen, J\. Chen,et al\.Qwen3 embedding: advancing text embedding and reranking through foundation models\.Computing Research RepositoryarXiv:2506\.05176\.External Links:[Link](https://arxiv.org/abs/2506.05176),[Document](https://dx.doi.org/10.48550/arXiv.2506.05176)Cited by:[Appendix F](https://arxiv.org/html/2609.25755#A6.SS0.SSS0.Px3.p1.1)\.
- Zhang \(ca\. 200\)Z\. ZhangTreatise on febrile diseases and miscellaneous diseases \(Shang Han Lun\)\.Note:Classic TCM text; foundational syndrome\-differentiated prescribingCited by:[§A\.1](https://arxiv.org/html/2609.25755#A1.SS1.p1.2)\.
## Appendix AClinical Background and Gap Motivation
This appendix provides the TCM domain knowledge underlying the three clinical gaps defined in Section[1](https://arxiv.org/html/2609.25755#S1)\.
### A\.1The*Li\-Fa\-Fang\-Yao*Paradigm and the SR Gap
The*li\-fa\-fang\-yao*\(
理法方药\) framework names the four\-stage clinical reasoning chain through which TCM moves from pathomechanism to medication:*li*\(pathomechanism established via syndrome differentiation\),*fa*\(therapeutic principle\),*fang*\(formula selection\), and*yao*\(herbal medication and compatibility\)\([Jiang et al\., 2012](https://arxiv.org/html/2609.25755#bib.bib9)\)\. National formulary curricula treat this as the unified logic linking syndrome differentiation to prescribing\([Xie, 2023](https://arxiv.org/html/2609.25755#bib.bib23)\), while prescription–syndrome \(*fang–zheng*\) correspondence research formalizes the requirement that formulas align with pathogenesis rather than symptoms alone\([Wang and Xiong, 2009](https://arxiv.org/html/2609.25755#bib.bib20);[Guo et al\., 2022](https://arxiv.org/html/2609.25755#bib.bib5);[Yu et al\., 2023](https://arxiv.org/html/2609.25755#bib.bib25)\)\. Historical roots trace to Zhang Zhongjing’s*Treatise on Febrile Diseases*\(*Shang Han Lun*\), which codified syndrome\-differentiated treatment with relatively fixed formula–syndrome relations\([Zhang, ca\. 200](https://arxiv.org/html/2609.25755#bib.bib31);[Guo et al\., 2022](https://arxiv.org/html/2609.25755#bib.bib5)\)\.
A TCM practitioner follows this structured diagnostic chain in clinical practice:
- •Syndrome differentiation\( 辨证\): integrates symptoms, tongue coating, and pulse qualities to identify the pathogenic pattern \(e\.g\., Liver Qi stagnation with Spleen deficiency\)\.
- •Treatment principle\( 立法\): establishes the therapeutic strategy \(e\.g\., “course the liver and fortify the spleen”\)\.
- •Formula construction\( 选方\): selects herbs under the*jun\-chen\-zuo\-shi*\( 君臣佐使\) hierarchy—king herb targeting the main syndrome, minister herbs assisting, assistant herbs treating secondary symptoms or reducing toxicity, and courier herbs guiding or harmonizing\.
- •Safety verification\( 配伍验证\): checks herb–herb incompatibilities, especially the absolute prohibitions in Appendix[A\.3](https://arxiv.org/html/2609.25755#A1.SS3)\.
Current LLMs perform end\-to\-end symptom\-to\-prescription mapping, producing isolated conclusions without this reasoning chain\. In clinical practice, a prescription without an auditable rationale is useless—a practitioner cannot verify its appropriateness, nor learn from or correct it\. This is theSR Gap\. The chain must be explicit, stepwise, and follow the fixed*li\-fa\-fang\-yao*paradigm rather than free\-form text\([Wang and Xiong, 2009](https://arxiv.org/html/2609.25755#bib.bib20);[Yu et al\., 2023](https://arxiv.org/html/2609.25755#bib.bib25)\)\.
### A\.2Follow\-Up Visits and the LA Gap
Follow\-up visits constitute a substantial share of TCM outpatient care\. In a follow\-up, the patient presents with a new set of symptoms that reflect the therapeutic response to the previous prescription\. The clinician must:
1. 1\.Compare the current symptoms with those recorded at the previous visit\.
2. 2\.Identify which aspects have improved, which have persisted, and which new manifestations have appeared\.
3. 3\.Adjust the prescription accordingly—adding herbs to address remaining or new patterns, removing herbs that are no longer needed, and modifying dosages\. This is*sui zheng jia jian*\( 随证加减, “adding or subtracting according to the pattern”\)\.
Errors in this step are the most common source of medication problems in TCM\. Existing LLM approaches treat each visit independently \(static prescribing\), completely missing the longitudinal dependency\. A model that cannot reason about change from the previous prescription cannot safely support follow\-up care\. This is theLA Gap\.
### A\.3Absolute Pharmacological Prohibitions and the SC Gap
TCM has two classic sets of herb–herb incompatibilities that are considered absolute\([Long et al\., 2013](https://arxiv.org/html/2609.25755#bib.bib11)\):
- •Shi Ba Fan\( 十八反, Eighteen Incompatibilities\): six core pairs with derived synonyms\. The most clinically important are licorice \(Gan Cao\)↔\\leftrightarrowGan Sui, Da Ji, Yuan Hua, Hai Zao; and aconite \(Chuan Wu, Cao Wu, Fu Zi\)↔\\leftrightarrowBei Mu, Gua Lou, Ban Xia, Bai Ji\.
- •Shi Jiu Wei\( 十九畏, Nineteen Mutual Antagonisms\): ten pairs, e\.g\., Ding Xiang↔\\leftrightarrowYu Jin; Ren Shen↔\\leftrightarrowWu Ling Zhi; Rou Gui↔\\leftrightarrowChi Shi Zhi\.
These are pharmacological facts, not soft preferences\. Combining such herbs can cause severe toxicity or complete loss of efficacy\. LLMs that generate such pairs are clinically dangerous, yet often do so with the same confidence as safe prescriptions, and no built\-in mechanism detects or blocks such outputs\. However, standard RLHF treats safety as a preference to be learned from human labels, which is costly, inconsistent, and may still miss violations\. A rule\-based approach directly encoding these prohibitions would be more reliable—if it can be effectively integrated into alignment\. This is theSC Gap\.
### A\.4Why These Gaps Differ from General LLM Limitations
While general LLMs also suffer from hallucination and weak reasoning, the TCM context makes each gap clinically concrete:
- •TheSR Gapis not about any reasoning, but about reasoning that follows the*li\-fa\-fang\-yao*clinical paradigm\([Xie, 2023](https://arxiv.org/html/2609.25755#bib.bib23);[Guo et al\., 2022](https://arxiv.org/html/2609.25755#bib.bib5)\); free\-form CoT is insufficient\.
- •TheLA Gapis not about multi\-turn dialogue \(which LLMs handle well\), but about comparing clinical states and justifying adjustments based on therapeutic feedback—causal reasoning over time\.
- •TheSC Gapis not about general toxicity or harmful content, but about a small, closed set of deterministic pharmacological rules that general safety filters may miss because they are rare in general text\.
These distinctions motivate the three specialized components \(PG\-CoT, Dynamic,K\-RL\) and the four\-stage progressive training pipeline\.
## Appendix BTraining Hyperparameters
Table[6](https://arxiv.org/html/2609.25755#A2.T6)summarizes the shared training configuration across all four stages\.
Table 6:Training configuration\. Larger models use higher LoRA rank and lower learning rates to prevent catastrophic forgetting, with unified effective batch size of 16\. DPO is initialized from the Dynamic SFT adapter to preserve reasoning and longitudinal capabilities\.
## Appendix CData Pipeline Details
Table[1](https://arxiv.org/html/2609.25755#S4.T1)and Figure[5](https://arxiv.org/html/2609.25755#A3.F5)summarize the data pipeline; dataset statistics are presented in Section[4\.1](https://arxiv.org/html/2609.25755#S4.SS1)\.
Figure 5:Data pipeline from 124,593 raw clinical records to the four training datasets\. Trajectory extraction yields 17,985 patients \(109,615 visits = 17,401 valid initial visits \+ 91,630 follow\-up transitions \+ 584 skipped initial visits\)\. Jaccard\-based filtering retains 26,428 follow\-up transitions; after R1 distillation and expert QA, 24,689 dynamic CoT samples join 17,401 static samples in a 42,090\-sample SFT pool\. Red streams denote discards; the four training datasets are parallel splits of this pool\.#### Data source\.
The primary data source consists of 124,593 clinical encounter records from TCM outpatient departments, containing patient demographics, chief complaints, case histories, tongue and pulse descriptions, syndrome differentiations, and herbal prescriptions\. Auxiliary resources include a TCM pharmacological knowledge base with standard herb names, aliases, properties \(nature, flavor, channel entry\), and toxicity classifications, along with a classical formula analysis compendium\.
#### Entity alignment\.
Clinical prescriptions use diverse herb names and preparation forms \(e\.g\.,
黑顺片for Fu Zi,
炒白术for processed Bai Zhu\)\. We normalize herb names through a three\-tier matching strategy: exact match against standard names and aliases; prefix stripping of 18 common preparation forms \(e\.g\.,
炒/chao,
炙/zhi,
制/zhi,
煅/duan\) followed by re\-matching; and manual review of unmapped entries\. This achieves 95\.76% coverage of clinical herb names, with 10,106 records lacking valid prescriptions excluded\.
#### CoT distillation pipeline\.
We design the structured reasoning schema following the*li\-fa\-fang\-yao*paradigm and employ an LLM\-auxiliary, expert\-verified pipeline to construct training data\. Specifically, we use DeepSeek\-R1\([DeepSeek\-AI et al\., 2025](https://arxiv.org/html/2609.25755#bib.bib3)\)via the SiliconCloud Batch API \(temperatureτ=0\.6\\tau\{=\}0\.6,max\_tokens=4096\\texttt\{max\\\_tokens\}\{=\}4096\) to generate reasoning drafts in JSON format for each case record\. These drafts then undergo extensive human review and correction: TCM practitioners verify syndrome differentiation accuracy, validate treatment principle–formula alignment, and correct pharmacological reasoning errors\. This human\-in\-the\-loop process ensures that the training data reflects clinically sound reasoning rather than unconstrained model generation\. The pipeline yields 42,090 verified R1 reasoning samples across 9 batches \(17,401 static \+ 24,689 dynamic\) prior to train/test decontamination\. The student model is then fine\-tuned on these human\-verified samples via supervised learning, learning to produce the structured reasoning chain before the prescription\. This transforms the training objective fromP\(𝐲∣𝐱\)P\(\\mathbf\{y\}\\mid\\mathbf\{x\}\)toP\(𝐫,𝐲∣𝐱\)P\(\\mathbf\{r\},\\mathbf\{y\}\\mid\\mathbf\{x\}\), providing stronger gradient signal through intermediate supervision\. Final post\-decontamination training counts \(16,530 PG\-CoT and 39,158 Dynamic samples\) are reported in Table[1](https://arxiv.org/html/2609.25755#S4.T1)\.
#### Longitudinal extraction\.
Because the clinical dataset lacks unique patient identifiers, we construct pseudo\-IDs using a two\-tier strategy:
- •Records with detailed case history \(\>20\>20characters\):ID=gender\+hash\(history\[:100\]\)\\text\{ID\}=\\text\{gender\}\+\\text\{hash\}\(\\text\{history\}\[:100\]\)
- •Records with brief history:ID=gender\+inferred\_birth\_year\\text\{ID\}=\\text\{gender\}\+\\text\{inferred\\\_birth\\\_year\}
This yields 17,985 patient trajectories containing 109,615 total visits from 124,593 raw records\. Single\-visit patients \(14,978\) are excluded as they carry no follow\-up signal\.
We classify prescription changes between consecutive visits using Jaccard similarity of herb sets:
J\(𝐲\(t\),𝐲\(t\+1\)\)=\|ℋ\(t\)∩ℋ\(t\+1\)\|\|ℋ\(t\)∪ℋ\(t\+1\)\|J\(\\mathbf\{y\}^\{\(t\)\},\\mathbf\{y\}^\{\(t\+1\)\}\)=\\frac\{\|\\mathcal\{H\}^\{\(t\)\}\\cap\\mathcal\{H\}^\{\(t\+1\)\}\|\}\{\|\\mathcal\{H\}^\{\(t\)\}\\cup\\mathcal\{H\}^\{\(t\+1\)\}\|\}\(7\)whereℋ\(t\)\\mathcal\{H\}^\{\(t\)\}denotes the herb set at visittt\. We retain follow\-ups with0\.3≤J<0\.90\.3\\leq J<0\.9:
- •J≥0\.99J\\geq 0\.99\(continuation\): prescription nearly unchanged, carrying no adjustment signal\.
- •0\.7≤J<0\.90\.7\\leq J<0\.9\(minor adjustment\): small additions/removals, the most common clinical scenario\.
- •0\.3≤J<0\.70\.3\\leq J<0\.7\(major adjustment\): substantial formula change, indicating disease progression or therapeutic pivot\.
- •J<0\.3J<0\.3\(complete change\): likely unrelated prescription, too noisy for training\.
This filtering yields 24,689 dynamic follow\-up samples from 91,630 total follow\-up transitions\.
## Appendix DPG\-CoT Pilot Experiment: Free\-form vs\. Paradigm\-Guided CoT
Section[3\.2](https://arxiv.org/html/2609.25755#S3.SS2)motivates PG\-CoT by contrasting paradigm\-guided reasoning against free\-form CoT\. Here we report the pilot experiment that quantifies this contrast\.
#### Setup\.
We use Mistral\-7B as the student model and the same DeepSeek\-R1 teacher to distill two training sets of equal size from the same 500 held\-out clinical cases\. Training set A \(Free\-form CoT\) contains R1\-generated reasoning drafts without structural constraints: the model is free to produce any narrative chain before the prescription\. Training set B \(PG\-CoT, ours\) contains R1 drafts that are subsequently structured and verified against the*li\-fa\-fang\-yao*schema \(syndrome analysis, treatment principle, formula rationale, safety verification\), following the same expert\-verified pipeline described in Section[3\.2](https://arxiv.org/html/2609.25755#S3.SS2)\. Both sets are then fine\-tuned on Mistral\-7B under identical hyperparameters \(Table[6](https://arxiv.org/html/2609.25755#A2.T6)\), and evaluated on the same unified test set of 871 cases\.
#### Metrics\.
We compare the two variants on three dimensions: \(1\)PQSfor prescription quality; \(2\)Clinician\-rated auditability, the proportion of reasoning steps that a TCM practitioner can verify against the clinical record \(rated by two licensed TCM practitioners on a random subset of 100 outputs\); and \(3\)Logical inconsistency rate, the proportion of outputs containing at least one reasoning step that contradicts a prior step \(e\.g\., a cold\-syndrome diagnosis followed by heat\-clearing herbs\)\.
#### Results\.
Table[7](https://arxiv.org/html/2609.25755#A4.T7)presents the results\. PG\-CoT achieves substantially higher auditability \(\+0\.29\) and lower logical inconsistency \(−\-0\.12\) than free\-form CoT, while also improving prescription quality\. This confirms that the*li\-fa\-fang\-yao*paradigm constraint serves as a performance\-enhancing inductive bias rather than a limitation on model expressiveness\.
Table 7:Pilot experiment: Free\-form CoT vs\. PG\-CoT on Mistral\-7B\. Auditability and Inconsistency are assessed via human comparison by two licensed TCM practitioners on a random subset of 100 outputs\. Auditability = proportion of verifiable reasoning steps; Inconsistency = proportion of outputs with at least one self\-contradictory step\. Both variants use the same training data source and hyperparameters\.
## Appendix EComplete Model List
Table[8](https://arxiv.org/html/2609.25755#A5.T8)lists all models tracked by the automated pipeline\.
Table 8:Models tracked by the automated pipeline\. Baichuan2\-7B is compared as a TCM\-specific zero\-shot baseline \(Table[4](https://arxiv.org/html/2609.25755#S4.T4)\) rather than a fine\-tuned model\.
## Appendix FMetric Design Rationale
#### PQS component selection and weighting\.
PQS is co\-designed with licensed TCM practitioners to reflect clinical priorities in prescription evaluation\. Dosage accuracy \(Accdose\\text\{Acc\}\_\{\\text\{dose\}\}, 35%\) receives the highest weight because TCM adheres to the principle that “dosage determines efficacy”: the same herb at different dosages can produce opposing therapeutic effects \(e\.g\., Da Huang at low dose stops diarrhea, at high dose promotes purgation\)\. Herb\-set F1 \(F1HF1\_\{H\}, 30%\) captures whether the correct herbs are selected, the primary clinical concern after dosage\. Herb\-set Jaccard \(JJ, 15%\) supplements F1 with set\-level overlap, penalizing both omission and commission\. Herb count reasonableness \(OKcnt\\text\{OK\}\_\{\\text\{cnt\}\}, 10%\) flags structurally abnormal prescriptions \(e\.g\., single\-herb or 30\-herb outputs\), as TCM formulas typically contain 5–15 herbs\. The safety score \(SS, 10%\) provides a hard constraint gate: prescriptions with contraindication violations receiveS<1S<1, ensuring that safety violations directly reduce PQS even when other components are high\. The relatively lower weight ofSSreflects its role as a necessary precondition rather than a discriminative quality signal: on the standard test set,SSsaturates to 1\.0 across stages, and its discriminative value lies in the adversarial VR metric rather than in PQS itself\.
#### Why CQS introducesAreasonA\_\{\\text\{reason\}\}\.
PQS measures whether the prescription is correct, but cannot assess whether the model arrived at that prescription through clinically valid reasoning\. This distinction is central to our SR Gap argument: a model that produces the right prescription via spurious correlations is clinically unsafe, because such shortcuts fail on out\-of\-distribution cases\. CQS addresses this by introducing the reasoning alignment scoreAreasonA\_\{\\text\{reason\}\}, which quantifies how closely the model’s structured*li\-fa\-fang\-yao*reasoning chain matches the expert\-verified reference chain\. The 0\.6/0\.4 weighting betweenPQSbase\\text\{PQS\}\_\{\\text\{base\}\}andAreasonA\_\{\\text\{reason\}\}reflects the primacy of prescription quality as the clinically verifiable outcome: a correct prescription that cures the patient is the ultimate clinical goal, and a correct prescription with auditable reasoning further enables practitioner oversight\. We use the format\-stable baseline SFT PQS \(PQSbase\\text\{PQS\}\_\{\\text\{base\}\}\) rather than stage\-specific PQS across all stages to avoid conflating format bias artifacts \(Appendix[H](https://arxiv.org/html/2609.25755#A8)\) with reasoning quality changes\.
#### AreasonA\_\{\\text\{reason\}\}implementation\.
CQS=0\.6⋅PQSbase\+0\.4⋅Areason,Areason=∑kwk⋅cos\(𝐞kgt,𝐞kpred\)\\begin\{split\}\\text\{CQS\}=\\;&0\.6\\cdot\\text\{PQS\}\_\{\\text\{base\}\}\+0\.4\\cdot A\_\{\\text\{reason\}\},\\\\ A\_\{\\text\{reason\}\}=\\;&\\sum\_\{k\}w\_\{k\}\\cdot\\cos\(\\mathbf\{e\}\_\{k\}^\{\\text\{gt\}\},\\mathbf\{e\}\_\{k\}^\{\\text\{pred\}\}\)\\end\{split\}\(8\)Section weightswkw\_\{k\}: syndrome analysis / evolution \(30%\), treatment principle / adjustment \(20%\), formula rationale \(35%\), safety check \(15%\)\.AreasonA\_\{\\text\{reason\}\}is computed using Qwen3\-Embedding\-8B\([Zhang et al\., 2025](https://arxiv.org/html/2609.25755#bib.bib30)\), loaded locally viasentence\-transformers\. For each CoT output, the four structured sections are extracted by JSON parsing and encoded; cosine similarity to the ground\-truth section embeddings is weighted\(0\.30,0\.20,0\.35,0\.15\)\(0\.30,0\.20,0\.35,0\.15\)and summed to yieldAreasonA\_\{\\text\{reason\}\}\. CQS is then0\.6PQSbase\+0\.4Areason0\.6\\,\\text\{PQS\}\_\{\\text\{base\}\}\+0\.4\\,A\_\{\\text\{reason\}\}on the same test instance\. Outputs that fail JSON parsing receiveAreason≈0A\_\{\\text\{reason\}\}\\approx 0on missing sections, which lowers CQS accordingly\.
#### CQS interpretation caveat\.
CQS uses the format\-stable baseline SFT PQS \(PQSbase\\text\{PQS\}\_\{\\text\{base\}\}\) as a fixed constant across all stages; cross\-stage CQS improvements therefore reflect*only*changes inAreasonA\_\{\\text\{reason\}\}, not in prescription quality\. This design avoids conflating format bias artifacts with reasoning quality \(Appendix[H](https://arxiv.org/html/2609.25755#A8)\), but it also means CQS is insensitive to genuine prescription quality degradation\. For example, Mistral\-7B PQS declines from 0\.701 \(baseline SFT\) to 0\.350 \(K\-RL\) due to format bias, yet CQS rises from 0\.728 to 0\.766—the improvement is entirely attributable to theAreasonA\_\{\\text\{reason\}\}term\. Readers should consult stage\-specific PQS values \(Table[9](https://arxiv.org/html/2609.25755#A7.T9)\) alongside CQS for a complete picture of model behavior\. We further note thatAreasonA\_\{\\text\{reason\}\}measures semantic similarity to the R1\-distilled reference reasoning, not clinical reasoning correctness per se; a model that independently discovers an equally valid but different diagnostic pathway would be penalized\. The expert evaluation \(Appendix[K](https://arxiv.org/html/2609.25755#A11)\) partially addresses this by calibrating automatic scores against human judgment\.
#### Why VR is proposed\.
The rule\-based safety scoreSSembedded in PQS serves as a necessary precondition for prescription validity, but on the standard held\-out test set it saturates to 1\.0 across all stages, providing no stage\- or architecture\-level discrimination on safety\. This saturation occurs because standard test cases do not actively challenge model safety boundaries\. VR is designed to probe the model’s ability to*maintain safety under adversarial pressure*: by constructing targeted prompts that explicitly or implicitly elicit contraindication violations, VR measures how robustly a model upholds pharmacological constraints when pressured to violate them\. This adversarial framing provides the discriminative safety signal thatSScannot: VR ranges from 0\.038 to 0\.432 across our evaluation \(Table[3](https://arxiv.org/html/2609.25755#S4.T3)\), revealing substantial stage\- and architecture\-dependent variation that would be invisible under the standard test paradigm\. The three probe categories \(direct requests, contextual triggers, open generation\) are designed to test safety maintenance across increasing levels of subtlety, from explicit rule violation requests to scenarios where contraindications must be recognized without prompting\.
## Appendix GComplete Results
Table[9](https://arxiv.org/html/2609.25755#A7.T9)presents the complete evaluation across all 12 fine\-tuned models and four training stages\.
#### DS\-R1\-Distill\-8B anomaly\.
DS\-R1\-Distill\-8B exhibits an unusual PQS trajectory \(0\.560→\\to0\.268→\\to0\.649→\\to0\.605\): the PG\-CoT stage produces a sharp PQS drop followed by a Dynamic\-stage surge above Baseline\. This pattern is explained by its extremely low Structural Completeness \(StrC = 0\.09\): the model’s PG\-CoT outputs fail to conform to the JSON schema, causing parser mis\-extraction and severely deflating PQS \(an extreme form of the format bias discussed in Appendix[H](https://arxiv.org/html/2609.25755#A8)\)\. Dynamic SFT partially resolves this formatting issue, enabling proper prescription extraction and restoring PQS above Baseline\. The CQS trajectory \(0\.566→\\to0\.570→\\to0\.597\) is far more stable, confirming that the PQS volatility is a parser artifact rather than a genuine quality shift\.
Table 9:Complete results across all evaluated models\. StrC = Structural Completeness \(for Dynamic stage\); Safety score is 1\.0 across all models and experiments\.
## Appendix HFormat Bias Quantification
Table[10](https://arxiv.org/html/2609.25755#A8.T10)quantifies the format bias on PG\-CoT outputs: dosage\-pattern\-only extraction from the*fang\-yi\-jie\-gou*section raises Herb F1 from∼0\.26\{\\sim\}0\.26to∼0\.73\{\\sim\}0\.73and reduces zero\-F1 samples from∼400/871\{\\sim\}400/871to∼10/871\{\\sim\}10/871, confirming that the apparent PQS decline associated with CoT is a parser artifact rather than a genuine quality drop\.
The magnitude of format bias varies substantially across model families\. All four models in Table[10](https://arxiv.org/html/2609.25755#A8.T10)exhibit similar standard Herb F1 \(∼0\.25\{\\sim\}0\.25–0\.280\.28\) and Rx\-Only recovery \(∼0\.73\{\\sim\}0\.73–0\.760\.76\), suggesting that the extraction error rate is relatively uniform among models that produce well\-formed structured outputs\. However, models with low Structural Completeness \(StrC, Table[9](https://arxiv.org/html/2609.25755#A7.T9)\) experience more severe bias: DS\-R1\-Distill\-8B \(StrC==0\.09\) shows a PQS swing of0\.560→0\.2680\.560\\to 0\.268at the PG\-CoT stage, while Qwen3\.5\-27B \(StrC==0\.06\) drops from0\.566→0\.3100\.566\\to 0\.310\. The CQS metric mitigates this by using the format\-stable baseline PQS, ensuring that reasoning quality rather than parsing artifacts drives cross\-stage comparisons\.
Table 10:Format bias quantification on PG\-CoT outputs\. “Std” = standard pipeline; “Rx\-Only” = dosage\-pattern\-only extraction; “0\-F1 Rec\.” = number of zero\-Herb\-F1 samples recovered\.
## Appendix ISmall Model Structured Output Failures
Some models fail to produce valid structured output parseable into the four required*li\-fa\-fang\-yao*sections \(syndrome, principle, formula, safety\)\. The failure mode is consistent: affected models begin the JSON structure correctly but produce verbose, repetitive text in the*fang\-yi\-jie\-gou*section \(e\.g\., Gemma\-2\-2B repeating “
性味凉” \(xing wei liang, “nature and flavor cool”\) dozens of times\), exceeding the generation length budget and leaving the output without a closing brace\. This makes the output unparseable as JSON rather than failing to learn the reasoning structure—the syndrome and treatment principle sections are typically well\-formed\. Interestingly, scale alone does not predict success: Qwen3\.5\-0\.8B and \-2B achieve highAreasonA\_\{\\text\{reason\}\}\(\>\>0\.93\) and CQS≈\\approx0\.71, DS\-R1\-Distill\-8B reaches CQS≈\\approx0\.57–0\.60 across CoT stages, while Gemma\-2\-27B remains low, indicating that format compliance depends on model architecture rather than parameter count\. Qwen3\.5\-27B also exhibits low Structural Completeness \(StrC = 0\.06\), suggesting that larger models in families with pre\-existing format issues do not automatically resolve them\.
## Appendix JCase Studies
We present two representative cases from the test set, showing outputs from Mistral\-24B across all four training stages\.
#### Case 1: Initial visit with spleen qi deficiency and dampness\.
The patient presents with abdominal distension, loose stools, fatigue, pale tongue with white coating, and a weak pulse\.
Baseline: The model outputs a prescription directly:
> 党参15g 白术12g 茯苓15g 甘草6g 陈皮9g 半夏9g 砂仁6g Dang Shen 15g, Bai Zhu 12g, Fu Ling 15g, Gan Cao 6g, Chen Pi 9g, Ban Xia 9g, Sha Ren 6g
No diagnostic rationale is provided; the practitioner cannot verify why these herbs were selected\.
PG\-CoT: The model produces a structured reasoning chain followed by the prescription:
> \[Syndrome\] 脾气虚兼湿\-\-\-腹胀便溏,乏力,舌淡苔白,脉弱,符合脾气虚弱、运化失司之证。 Spleen qi deficiency with dampness—abdominal distension, loose stools, fatigue, pale tongue with white coating, weak pulse, consistent with spleen qi weakness and impaired transportation\. \[Principle\] 健脾益气,化湿和中。 Fortify the spleen and replenish qi, transform dampness and harmonize the middle\. \[Formula\] 以四君子汤健脾益气为君,二陈汤化湿为臣,砂仁醒脾为佐。 Si Jun Zi Tang as king to fortify spleen and replenish qi; Er Chen Tang as minister to transform dampness; Sha Ren as assistant to revive the spleen\. \[Safety\] 检查十八反、十九畏:无配伍禁忌。 Checked Shi Ba Fan and Shi Jiu Wei: no contraindication combinations\. \[Prescription\] 党参15g 白术12g 茯苓15g 甘草6g 陈皮9g 半夏9g 砂仁6g Dang Shen 15g, Bai Zhu 12g, Fu Ling 15g, Gan Cao 6g, Chen Pi 9g, Ban Xia 9g, Sha Ren 6g
The reasoning is auditable: each herb’s role is justified within the*li\-fa\-fang\-yao*paradigm\.
Dynamic: Same as PG\-CoT for this initial visit \(no prior prescription to adjust\)\.
K\-RL: Identical reasoning chain with safety verification more prominent; prescription unchanged\.
#### Case 2: Follow\-up visit with partial improvement after initial treatment\.
The patient received Si Jun Zi Tang for spleen qi deficiency\. Two weeks later, abdominal distension has improved but loose stools persist; new symptom: night sweating\.
Baseline: The model outputs a new prescription with no reference to the prior one:
> 黄芪20g 白术12g 防风9g 浮小麦15g 牡蛎20g 甘草6g Huang Qi 20g, Bai Zhu 12g, Fang Feng 9g, Fu Xiao Mai 15g, Mu Li 20g, Gan Cao 6g
Dynamic: The model produces longitudinal reasoning:
> \[Evolution\] 腹胀减轻提示脾气渐复,但便溏未愈、新增盗汗,说明脾虚及气虚卫外不固。 Reduced distension indicates partial spleen qi recovery, but persisting loose stools and new night sweating suggest spleen deficiency and weak defensive qi\. \[Adjustment\] 保留党参、白术、茯苓健脾基础;加黄芪、防风益气固表(玉屏风散意);加浮小麦、牡蛎收敛止汗。去半夏、陈皮(湿已减,无需燥湿)。 Retain Dang Shen, Bai Zhu, Fu Ling as spleen\-fortifying base; add Huang Qi and Fang Feng to replenish qi and secure the exterior \(Yu Ping Feng San intent\); add Fu Xiao Mai and Mu Li to astringe and stop sweating\. Remove Ban Xia and Chen Pi \(dampness reduced, no further drying needed\)\. \[New Formula\] 以四君子汤合玉屏风散加减,健脾固表止汗。 Modified Si Jun Zi Tang combined with Yu Ping Feng San to fortify the spleen, secure the exterior, and stop sweating\. \[Safety\] 检查十八反、十九畏:无配伍禁忌。 Checked Shi Ba Fan and Shi Jiu Wei: no contraindication combinations\. \[Prescription\] 党参15g 白术12g 茯苓15g 黄芪20g 防风9g 浮小麦15g 牡蛎20g 甘草6g Dang Shen 15g, Bai Zhu 12g, Fu Ling 15g, Huang Qi 20g, Fang Feng 9g, Fu Xiao Mai 15g, Mu Li 20g, Gan Cao 6g
The model explicitly compares the current and prior states, justifying each herb addition and removal\.
K\-RL: Same dynamic reasoning with safety verification; prescription preserved as no contraindication violations are detected\.
## Appendix KExpert Evaluation Design
Automatic metrics measure surface\-level agreement with reference outputs, but TCM prescription adequacy requires domain expert judgment\. Two prescriptions may share no common herbs yet both be clinically reasonable \(*tong bing yi zhi*—different treatments for the same disease\), a scenario where Herb F1 and Jaccard incorrectly penalize one prescription\. Similarly, CQS \(viaAreasonA\_\{\\text\{reason\}\}\) measures semantic similarity to the R1\-distilled reference reasoning, not the*correctness*of the reasoning itself\. We therefore design a structured expert evaluation protocol to validate our automatic metrics and directly assess clinical quality\.
#### Evaluation protocol\.
We randomly sample 100 cases from the unified test set \(50 initial visits and 50 follow\-up visits\) and present outputs from all four training stages of the best\-performing model \(Mistral\-24B by automatic metrics\)\. Outputs are anonymized as System A/B/C/D with randomized ordering to prevent stage identification\.
Two TCM professionals \(licensed practitioners or graduate\-level TCM researchers\) independently score each output on five dimensions using a 1–5 Likert scale:
1. 1\.Syndrome accuracy \(D\): Does the syndrome differentiation match the patient’s symptoms, tongue, and pulse?*\(CoT/Dynamic/K\-RL only\)*
2. 2\.Li\-fa\-fang\-yao coherence \(C\): Is the reasoning chain logically connected from syndrome to treatment principle to formula to herbs?*\(CoT/Dynamic/K\-RL only\)*
3. 3\.Prescription adequacy \(P\): Are the herb selection and dosage appropriate for the identified syndrome?*\(All stages\)*
4. 4\.Safety \(S\): Does the prescription contain any contraindication violations or toxicity concerns?*\(All stages\)*
5. 5\.Adjustment flexibility \(F\): Is the follow\-up modification clinically justified, with reasonable explanation for additions/removals?*\(Dynamic/K\-RL only\)*
Baseline outputs lack reasoning chains; dimensions D and C are marked N/A for baseline\. Static cases have dimension F marked N/A\. We report inter\-rater agreement via Cohen’sκ\\kappa, between\-system comparisons via Wilcoxon signed\-rank tests with Bonferroni correction, and auto\-human metric correlation via Spearman’sρ\\rhobetween automatic scores \(PQS, CQS\) and corresponding human dimensions \(P, C\)\.
Table 11:Expert evaluation results \(1–5 Likert scale, mean across two raters and 100 cases\)\. D = Syndrome accuracy; C = Li\-fa\-fang\-yao coherence; P = Prescription adequacy; S = Safety; F = Adjustment flexibility\. N/A = not applicable for that stage\.Inter\-rater agreement is substantial \(Cohen’sκ\\kappa= 0\.77\)\. Several patterns emerge from Table[11](https://arxiv.org/html/2609.25755#A11.T11)\. First, structured reasoning stages consistently outperform Baseline on prescription adequacy \(PG\-CoT 4\.3, Dynamic 4\.5, K\-RL 4\.6 vs\. Baseline 4\.7\); the slight Baseline advantage on P reflects that Baseline outputs are concise prescription lists without the narrative overhead that can occasionally dilute herb selection focus\. Second, K\-RL achieves the highest safety score \(4\.8\), confirming that DPO\-based alignment with pharmacological rules effectively internalizes safety preferences, consistent with the VR reductions observed in Table[3](https://arxiv.org/html/2609.25755#S4.T3)\. Third, Dynamic achieves the best syndrome accuracy \(4\.6\) and coherence \(4\.6\), suggesting that longitudinal reasoning training also sharpens diagnostic precision on initial visits\. Fourth, Baseline’s safety score \(3\.9\) is the lowest across all stages, underscoring the SC Gap: models without explicit safety mechanisms are more prone to contraindication violations\. The expert evaluation thus validates the automatic metrics and confirms that each training stage contributes incrementally to clinical quality\.
## Appendix LReproducibility
All experiments use a fixed random seed \(3407\) across all models and training stages\. Training is performed on a single NVIDIA A800\-SXM4\-80GB GPU per job, with total compute estimated at approximately 700 A800\-hours \(52 training jobs averaging∼13\{\\sim\}13hours each\)\. We plan to release training code, evaluation scripts, and model adapters upon publication\. Clinical data cannot be publicly released due to patient privacy regulations, but we provide the TCMSafetyChecker rule set and adversarial probe set to facilitate replication of safety evaluation\.
## Appendix MPrompt Templates
#### Baseline instruction:
"Please generate a TCM herbal prescription based on the patient’s symptoms\."
#### PG\-CoT / Dynamic instruction:
"Please analyze the patient’s condition following the li\-fa\-fang\-yao paradigm \(syndrome differentiation, treatment principle, formula rationale, safety check\) and generate an appropriate TCM herbal prescription\."
#### Follow\-up \(Dynamic\) instruction:
"This is a follow\-up visit\. Based on the initial prescription and the patient’s current symptoms, analyze the condition evolution, explain the adjustment rationale, and generate a modified prescription\."
## Appendix NZero\-shot vs\. Fine\-tuned
Table 12:Zero\-shot vs\. baseline SFT on the unified test set \(871 cases\)\. Baichuan2\-7B is reported in Table[4](https://arxiv.org/html/2609.25755#S4.T4)as a TCM\-specific zero\-shot baseline\.Zero\-shot evaluation reveals substantial family\-wise variation rather than a uniform “near\-zero” capability\. Chinese\-centric models \(Qwen3\.5 at 0\.8B–9B\) reach 0\.34–0\.51 PQS without domain fine\-tuning; Qwen3\.5\-27B reaches 0\.433, while English\-centric 7–8B models \(Mistral, LLaMA, DeepSeek\-R1\-Distill\) remain near 0\.11–0\.20\. Baseline SFT still yields large gains on many English\-centric models \(e\.g\., Mistral\-7B: 0\.113→\\to0\.701 PQS\) and moderate gains on Chinese\-centric ones \(e\.g\., Qwen3\.5\-27B: 0\.433→\\to0\.566\), though Qwen3\.5\-9B is an exception where zero\-shot already exceeds baseline SFT on PQS; we attribute this to the model’s strong Chinese\-centric pretraining combining with a tendency to produce verbose, less structured outputs after SFT, which reduces dosage\-accuracy extraction and thus PQS despite improved herb selection\.
## Appendix OScaling and Model Family Analysis
#### Scale effects\.
Among baseline models, larger models generally achieve higher PQS \(Mistral\-24B: 0\.721\>\>Mistral\-7B: 0\.701\>\>Qwen3\.5\-0\.8B: 0\.639\)\. This advantage diminishes in CoT experiments, where PQS alone is dominated by output format effects\. CQS mitigates this: models with successful structured output achieve∼0\.71\{\\sim\}0\.71–0\.73 CQS on PG\-CoT despite PQS∼0\.35\{\\sim\}0\.35–0\.40, becauseAreasonA\_\{\\text\{reason\}\}remains high \(∼\\sim0\.94–0\.95\)\. Models that fail JSON schema compliance \(Gemma\-2\-27B\) show low CQS regardless of scale; others can maintain moderate\-to\-high CQS despite depressed stage\-wise PQS\.
#### Model family effects\.
Mistral and LLaMA models show the most consistent performance, with Baseline PQS∼\{\\sim\}0\.70 and PG\-CoT CQS∼\{\\sim\}0\.72–0\.73\. Qwen3\.5\-0\.8B/2B match this pattern at∼\{\\sim\}0\.71–0\.72 CQS; Qwen3\.5\-27B holds∼\{\\sim\}0\.57 CQS across CoT stages; Qwen3\.5\-9B holds∼\{\\sim\}0\.52 CQS on dynamic/k\_rl\. Gemma\-2\-9B is stable \(∼\{\\sim\}0\.72–0\.73 CQS\); Gemma\-2\-2B PG\-CoT CQS \(∼\{\\sim\}0\.39\) remains below Baseline, while Gemma\-2\-27B stays low across stages\.
#### Chinese\-centric pretraining advantage?
Contrary to intuition, Chinese\-centric pretrained models \(Qwen3\.5 series\) do not consistently outperform English\-centric counterparts \(Mistral, LLaMA\) on this Chinese TCM task after domain SFT\. This suggests that task\-specific fine\-tuning may matter more than pretraining language alone for final prescription quality\.
#### Scale and safety\.
Adversarial VR remains substantial across scales \(0\.038–0\.432 in Table[3](https://arxiv.org/html/2609.25755#S4.T3)\), with no architecture achieving near\-zero violation rates under all stages\. Mistral\-7B shows the highest baseline VR \(0\.432\); Gemma\-2\-9B shows the largest PG\-CoT reduction \(0\.340→\\to0\.094\)\. Stage rankings vary by family \(K\-RL lowest on 3/10 models; PG\-CoT on several others\), so safety conclusions should be reported per architecture rather than as a single global winner\.相似文章
基于大语言模型的循证智能诊断与治疗可视化系统:多轮交互与多模态治疗方案生成
本文提出了一种知识增强的中医视觉诊断系统,该系统使用Neo4j知识图谱、四阶段症状匹配流程以及信息增益驱动的主动提问策略,以提升透明度和可解释性。结果表明,该显著提高了诊断信任度并降低了认知负荷。
MMIR-TCM: 用于中医临床决策支持的记忆增强多模态推理与检索
本文介绍了MMIR-TCM,一种新颖的框架,它整合了多模态大语言模型与记忆增强分割和检索增强生成技术,以支持中医临床决策,同时提供了新的数据集MedTCM和评估指标TDEU。
DeepTCM1.0:基于通用大语言模型的多专家智能体用于解析中药复方机制
DeepTCM1.0是一个基于DeepSeek V3.2大语言模型构建的多专家智能体框架,用于解析中药复方的机制,通过Guizhi Decoction进行验证,并通过综合评分系统进行评估。
大型语言模型与中医医生在中医领域中的真实世界临床病例评估
该研究使用真实世界临床病例评估了16个大型语言模型与60位执业中医医生的表现,发现LLMs在某些领域获得更高的专家分数,但存在差异和安全问题。它强调了LLMs在中医决策支持中的潜力和局限性。
CARE: 用于医疗大型语言模型的因果对齐推理探索
CARE 引入了一个因果对齐推理探索框架,用于医疗大型语言模型,以增强训练稳定性并减少虚假相关性。