International scientific journal
Published in Hong Kong 中文
TCM Discovery Search
Current issue/Volume 1 · Number 1
Original research

Sensitivity of Large Language Models to Key Symptoms in Traditional Chinese Medicine Pattern Differentiation

A paired counterfactual experiment on cold and heat patterns with a protocol for blinded physician evaluation

Dongfei LinTCM Discovery · pp. 199–209
On this page
Abstract Introduction Methods Construction of the paired vignettes Model inference and statistical analysis Results Context and variation between pairs Score changes and changes of label Answer order and complaint weighting Discussion Protocol for blinded physician evaluation Conclusions References References continued Appendix Appendix continued

Abstract

Objective. A model may change its pattern assessment when a clinically relevant detail changes, yet also change when the same answer appears in another position. We examined both responses in two Chinese-capable language models.

Methods. Twelve chief-complaint terms attested in outpatient notes were crossed with three tongue-coating contexts. Within each of the 36 backgrounds, three pairs exchanged a cold-associated symptom description for a heat-associated one and one pair exchanged synonymous visit wording. Qwen2.5-0.5B-Instruct and Qwen2.5-1.5B-Instruct scored both alternatives under both answer orders. The primary outcome was the within-pair change in the conditional heat-choice score, averaged across answer orders.

Results. All 1,152 model evaluations were completed. Across 108 symptom pairs, mean score changes were -0.9 and -5.5 percentage points for the 0.5B and 1.5B models, respectively. Cold-drink preference lowered the heat score in all 36 drinking contrasts for both models, opposite the expected direction. Reversing the answer order changed the preferred clinical label in 255 and 275 of 288 individual variants, respectively. The mean absolute shift across the 36 wording-control pairs was 1.8 and 1.2 points.

Conclusions. Answer position frequently determined which clinical label the models favored. The direction and size of symptom effects varied by cue. A blinded physician study is needed to establish whether a change in clinical judgment is warranted, especially when a case supports mixed or indeterminate patterns.

Keywords traditional Chinese medicine · pattern differentiation · large language models · counterfactual vignettes · answer-order sensitivity · cold and heat patterns

Introduction

A patient reports joint pain. Learning that the patient prefers warm drinks may influence a practitioner’s assessment, but the weight of that observation depends on the other findings. A thin yellow tongue coating, for example, changes the context in which the same preference must be interpreted. Cold and heat constitute one dimension of traditional Chinese medicine (TCM) pattern differentiation, and mixed presentations are recognized in its terminology.1

Current benchmarks measure whether a system can recover a recorded syndrome from a clinical narrative. TCM-SD includes 54,152 clinical records spanning 148 syndromes, and Chen and colleagues organized 200 medical cases into three tasks to study differentiation reasoning.2,3 Success on an intact record leaves a question unanswered. Which observation drove the answer, and would the assessment move in a credible direction if that observation changed?

Paired edits make the comparison local to a particular vignette. Behavioral tests can distinguish an expected directional response to a meaningful change from instability under an inconsequential edit.4 Medical language models can respond to the amount or sequence of information they receive, and even the order of multiple-choice options can change their performance.5,6 A change in the output therefore needs both a clinical interpretation and a measurement control.

We asked how strongly three common symptom descriptions influence a model’s preference between cold and heat, whether tongue-coating context modifies that influence, and how often the choice of answer letter changes the result. The empirical unit was a constructed text pair. A prospective protocol addresses the separate question of whether physicians consider a model’s response appropriate.

Methods

Source material and unit of analysis

Two read-only local collections supplied the vocabulary. We examined the chief-complaint column (opmr_complain) of the outpatient note table (menzhenmenzhenbingli) in the clinical archive. We inspected all rows and counted literal Chinese substrings in nonblank entries. A row could contribute to more than one term. Repeat visits and duplicate notes were retained because the purpose was to establish vocabulary use. The resulting counts describe documentation frequency.

The second source comprised 133 workbooks in the historical and modern medical case collection. For each of six literal cue phrases, we counted workbooks with at least one occurrence in a text cell of the first worksheet. A workbook could attest to both poles of a contrast. This check established that the wording occurred in the collection. It provides no estimate of symptom frequency among patients.

Construction of the paired vignettes

The complaint panel was selected purposively to include musculoskeletal, mucosal, respiratory, sleep, gastrointestinal and general complaints. The design crossed every complaint with three tongue-coating contexts: no coating information, a thin white coating, and a thin yellow coating. Omitting the coating left the finding unknown. No prompt contained a patient narrative, identity, prescription, recorded diagnosis or clinician interpretation.

Figure 1. Source attestation of the experimental vocabulary

Figure 1. Source attestation of the experimental vocabulary. Each outpatient value counts notes with a literal chief-complaint match. The logarithmic axis preserves the visibility of uncommon terms. Literature counts refer to workbooks and can overlap across phrases.

Table 1. Within-pair edits and their design roles. Only the final phrase changed within each pair.

Edit

First version

Second version

Expected comparison

Drink preference

Prefers hot drinks

Prefers cold drinks

Increase in heat score

Stool form

Loose stools

Dry, hard stools

Increase in heat score

Urination

Clear, copious urine

Scant, dark urine

Increase in heat score

Visit wording

Comes to the outpatient clinic

Presents to the outpatient clinic

Little change in score

Each edit was applied to 12 complaints × 3 coating contexts, yielding 36 pairs per edit. The expected direction is a hypothesis about the cue in isolation. Full texts and the Chinese phrases used at inference appear in the Appendix.

Model inference and statistical analysis

We evaluated the 0.5B and 1.5B instruction-tuned checkpoints from the Qwen2.5 family.7 Both ran locally from Q4_K_M GGUF weights using llama.cpp build b12909. Each query specified one Chinese vignette and two answer labels. Every variant appeared once with cold assigned to A and once with heat assigned to A. The scoring prompt, checkpoint fingerprints and decoding settings appear in the Appendix, following reporting principles for clinical language-model research.8

For each ordering, the heat score was the model’s next-token probability of the letter denoting heat divided by the sum of the A and B probabilities. We added the same logit offset to both letters to obtain their probabilities reliably. The offset cancels in their ratio. We averaged the two order-specific heat scores to obtain H for a variant. This conditional score measures relative support in a forced choice. Its numerical value has no established calibration against a patient diagnosis.

The primary estimand was the mean of 100 × (H₂ − H₁) over 108 clinical pairs per checkpoint, giving equal weight to each complaint, coating and cue. A positive change favors heat after the second phrase. We report the direction of movement separately from threshold crossing. H ≥ 0.50 defined a heat choice. Each pair therefore contributed to one of four transitions. Analysis of the neutral control used both signed and absolute change to reveal cancellation.

For each individual variant, order discordance occurred if its two order-specific heat scores fell on opposite sides of 0.50. We also measured the absolute order gap. Exploratory comparisons retained the repeated design by calculating within-complaint means. For a sensitivity analysis of complaint composition, we resampled the 12 complaint blocks with replacement 20,000 times, preserving every condition and both checkpoints within a selected block. We report 2.5th and 97.5th percentiles of the resulting means (seed 602).

The observed contrasts are exact summaries of a fixed panel. The resampling intervals describe a hypothetical reweighting of these 12 complaints. They do not quantify sampling uncertainty for a clinical population. We also recomputed the primary contrast after omitting each complaint and after weighting complaints by their archive match counts. Given purposive selection, we report effect sizes and robustness ranges without population-level significance tests.

Denominators and completeness

The note archive contained 23,451 rows, including 1,381 (5.9%) with a blank or missing complaint. At least one selected term appeared in 6,023 of 22,070 populated notes (27.3%). The six clinical cue phrases appeared in 63–98 of the 133 case workbooks (Figure 1). The factorial experiment yielded 144 pairs, 288 variants and 576 distinct prompts. Both checkpoints scored every prompt.

Results

Magnitude and direction of symptom effects

Across clinical pairs, the mean change in heat score was -0.9 and -5.5 percentage points for 0.5B and 1.5B, respectively. On identical pairs, the 1.5B minus 0.5B difference was -4.7 points (complaint-resampling interval -5.8 to -3.6). Table 2 reports how often a positive shift also crossed the decision threshold.

Table 2. Clinical response across 108 symptom pairs per model. Changes are percentage points.

Statistic

0.5B

1.5B

Mean change (resampling interval)

-0.9 (-1.2 to -0.6)

-5.5 (-6.8 to -4.3)

Median change [25th, 75th percentile]

-0.6 [-1.9, +0.6]

-0.1 [-2.8, +0.1]

Positive change, n / 108

36 / 108

39 / 108

Cold-to-heat crossing, n / 108

0 / 108

35 / 108

Heat-to-cold crossing, n / 108

0 / 108

23 / 108

Figure 2. Mean paired change by edit and model

Figure 2. Mean paired change by edit and model. Each estimate summarizes 36 pairs. Lines span the central 95% of complaint-block resamples. A positive control value denotes movement toward heat under the second visit wording.

Changing the preference from hot to cold drinks lowered the heat score in all 36 backgrounds for both checkpoints. It accounted for the largest mean shift in either direction (−2.6 and −16.5 points). Stool and urine edits each produced a mean change of less than one point in absolute value. The mean effect of the neutral wording change exceeded the mean effect of either of those symptom edits in absolute value for both models.

Context and variation between pairs

Figure 3 retains the background complaint and coating while averaging over the three clinical substitutions. Each cell answers how far a symptom edit moved the model on that particular background. Comparing columns within a row isolates changes in context, with the chief complaint held constant.

Figure 3. Mean clinical cue effect by complaint and tongue coating

Figure 3. Mean clinical cue effect by complaint and tongue coating. Each cell gives a signed percentage-point difference averaged across three edits. Teal indicates movement toward heat and rust indicates the opposite direction. Both panels share one color scale.

Table 3. Mean change by coating context. Each entry averages 36 clinical pairs or 12 wording-control pairs.

Coating context

Clinical 0.5B

Clinical 1.5B

Control 0.5B

Control 1.5B

Unspecified

-1.3

-12.5

+0.9

+2.4

White coat

-1.0

-2.7

+2.1

+0.3

Yellow coat

-0.3

-1.5

+1.4

-0.0

For 1.5B, the drink-preference effect was −36.9 points without a tongue description, −8.1 with a thin white coating and −4.5 with a thin yellow coating. Both explicit coating descriptions attenuated the inverse drinking effect in this wording scheme.

The largest 1.5B shift occurred for urination with rash and the white coat context (heat score 0.4836 to 0.5004). The smallest occurred for drink preference with cough and the unspecified context (0.818 to 0.149). These extremes were selected after examining all 108 clinical pairs.

Score changes and changes of label

Figure 4. Distributions of within-pair changes

Figure 4. Distributions of within-pair changes. Each curve gives the share of 36 paired changes at or below the value on the horizontal axis. A curve concentrated around zero identifies an edit that usually has little effect. Negative values indicate movement toward cold.

The clinical edits moved the 0.5B model toward heat in 36 pairs and produced 0 cold-to-heat label changes. Corresponding counts for 1.5B were 39 and 35. A shift that stays on the same side of 0.50 still indicates sensitivity to the edited text. A label change near 0.50 can occur after a very small shift.

Figure 5. Threshold transitions after each edit

Figure 5. Threshold transitions after each edit. Within each bar the numbers count pairs, and each bar totals 36. Labels appear in segments of at least three pairs. Cold and heat are assigned from the order-averaged heat score at 0.50.

Under the wording control, the models changed clinical labels in 0 and 1 of 36 pairs. The signed mean change was +1.5 and +0.9 points. Taking the absolute value before averaging gave 1.8 and 1.2 points. This distinction matters when opposite changes cancel.

Answer order and complaint weighting

Reversing the answer order held every clinical word constant. In Figure 6, a point in the upper-left or lower-right quadrant indicates that the preferred pattern depended on which letter represented heat. Such a disagreement can be hidden by the order-averaged score used for the primary analysis.

Figure 6. Heat-choice score for both answer orders on identical clinical text

Figure 6. Heat-choice score for both answer orders on identical clinical text. Each point represents one of 288 variants per checkpoint. The diagonal marks exact agreement. Quadrant boundaries mark the 0.50 decision threshold. Points can overlap.

Table 4. Answer-order effects and sensitivity to the composition of the complaint panel.

Statistic

0.5B

1.5B

Order-discordant variants, n / 288

255 (88.5%)

275 (95.5%)

Second answer (B) favored, n / 576

541 (93.9%)

563 (97.7%)

Mean absolute order gap, points

42.0

92.4

Mean heat score with heat as A / B, %

20.0 / 61.4

1.4 / 93.8

Clinical change with note-term weights, points

-0.8

-4.8

Clinical change after log-odds pooling, points

-0.7

-6.7

Range after omitting one complaint, points

-0.9 to -0.7

-5.8 to -5.2

For the alternative pooling analysis, we averaged log odds across answer orders and transformed the result back to a heat score before differencing. Frequency weighting instead upweighted complaint terms common in the outpatient archive, particularly joint pain. Overlapping note matches preclude a patient-level interpretation.

Discussion

A useful interpretation of a symptom edit requires three observations: the direction of the score change, the starting level of support for each pattern, and the response to a change with no intended clinical meaning. In this experiment each observation was available on the same set of backgrounds. A model that shifts toward heat from 0.02 to 0.20 has responded substantially while still favoring cold. Reporting only the final letter would erase that response. Conversely, a small shift around 0.50 may reverse a label despite minimal change in relative support.

Clinical meaning of the individual cues

Changing a preference for hot drinks to a preference for cold drinks moved the 1.5B model 16.5 points toward cold on average, opposite the design expectation. The temperature word describes the beverage. A preference for a cold drink can support heat even though the phrase contains “cold.” The reversal is consistent with sensitivity to the temperature word itself, although it cannot establish the internal mechanism. A follow-up could describe choosing chilled water on a hot day versus seeking it persistently, so that physicians can distinguish an everyday preference from a clinically informative symptom.

The stool and urine contrasts also bundle information. “Clear and copious” versus “scant and dark” changes both amount and appearance. The measured shift belongs to that conventional phrase as a whole. A factorial follow-up could independently vary amount and color after physicians screen the resulting combinations for plausibility. Likewise, the absence of tongue information leaves open what an examination would have shown. A future benchmark should include a response that requests the missing observation.

Interpreting the two checkpoints

The absolute answer-order gaps averaged 42.0 and 92.4 points, compared with absolute changes of 1.6 and 5.7 points for symptom substitutions. These comparisons use different units of observation: one fixed variant for an order gap and a pair of variants for a symptom shift. A clinically important implication is that an explanation based on one answer letter can be fragile. Reporting both orderings exposes this failure mode even when their average looks decisive.

The 0.5B checkpoint assigned cold to both versions of every clinical pair after averaging over answer orders. The 1.5B checkpoint crossed the 0.50 threshold in both directions. For a system that often favors the second letter, reversing the options can put two nearly opposite scores into the same average. A label just above 0.50 can then reflect a small asymmetry between two extreme responses. Neither a switch rate nor a near-0.50 average alone is an adequate account of that behavior.

Scope and limitations

The cases are short constructions assembled from attested words. The specific combinations and implied clinical directions lack physician validation. The experiment covers one binary axis, one language, one prompt, and two quantized checkpoints from a single family. It excludes mixed patterns and abstention. Parameter count cannot be isolated from training or implementation differences. The results describe the tested configurations. They provide no estimate of patient-level accuracy, calibration or clinical benefit.

Protocol for blinded physician evaluation

The following study is proposed. No physicians participated in the computational experiment. The clinical question is whether a change, stability, or acknowledgment of uncertainty is appropriate when the evidence in a realistic case changes. Training on a common rubric can affect agreement in TCM pattern assessment.9 The proposed design preserves initial disagreement for analysis in accordance with reliability-reporting principles.10

Case selection and reference judgments

Sample distinct, de-identified patient encounters from a defined setting and interval after institutional review. Construct one pair per encounter. Include clinically material changes, credible edits expected to preserve the assessment, and presentations in which ambiguity should increase. Preserve unrelated history, disease duration, tongue and pulse findings. Before running models, three TCM physicians outside the rating panel will judge plausibility and record acceptable patterns and expected change independently. A pair with no majority on plausibility will be revised once or excluded with a recorded reason. Preserve all original judgments.

Blinding and clinical endpoint

Give each model one member per fresh session. Permit cold, heat, mixed or insufficient evidence and a brief rationale. Assign opaque identifiers to outputs, remove model and version markers, standardize typography, and randomize the order of pair members. Three additional licensed TCM physicians will independently see each pair of vignettes with the two outputs for a single anonymized model. They will be blinded to model identity, the reference labels and the authors’ intended direction. They must see the clinical difference to judge its relevance. Record whether they recognized an output or inferred its source.

The primary endpoint will be the proportion of evaluable pairs judged appropriate by at least two of three reviewers. Each reviewer must find both responses defensible and the relationship between them appropriate. Secondary ratings will distinguish missed adaptation, excessive change, unsupported certainty, and contradiction of the vignette. Record a short supporting quotation. A medically appropriate “insufficient evidence” answer will qualify for full credit.

Precision and analysis

A target of 100 independent evaluable case pairs per prespecified primary stratum would give a Wilson 95% interval of approximately 71%–87% if 80 of 100 met the endpoint. This is a planning calculation. Repeat ratings of the same pair provide no additional independent cases. Screen additional encounters for exclusions and document the loss at each stage. For comparisons between models on the same cases, bootstrap entire cases together with their ratings. Report raw agreement and a multi-rater kappa before adjudication, with case-level intervals and complete rating distributions. A failed model response counts as unsuitable. Obtain replacement blinded ratings for missing reviewer assessments and publish best- and worst-case bounds for unresolved pairs.

Conclusions

On a fixed set of Chinese-language cold–heat contrasts, the two Qwen2.5 checkpoints shifted by an average of -0.9 and -5.5 percentage points after symptom substitution. The preferred clinical label also depended on answer order in 88.5% and 95.5% of individual variants. Paired symptom edits and order reversal answer complementary questions about model behavior. Determining whether the model changed its assessment appropriately requires independent judgments on realistic cases, including cases for which neither a cold nor a heat label is adequate.

Data availability and research oversight

The Appendix specifies the vocabulary, prompt and model settings. The Word file includes machine-readable source data for all 1,152 evaluations. Open a copy of the DOCX as a ZIP archive and extract customXml/item2.xml for the full prompts, answer orders, A/B probabilities and conditional heat scores. The source data contain constructed prompts and no individual clinical narratives. Only aggregate note counts entered the study. Access to the outpatient archive is controlled by its custodian.

The computational experiment involved no patient intervention and no physician participants. An institutional ethics determination for secondary use of the outpatient archive was unavailable at manuscript preparation. Any applicable approval or waiver and permission for use of the archive must be documented before submission. Funding and competing-interest declarations require confirmation by the author.

Use of generative artificial intelligence

OpenAI Codex assisted with the experimental implementation, statistical programming, figures and drafting of the manuscript. The two Qwen checkpoints were the objects of the computational experiment. Human clinical judgments were neither collected nor attributed to an AI system.

References

1. World Health Organization. WHO international standard terminologies on traditional Chinese medicine. Geneva: World Health Organization; 2022. Source

2. Ren M, Huang H, Zhou Y, Cao Q, Bu Y, Gao Y. TCM-SD: a benchmark for probing syndrome differentiation via natural language processing. In: Proceedings of the 21st Chinese National Conference on Computational Linguistics. Chinese Information Processing Society of China; 2022. p. 908–920. Source

3. Chen C, Wang X, Guan M, Yue W, Wu Y, Zhou Y, et al. Evaluating and improving syndrome differentiation thinking ability in large language models: method development study. JMIR Med Inform. 2025;13:e75103. doi: 10.2196/75103

4. Ribeiro MT, Wu T, Guestrin C, Singh S. Beyond accuracy: behavioral testing of NLP models with CheckList. In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. Association for Computational Linguistics; 2020. p. 4902–4912. doi: 10.18653/v1/2020.acl-main.442

References continued

5. Hager P, Jungmann F, Holland R, Bhagat K, Hubrecht I, Knauer M, et al. Evaluation and mitigation of the limitations of large language models in clinical decision-making. Nat Med. 2024;30:2613–2622. doi: 10.1038/s41591-024-03097-1

6. Pezeshkpour P, Hruschka E. Large language models sensitivity to the order of options in multiple-choice questions. In: Findings of the Association for Computational Linguistics: NAACL 2024. Association for Computational Linguistics; 2024. p. 2006–2017. doi: 10.18653/v1/2024.findings-naacl.130

7. Yang A, Yang B, Zhang B, Hui B, Zheng B, Yu B, et al. Qwen2.5 technical report. arXiv. 2024;2412.15115. arxiv.org/abs/2412.15115

8. Gallifant J, Afshar M, Ameen S, Aphinyanaphongs Y, Chen S, Caccianami G, et al. The TRIPOD-LLM reporting guideline for studies using large language models. Nat Med. 2025;31:60–69. doi: 10.1038/s41591-024-03425-5

9. Mist S, Ritenbaugh C, Aickin M. Effects of questionnaire-based diagnosis and training on inter-rater reliability among practitioners of traditional Chinese medicine. J Altern Complement Med. 2009;15:703–709. doi: 10.1089/acm.2008.0488

10. Kottner J, Audigé L, Brorson S, Donner A, Gajewski BJ, Hróbjartsson A, et al. Guidelines for Reporting Reliability and Agreement Studies (GRRAS) were proposed. J Clin Epidemiol. 2011;64:96–106. doi: 10.1016/j.jclinepi.2010.03.002

Appendix

Reconstructing the benchmark

The 12 complaint strings, in the order plotted in Figure 1, were 关节疼痛, 口干, 眼干, 乏力, 咳嗽, 晨僵, 皮疹, 腰痛, 失眠, 头晕, 头痛 and 腹胀. After the complaint and its full stop, append either the empty string, 舌苔薄白。 or 舌苔薄黄。 Append one of the paired cue strings and the final Chinese full stop.

Table A1. Verbatim Chinese strings for each within-pair contrast.

Edit

First phrase

Second phrase

Drink preference

喜热饮

喜冷饮

Stool form

大便稀溏

大便干结

Urination

小便清长

小便短赤

Wording control

来门诊就诊

至门诊就诊

The terms and both complete phrase variants are sufficient to reconstruct every synthetic vignette. No dates, ages, identities, clinical outcome data or per-patient record keys entered the inference prompts.

Appendix continued

Exact model input and scoring

Use UTF-8, line feed characters, and the standard Qwen role delimiters. The example below is the joint-pain vignette with a thin white coating and a preference for hot drinks. A full-width space (U+3000) separates the answer options. The last line contains the assistant role marker and is followed by a line feed. For the reversed option order, replace only the option line with “A. 热证 B. 寒证”.

<|im_start|>system
请根据给出的资料,判断寒热倾向。只能选一个答案,只输出对应的大写字母。<|im_end|>
<|im_start|>user
A. 寒证 B. 热证
主诉:关节疼痛。舌苔薄白。喜热饮。<|im_end|>
<|im_start|>assistant

The system instruction asks for a cold–heat tendency and a single uppercase answer letter. The user message lists the two choices and gives the complaint, optional tongue finding and final cue. The pair member changes only the cue. All 576 prompts were distinct; the two checkpoints received identical byte strings.

Both letters tokenized as a single token (A = 32, B = 33). The Vulkan build of llama.cpp (commit 04586184c) used temperature 1, the temperature sampler alone, a +30 logit offset for each letter, seed 42 and one predicted token. The four largest post-sampling probabilities were requested. The A/B scores used for analysis are independent of which letter was sampled. Sorted prompts were distributed over four slots with shared-prefix caching. Each request supplied the complete input.

During setup, seven 1.5B prompts were also scored using a single CPU slot. All seven had the same preferred letter as in the primary run, but the largest absolute difference in the conditional heat score was 21.6 points. These convenience checks covered one complaint and one option order. They illustrate the importance of preserving the execution configuration alongside model weights.

Model identity

Qwen2.5-0.5B-Instruct, Q4_K_M · SHA-256

74a4da8c9fdbcd15bd1f6d01d621410d31c6fc00986f5eb687824e7b93d7a9db

Qwen2.5-1.5B-Instruct, Q4_K_M · SHA-256

6a1a2eb6d15622bf3c96857206351ba97e1af16c30d7a74ee38970e434e9407e

Calculation for an individual pair

For the illustrated 1.5B pair, heat scores for hot-drink preference were 0.9782 with heat as B and 0.0121 with heat as A (mean 0.4952). For cold-drink preference the corresponding scores were 0.9165 and 0.0015 (mean 0.4590). Subtracting the first mean from the second and multiplying by 100 gives a paired change of -3.6 percentage points.