Prompt sensitivity in medical language models
Prompt sensitivity is how much a model's output changes when the prompt changes but the task stays the same. If rewording the instruction, adding a system message, or asking for reasoning noticeably changes a model's accuracy, behavior, or answers on the same questions, the model is highly prompt-sensitive.
This project examines how prompt wording changes what small medical language models generate, and whether those effects hold across models. Four quantized 3–4B models run locally: Gemma-3-4B, its medical fine-tune MedGemma-4B, Llama-3.2-3B-Instruct, and a medical reasoning fine-tune of that Llama (MEDIT-3B-o1). Each model answers the same multiple-choice questions from MedQA, MedMCQA and the Med-HALT hallucination tests under eight prompt types: two direct-answer prompts (one a minimal baseline), long chain-of-thought, short chain-of-thought, option elimination, self-verification, a cautious-physician persona, and an abstention prompt that lets the model answer "UNSURE".
The study measures each prompt's effect on the full response, not just accuracy: whether the answer is correct, whether the model hallucinates (endorsing a wrong option, following a misleading hint, or answering a made-up question), how often it abstains, whether and how long it reasons, whether its output can be parsed, and how consistent it is across three repeated samples.
The main finding so far is that a prompt mostly decides whether a model reasons at all, not just how well it answers. Most prompts make Gemma and MedGemma reason even when they don't ask for it, while MEDIT reasons under every prompt, so the same prompt can help one model and hurt another. Comparing these effects across models shows when a prompting strategy carries over and when it breaks, which so far happens mainly when a model has been fine-tuned on medical data. The end goal is a predictor that estimates a prompt's effect on a new model before running it.