Skip to main content
QUICK REVIEW

[論文レビュー] The Butterfly Effect of Altering Prompts: How Small Changes and Jailbreaks Affect Large Language Model Performance

Abel Salinas, Fred Morstatter|arXiv (Cornell University)|Jan 8, 2024
Topic ModelingComputer Science被引用数 3
ひとこと要約

本稿は、フォーマット要請、微小なテキスト摂動、および jailbreak 技法などのわずかなプロンプトの変更が、大規模言語モデル(LLM)の予測に与える影響を調査する。11のテキスト分類タスクにおいて24種類のプロンプト変種を用いた結果、空白の追加やJSON出力の要請といったわずかな変更ですらモデルの予測を変えることがあり、特に jailbreak は性能を著しく低下させ、一部の手法では拒否率が90%に達するなど、LLMベースのラベリングシステムにおける深刻な信頼性の問題を浮き彫りにした。

ABSTRACT

Large Language Models (LLMs) are regularly being used to label data across many domains and for myriad tasks. By simply asking the LLM for an answer, or ``prompting,'' practitioners are able to use LLMs to quickly get a response for an arbitrary task. This prompting is done through a series of decisions by the practitioner, from simple wording of the prompt, to requesting the output in a certain data format, to jailbreaking in the case of prompts that address more sensitive topics. In this work, we ask: do variations in the way a prompt is constructed change the ultimate decision of the LLM? We answer this using a series of prompt variations across a variety of text classification tasks. We find that even the smallest of perturbations, such as adding a space at the end of a prompt, can cause the LLM to change its answer. Further, we find that requesting responses in XML and commonly used jailbreaks can have cataclysmic effects on the data labeled by LLMs.

研究の動機と目的

  • フォーマット、摂動、jailbreak を含む、わずかなプロンプトの変更がLLMの予測に与える信頼性を調査すること。
  • これらの変更が、多様なテキスト分類タスクにおけるモデルの正確性と一貫性に与える影響を評価すること。
  • アノテーター間の合意のない度合いが、プロンプト変更に伴う予測の変化と相関しているかどうかを検討すること。
  • どのプロンプト変更がLLM出力に最も顕著なシフトを引き起こすかを同定すること。
  • より頑健なプロンプトアンサンブルや耐性のあるLLMシステムの設計に役立てるための知見を得ること。

提案手法

  • 本研究では、BoolQ、CoLA、Jigsaw Toxicity を含む11のベンチマークテキスト分類タスクにおいて、24種類のプロンプト変種を評価した。
  • 変種は4つのカテゴリーに分類された:出力フォーマット(例:JSON、XML)、微小な摂動(例:空白の追加、'Thank you' の追加)、傾きをつけるプロンプト、および jailbreak(例:Evil Confidant、AIM、Dev Mode v2)。
  • 予測の変化率と正確性の損失を測定するために、変種間でのモデル予測を比較した。
  • 応答の類似性に基づいてプロンプト変種を埋め込むために、多次元尺度構成(MDS)が用いられ、クラスタリング解析が可能になった。
  • 人間ラベル付きインスタンスのアノテーターのエントロピーを計算し、混乱度を評価し、ピアソン相関を用いて予測エントロピーとの相関を算出した。
  • 統計的分析により、プロンプト変更の種別と予測の不安定さの間の有意な相関が特定され、特に jailbreak とフォーマット要請において顕著であった。
Figure 1: Number of predictions that change (out of 11,000) compared to No Specified Format style. Red bars correspond to the number of invalid responses provided by the model.
Figure 1: Number of predictions that change (out of 11,000) compared to No Specified Format style. Red bars correspond to the number of invalid responses provided by the model.

実験結果

リサーチクエスチョン

  • RQ1空白の追加や特定の出力フォーマットの要請といった、わずかなプロンプトの変更が、LLMの予測の一貫性にどのように影響するか?
  • RQ2jailbreak 技法は、LLMの予測をどの程度変化させ、モデルの性能をどの程度低下させるか?
  • RQ3アノテーター間の合意が低いインスタンスは、プロンプトの変更に対してより感受性を示すか?
  • RQ4異なるプロンプト変更は応答空間でどのようにクラスタリングされるか? これはモデルの信頼性に何を示唆するか?
  • RQ5異なるプロンプトタイプにおいて、アノテーターの不一致から予測エントロピーを信頼性を持って予測できるか?

主な発見

  • わずかな摂動、たとえばプロンプトの末尾に1つの空白を追加するだけでも、LLMが予測を変更するケースが最大15%に達した。
  • XML や CSV 形式での出力要請は、ベースラインと比較して平均で正確性が5ポイント低下した。
  • Dev Mode v2 や AIM といった jailbreak 技法は、約90%の拒否率を示し、モデルの有用性を著しく低下させた。
  • Evil Confidant や Refusal Suppression の jailbreak は、拒否率が3%未満と低かったが、それでもベースラインと比較して10ポイント以上の正確性低下を引き起こした。
  • 「End with Thank you」 や 「Rephrase as Statement」 といった摂動変種は、MDS埋め込みにおいて主要クラスタから著しく逸脱する出力を生じた。
  • アノテーターの不一致と予測変化の可能性との間に弱い負の相関(r = -0.3779, p = 0.00)が確認され、曖昧さの高いインスタンスはプロンプト変更に対して予測が変化しにくい傾向にあることが示唆された。
Figure 2: Number of predictions that change (out of 11,000) compared to the Python List style. Red bars correspond to the number of invalid responses provided by the model.
Figure 2: Number of predictions that change (out of 11,000) compared to the Python List style. Red bars correspond to the number of invalid responses provided by the model.

この論文を読む

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

Nubintでこの論文を読む

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