Compared to What? Baselines and Metrics for Counterfactual Prompting
This paper argues that standard counterfactual prompting evaluations often misattribute model sensitivity to specific factors because they fail to account for general sensitivity to surface-form changes, proposing a robust framework that compares target interventions against paraphrasing baselines to distinguish true effects from incidental noise.
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 are a detective trying to figure out if a specific clue (like a patient's gender) is actually influencing a suspect's (an AI model's) decision. You change that one clue in a story and see if the suspect changes their mind.
This paper argues that most detectives are making a huge mistake: they forget to check if the suspect changes their mind just because you rewrote the story, even if the meaning stayed the same.
Here is the breakdown of the paper's findings using simple analogies:
1. The Core Problem: The "Paraphrase Trap"
Imagine you are testing if a judge is biased against people named "Bob."
- The Old Way: You take a case file about "Bob" and change the name to "Alice." The judge changes their verdict. You conclude: "Aha! The judge is biased against Bob!"
- The Paper's Insight: But wait! What if the judge changes their verdict just because you changed the words in the file, not the name? Maybe the judge hates long sentences, or maybe they get confused by new phrasing.
The authors call this the "Paraphrase Trap." They found that when you simply rewrite a sentence to mean the exact same thing (a "benign paraphrase"), the AI changes its answer just as often as when you surgically change a sensitive factor like gender or race.
The Analogy:
It's like testing if a car is sensitive to the color of the paint.
- Targeted Test: You paint the car red. The engine stalls. You think, "Red breaks the engine!"
- The Reality Check: You then take a blue car and repaint it blue (just a different shade of blue, same meaning). The engine also stalls.
- Conclusion: The engine isn't sensitive to "red"; it's just sensitive to anyone touching the paint job.
2. The Solution: The "Control Group" for AI
To fix this, the authors propose a new rule for testing AI: You must compare your "special change" against a "boring change."
- The Special Change: Swapping "male" for "female" in a medical story.
- The Boring Change: Rewriting the story using different words but keeping the exact same meaning (and changing the same number of letters/words).
If the AI changes its mind just as much for the "boring change" as the "special change," then the "special change" didn't actually do anything special. It was just noise.
3. What They Found (The "MedPerturb" Experiment)
The authors went back to a famous study that claimed AI models were heavily biased against certain genders in medical diagnoses. They re-ran the tests with their new "boring change" control group.
- The Result: The "bias" mostly disappeared.
- The Takeaway: When they accounted for the fact that AI models are just generally sensitive to any text changes, the specific sensitivity to gender vanished. Out of 120 tests, only 5 showed a real effect, and those were related to adding "colorful" language (like exclamation points), not gender.
Analogy: It's like realizing that a scale isn't broken because it weighs a feather differently than a rock; it's just that the scale wobbles whenever you touch it. The previous studies thought the scale was broken for feathers; the authors realized the scale just wobbles for everything.
4. Better Tools for the Job (The "Ruler" Analogy)
The paper also argues that the tools researchers use to measure these changes are often too blunt.
- The Blunt Tool (Aggregate Metrics): Imagine trying to measure the wind by counting how many times a kite flips over. If the kite flips once, you say "Wind!" If it doesn't, you say "No wind." This misses the subtle breeze that makes the kite wobble without flipping.
- Paper's term: Flip Rate, Mutual Information.
- The Precise Tool (Per-Sample Metrics): Imagine using a sensitive anemometer that measures the exact speed of the wind, even if the kite doesn't flip.
- Paper's term: JSD, KL Divergence.
- The Directional Tool (Regression): This tells you not just how much the wind blew, but which way it blew.
- Paper's term: Regression Coefficients.
The Finding: The "Precise Tools" (JSD/KL) and "Directional Tools" (Regression) are much better at finding real bias. The "Blunt Tools" often miss small but real effects or get confused by class imbalances (like when 99% of answers are "Yes").
5. A Real Example: The "Professor vs. Nurse" Test
To prove their method works, they tested a known bias: the idea that AI associates "Professor" with men and "Nurse" with women.
- They took biographies of professors and nurses and swapped the genders.
- The Blunt Tool: Only saw a tiny, almost invisible change in the final "Yes/No" answer.
- The Precise Tool: Saw a clear shift in the AI's internal confidence.
- The Directional Tool: Confirmed that swapping a biography to "Female" systematically lowered the AI's confidence that the person was a professor.
This proved that their method can find real bias when it exists, but it filters out the "fake" bias that was just caused by the AI being jumpy about text changes.
Summary of the Paper's Advice
If you want to test an AI for bias, don't just change one word and see what happens. You must:
- Use a Control: Compare your change to a "boring" rewrite that changes the same amount of text.
- Match the Size: Make sure your "boring" rewrite changes the same number of words as your "special" change.
- Use Sensitive Rulers: Don't just count "Yes/No" flips; look at the subtle shifts in the AI's confidence.
- Check the Direction: Use math to see if the change pushes the AI in a specific, biased direction.
The Bottom Line: Many previous studies claimed AI was biased because they didn't realize the AI was just reacting to the fact that the text had been touched. Once you account for that "touch sensitivity," the evidence for bias often disappears—or becomes much clearer and more specific.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.