Skip to main content
QUICK REVIEW

[論文レビュー] Probing LLM Hallucination from Within: Perturbation-Driven Approach via Internal Knowledge

Seongmin Lee, Hsiang Hsu|arXiv (Cornell University)|Nov 14, 2024
Cryptography and Residue ArithmeticComputer Science被引用数 3
ひとこと要約

本稿では、内部知識を基に、大規模言語モデル(LLM)が出力するテキストを「整合的」「不整合的」「捏造」の3つに分類する、新規のゼロショットハロシネーション推論タスクを導入する。提案手法であるMKTは、LLMが十分な内部知識を持っているかをプローブすることでハロシネーションを検出する。SelfCheckGPTなどの既存手法と組み合わせることで、特に捏造ハロシネーションの検出精度が顕著に向上する。

ABSTRACT

LLM hallucination, where unfaithful text is generated, presents a critical challenge for LLMs' practical applications. Current detection methods often resort to external knowledge, LLM fine-tuning, or supervised training with large hallucination-labeled datasets. Moreover, these approaches do not distinguish between different types of hallucinations, which is crucial for enhancing detection performance. To address such limitations, we introduce hallucination probing, a new task that classifies LLM-generated text into three categories: aligned, misaligned, and fabricated. Driven by our novel discovery that perturbing key entities in prompts affects LLM's generation of these three types of text differently, we propose SHINE, a novel hallucination probing method that does not require external knowledge, supervised training, or LLM fine-tuning. SHINE is effective in hallucination probing across three modern LLMs, and achieves state-of-the-art performance in hallucination detection, outperforming seven competing methods across four datasets and four LLMs, underscoring the importance of probing for accurate detection.

研究の動機と目的

  • 既存の検出手法がハロシネーションの種別を明確にしていないという問題に対処すること。
  • 外部知識やファインチューニングを一切用いずに、ハロシネーションの原因を特定できる、ソースフリーのゼロショット手法を開発すること。
  • 内部知識の有無に基づいてハロシネーションを「整合的」「不整合的」「捏造」に分類することで、ハロシネーション検出を向上させること。
  • 知識不足と生成のランダムネスを区別することで、より正確な検出と将来の是正戦略の可能性を高めること。
  • 今後の研究を支援する新しいベンチマークデータセットを構築すること。

提案手法

  • LLM出力を「整合的(正しいかつ既知)」「不整合的(ランダムまたは文脈依存)」「捏造(知識不足)」の3タイプに分類する新しいタスク、すなわちハロシネーション推論を提案する。
  • MKT(Knowledge Probe)を導入し、アクティベーションパターンや注目メカニズムを分析することで、LLMが与えられたプロンプトに十分な内部知識を持っているかを評価するゼロショット手法である。
  • 2段階の検出パイプラインを採用する:まずMKTが知識不足を検出し、捏造コンテンツをフィルタリングする。次に、整合性テスト(例:SelfCheckGPT)を用いて残りの出力を「整合的」と「不整合的」に分類する。
  • 外部監視やラベル付きデータを一切用いずに、プロンプトによる自己評価を通じてLLMの内部的一致性と正しさを評価する。
  • MKTスコアにしきい値を適用して、既知の知識状態と未知の知識状態を区別する。
  • MKTをSelfCheckGPT や Hallucination Score といった既存のゼロショット検出器と組み合わせることで、全体の検出性能を向上させる。
Figure 1 : Given a pair of prompt and LLM-generated text, we propose a two-stage workflow for hallucination reasoning, consisting of the Model Knowledge Test (MKT) ( Sec. 3.1 ) and the Alignment Test ( Sec. 3.2 ). The MKT identifies whether the LLM has sufficient knowledge to generate the text by pe
Figure 1 : Given a pair of prompt and LLM-generated text, we propose a two-stage workflow for hallucination reasoning, consisting of the Model Knowledge Test (MKT) ( Sec. 3.1 ) and the Alignment Test ( Sec. 3.2 ). The MKT identifies whether the LLM has sufficient knowledge to generate the text by pe

実験結果

リサーチクエスチョン

  • RQ1外部知識やファインチューニングを一切用いずに、知識不足(捏造)とランダムネス(不整合)のハロシネーションの種別をゼロショット手法で効果的に区別できるか?
  • RQ2内部知識プローブは、既存のソースフリー手法と比較して、捏造ハロシネーションの検出をどの程度向上させるか?
  • RQ3原因に基づいてハロシネーションを分類することで、下流の検出システムの性能がどの程度向上するか?
  • RQ4MKTをSelfCheckGPTのような整合性ベースの検出器の前処理として用いることで、精度向上が達成できるか?
  • RQ5バイオメディカルや伝記的テキストを含む多様なドメインに、ハロシネーション推論フレームワークはどの程度汎用性を示すか?

主な発見

  • MKTはNECデータセットで捏造テキストの検出に76.82%の精度を達成し、Biographyデータセットでは99.04%に達する。これはベースライン手法を顕著に上回る。
  • SelfCheckGPTと組み合わせたMKT + SelfCheckGPTパイプラインは、NECデータセットで全体で84.43%、Biographyデータセットで94.64%の精度を達成した。
  • SelfCheckGPT単体では捏造ハロシネーションの6.23%しか検出できなかったが、MKTを前処理として用いることで、検出率は77.85%に向上した。
  • Hallucination ScoreにMKTを組み込むことで、NECデータセットの全体精度は55.25%から74.05%に、Biographyデータセットでは53.93%から84.29%に向上した。
  • 本手法は3種類のハロシネーションを効果的に区別できており、NECデータセットでは非捏造データの92.39%を正しく分類した。
  • ハロシネーションの原因、特に知識不足を区別することで、検出性能が著しく向上することが実証され、ハロシネーション推論の重要性が裏付けられた。
Figure 2 : CDF on the NEC and Biography datasets show that Model Knowledge Score distributions of fabricated text are significantly distinct from non-fabricated ones.
Figure 2 : CDF on the NEC and Biography datasets show that Model Knowledge Score distributions of fabricated text are significantly distinct from non-fabricated ones.

この論文を読む

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

Nubintでこの論文を読む

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