TL;DR
Large Language Models (LLMs) are notoriously sensitive to how a prompt is phrased, yet most benchmarks only measure "average" performance. This paper introduces RobustAlpacaEval, a benchmark that evaluates the "lower bound" of model reliability by testing semantically equivalent paraphrases of real-world queries. The authors find a staggering gap—up to 45%—between a model’s best and worst performance on the same task, revealing that scaling up models doesn't necessarily make them more robust.
What Problem Does This Paper Address?
If you ask an LLM the same question in two slightly different ways, you might get two very different results. While researchers have studied "prompt robustness" before, they typically focus on task-level instructions (e.g., changing "Summarize this" to "Give me a TL;DR").
However, real-world users don't usually separate their intent from their data in such a clean way. As shown in Figure 1, a user query is often a holistic, case-specific request.
Existing evaluations often overlook how variations in the case-level input itself affect performance. Furthermore, by focusing on average scores, we miss the "worst-case scenario"—the lower bound of reliability that is critical for deploying LLMs in production environments.
Methods
The authors developed a new evaluation framework called RobustAlpacaEval.
- Paraphrasing: For every query in the benchmark, they generated 10 semantically equivalent paraphrases using GPT-4, which were then manually reviewed for fluency and meaning.
- Evaluation: They tested ChatGPT and six open-source models (Llama, Mistral, and Gemma families). Performance was measured using a weighted win-rate against GPT-4 Turbo.
- Analysis: They investigated whether "worst prompts" share common traits. They looked at model-agnostic features (do the same prompts fail across all models?) and model-dependent features (can we use a model's own perplexity or hidden states to predict a failure?).
- Mitigation: They tested three ways to fix the problem: Self-refinement (asking the model to rewrite the prompt), Voting (averaging outputs from multiple paraphrases), and Swarm Distillation (training the model to be more consistent).
Datasets
- TinyAlpacaEval: The foundation for the new benchmark, which is a condensed, efficient subset of the original AlpacaEval.
- RobustAlpacaEval: The newly introduced benchmark containing 11 versions (1 original + 10 paraphrases) for each of the 800+ queries in TinyAlpacaEval.
Key Insights and Ideas
- The Reliability Gap is Massive: For Llama-2-70B, the difference between the best and worst prompt performance was 45.48%. A model that looks "GPT-4 level" on one prompt can plummet to a 9% win rate on a paraphrase of that same query.
- Scaling Doesn't Solve Robustness: While larger models (e.g., Llama-70B vs. 7B) have higher average scores, their standard deviation (instability) often remains high or even increases. Smarter models aren't necessarily more stable models.
- Failures are Model-Specific: A prompt that causes Llama to fail might work perfectly for Mistral. As seen in Figure 2, there is almost zero overlap in "worst prompts" across different model families.
- Perplexity is a Poor Predictor: A common hypothesis is that models perform better on prompts they find "natural" (low perplexity). The authors found this correlation is weak and unreliable. Similarly, visualizing hidden states via PCA (Figure 5a) showed no clear cluster for "bad" prompts.
Key Results
- Performance Variance: Across all models, the "worst performance" was significantly lower than the "original performance" reported in standard benchmarks.
- Self-Refinement Backfires: Allowing a model to rewrite its own prompt actually decreased average performance by over 10% in many cases. Without a ground-truth test set, models don't know how to optimize their own instructions effectively.
- The "Voting" Silver Bullet (with a catch): The only method that consistently improved the "worst-case" performance was Voting—generating responses for multiple paraphrases and picking the most consistent one. For Llama-2-70B, this boosted the worst-case win rate by nearly 22 points. However, this comes at a high computational cost (10x the inference).
Limitations and Future Work
The authors acknowledge that their study is limited to a specific set of model families (Llama, Mistral, Gemma). They also note that while Voting helps, it is computationally expensive and not a fundamental fix for model brittleness.
Future work should focus on creating "resilient" architectures that are inherently less sensitive to phrasing, rather than relying on post-hoc prompt engineering or expensive multi-inference strategies. The study also highlights the need for better "worst-prompt predictors" that go beyond simple metrics like perplexity.
Summary updated