Prompt Sensitivity and Answer Consistency of Small Open-Source Language Models for Clinical Question Answering in Low-Resource Healthcare
Organizations: Independent Researcher
Abstract
Small open-source language models are gaining attention for healthcare applications in low-resource settings where cloud infrastructure and GPU hardware may be unavailable. However, the reliability of these models under different phrasings of the same clinical question remains poorly understood. We evaluate five open-source models (Gemma 2 2B, Phi-3 Mini 3.8B, Llama 3.2 3B, Mistral 7B, and Meditron-7B, a domain-pretrained model without instruction tuning) across three clinical question answering datasets (MedQA, MedMCQA, and PubMedQA) using five prompt styles: original, formal, simplified, roleplay, and direct. Model behavior is evaluated using consistency scores, accuracy, and instruction-following failure rates. All experiments were conducted locally on consumer CPU hardware without fine-tuning. Consistency and accuracy were largely independent across models. Gemma 2 achieved the highest consistency (0.845-0.888) but the lowest accuracy (33.0-43.5%), while Llama 3.2 showed moderate consistency (0.774-0.807) alongside the highest accuracy (49.0-65.0%). Roleplay prompts consistently reduced accuracy across all models, with Phi-3 Mini dropping 21.5 percentage points on MedQA. Meditron-7B exhibited near-complete instruction-following failure on PubMedQA (99.0% UNKNOWN rate), indicating that domain pretraining alone is insufficient for structured clinical question answering. These findings show that high consistency does not imply correctness: models can be reliably wrong, a dangerous failure mode in clinical AI. Llama 3.2 demonstrated the strongest balance of accuracy and reliability for low-resource deployment. Safe clinical AI requires joint evaluation of consistency, accuracy, and instruction adherence.
Figures & tables
| Model | Params | Base Model | Inst. Tuned | Fine-Tuning Method | Medical Domain | Chat Template |
|---|---|---|---|---|---|---|
| Phi-3 Mini | 3.8B | Phi-3 (Microsoft) | Yes | SFT + DPO + RLHF | No | <|user|>..<|end|> |
| Llama 3.2 | 3B | Llama 3.1 (Meta) | Yes | SFT + RS + DPO (multi-round) | No | <|start_header_id|>..<|eot_id|> |
| Gemma 2 | 2B | Gemma 2 (Google) | Yes | KD + SFT + RLHF + Model Merging | No | <start_of_turn>..<end_of_turn> |
| Mistral 7B | 7B | Mistral (Mistral AI) | Yes | SFT (public datasets) | No | [INST]..[/INST] |
| Meditron-7B | 7B | Llama-2 (Meta) | No | Continued pretraining only (PubMed + guidelines) | Yes | None |
| Dataset | Model | Mean | Fully | Overall | UNKNOWN | Acc. | Acc. | Acc. | Acc. | Acc. |
|---|---|---|---|---|---|---|---|---|---|---|
| Cons. | Cons. | Acc. | Rate | Orig. | Form. | Simp. | Role. | Dir. | ||
| (%) | (%) | (%) | (%) | (%) | (%) | (%) | (%) | |||
| MedQA | Phi-3 Mini | 0.698 | 19.5 | 48.0 | 10.5 | 44.5 | 44.5 | 42.5 | 26.5 | 48.0 |
| Llama 3.2 | 0.776 | 35.0 | 49.0 | 0.8 | 47.5 | 44.5 | 46.0 | 47.0 | 43.5 | |
| Gemma 2 | 0.888 | 63.5 | 40.0 | 2.1 | 39.0 | 39.0 | 37.0 | 35.0 | 35.0 | |
| Mistral 7B | 0.800 | 41.0 | 45.0 | 4.7 | 45.5 | 41.5 | 43.0 | 34.0 | 50.5 |
| Dataset | M1 | M2 | Metric | p | Sig. |
|---|---|---|---|---|---|
| MedQA | Llama 3.2 | Phi-3 Mini | Cons. | 0.0005 | |
| Gemma 2 | Phi-3 Mini | Cons. | .0001 | ||
| Mistral | Phi-3 Mini | Cons. | .0001 | ||
| Llama 3.2 | Gemma 2 | Cons. | .0001 | ||
| Meditron | Phi-3 Mini | Cons. | .0001 | ||
| Meditron | Llama 3.2 | Cons. | 0.3342 | ns |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Style | Prompt Text (abbreviated) | Raw Response | Extracted | Correct? |
|---|---|---|---|---|
| Original | “Answer the following medical question by choosing the correct option. …Answer with only the option letter (A, B, C, or D).” | Option A: Inferior vena c… | A | No |
| Formal | “You are a medical expert. Based on your clinical knowledge, select the most appropriate answer …Respond with only the letter of the correct choice (A, B, C, or D).” | B: Coronary sinus | B | Yes |
| Simplified | “Read this medical question carefully and pick the best answer. …Which letter is correct? Reply with just A, B, C, or D.” | B: Coronary sinus The… | B | Yes |
| Roleplay | “You are a physician taking a medical licensing exam. Answer this question as you would on the exam. …Your answer (A, B, C, or D):” | The correct answer is A: Inferior v… | A | No |
| Direct | “Medical question: …What is the correct option? State only the letter.” | B | B | Yes |
| Style | Prompt Text (abbreviated) | Raw Response | Extracted | Correct? |
|---|---|---|---|---|
| Original | “Answer the following medical question by choosing the correct option. …Answer with only the option letter (A, B, C, or D).” | D | D | No |
| Formal | “You are a medical expert. Based on your clinical knowledge, select the most appropriate answer …Respond with only the letter of the correct choice (A, B, C, or D).” | D | D | No |
| Simplified | “Read this medical question carefully and pick the best answer. …Which letter is correct? Reply with just A, B, C, or D.” | D | D | No |
| Roleplay | “You are a physician taking a medical licensing exam. Answer this question as you would on the exam. …Your answer (A, B, C, or D):” | The correct answer is **(D) Propran… | D | No |
| Direct | “Medical question: …What is the correct option? State only the letter.” | D | D | No |