Topic 2 of 4 · 3 min read
Wording and order that flip answers
Goal: Test whether an AI judgement still holds when the wording or the order of options changes.
An AI judgement can flip when you change how a question is worded, formatted or ordered, even when the meaning has not changed. If a small change in form reverses the answer, the answer was resting on form and not on substance.
Check yourself · 1 of 3
You paste two quotes into an AI chat and it picks the first. You swap their order and it now picks the other one. What does this tell you?
Why it matters
People expect "Is this email polite?" and "Is this email rude?" to get opposite answers about the same email. With models, they may not. Researchers who tested many models found that tiny changes in a prompt, such as spacing, punctuation, capital letters or the labels on a list, could move results a lot. The paper by Sclar and colleagues measured gaps of many points in accuracy between formats that a person would call identical. So a model's answer is partly about your question and partly about how you phrased it.
Three effects to know
- Wording effects. "Should we hire her?" and "Is there any reason not to hire her?" lead the model in different directions. Models tend to agree with the framing they are given.
- Format effects. Bullets or a table, bold text, a different label such as "Option 1" in place of "Candidate A": these can change which item the model prefers.
- Order effects. When the model compares a list, the item in a certain spot, often the first or the last, can get picked more often than it should.
How to test it
- Write the question in two neutral wordings. Keep the facts the same.
- Reverse the order of the options.
- Change the format once, for example from paragraphs to a table.
- Run each version in a fresh chat and put the results side by side.
- If the winner stays the same, trust it more. If it changes, treat the result as unreliable and decide yourself.
Before and after
Before: You paste three vendor quotes and ask, "Which is best?" The reply picks the first quote.
After: You run it three times with the quotes in a different order each time, and you ask the question in a neutral way: "Compare these on price, delivery time and warranty." The pick moves to the second vendor in two of three runs. You now know the first-place result was an artefact, so you build a comparison table and decide on the criteria that matter to you.
What goes wrong
- Leading questions. Asking "Why is this plan a good idea?" nearly guarantees a list of reasons it is good.
- Testing only one order. A single run cannot show whether the order changed the result.
- Fixing the prompt until it gives the answer you wanted, and then calling that answer the model's view.
Examples
Reversing the order
You ask Gemini to choose between two job candidates, pasting Mina first and Omar second. It picks Mina. You swap the order and it picks Omar. The CVs did not change. The pick came from the order, so you compare them on a list of criteria yourself.
Neutral rewording
Instead of "Why is our new pricing a smart move?", ask "List the strongest arguments for and against our new pricing." The second version asks for both sides and is less likely to simply agree with you.
Key points
- Changes to wording, formatting or option order can reverse an AI judgement without changing the facts.
- Leading questions push models toward agreeing with the framing, so ask neutral questions.
- Reversing the order of options is a quick test for order effects.
- A judgement that flips under harmless changes should not be used as the basis for a decision.
- Put the results of different versions side by side before you trust a pick.
Common mistakes
- Asking leading questions and treating the agreeing answer as independent confirmation.
- Testing only one order of options.
- Changing several things at once, so you cannot tell which change moved the answer.
- Using the version of the prompt that gave the preferred answer as proof.
Check yourself · 2 of 3
Which question is the most neutral way to ask an assistant to assess a business plan?
Check yourself · 3 of 3
You want to check whether an AI ranking of three suppliers is stable. Which test is the quickest and most useful?
Practice items, not counted towards your mastery.
Start here
- Quantifying language models' sensitivity to spurious features in prompt design (Sclar et al.) (opens in a new tab)PaperFree
Shows how small formatting changes can swing model accuracy by large amounts.
- Large Language Models are not Fair Evaluators (Wang et al.) (opens in a new tab)PaperFree
Shows that swapping the order of two answers can flip which one an AI judge prefers.
- Defeating Nondeterminism in LLM Inference (Thinking Machines Lab) (opens in a new tab)ArticleFree
Explains why the same prompt can return different answers even with randomness turned off.