A Systematic Cross-Family Comparison of Fine-Tuning Open-Weight LLMs for Traditional Chinese Medicine: Capacity Scaling, Family Effects, and Teachability
— An empirical study of 8 open-weight base models (7B–72B) fine-tuned for Chinese medical licensing examinations under identical data and identical recipe
v1.3 (2026-07-27, adds 14-language multilingual evaluation + safety/typo results for the 3 new bases) · AIMate Smart Clinic Research Team · Technical report
📌 The One-Minute Version (for everyone)
What did we do? Training a TCM AI is like coaching students for a medical licensing exam. We wanted to know: which “student” (open-weight model) learns best? So we took one identical textbook (270,208 training samples of Chinese medical questions), one identical teaching method, and coached 8 different “students” — from a 7B model (~7 billion parameters) to a 72B model (~72 billion), spanning the Qwen, GLM and Llama families. Then we graded them all on the same 1,612 exam questions that none of them had ever seen.
What did we find?
- Bigger models score higher after training, and every step up is statistically significant — 36 points for 7B, 71 for 14B, 76 for 32B, 85 for 72B (out of 100). Spending compute on bigger models pays off.
- Newer-generation “students” are smarter — at the same 14B size, the newer Qwen3 beats the previous generation by 2.5 points; and an R1 reasoning model that started near zero (4.2 points) reached 65.7 after training — the “most improved underdog” of the whole class. A low starting score ≠ no future; plasticity is what matters.
- Our locally-trained 72B model ties a top international frontier model that can search the web during the exam (85.6 vs 86.8, statistically indistinguishable) — clinics get frontier-level TCM AI fully offline, with patient data never leaving the building.
- A surprise: safety awareness scales with capacity — small models reviewing prescriptions “cry wolf” (flagging even good prescriptions); at 32B the model suddenly “matures” and false alarms collapse.
In one sentence: for a clinic-ready TCM AI, choose a new-generation Qwen3-series base at sufficient scale, and pair it with a dedicated small safety-review model.
👉 If you have no time, stop here. For evidence and methods, read on — every section ends with a “In Plain Terms” box, and a glossary is at the end.
Abstract
Aiming at a locally deployable, TCM-specialized LLM for primary-care clinics, we systematically trained and evaluated 8 open-weight base models (7 completed full training and evaluation; 1 aborted) spanning three families — Qwen (R1-Distill / Qwen2.5 / Qwen3), GLM-4, and Llama — across multiple generations and a 7B–72B capacity range, under identical training data (270,208 samples) and an identical fine-tuning recipe. We ask: (1) Does capacity scaling yield consistent gains? (2) Does switching model family/generation add further gains? (3) How does a local open-weight specialist compare with a frontier web-connected model?
Key findings: ① The capacity ladder is monotonic — across R1-Distill-Qwen 7B→14B→32B→72B, TCM MCQ accuracy rises 36.0%→71.0%→76.3%→85.3% and general medicine 43.7%→73.7%→83.8%→90.3%; every model's base→tuned gain is significant by paired McNemar test (p≈0). ② Family/generation effects are real — at 14B, native Qwen3 beats R1-Distill-Qwen-14B on both axes (TCM 73.5% vs 71.0%; general 80.0% vs 73.7%); DeepSeek-R1-0528-Qwen3-8B shows the strongest “teachability” in the study (base 4.2% → tuned 65.7%, Δ+61.5pp). ③ The local 72B ties the web-connected frontier — the fully offline Qwen2.5-72B fine-tune is statistically tied with the web-connected frontier v4-pro on the n=811/801 large held-out set (TCM 85.6% vs 86.8%, p=0.47; general 89.8% vs 87.6%, p=0.18). Safety evaluation reveals a capacity phase transition: prescription-review specificity jumps from ~0.03 to 0.73 at 32B, with hallucination rate dropping 9×. All raw evaluation data, significance statistics and training provenance are released with this paper.
Keywords: TCM large language model; parameter-efficient fine-tuning (QLoRA); model capacity; cross-family comparison; decontaminated evaluation; McNemar test
1. Introduction
Intelligent assistance for primary-care TCM clinics (speech transcription, medical-record generation, prescription safety review) imposes three hard constraints on the language model: specialization (TCM syndrome-differentiation knowledge and licensing-exam-level competence), locality (patient data must not leave the clinic; the model must run quantized on consumer GPUs), and trustworthiness (safety review that neither over-flags nor under-flags). These constraints dictate our technical route: specialization via fine-tuning open-weight bases on domain data, rather than relying on cloud general-purpose APIs.
Within this route, the key engineering and scientific question is: which base model? Capacity (7B/14B/32B/72B), family (Qwen/GLM/Llama), generation (Qwen2.5/Qwen3), and reasoning lineage (R1-distilled vs. native) interweave; community wisdom mostly comes from general English benchmarks and may not transfer to Chinese medical specialization. Anecdotal conclusions (“bigger is always better” or “small is enough”) are unreliable — only controlled variables — same data, same recipe, same evaluation, swapping one base at a time — yield decision-grade evidence.
This paper is the complete record of that controlled experiment. Our contributions:
- A reproducible cross-base comparison table: 8 bases (7 completed + 1 aborted) × one 270,208-sample training set × one QLoRA recipe × one large held-out set (n=1,612), with paired statistical significance throughout;
- Three empirical conclusions: a monotonic capacity ladder, independent family/generation gains, and “teachability” that is negatively correlated with base scores;
- A safety capacity-transition finding: prescription-review specificity jumps at 32B (0.03→0.73), directly informing the design of clinical review pipelines;
- Complete data governance and honest boundaries: the held-out set is verified disjoint from training data through multiple independent audits; all non-comparable factors (library-compatibility discounts, early convergence stops) are disclosed.
2. Data
2.1 Training set
All runs use the same v3 training set of 270,208 samples from 8 sources (per-file SHA-256 prefixes verified identical across runs via run_manifest.json):
| File | Content | SHA-256 prefix |
|---|---|---|
| cmb_train_sft_full_v2 | CMB (Chinese Medical Benchmark, arXiv:2308.08833) train split converted to SFT, held-out removed | e8a64bee |
| cmexam_train_sft | CMExam real exam questions for training (overlap with held-out/CMB removed, net +43,695) | f3b57980 |
| r1_tcm_cot | R1-distilled TCM syndrome-differentiation reasoning chains | 7cbe3ef3 |
| knowledge_kb | TCM knowledge-base QA | f19855c9 |
| tcm_formula_kb | Herbal-formula knowledge base | 5b74f8f8 |
| typo_correction | Herb-name typo correction | ee387938 |
| clinical_review_synthetic | Synthetic prescription-review cases | c3538856 |
| tcm_mcq_train | TCM MCQ training questions | 114e76b6 |
2.2 Evaluation set (held-out) and decontamination
The main evaluation is the CMB large held-out: stratified from CMB-train, near-duplicate decontaminated (384 rewritten duplicates discarded), then deleted from the training set (→ cmb_full_v2), yielding cmb_tcm (TCM) n=811 and cmb_medical (general medicine) n=801. The external benchmark CMExam was rejected as an evaluation set (19.2% verbatim overlap with CMB-train — not independent) and is used only as training material.
Decontamination was verified in three independent rounds: (1) a near-duplicate gate at split time (0/1,609 leaked); (2) char-8gram containment + exact-substring checks against all 8 training files — zero leakage; (3) a 2026-07-14 credibility re-audit with cross-source exact matching — residual contamination effect ≤0.12pp, negligible. The safety evaluation set was expanded to n=195 (30 clean standard formulas + 165 erroneous cases, all self-checked by check_prescription_safety and disjoint from the training review pool). The typo set has n=90.
2.3 Data compliance
All training data comes from public academic benchmarks and self-built knowledge bases — no real patient data (PII-free). The residual risk is uncleared per-question copyright of upstream exam questions (an industry-wide gray zone), which we disclose here.
3. Methods
3.1 Fine-tuning recipe
Local runs and the 32B cloud run use our in-house train_lora.py: QLoRA 4-bit + packing, epochs=1, LoRA rank=16 (alpha=32), lr=1e-4, cutoff 1024 (32B cloud run 2048). The decisive reason for our own stack over LLaMA-Factory is the health gate: after training, reasoning models are screened for degeneration (empty <think>, repetition collapse), with exit code 3 blocking bad models — we previously produced a completely wrong “32B≈14B” conclusion when LLaMA-Factory's deepseekr1 template broke the reasoning model on no-think data with no gate to catch it (retracted; see §6.4). The 72B model, infeasible on a single machine, was trained with AWS 4×g6e.2xlarge multi-node DDP (LLaMA-Factory + Liger + paged_adamw_8bit, template=qwen; the non-reasoning base is immune to that failure mode).
3.2 Evaluation protocol
All models share one harness: base 4-bit + LoRA adapter, batch 8, max_new_tokens=512 (GLM-4 excepted, see §7). Each model is evaluated base first, then tuned, on the same questions paired. Scoring is exact set equality (multi-select answers must match letter-for-letter, preventing lucky-guess inflation). The empty-answer rate is 0 throughout, ruling out “format not learned” artifacts — base→tuned gains are knowledge gains, not format gains.
3.3 Statistics
Base→tuned and cross-model paired comparisons use the McNemar test (same-question pairing; win/loss counts and p-values reported); comparisons against the frontier model (independent samples) use the two-proportion z-test; accuracies are reported with Wilson 95% CIs.
4. Experimental Setup: Training Overview
| Model | Family/Generation | Location·Hardware | Recipe | Steps | Duration | Artifact |
|---|---|---|---|---|---|---|
| DeepSeek-R1-Distill-Qwen-7B | R1-Distill | Local RTX 5090 | train_lora | 2190 | ~5.1h | jinsixian-tcm-7b-v3pack |
| DeepSeek-R1-Distill-Qwen-14B | R1-Distill | Local RTX 5090 | train_lora | 2190 | ~8.6h | jinsixian-tcm-14b-v3pack |
| DeepSeek-R1-Distill-Qwen-32B | R1-Distill | AWS spot/on-demand, intermittent resume | train_lora (cloud, cutoff 2048) | 2190 | 07-04→14 断续 | jinsixian-tcm-32b-v3pack |
| Qwen2.5-72B-Instruct | Qwen2.5 | AWS 4×g6e multi-node DDP | LLaMA-Factory | 5266(收敛于 ckpt-2400) | ~12h 级 | 72b-mn-v2(S3) |
| DeepSeek-R1-0528-Qwen3-8B | Qwen3+R1-0528 | Local RTX 5090 | train_lora | 2190 | ~5.9h | jinsixian-tcm-r1qwen3-8b-v3 |
| Qwen3-14B | Qwen3 原生 | Local RTX 5090 | train_lora | 2283 | ~18.9h | jinsixian-tcm-qwen3-14b-v3 |
| THUDM/glm-4-9b | GLM-4(智谱) | Local RTX 5090 | train_lora | 2108 | ~5.2h | jinsixian-tcm-glm4-9b-v3 |
| DeepSeek-R1-Distill-Llama-70B | Llama | AWS g7e.4xlarge | — | 150/755 中止 | ~3.8h | ckpt-150 留 S3 |
Notes: 72B had max_steps=5,266, but its loss entered a flat plateau from step ~130 (mean 0.084 / std 0.036, no downward trend); training was stopped at checkpoint-2400 (46%) on judged convergence, saving ~$25 with provably zero remaining gain. Llama-70B reached only 150/755 steps (0.06 epoch) in 3h40m; resuming would cost ~$45 with insufficient marginal value — aborted, checkpoint retained for future resume.
5. Results
5.1 Main results: MCQ large held-out (cmb_tcm n=811 / cmb_medical n=801)
| Model | base TCM | tuned TCM | Δ | base general | tuned general | Δ |
|---|---|---|---|---|---|---|
| R1-Distill-Qwen-7B | 13.7% | 36.0% | +22.3pp | 19.9% | 43.7% | +23.8pp |
| R1-Distill-Qwen-14B | 38.2% | 71.0% | +32.8pp | 41.8% | 73.7% | +31.8pp |
| R1-Distill-Qwen-32B | 41.3% | 76.3% | +35.0pp | 48.3% | 83.8% | +35.5pp |
| Qwen2.5-72B-Instruct | 61.8% | 85.3% | +23.5pp | 72.0% | 90.3% | +18.2pp |
| R1-0528-Qwen3-8B | 4.2% | 65.7% | +61.5pp | 6.4% | 72.8% | +66.4pp |
| Qwen3-14B | 32.1% | 73.5% | +41.4pp | 31.2% | 80.0% | +48.8pp |
| GLM-4-9B ⚠️ | 39.8% | 68.1% | +28.2pp | 37.5% | 70.5% | +33.1pp |
| Reference: v4-pro (web-connected frontier) | — | 86.8% | — | — | 87.6% | — |
All 7 models show McNemar p≈0 (significant) base→tuned gains. ⚠️ GLM-4, due to three incompatibilities between its remote code and transformers 4.57 forcing use_cache=False, could only be evaluated at max_new=128 (vs. 512 for others); its scores carry a library-compatibility discount (estimated 2–5pp underestimation) and are not strictly comparable.
5.2 Comparison with the web-connected frontier
v4-pro (web-connected, able to look up answers) on the same held-out, prompt and scoring: TCM 86.8%, general 87.6%. Two-proportion z-tests: TCM 72B 85.6% vs 86.8%, z=−0.72, p=0.47 (tie); general 72B 89.8% vs 87.6%, z=+1.34, p=0.18 (tie). A fully offline open-weight 72B specialist is in the same league as the web-connected frontier. An earlier small-sample (n=55) run once suggested “beating the frontier”; re-measuring on a 15× larger sample corrected this to a tie — the accurate statement is “same tier, drifting slightly with question distribution”.
5.3 Safety evaluation (prescription review, sensitivity/specificity)
| Model | n=66 sens/spec | n=195 sens/spec | Hallucination (n=195) | Dangerous-advice rate |
|---|---|---|---|---|
| 7B | 0.446/0.20 | 0.539/0.10 | 0.482 | 0.041 |
| 14B | 0.786/0.00 | 0.697/0.03 | 0.374 | 0.015 |
| 32B | 0.625/0.90 | 0.746/0.73 | 0.041 | 0.021 |
| 72B (knowledge model) | 1.00/0.00 | not re-evaluated | not re-evaluated | not re-evaluated |
| R1-0528-Qwen3-8B | — | 0.539/0.43 | 0.313 | 0.021 |
| Qwen3-14B | — | 0.824/0.17 | 0.195 | 0.000 |
| GLM-4-9B ⚠️ | — | 0.0/1.0(invalid — degenerate outputs) | 0.0 | 0.169 |
Capacity transition: specificity jumps 0.03→0.73 from 14B to 32B — the 7B/14B/72B models all suffer “flag-everything” disease (specificity ≈ 0, flagging even clean formulas), first cured at the 32B tier; hallucination drops 0.374→0.041 (9×). The production review pipeline still uses the dedicated balanced 7b-safe (0.48/0.90, trained with rebalanced ratios; its specificity beats the frontier API's 0.10).
5.4 Typo correction (n=90)
| Model | Accuracy |
|---|---|
| 7B | 0.300 |
| 14B | 0.689 |
| Qwen3-14B | 0.778 |
| R1-0528-Qwen3-8B | 0.722 |
| 32B | 0.711 |
| GLM-4-9B | 0.556 |
| 72B | 0.844 |
5.5 Multilingual evaluation (14 languages, new in v1.3)
Method: same paper, different languages — one identical clean held-out (797/787) was machine-translated into 13 languages under a 105-term glossary constraint (answer letters unchanged, scoring logic untouched), then evaluated per language on the same harness; zh uses the original clean set as the anchor, and Δ is each language's gap to the zh-clean baseline.
Main matrix (tuned accuracy %, with Δ vs zh):
| Locale | qwen3-14b TCM | qwen3-14b general | 14b-v3 TCM | 14b-v3 general |
|---|---|---|---|---|
| zh (anchor) | 73.3(—) | 79.5(—) | 70.8(—) | 73.4(—) |
| en | 63.2(−10.0) | 78.1(−1.4) | 57.1(−13.7) | 73.8(+0.4) |
| es | 56.6(−16.7) | 70.8(−8.8) | 47.8(−23.0) | 63.1(−10.3) |
| pt-BR | 55.3(−17.9) | 73.2(−6.3) | 49.1(−21.7) | 61.0(−12.4) |
| vi | 48.9(−24.3) | 66.1(−13.5) | 42.4(−28.4) | 58.5(−15.0) |
| th | 56.5(−16.8) | 71.8(−7.8) | 49.7(−21.1) | 60.2(−13.2) |
| id | 53.4(−19.8) | 70.8(−8.8) | 42.9(−27.9) | 58.5(−15.0) |
| ms | 51.1(−22.2) | 65.2(−14.4) | 41.9(−28.9) | 55.6(−17.8) |
| ar | 49.3(−24.0) | 63.5(−16.0) | 41.0(−29.7) | 53.1(−20.3) |
| tr | 48.7(−24.6) | 68.0(−11.6) | 38.5(−32.2) | 53.1(−20.3) |
| fa | 49.4(−23.8) | 64.9(−14.6) | 37.4(−33.4) | 45.5(−28.0) |
| ru | 52.2(−21.1) | 74.2(−5.3) | 46.3(−24.5) | 63.4(−10.0) |
| kk | 41.0(−32.2) | 52.9(−26.7) | 25.6(−45.2) | 31.9(−41.5) |
| uz | 39.5(−33.8) | 55.6(−23.9) | 28.2(−42.5) | 37.2(−36.2) |
Five conclusions:
- TCM knowledge is strongly Chinese-bound — TCM scores degrade in every language (−10 to −45pp) and far more than general medicine; serving other languages requires multilingual TCM training data;
- general medicine is resilient — English is nearly lossless (14b-v3 even +0.4pp, within noise);
- qwen3-14b beats 14b-v3 in every language (14/14, both axes) — the flagship choice holds multilingually;
- low-resource languages (kk/uz) collapse (14b-v3 kk TCM only 25.6%) — these regions must currently fall back to English;
- RTL (ar/fa) carries no extra penalty.
6. Discussion
6.1 The capacity ladder is monotonic
Across R1-Distill 7B→14B→32B→72B, tuned TCM runs 36.0→71.0→76.3→85.3 and general 43.7→73.7→83.8→90.3 — no plateau, no inversion. And at 14B, “more data” no longer helps (30K→225K yields no significant gain — the capacity is saturated at 30K): to go further, scale capacity, not data. The deployment corollary: capability must be “compressed” down (distilling 72B→14B/7B), not trained into small models directly.
6.2 Independent family/generation gains
At the same 14B size, native Qwen3 (73.5/80.0) beats R1-Distill-Qwen-14B (71.0/73.7) on both axes — a newer-generation base is worth 2–6pp under identical data and recipe. A family switch (GLM-4-9B, 68.1%) passes the 9B bar but loses to the Qwen3 series at the same tier. Selection guidance updated accordingly: the 14B production line should be retrained on a Qwen3-series base.
6.3 Teachability is negatively correlated with base score
R1-0528-Qwen3-8B starts at a mere 4.2% base TCM (can barely answer) yet reaches 65.7% after tuning — Δ+61.5pp, the best in the study; the 72B with the highest base (61.8%) has the smallest Δ (+23.5pp). A low base score does not mean a bad base — the reasoning skeleton of R1-distilled bases provides exceptional plasticity for domain-knowledge injection; a 7B-class model can be taught to 65%+ TCM accuracy (92% of R1-Distill-14B). For edge deployment this is good news: a small model's poor exam score is teachable, not terminal.
6.4 A cautionary tale: recipe and gating matter more than the model
The first 32B run used LLaMA-Factory's deepseekr1 template on no-think data; the reasoning model learned to emit empty <think></think> blocks and partially degenerated (###**** garbage), understating MCQ by 0.09–0.13 and collapsing typo correction from 0.822 to 0.289 (note: those numbers are from the earlier 30K-era evaluation set — a different yardstick from the v3 n=90 set in §5.4) — nearly producing the false conclusion that “capacity doesn't matter”. When training reasoning models on no-think data, a reasoning-preserving recipe plus a post-training health gate are both mandatory; this is why we insist on our own train_lora.py.
6.5 Deployment route
- Knowledge/generation workhorse: distill 72B→14B/7B (compress CMB specialization into clinic-runnable quantized small models);
- When syndrome-differentiation CoT is needed: 32B-full-lora (reasoning preserved);
- Safety review: the dedicated balanced 7b-safe (not a knowledge model — knowledge models “flag everything” on the safety axis, specificity 0.10, unusable for review).
7. Limitations
- GLM-4 evaluation discount: library incompatibility forced use_cache=False (O(n²) generation), with evaluation at max_new=128; scores may be underestimated by 2–5pp. Its base empty rate (~6%, counted as wrong; ≤6pp impact on Δ) stacks with this discount — not strictly comparable to other rows. A strict re-evaluation should retrain on the official glm-4-9b-chat-hf (natively supported by transformers).
- Non-zero base empty rate: tuned empties are 0/0 for all 7 models, but base empties (0.1%–6.3%, mostly format non-compliance) are counted as wrong — base scores contain a format-failure component and are not pure knowledge measures; the impact on Δ is bounded at ≤6.3pp and changes no significance conclusion (per-model quantification in analysis_reports/eval_coverage_audit_2026-07-22.md).
- The 72B is a converged checkpoint (epoch 0.46, within the flat loss plateau), not a full run; it matches the full-run scores of its series within noise, but strictly speaking is not “a complete epoch”.
- GLM-4 safety evaluation is invalid (sensitivity 0 / specificity 1.0 results from degenerate outputs, not real capability); the fix is to retrain and re-evaluate on the official chat-hf variant.
- The Llama family is missing: the 70B run was aborted, leaving a gap in the family comparison.
- Distribution specificity: all conclusions are limited to TCM-specialized fine-tuning on the CMB Chinese medical-exam distribution; “tying the frontier” refers to that distribution, not to overall medical capability.
- Quantization effect: all evaluation ran at 4-bit, which can only lower, never raise, scores — absolute numbers are conservative lower bounds.
- Multilingual boundary: the 13 non-Chinese exam sets are glossary-constrained machine translations (Δ includes translation noise); conclusions are limited to “performance on these translated papers”; low scores in kk/uz mix model multilingual capability and translation quality.
8. Conclusion
Under strictly controlled identical data and recipe, base-model selection for TCM-specialized fine-tuning has clear, actionable conclusions: capacity helps monotonically; newer-generation bases (Qwen3 series) add 2–6pp at the same capacity; R1-distilled bases are the most teachable; a fully local 72B ties the web-connected frontier; and safety review exhibits a 32B capacity transition. For primary-care clinic deployment, we recommend the combination “distill 72B → Qwen3-series 14B for production + 7b-safe for review”.
Appendix A: Reproduction
# 单个新底座(本地 RTX 5090)/ A single new base (local RTX 5090) bash finetune/scripts/train_new_base_local.sh <hf_repo_id> <short_name> [epochs=1] [cutoff=1024] # 队列 / Queue bash finetune/scripts/train_queue_local.sh # 汇总出表 / Summary table python3 finetune/eval/summarize_v3full.py # 云训 72B(多机 DDP)/ Cloud 72B (multi-node DDP) RUN_ID=72b-mn-v2 bash finetune/aws/launch_72b_mn.sh 4
Raw evaluation data: finetune/eval/results/ (validation_*_v3full.json with per-item results and McNemar statistics, safety_*.json, typo_*.json, v3full_summary.json); training provenance: finetune/eval/results/manifests/ (per-run run_manifest.json with base paths, SHA-256 of the 8 data files, recipe, git commit).
Appendix B: Ethics & Data Compliance Statement
All training data consists of public academic benchmarks and self-built knowledge bases — no real patient data. The held-out set was verified disjoint from training data in three independent audits. All non-comparable factors and negative results (including one retracted conclusion) are disclosed. The copyright gray zone of upstream exam questions is disclosed in §2.3; model weights are used under each base model's license (distributed with the AIMate-TCM Model Community License v1.0: free for learning & research, commercial use requires authorization, preferential terms for the Global South and Belt & Road partners).
Appendix C: Glossary (for non-specialist readers)
| Model / base | The original open-weight model before our training, e.g., Qwen3-14B. B = billion parameters; 7B ≈ 7 billion |
| Fine-tuning / tuned | Further training of a base model on domain data; tuned = after training |
| QLoRA | A memory-efficient fine-tuning technique: the model body stays frozen, only a small “plug-in” of parameters is trained; runs on consumer GPUs |
| 4-bit quantization | Compressing model numbers to 4 bits to save memory and time, at a slight accuracy cost |
| MCQ | Multiple-choice questions — the main exam subject of this paper |
| Held-out set | Exam questions the model never saw during training, for fair grading |
| Decontamination | Verifying that exam questions did not leak into training data (preventing “memorized answers”) |
| base→tuned gain (Δ) | The same model's score difference before/after training, in percentage points (pp) |
| McNemar test / p-value | Statistics for “is the improvement real, not luck”; p≈0 means almost certainly real; p=0.47 means no significant difference (a tie) |
| 95% CI (confidence interval) | The error margin of a score, e.g., CI±2.4% means the true score is likely within ±2.4 points |
| Sensitivity / specificity | Security-check terms: sensitivity = fraction of dangers caught (no misses); specificity = fraction of innocents passed (no false arrests) |
| Hallucination | The rate at which a model “confidently makes things up” |
| Distillation | Teaching a small model what a big model knows, giving the small one big-model capability cheaply |
| CoT (chain of thought) | The ability to “write out reasoning” before answering — crucial for TCM syndrome differentiation |
| v4-pro | A top-tier commercial frontier model (web-connected), used as the “frontier reference line” |
| epoch / step | Training progress units: a step is one parameter update; an epoch is one full pass through the textbook |
The models in this research are clinical decision-support aids; they do not replace the doctor's judgment. Not a medical device (not approved by NMPA/FDA/EMA).