[論文レビュー] Holistically Explainable Vision Transformers
この論文は、Vision Transformerに対して各部品を動的線形とすることでモデル全体を1つの入力依存線形サマリで説明可能にする、全体論的な説明を提供するB-cosトランスフォーマを導入する。
Transformers increasingly dominate the machine learning landscape across many tasks and domains, which increases the importance for understanding their outputs. While their attention modules provide partial insight into their inner workings, the attention scores have been shown to be insufficient for explaining the models as a whole. To address this, we propose B-cos transformers, which inherently provide holistic explanations for their decisions. Specifically, we formulate each model component - such as the multi-layer perceptrons, attention layers, and the tokenisation module - to be dynamic linear, which allows us to faithfully summarise the entire transformer via a single linear transform. We apply our proposed design to Vision Transformers (ViTs) and show that the resulting models, dubbed Bcos-ViTs, are highly interpretable and perform competitively to baseline ViTs on ImageNet. Code will be made available soon.
研究の動機と目的
- トランスフォーマーモデルにおける注意マップを超えた全体的な説明の必要性を動機づける。
- 各部品を動的線形にして、入力ごとに1つの線形サマリを可能にする。
- ViTの各部品(トークナイズ、アテンション、MLP、分類器)をB-cosフレームワーク内で解釈可能に設計する。
- 解釈性を損なわず、位置情報を符号化する注意 priors を学習する機構を導入する。
- ImageNetで分類性能と説明品質を実証的に評価する。
提案手法
- 各ViT部品を動的線形変換として定義し、入力xごとの重み行列W(x)を取得する。
- 標準のViT部品をB-cos対応物に置き換える:B-cos Token、B-cos AttBlock、B-cos MLPBlock、B-cos Classifier。
- 注意をB-cos Attention Blockに変更し、出力を制限し、注意スコア前に層正規化を適用する。
- MaxOutとB-cos変換を用いて解釈可能なMLPブロックと分類器を作成する。
- 位置情報を学習可能なバイアスBとして符号化する加法的または乗法的な注意 priors を導入する。
- 寄与マップc_k(x) = W(x)^T_k ⊙ xを用いてモデル固有の説明を提供し、重みと入力を結び付ける。
実験結果
リサーチクエスチョン
- RQ1B-cos設計はViTの全要素に対して全体的かつ解釈可能な説明を提供できるか?
- RQ2動的線形ViTは決定を説明する有用なクラス特異的寄与を生み出すか?
- RQ3学習された注意 priors が精度と解釈性に及ぼす影響は?
- RQ4B-cos ViTはImageNetの精度と説明品質において基準ViTと比較してどうか?
- RQ5異なる位置情報戦略は性能と解釈性にどのような影響を与えるか?
主な発見
- B-cos ViTはTiny、Small、Baseサイズで基準ViTと比較してImageNet精度が競争的である。
- 乗法的注意バイアス priors はB-cos ViTの性能を一貫して改善する。
- モデル固有の説明は、評価された構成での局所化と摂動評価指標でポストホック手法を上回る。
- W(x)から得られる寄与ヒートマップは、入力パターンと整合した詳細なクラス特異的説明を提供する。
- 同じモデルでのRolloutベースのポストホック説明よりも局所化指標でB-cos説明が顕著に優れている。
- 定性的な可視化は、モデルの決定を反映した特徴と整合的な説明を示す。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。