Abstract
The performance of large language models (LLMs) is acutely sensitive to the phrasing of prompts, raising significant concerns about their reliability in real-world scenarios. While existing research often focuses on task-level instructions, this study introduces RobustAlpacaEval, a benchmark designed to evaluate case-level query variations. By emphasizing Worst Prompt Performance (WPP), we characterize the lower bound of model reliability. Our experiments across ChatGPT and the Llama, Mistral, and Gemma families reveal substantial performance gaps—up to 45.48% for Llama-2-70B. We find that worst-case prompts are model-specific and difficult to predict via metrics like perplexity. While inference-time voting offers some improvement, it remains computationally expensive, highlighting the need for models that are resilient by design.
Introduction
In the deployment of Large Language Models (LLMs), "Prompt Engineering" has become a standard yet fragile necessity. It is well-documented that models are sensitive to instructions; however, most robustness research focuses on task-level changes (e.g., changing "Summarize this" to "Provide a TL;DR"). In practice, real-world users do not just vary instructions; they phrase their entire queries differently.
Reporting "average" performance on benchmarks can be misleading for production systems. If a model performs at a high level on average but fails catastrophically when a user phrases a valid request in a specific way, the system lacks the reliability required for critical applications. This paper seeks to define and measure the "lower bound" of model performance—the worst a model performs when faced with semantically equivalent variations of the same query.
The RobustAlpacaEval Benchmark
To systematically study this phenomenon, we developed RobustAlpacaEval. This benchmark is built upon a condensed version of the AlpacaEval dataset, where each individual case (a specific user request) is expanded into 10 high-quality, manually reviewed, semantically equivalent paraphrases.
By evaluating models across these variations, we can calculate the Worst Prompt Performance (WPP). This metric represents the win rate of a model when it is forced to face its "kryptonite" phrasing for every single task, providing a realistic look at the model's reliability floor.
Characterizing the Robustness Gap
Our extensive evaluation of open-source and proprietary models yielded several critical insights into the nature of LLM instability:
1. The Gap is Massive
There is a staggering difference between a model’s best and worst performance on the same set of tasks. For instance, Llama-2-70B-chat exhibited a win rate of 55% on its best-performing prompts, which plummeted to a dismal 9.38% under its worst-case phrasings—a gap of over 45 percentage points.
2. Failures are Model-Specific
One might assume that certain prompts are "universally bad" due to poor grammar or ambiguity. However, our analysis using Kendall’s W (a measure of agreement) shows only weak to moderate correlation between models. A prompt that causes Llama to fail might work perfectly for Mistral. This suggests that the "worst" prompts are unique to each model's internal quirks rather than being a property of the text itself.
3. Perplexity is a Poor Predictor
A common hypothesis is that models struggle with "unnatural" or high-perplexity prompts. Our findings debunk this: prompt perplexity and internal hidden states are poor predictors of success. A model may fail on a very natural, low-perplexity prompt while succeeding on a more complex one.
4. Scaling Does Not Guarantee Robustness
While larger models (e.g., moving from Llama-7B to 70B) generally improve average performance, they do not necessarily become more stable. Their worst-case performance often remains a significant liability, indicating that simply increasing parameter count is not a shortcut to reliability.
Evaluating Mitigation Strategies
We tested three common strategies to determine if the robustness gap could be closed at inference or training time:
- Self-Refinement: Asking the model to rewrite or "improve" the prompt before answering. Surprisingly, this often hurt performance, suggesting that models do not inherently know which phrasings they prefer.
- Voting (Consistency): Generating answers for multiple paraphrases and selecting the most consistent response. This was the only method that significantly boosted WPP. For Llama-2-70B, the worst-case win rate jumped by nearly 22 points. However, the computational cost is high, as it requires running the model 10x for a single output.
- Swarm Distillation: A training-time method designed to encourage consistent outputs across different phrasings. While promising, its impact on the worst-case lower bound remained limited compared to inference-time voting.
Conclusion
The sensitivity of LLMs to case-level phrasing presents a major hurdle for reliable deployment. Our introduction of RobustAlpacaEval and the WPP metric provides a framework for measuring this vulnerability. Because worst-case prompts are model-dependent and difficult to identify a priori, current "fixes" like voting are either ineffective or prohibitively expensive. Future research must focus on developing resilient-by-design models—training techniques that ensure high performance is maintained across the entire spectrum of human expression.
Summary updated