Skip to main content
QUICK REVIEW

[論文レビュー] On the Worst Prompt Performance of Large Language Models

Bowen Cao, Deng Cai|arXiv (Cornell University)|Jun 8, 2024
Topic ModelingComputer Science被引用数 3
ひとこと要約

本稿では、大規模言語モデル(LLMs)の最悪のプロンプトパフォーマンスを評価するためのベンチマーク、RobustAlpacaEvalを紹介する。このベンチマークは、意味的に同等のケースレベルのプロンプトを用いて、モデルの性能変動を評価する。実験では、最高と最低のプロンプト間で最大45.48%の性能差が確認され、既存のプロンプト工学的手法や一貫性向上手法が限界に達していることが示された。一方で、投票ベースの生成手法は高い計算コストを伴うが、最悪ケースのパフォーマンスを著しく向上させた。

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.

研究の動機と目的

  • 現実世界の多様なユーザークエリに対するLLMのロバストネスを評価するギャップを埋めるために、タスクレベルの指示からケースレベルのプロンプトへ評価の焦点を移す。
  • 最悪のプロンプトパフォーマンスを重要な指標として用い、LLMパフォーマンスの下限を定量化する。
  • 複数のLLMにわたる最も悪影響を及ぼすプロンプトの特定と改善可能性を調査する。
  • 既存のプロンプト工学および一貫性向上手法が、最悪ケースのパフォーマンス劣化を緩和する効果があるかどうかを評価する。

提案手法

  • 意味的に同等の実世界のケースレベルクエリのパラフレーズを含む、RobustAlpacaEvalというベンチマークを提案。これは多様なタスクにまたがる。
  • 意味的同等性を保ちつつ、表現、フォーマット、構造を変化させる戦略を用いて、パラフレーズされたプロンプトを収集する。
  • 同じクエリに対してGPT-4との勝率を測定することで、モデルのロバストネスを評価する。
  • 自己精錬(self-refinement)を適用し、モデル自身の好みに基づいてプロンプトを再書き直すことで、最悪ケースパフォーマンスへの影響を評価する。
  • 投票ベースの生成手法を実装:$ P(y_i|X,y_{<i}) = bE_{x i X} P(y_i|x,y_{<i}) $。これは、すべてのパラフレーズ入力からの出力を集約する。
  • スウォーム蒸留(swarm distillation)と一貫性正則化を用いる:$ C(X,Y) = bE_{Y_j i Y} igackslashsqrt{ \frac{1}{N} \sum_{i=1}^N (S_{ij} - \bar{S}_{ij})^2 } $、ここで $ S_{ij} = \frac{1}{|Y_j|} \sum_k \log P(Y_{j,k}|X_i,Y_{j,<k}) $。これは、教師なし微調整によりプロンプトの一貫性を向上させる。

実験結果

リサーチクエスチョン

  • RQ1現実世界のシナリオにおいて、意味的に同等のケースレベルのプロンプトに対してモデルのパフォーマンスはどのように変動するか?
  • RQ2周囲のパーキュリオシティや隠れ状態といったモデルに依存しない特徴を用いて、最悪のプロンプトを予測できるか?
  • RQ3既存のプロンプト工学および一貫性向上手法が、最悪ケースパフォーマンスをどの程度改善できるか?
  • RQ4多様なプロンプトにわたるLLMパフォーマンスの下限を強固かつ一般化可能に向上させる戦略は存在するか?

主な発見

  • Llama-2-70B-chatモデルでは、最高と最悪のプロンプト間で勝率に45.48%の差が生じ、最悪ケースではパフォーマンスがわずか9.38%まで低下した。
  • 自己精錬されたプロンプトは、Llama-2-7/13/70B-chatにおいて10.04%から13.53%のパフォーマンス低下を引き起こした。これは、テストデータなしでプロンプトを再書き直すと性能が損なわれる可能性があることを示している。
  • 投票ベースの生成手法により、Llama-2-70B-chatの最悪ケースパフォーマンスは21.98ポイント向上し、平均パフォーマンスを上回ったが、顕著な計算コストが伴った。
  • プロンプト一貫性手法(例:スウォーム蒸留)は出力の一貫性を向上させたが、全体のパフォーマンスを低下させた。これは、モデルが出力生成に過剰適合している可能性があるためと推察される。
  • 周囲のパーキュリオシティや隠れ状態といったモデルに依存しない特徴は、最悪のプロンプトを信頼性を持って予測できず、パフォーマンス順位はモデル間で顕著に異なる。
  • 異なるモデルはパラフレーズされたプロンプトに対して異なる好みを示し、最悪のプロンプトはモデル固有であり、普遍的に特定可能ではないことが示された。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。