[論文レビュー] LLM Lies: Hallucinations are not Bugs, but Features as Adversarial Examples
本論文は LLM の幻覚を対立的現象として位置づけ、単純なエントロピーベースの防御とともに、勾配ベースの幻覚攻撃(弱い意味的プロンプトと OoD プロンプト)を導入する。
Large Language Models (LLMs), including GPT-3.5, LLaMA, and PaLM, seem to be knowledgeable and able to adapt to many tasks. However, we still cannot completely trust their answers, since LLMs suffer from extbf{hallucination} extemdash fabricating non-existent facts, deceiving users with or without their awareness. However, the reasons for their existence and pervasiveness remain unclear. In this paper, we demonstrate that nonsensical prompts composed of random tokens can also elicit the LLMs to respond with hallucinations. Moreover, we provide both theoretical and experimental evidence that transformers can be manipulated to produce specific pre-define tokens by perturbing its input sequence. This phenomenon forces us to revisit that \emph{hallucination may be another view of adversarial examples}, and it shares similar characteristics with conventional adversarial examples as a basic property of LLMs. Therefore, we formalize an automatic hallucination triggering method as the extit{hallucination attack} in an adversarial way. Finally, we explore the basic properties of attacked adversarial prompts and propose a simple yet effective defense strategy. Our code is released on GitHub\footnote{https://github.com/PKU-YuanGroup/Hallucination-Attack}.
研究の動機と目的
- 幻覚を訓練データを越えた根本的な特徴として再考する動機づけ。
- 自動的な幻覚発生を敵対的プロンプトとして形式化。
- 事前定義された幻覚を引き出すための二つの攻撃モード(弱い意味的プロンプトと OoD)を開発。
- 推論時のエントロピー閾値に基づく簡易防御を提案。
- オープンソースの LLM に対して攻撃を評価し、防御の実用性を検討。
提案手法
- 幻覚を現実と整合しない出力として定義。
- 事前定義された幻覚の尤度を最大化する勾配ベースのトークン置換戦略を提案。
- 人間の意味を保持する弱い意味的プロンプトと、意味不明な OoD プロンプトという二つの攻撃モードを構築。
- 幻覚データを生成・活用して攻撃を訓練または誘導。
- 事前定義された指標で Vicuna-7B および LLaMA2-7B-chat に対する攻撃の成功を評価。
- 推論時のエントロピー閾値防御を提案。
実験結果
リサーチクエスチョン
- RQ1ランダムな OoD プロンプトは LLM で事前定義された幻覚を確実に引き出せるか?
- RQ2意味を保ちながら意味的摂動を与えると幻覚発生のトリガーは大幅に増えるか?
- RQ3エントロピーベースの推論防御はこれらの幻覚攻撃に対して有効か?
- RQ4Vicuna-7B と LLaMA2-7B-chat はこの種の攻撃に対してどの程度脆弱か?
主な発見
- 弱い意味的攻撃は Vicuna-7B で 92.31%、LLaMA2-7B-chat で 53.85% の成功率を達成。
- OoD 攻撃は Vicuna-7B で 80.77%、LLaMA2-7B-chat で 30.77% の成功率を達成。
- 長い OoD プロンプトは攻撃成功を高める(例: 30 トークンで LLaMA2-7B-chat の場合 65.38%)。
- 幻覚攻撃は小さなトークン変更で出力を偽の事実へと変えることを示す。
- エントロピーベースの防御は特定の閾値で成功攻撃のリコールを低減できる。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。