Skip to main content
QUICK REVIEW

[論文レビュー] Towards Principled Evaluations of Sparse Autoencoders for Interpretability and Control

Aleksandar Makelov, George Lange|arXiv (Cornell University)|May 14, 2024
Speech Recognition and SynthesisComputer Science被引用数 3
ひとこと要約

この論文は、教師あり特徴辞書をベンチマークとして用いることで、大規模言語モデルにおけるスパース自己符号化器(SAE)が学習した特徴辞書を評価する原理的フレームワークを提案する。特徴の再構築の十分性/必要性、特徴編集による制御可能性、解釈可能性の3軸から不完全なSAEの性能を評価し、IOIタスクにおいては解釈可能な特徴を学習しているが、制御性と完全性において教師あり特徴に劣っており、特徴の遮蔽や過剰分割といった現象を示していることが判明した。

ABSTRACT

Disentangling model activations into meaningful features is a central problem in interpretability. However, the absence of ground-truth for these features in realistic scenarios makes validating recent approaches, such as sparse dictionary learning, elusive. To address this challenge, we propose a framework for evaluating feature dictionaries in the context of specific tasks, by comparing them against \emph{supervised} feature dictionaries. First, we demonstrate that supervised dictionaries achieve excellent approximation, control, and interpretability of model computations on the task. Second, we use the supervised dictionaries to develop and contextualize evaluations of unsupervised dictionaries along the same three axes. We apply this framework to the indirect object identification (IOI) task using GPT-2 Small, with sparse autoencoders (SAEs) trained on either the IOI or OpenWebText datasets. We find that these SAEs capture interpretable features for the IOI task, but they are less successful than supervised features in controlling the model. Finally, we observe two qualitative phenomena in SAE training: feature occlusion (where a causally relevant concept is robustly overshadowed by even slightly higher-magnitude ones in the learned features), and feature over-splitting (where binary features split into many smaller, less interpretable features). We hope that our framework will provide a useful step towards more objective and grounded evaluations of sparse dictionary learning methods.

研究の動機と目的

  • 解釈可能性研究における真の特徴の欠如、特に大規模言語モデルにおけるスパース自己符号化器(SAE)の研究を解決するため。
  • 非教師ありSAEを教師あり特徴辞書と比較する、原則的でタスク特化型の評価フレームワークを開発するため。
  • 活性化再構築の十分性と必要性、特徴編集による制御可能性、因果的役割に整合した解釈可能性の3軸からSAEを評価するため。
  • SAE学習中に現れる体系的な失敗モード(例:特徴の遮蔽、過剰分割)を特定・分析するため、実モデルおよびトロイモデルを用いて検証する。
  • 今後のSAE研究における解釈可能性と制御性の分野で、より客観的で根拠に基づき、再現可能な評価基準を提供するため。

提案手法

  • モデルの入力(例:プロンプト)と属性のラベル(例:間接目的語の名前)を用いて、教師あり特徴辞書を学習し、特徴の発見を誘導する。
  • 教師あり辞書をゴールドスタンダードとして、非教師ありSAEの評価を3軸(再構築忠実度、特徴編集による制御可能性、F1スコアの整合性による解釈可能性)で行う。
  • 十分性は、F1スコアが高い特徴を除去し、ロジット差の回復を観察することで測定する。必要性は、最高スコアの特徴を除くすべての特徴をパッチ処理することで測定する。
  • IOIタスクにおけるGPT-2 Smallに、IOI固有のデータまたは全分布(OpenWebText)データで学習されたSAEを適用してフレームワークを適用する。
  • 注目スコアの分解とロジット差分析を用いて、特徴のモデル行動における役割を検証する。
  • シンプルなトロイモデルを用いて特徴の遮蔽と過剰分割を再現し、観察された現象の一般化可能性を評価する。
Figure 1: Overview of our evaluation pipeline. We begin by selecting a specific model capability and then disentangling model activations into capability-relevant features using supervision. Then, we evaluate a given feature dictionary w.r.t. this capability, using the supervised features as a bench
Figure 1: Overview of our evaluation pipeline. We begin by selecting a specific model capability and then disentangling model activations into capability-relevant features using supervision. Then, we evaluate a given feature dictionary w.r.t. this capability, using the supervised features as a bench

実験結果

リサーチクエスチョン

  • RQ1教師あり特徴辞書は、再構築忠実度、制御可能性、解釈可能性の観点から、非教師ありSAEの評価に信頼できるベンチマークとして機能するか?
  • RQ2IOI固有のデータ(IOI)と全分布(OpenWebText)データで学習されたSAEは、IOIタスクにおけるモデル行動の回復・制御能力においてどのように異なるか?
  • RQ3SAEが学習した特徴は、ロジット差回復における解釈可能性と必要性を測定することで、モデル活性化の真の因果構造をどの程度反映しているか?
  • RQ4SAE学習中に現れる体系的な失敗モード(例:特徴の遮蔽、過剰分割)は何か?そして、それらは簡略化された設定でも再現可能か?
  • RQ5提示された評価フレームワークは、SAE学習目的関数やハイパーパrameterの客観的比較・改善に使用可能か?

主な発見

  • 教師あり特徴辞書はIOIタスクにおいて高い再構築忠実度、制御可能性、解釈可能性を達成しており、SAE評価の強力なベンチマークとして機能する。
  • IOIタスクにおけるSAEが学習した特徴は解釈可能ではあるが、教師あり特徴に比べて効果が劣る:タスク固有のSAEはモデル行動を制御するために少ない編集で済むが、両者とも教師ありベースラインに劣る。
  • F1スコア閾値0.8で、SAE特徴はロジット差回復に必要かつ十分であることが判明し、高閾値での忠実性と完全性が裏付けられた。
  • 特徴の遮蔽は、因果的に関連する特徴よりも大きさの高い特徴を優先する傾向を示し、わずかな大きさの差ですら、因果的関連性よりも大きさに偏るバイアスを示唆している。
  • 過剰分割が観察され、二値の概念(例:名前の同一性)が複数の低レベル特徴に分割され、解釈性が低下し、冗長性が増加している。
  • 特徴の遮蔽と過剰分割の両方とも、シンプルなトロイモデルで再現可能であり、これらはIOIタスクの特異的現象ではなく、SAE学習における一般的現象である可能性が高い。
Figure 2: Sufficiency (left) and necessity (right) evaluations of reconstructions of cross-sections of the IOI circuit computed using supervised feature dictionaries, task- and full-distribution SAEs. Left : average logit difference when replacing activations in cross-sections of the IOI circuit wit
Figure 2: Sufficiency (left) and necessity (right) evaluations of reconstructions of cross-sections of the IOI circuit computed using supervised feature dictionaries, task- and full-distribution SAEs. Left : average logit difference when replacing activations in cross-sections of the IOI circuit wit

この論文を読む

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

Nubintでこの論文を読む

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