On the Worst Prompt Performance of Large Language Models

Bowen Cao, Deng Cai, Zhisong Zhang, Yuexian Zou, Wai Lam

TL;DR

Large Language Models (LLMs) are notoriously sensitive to how a question is phrased. While most research focuses on "task-level" instructions, this paper shifts the focus to diverse, real-world user queries. The authors introduce ROBUSTALPACAEVAL, a benchmark designed to measure the "worst-case" performance of LLMs across semantically identical paraphrases. Their findings reveal a critical vulnerability: even top-tier models can see their performance plummet by over 45% based on minor phrasing changes.

What Problem Does This Paper Address?

We have all experienced prompt sensitivity: you ask an LLM a question and it fails, but rephrasing it slightly yields a perfect response. This inconsistency is a major hurdle for the reliable deployment of LLMs in real-world applications.

The authors identify a specific gap in how the research community studies this phenomenon. Previous research usually separates a prompt into a task-level instruction (e.g., "Summarize the following:") and a case-level input (the actual text to be summarized). However, real-world users rarely follow this rigid template; instead, they provide integrated, varied queries.

Comparison between traditional task-level instructions and integrated real-world user queries.

Furthermore, most studies report average performance. The authors argue that for a model to be truly reliable, we must evaluate its lower bound—the "worst prompt performance." If a model is brilliant 90% of the time but fails completely on a valid, slightly different phrasing, it lacks true robustness.

Methods

The researchers developed a new evaluation framework to stress-test model consistency:

  1. Benchmark Construction: They utilized the existing TinyAlpacaEval benchmark and generated 10 semantically equivalent paraphrases for every query using GPT-4. These were manually reviewed to ensure fluency and meaning preservation.
  2. The "Worst-Case" Metric: Instead of relying solely on mean performance, the evaluation focused on the performance gap between the best and worst versions of the same query.
  3. Predictive Analysis: The team investigated whether "bad" prompts share identifiable traits. They tested model-agnostic features (like sentence length or complexity) and model-dependent features (like perplexity, hidden states, and the model's own stated preference).
  4. Mitigation Testing: They attempted to mitigate prompt sensitivity using common techniques like self-refinement (asking the model to improve its own prompt), voting (averaging outputs from multiple paraphrases), and consistency training (Swarm Distillation).

Datasets

  • ROBUSTALPACAEVAL: The primary new benchmark introduced, consisting of 11 versions (1 original + 10 paraphrases) of queries across various real-world tasks.
  • TinyAlpacaEval: The foundational dataset used to build the new benchmark.
  • AlpacaFarm: Utilized specifically for the "Swarm Distillation" training experiments.

Key Insights and Ideas

  • The Scaling Robustness Paradox: While larger models (like Llama-2-70B) boast much higher average performance than smaller ones, they are not necessarily more robust. Their performance "floor" can be just as low as smaller models, and their standard deviation often increases as they scale.
  • Failure is Model-Specific: There is no such thing as a universally "bad" prompt. A phrasing that causes a Llama model to fail might work perfectly for a Gemma model.
Overlap rate of worst-k prompts across different model families.
  • Perplexity is Not a Proxy for Performance: A common heuristic assumes that models perform better on prompts with lower perplexity (phrasings the model finds more "natural"). This paper debunks that notion, showing a very weak and inconsistent correlation between perplexity and actual win-rates.
  • Models are Blind to Their Own Weaknesses: When shown two versions of a prompt and asked which one would lead to a better answer, LLMs performed at near-random levels (~50% accuracy). They cannot reliably predict which phrasing will trip them up.

Key Results

  • Massive Performance Swings: For the Llama-2-70B-chat model, the gap between the best and worst prompt performance was a staggering 45.48%. Its worst-case performance dipped as low as a 9.38% win-rate against GPT-4.
  • High Average, High Instability: Gemma-1.1-7B-it achieved the highest average performance in the study (31.04%) but also exhibited high instability, with a standard deviation of 19.07.
  • Self-Refinement Fails: Asking a model to rewrite a prompt to be "better" actually decreased average performance in many cases. Without a ground-truth test set, the model's "improvements" often led to degraded behavior.
  • Voting is the Only Safety Net: The only method that significantly raised the performance floor was "Voting"—generating responses for multiple paraphrases and selecting the most consistent one. However, this approach comes at a high computational cost.

Limitations and Future Work

The authors acknowledge that their study was limited to specific model families (Llama, Mistral, and Gemma). They also note that while "Voting" helps mitigate the issue, it is too computationally expensive for many real-time applications.

Future research must move beyond traditional "prompt engineering"—which tries to find the single best prompt—and toward resilience engineering: training models that are inherently indifferent to minor linguistic variations. The authors advocate for developing better "worst-case" predictors that could flag potentially unreliable outputs before they reach the user.

Summary updated

BibTeX
@inproceedings{cao2024worst,
  author = {Bowen Cao and Deng Cai and Zhisong Zhang and Yuexian Zou and Wai Lam},
  title = {{On the Worst Prompt Performance of Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=Mi853QaJx6},
}
Figure