Large Language Models (LLMs) are increasingly deployed in medical settings, yet their sensitivity to prompt formatting remains poorly characterized. We evaluate MedGemma (4B and 27B parameters) on MedMCQA (4,183 questions) and PubMedQA (1,000 questions) across a broad suite of robustness tests. Our experiments reveal several concerning findings. Chain-of-Thought (CoT) prompting decreases accuracy by 5.7% compared to direct answering. Few-shot examples degrade performance by 11.9% while increasing position bias from 0.14 to 0.47. Shuffling answer options causes the model to change predictions 59.1% of the time, with accuracy dropping up to 27.4 percentage points. Front-truncating context to 50% causes accuracy to plummet below the no-context baseline, yet back-truncation preserves 97% of full-context accuracy. We further show that cloze scoring (selecting the highest log-probability option token) achieves 51.8% (4B) and 64.5% (27B), surpassing all prompting strategies and revealing that models "know" more than their generated text shows. Permutation voting recovers 4 percentage points over single-ordering inference. These results demonstrate that prompt engineering techniques validated on general-purpose models do not transfer to domain-specific medical LLMs, and that reliable alternatives exist.
Figures & tables
Parameter
Determ.
Self-Cons.
Rationale
Temperature
0.0
0.7
Greedy for reproducibility; 0.7 for diverse reasoning paths
Top- p
1.0
0.95
No nucleus filtering for greedy; mild filtering for sampling
Top- k
0
50
Disabled for greedy; limits sampling to top 50 tokens
do_sample
False
True
Greedy decoding vs. stochastic sampling
max_new_tokens
256
256
Sufficient for CoT reasoning while bounding cost
Table 1: Frozen inference parameters for all experiments.
Exp.
Name
Dataset
Conds.
Core Question
1
Prompt Ablation
MedMCQA (4,183)
10
Do CoT and few-shot help or hurt?
2
Option Order
MedMCQA (4,183)
5 × 3 seeds
Does shuffling options change the answer?
3
Evidence Cond.
PubMedQA (1,000)
11
How does context truncation affect accuracy?
4
Robustness Basel.
MedMCQA (4,183)
3 methods
Can alternative scoring mitigate fragility?
Table 2: Overview of the four experiments in our evaluation.
Metric
Definition
CKLD
∑i(Oi−Ei)2/Ei , where Oi and Ei are observed and expected counts per position; quantifies departure from uniform answering
RStd
σ/μ of per-position accuracies; captures how unevenly performance is distributed across answer positions
Per-position acc.
Accuracy conditioned on the correct answer being A, B, C, or D; reveals position-dependent competence
McNemar’s test
Paired significance testing between conditions, with Bonferroni correction for multiple comparisons
Table 3: Additional metrics used in our evaluation.
Condition
Accuracy
95% CI
Pos. Bias
Zero-shot direct
47.6%
[46.1, 49.1]
0.137
Zero-shot CoT
41.9%
[40.4, 43.3]
0.275
Few-shot direct (curated)
35.7%
[34.3, 37.0]
0.472
Few-shot CoT (curated)
40.8%
[39.4, 42.3]
0.413
Answer-only
43.0%
[41.5, 44.6]
0.096
Table 4: Prompt ablation results on MedMCQA ( n=4,183 ). Random baseline is 25%.
Example 1: CoT backfires (Dental, correct answer: D)
Prompt (direct)
Question: In a 6-month-old child, thick curd like white patch appears on the buccal mucosa. On rubbing it leaves an erythematous patch. Most likely diagnosis is: Options: A) Tuberculosis B) Lichen planus C) Lupus erythematous D) Candidiasis Answer with a single letter (A, B, C, or D).
Direct output
D ✓
Prompt (CoT)
Question: [same as above] Think through this step-by-step, analyzing each option. Then provide your final answer as a single letter (A, B, C, or D).
CoT output
A) Tuberculosis: Oral tuberculosis is rare in children. While it can present with lesions, they are less likely to be the classic "curd-like" appearance. B) Lichen planus: less common in infants. It typically presents with flat-topped … (truncated at 256 tokens; selects A ) ×
Example 2: Option order flip (Anatomy, correct answer: B → A after shuffle)
Prompt (orig.)
Question: Which of the following are not a branch of external carotid artery in Kiesselbach’s plexus. Options: A) Sphenopalatine artery B) Anterior ethmoidal artery C) Greater palatine artery D) Septal branch of superior labial artery Answer with a single letter (A, B, C, or D).
Table 5: Sample model responses illustrating key failure modes. All examples from MedGemma-4B on MedMCQA. Prompts and outputs are reproduced verbatim.
Perturbation
Accuracy
95% CI
Drop
Flip Rate
Original
47.6%
[46.1, 49.1]
–
–
Random shuffle
27.3%
[26.0, 28.7]
− 20.3%
57.8%
Rotate-1
20.2%
[19.0, 21.5]
− 27.4%
72.9%
Rotate-2
21.9%
[20.7, 23.2]
− 25.7%
69.7%
Distractor swap
47.6%
[46.1, 49.1]
0.0%
36.1%
Mean
29.2%
–
− 18.4%
59.1%
Table 6: Option order sensitivity on MedMCQA ( n=4,183 ). All intervals are 95% Wilson score CIs. Seed 42.
Condition
4B
27B
Description
Core conditions:
Question only
34.5%
31.0%
No context
Full context
45.8%
38.2%
Complete abstract
Front-trunc. 50%
13.8%
23.4%
First half of words
Front-trunc. 25%
13.7%
18.6%
First quarter
Background only
28.9%
19.8%
Intro. sentences
Table 7: Evidence conditioning on PubMedQA ( n=1,000 ). Random baseline: 33.3%. 95% Wilson score CIs are ± 2.0–3.1 pp for all conditions; see Appendix 0.E for detailed intervals.
Method
MedGemma-4B
MedGemma-27B
Acc.
Pos. Bias
Acc.
Pos. Bias
Zero-shot direct (ref.)
47.6%
0.137
–
–
Cloze scoring
51.8%
0.013
64.5%
0.054
Permutation vote ( K=4 )
49.0%
–
–
–
Table 8: Robustness baselines on MedMCQA. Cloze scoring uses n=4,183 (4B) or n=1,000 (27B); permutation vote uses n=1,000 .
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
Outcome
Count
Pct.
Both correct
1,511
36.1%
Both wrong
1,410
33.7%
Direct correct, CoT wrong
750
17.9%
Direct wrong, CoT correct
512
12.2%
Net effect of CoT
− 238
− 5.7%
Appendix
Table 9: Case-level comparison of direct vs. CoT prompting.
Pattern
%
Description
Verbose reasoning
90.7
> 500 chars
Correct concept, wrong applic.
34.5
Misapplied knowledge
Distractor confusion
28.0
Rejected correct ans.
Self-contradiction
25.6
Conflicting logic
Overthinking
18.5
Over-complicated
Confident wrong concl.
11.1
“Therefore” + wrong
Appendix
Table 10: Failure patterns in CoT responses ( n=200 sample).
Condition
A
B
C
D
Ground truth
32.2%
25.1%
21.4%
21.3%
Zero-shot direct
45.9%
22.1%
17.8%
14.2%
Zero-shot CoT
52.3%
19.4%
15.7%
12.6%
Few-shot direct
76.0%
12.0%
7.0%
5.0%
Few-shot CoT
68.4%
15.2%
9.8%
6.6%
Answer-only
41.2%
24.3%
19.1%
15.4%
Appendix
Table 11: Answer distribution: ground truth vs. predictions.
Consistency Level
Pct.
All 5 conditions
23.4%
4 of 5 conditions
18.7%
3 of 5 conditions
21.2%
2 of 5 conditions
19.8%
All different
16.9%
Appendix
Table 12: Prediction consistency across perturbations.