← Latest papers
💬 NLP

When Chain-of-Thought Backfires: Evaluating Prompt Sensitivity in Medical Language Models

This paper demonstrates that standard prompt engineering techniques like Chain-of-Thought and few-shot prompting significantly degrade the performance of medical large language models, whereas cloze scoring and permutation voting offer more robust and accurate alternatives for medical question answering.

Original authors: Binesh Sadanandan, Vahid Behzadan

Published 2026-03-30
📖 5 min read🧠 Deep dive

Original authors: Binesh Sadanandan, Vahid Behzadan

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a brilliant medical student named MedGemma. This student has memorized thousands of medical textbooks and can ace any written exam. You want to use this student to help doctors make real-life decisions.

But here's the catch: MedGemma is incredibly sensitive to how you ask the questions.

This paper is like a "stress test" for MedGemma. The researchers tried asking the same medical questions in different ways to see if the student's answers would change. They discovered some shocking things: The way you ask the question matters more than the student's actual knowledge.

Here is a breakdown of their findings using simple analogies:

1. The "Over-Thinker" Problem (Chain-of-Thought Backfires)

The Idea: Usually, when we want an AI to be smart, we tell it, "Think step-by-step before you answer." This is called Chain-of-Thought (CoT). It's like telling a student, "Don't just guess; write out your logic."
The Surprise: For MedGemma, this actually made them worse.
The Analogy: Imagine a chess grandmaster who plays perfectly by instinct. If you force them to stop and write down every single thought process before making a move, they might get confused, second-guess themselves, and make a mistake they never would have made if they just trusted their gut.
The Result: Telling MedGemma to "think step-by-step" lowered their accuracy by nearly 6%. They started over-analyzing and talking themselves into the wrong answer.

2. The "Example Trap" (Few-Shot Learning)

The Idea: Sometimes, to teach an AI, you give it a few examples first (e.g., "Here is a question and the right answer. Now you try.").
The Surprise: Giving MedGemma examples made them significantly worse (accuracy dropped by almost 12%).
The Analogy: Imagine you are taking a test. The teacher gives you three practice questions at the top of the page. But those practice questions were written in a weird, confusing style. Now, when you get to the real questions, you get so distracted trying to copy the style of the examples that you forget the actual answers. MedGemma got "distracted" by the examples and started guessing based on patterns in the examples rather than the medical facts.

3. The "Seat Shuffling" Problem (Position Bias)

The Idea: In multiple-choice questions, answers are usually labeled A, B, C, and D.
The Surprise: If you shuffle the letters (so the correct answer moves from A to C), MedGemma changes its answer 59% of the time.
The Analogy: Imagine a student who doesn't actually know the answer. They just have a habit of always picking the option in the second seat. If you move the correct answer to the third seat, the student still picks the second seat, even though it's now the wrong answer. MedGemma wasn't reading the content; it was just guessing based on where the answer was sitting.

4. The "First Impression" Rule (Context Truncation)

The Idea: Sometimes you have a long medical report and can't show the whole thing to the AI, so you have to cut it short.
The Surprise:

  • Cutting the beginning: If you cut off the first half of the report, the AI's performance crashes. It's like trying to understand a movie by watching only the last 10 minutes; you have no idea what's happening.
  • Cutting the end: If you cut off the last half, the AI does almost perfectly fine.
    The Analogy: MedGemma needs the "setup" of the story to understand the context. Once it knows the beginning, it can guess the ending even if the end is missing. But if you take away the beginning, it's completely lost.

5. The "Secret Knowledge" Trick (Cloze Scoring)

The Idea: Usually, we ask the AI to write out an answer like "The answer is B."
The Surprise: The researchers tried a different method. Instead of asking the AI to speak, they asked it to whisper which letter it was thinking of by checking its internal confidence levels (log-probabilities).
The Result: This "whispering" method was the most accurate of all.
The Analogy: Imagine a student taking a test. When they have to write the answer, they might get nervous, make a typo, or get confused by the instructions. But if you could read their mind and see which answer they were thinking about, you'd realize they actually knew the answer all along! MedGemma "knew" the right answer, but the process of writing it down messed it up.

The Big Takeaway

This paper warns us that we cannot just copy-paste "best practices" from general AI to medical AI.

  • Don't force it to think step-by-step if it's already an expert; it might overthink.
  • Don't give it examples if they might confuse its style.
  • Don't trust the order of answers; shuffle them to test if the AI is actually smart or just guessing.
  • Always keep the beginning of the text; the end can be cut if necessary.

The Bottom Line: Before we trust AI with our health, we need to realize that the AI might be "smart" but "fragile." It's like a brilliant musician who plays perfectly until you change the lighting or the microphone, at which point they start playing the wrong notes. We need to find the right way to ask questions to get their true brilliance out.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →