Skip to main content
QUICK REVIEW

[Paper Review] On the Worst Prompt Performance of Large Language Models

Bowen Cao, Deng Cai|arXiv (Cornell University)|Jun 8, 2024
Topic ModelingComputer Science3 citations
TL;DR

This paper introduces RobustAlpacaEval, a benchmark evaluating large language models (LLMs) on semantically equivalent case-level queries to assess worst-case prompt performance. It reveals extreme performance variability—up to 45.48% difference between best and worst prompts—demonstrating that existing prompt engineering and consistency methods offer limited improvement, while voting-based generation effectively enhances worst-case performance at high computational cost.

ABSTRACT

The performance of large language models (LLMs) is acutely sensitive to the phrasing of prompts, which raises significant concerns about their reliability in real-world scenarios. Existing studies often divide prompts into task-level instructions and case-level inputs and primarily focus on evaluating and improving robustness against variations in tasks-level instructions. However, this setup fails to fully address the diversity of real-world user queries and assumes the existence of task-specific datasets. To address these limitations, we introduce RobustAlpacaEval, a new benchmark that consists of semantically equivalent case-level queries and emphasizes the importance of using the worst prompt performance to gauge the lower bound of model performance. Extensive experiments on RobustAlpacaEval with ChatGPT and six open-source LLMs from the Llama, Mistral, and Gemma families uncover substantial variability in model performance; for instance, a difference of 45.48% between the worst and best performance for the Llama-2-70B-chat model, with its worst performance dipping as low as 9.38%. We further illustrate the difficulty in identifying the worst prompt from both model-agnostic and model-dependent perspectives, emphasizing the absence of a shortcut to characterize the worst prompt. We also attempt to enhance the worst prompt performance using existing prompt engineering and prompt consistency methods, but find that their impact is limited. These findings underscore the need to create more resilient LLMs that can maintain high performance across diverse prompts. Data and code are available at https://github.com/cbwbuaa/On-the-Worst-Prompt- Performance-of-LLMs.

Motivation & Objective

  • To address the gap in evaluating LLM robustness to real-world, diverse user queries by shifting focus from task-level instructions to case-level prompts.
  • To quantify the lower bound of LLM performance using worst prompt performance as a critical metric.
  • To investigate the feasibility of identifying and improving performance on the most detrimental prompts across multiple LLMs.
  • To evaluate the effectiveness of existing prompt engineering and consistency methods in mitigating worst-case performance degradation.

Proposed method

  • Proposes RobustAlpacaEval, a benchmark containing semantically equivalent paraphrases of real-world case-level queries across diverse tasks.
  • Collects paraphrased prompts using a strategy that preserves semantic equivalence while varying phrasing, format, and structure.
  • Measures model performance using win-rate against GPT-4 on the same queries to assess robustness.
  • Applies self-refinement, where models rewrite prompts based on their own preferences, to evaluate impact on worst-case performance.
  • Implements a voting-based generation method: $ P(y_i|X,y_{<i}) = bE_{x i X} P(y_i|x,y_{<i}) $, aggregating outputs from all paraphrased inputs.
  • Uses swarm distillation with consistency regularization: $ C(X,Y) = bE_{Y_j i Y} igackslashsqrt{ \frac{1}{N} \sum_{i=1}^N (S_{ij} - \bar{S}_{ij})^2 } $, where $ S_{ij} = \frac{1}{|Y_j|} \sum_k \log P(Y_{j,k}|X_i,Y_{j,<k}) $, to improve prompt consistency via unsupervised fine-tuning.

Experimental results

Research questions

  • RQ1How does model performance vary across semantically equivalent case-level prompts in real-world scenarios?
  • RQ2Can the worst prompt be predicted using model-agnostic features such as perplexity or hidden states?
  • RQ3To what extent do existing prompt engineering and consistency methods improve worst-case performance?
  • RQ4Is there a robust, generalizable strategy to enhance the lower bound of LLM performance across diverse prompts?

Key findings

  • The Llama-2-70B-chat model exhibits a 45.48% difference in win-rate between its best and worst prompts, with worst-case performance dropping to as low as 9.38%.
  • Self-refined prompts degrade model performance by 10.04% to 13.53% on Llama-2-7/13/70B-chat, indicating that prompt rewriting without test data can harm performance.
  • Voting-based generation improves the worst-case performance of Llama-2-70B-chat by 21.98 points, surpassing its average performance, though at a significant computational cost.
  • Prompt consistency methods like swarm distillation improve output consistency but reduce overall performance, likely due to overfitting to model-generated outputs.
  • No model-agnostic features (e.g., perplexity, hidden states) reliably predict worst prompts, and performance rankings vary significantly across models.
  • Different models show distinct preferences across paraphrased prompts, indicating that worst prompts are model-specific and not universally identifiable.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.