TL;DR
When we optimize prompts to make LLMs fairer across subgroups, we usually judge success by a single number: how much the best prompt improves the worst-performing group. This paper shows that this metric is a statistical minefield—it can inflate random noise into fake wins, hide real improvements when the "worst" group shifts, and overfit to a specific LLM. The authors provide seven practical checks to tell real robustness gains apart from statistical illusions.
What Problem Does This Paper Address?
Imagine you have an LLM classifying online comments as toxic or non-toxic, and you want it to be fair across different identity groups (like race, religion, or gender). You start with a basic seed prompt, run an automated prompt optimizer (like APE, ProTeGi, or GEPA) to generate dozens of candidates, pick the winner, and report its worst-group gain: the accuracy of the worst-scoring group under the new prompt minus that of the seed prompt.
It sounds intuitive, but there is a catch. This single number relies on two noisy selections stacked on top of each other:
- Picking the maximum (best prompt) out of $N$ candidates.
- Taking the minimum (worst group) out of $K$ subgroups.
Because finite test sets always have sampling noise, taking the best of many noisy estimates naturally inflates the result (the "winner's curse"). Meanwhile, taking the minimum over subgroups adds its own noise and can even deflate a real gain if lifting the worst group causes another group to become the new minimum. The authors ask: what does this reported gain actually measure?
Methods
To dissect worst-group gains, the authors compare optimizer-selected prompts against a seed prompt and 11 one-line strictness edits (simple tweaks to the seed prompt that only shift how readily the model says "yes," acting as a threshold-shift control).
They evaluate these pools of prompts using Gemma 3 12B as the main task model and DeepSeek-V4-Pro as the prompt optimizer. To separate signal from noise, they introduce several statistical controls:
- Chance baseline (Reality Check): Using a paired bootstrap (4,000 resamples), they estimate the gain you would get from the best of $N$ prompts by pure chance if no prompt were actually better than the seed.
- No-group controls: Comparing worst-group balanced accuracy against whole-test balanced accuracy and worst-class accuracy on the exact same predictions.
- Fixed-group tracking: Measuring the gain specifically on the initially worst group ($g_0$) under the seed prompt, which removes the moving-minimum effect.
- Cross-model transfer: Running the winning prompts unchanged on two other models (GPT-4o-mini and Qwen3-235B) to see if the gains belong to the task or just the original model.
Datasets
The authors evaluate on three binary classification benchmarks, each constructed with balanced group–label cells in the test set:
- CivilComments (WILDS release): Toxicity detection across 8 identity groups (3,584 test examples used).
- MultiNLI: Contradiction detection across 10 text genres (4,991 test examples used).
- Multilingual toxicity (TextDetox): Toxicity detection across 6 languages—English, German, Russian, Arabic, Hindi, and Amharic (2,907 test examples used).
Key Insights and Ideas
- The winner can be pure noise: Even when no prompt truly beats the seed, the best of $N$ noisy candidates will look positive on average. If you don't compare against a chance baseline, you will mistake luck for progress.
- A moving minimum hides real gains: If a prompt successfully boosts the worst-performing group past another group, the minimum simply shifts to the new laggard, masking the improvement.
- More groups = less statistical power: Splitting a fixed test budget into more groups ($K$) widens confidence intervals roughly as $\sqrt{K}$ and adds selection noise, making real gains much harder to detect.
- Prompts overfit to the model: Even when a prompt genuinely improves a specific group on one LLM, that gain may be tailored to that model's quirks rather than the task itself.
Key Results
- CivilComments (Inflated by noise): The best of 36 prompts gained +1.9 percentage points (+0.019) in worst-group balanced accuracy—less than the +2.7 points (+0.027) expected by chance alone ($p = 0.74$). While prompts shifted class balance (recall vs. specificity), none significantly improved whole-test balanced accuracy.
- Multilingual toxicity (Deflated by a moving minimum): One GEPA prompt significantly boosted Amharic (the initially worst language) by +6.1 points (+0.061). Yet the reported worst-group gain was only +2.4 points (+0.024, not significant) because German slipped slightly within noise and became the new minimum.
- MultiNLI (Group-count sensitivity): The best prompt gained +3.8 points (+0.038), beating the +1.4-point chance baseline ($p = 0.014$). However, repartitioning the exact same MultiNLI examples into 10 random groups at the same test budget caused the number of significant gains to drop from 17 to zero.
- Cross-model transfer (Model-specific): None of the 4 significant group-specific gains found on Gemma 3 12B replicated on GPT-4o-mini or Qwen3-235B. All 8 cross-model differences were significant, and two MultiNLI prompts even turned into significant losses on the other models.
To help practitioners avoid these traps, the authors distill their findings into seven diagnostic checks (such as reporting the chance baseline, checking the initially worst group, and testing on random groups), six of which require only the predictions already at hand.
Limitations and Future Work
The authors note several limitations:
- All three benchmarks are binary classification tasks with balanced test sets, and multilingual toxicity had only nine optimizer finals.
- The cross-model transfer test rests on four significant gains across two benchmarks; testing more models and tasks would clarify how broadly this model-specificity holds.
- Because hosted API models change over time, exact numbers may shift if rerun live, though the authors provide saved predictions so all analyses can be reproduced without new queries.
Summary updated