Skip to main content
QUICK REVIEW

[論文レビュー] Distinguishing the Knowable from the Unknowable with Language Models

Gustaf Ahdritz, Tian Qin|arXiv (Cornell University)|Feb 5, 2024
Explainable Artificial Intelligence (XAI)Computer Science被引用数 3
ひとこと要約

この論文では、大規模言語モデル(LLM)の出力における知識に基づくエピステミック不確実性と、固有のランダムネスに起因するアレアトリック不確実性を区別する手法を提案する。より大きなモデルを真の分布の代理として用い、モデルの活性化状態を活用して不確実性タイプを分類する教師あり線形プローブおよび教師なしの文脈内学習テスト(ICLT)を導入。分野をまたがって非自明な精度と一般化性能を達成し、LLMが区別可能な不確実性表現を内蔵していることを示している。

ABSTRACT

We study the feasibility of identifying epistemic uncertainty (reflecting a lack of knowledge), as opposed to aleatoric uncertainty (reflecting entropy in the underlying distribution), in the outputs of large language models (LLMs) over free-form text. In the absence of ground-truth probabilities, we explore a setting where, in order to (approximately) disentangle a given LLM's uncertainty, a significantly larger model stands in as a proxy for the ground truth. We show that small linear probes trained on the embeddings of frozen, pretrained models accurately predict when larger models will be more confident at the token level and that probes trained on one text domain generalize to others. Going further, we propose a fully unsupervised method that achieves non-trivial accuracy on the same task. Taken together, we interpret these results as evidence that LLMs naturally contain internal representations of different types of uncertainty that could potentially be leveraged to devise more informative indicators of model confidence in diverse practical settings.

研究の動機と目的

  • 自由な形式のLLM出力におけるエピステミック不確実性(知識不足)とアレアトリック不確実性(固有の分布エントロピー)を区別する課題に対処すること。
  • 特に非構造化テキストにおいて、モデルの不確実性が無知に起因するものか、それとも固有のランダムネスに起因するものかを特定する実用的なフレームワークを開発すること。
  • 生成過程でエピステミック不確実性を検出することで、モデルの信頼性推定の向上と幻覚の緩和を可能にすること。
  • LLMが異なる不確実性タイプの分離可能な表現を自然にエンコードしているかどうかを調査すること。

提案手法

  • より大きな、より能力の高いLLMを真の潜在分布の代理として用い、小規模なターゲットモデルにおける不確実性タイプをラベルづける。
  • 固定された事前学習済みモデルの活性化状態上で線形および非線形プローブを訓練し、より大きなモデルの信頼度に基づいて、小規模モデルの不確実性がエピステミックかアレアトリックかを予測する。
  • 繰り返しのプロンプトと候補トークンを用いたモデルの挙動を評価する教師なしのIn-Context Learning Test(ICLT)を提案し、ラベルなしで不確実性タイプを推定する。
  • 複数回の文脈内フォワードパスにおける最小エントロピーを、大きなモデルの不確実性の代理として用い、小規模モデルの不確実性をそれに応じて分類する。
  • 多様なテキストドメインにわたり、プローブの一般化性能と分布シフトに対するロバストネスを評価する。
  • スケーリング則を活用して、より大きなモデルがエピステミック不確実性を低減すると仮定し、ラベル付けスキームの根拠とする。
Figure 1: Simplified overview of our classification task and the supervised method. Left: The supervised uncertainty classification task. A dataset of labeled prompts is created by running a large LLM on existing text and thresholding its predictive entropy near zero. Right: We train probes on activ
Figure 1: Simplified overview of our classification task and the supervised method. Left: The supervised uncertainty classification task. A dataset of labeled prompts is created by running a large LLM on existing text and thresholding its predictive entropy near zero. Right: We train probes on activ

実験結果

リサーチクエスチョン

  • RQ1より大きなモデルを真の分布の代理として用いることで、自由な形式のLLM出力におけるエピステミック不確実性とアレアトリック不確実性を分離可能か?
  • RQ2固定されたモデルの活性化状態上で訓練された小さな線形プローブが、異なるテキストドメインにわたり不確実性タイプを正確に予測できるか?
  • RQ3ICLTのような教師なし手法が、ラベルなしでエピステミック不確実性を識別する上で非自明な性能を達成できるか?
  • RQ4LLMがエピステミック不確実性とアレアトリック不確実性の区別可能な内部表現を自然にエンコードしているか、効果的にプローブ可能か?
  • RQ5不確実性分類の精度向上が、幻覚検出とモデルの信頼性推定にどの程度寄与できるか?

主な発見

  • 固定されたモデルの埋め込み上で訓練された小さな線形プローブは、より大きなモデルを代理として用いることで、小規模モデルの不確実性がエピステミックかアレアトリックかを高い精度で予測できる。
  • あるテキストドメインで訓練されたプローブが他のドメインへも効果的に一般化されることから、堅牢で転送可能な不確実性表現が存在することが示された。
  • 教師なしのIn-Context Learning Test(ICLT)は、ラベルなしでエピステミック不確実性を識別する上で非自明な精度を達成した。
  • 結果から、LLMがエピステミック不確実性とアレアトリック不確実性の分離可能な内部表現を自然にエンコードしており、信頼性推定に活用可能であることが示唆された。
  • 主にエピステミック不確実性を示す高リスクの幻覚を引き起こしやすいトークンを特定することで、生成過程での干渉の道筋が開かれた。
  • このフレームワークは、不確実性に配慮した生成とファインチューニングを通じて、LLM出力の真実性向上の基盤を提供する。
Figure 3: High-level classification results for our supervised and unsupervised methods. ROC curves for linear probes trained with the model pairing LLaMA 7B / LLaMA 65B, evaluated both in ( left ) and out ( middle ) of the distribution of the probes’ Wikipedia training data. All classifier probes a
Figure 3: High-level classification results for our supervised and unsupervised methods. ROC curves for linear probes trained with the model pairing LLaMA 7B / LLaMA 65B, evaluated both in ( left ) and out ( middle ) of the distribution of the probes’ Wikipedia training data. All classifier probes a

この論文を読む

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

Nubintでこの論文を読む

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