新着研究 / LLM
同じ注意ヘッドでもタスクで情報の流れが変わる、LLMの共有部品を介入で比較
Task-Dependent Component Influence
Task-Dependent Component Influenceの原論文から掲載した図です。細部はクリックして拡大できます。
原論文の図の説明を読む
Figure 1: Task-dependent computation with shared components. A. Same components, different interactions. Brain networks motivate the hypothesis that shared model components support different tasks through changes in their interactions. H1–H3 denote fixed attention heads in layer order; Res. denotes a later residual-stream site. B. Measure task-dependent influence. Identical graph facts yield True for Compose path and False for Read direct edge : the path A → B → C A\to B\to C exists, whereas the direct edge A → C A\to C is absent. Under each instruction, source perturbations ± δ \pm\delta produce responses at later sites that quantify influence, with intervening computation active. C. Change the internal task state. An early activation edit changes h h to h ′ = h + Δ task h^{\prime}=h+\Delta_{\mathrm{task}} while the prompt and model weights remain fixed. The vector Δ task \Delta_{\mathrm{task}} is the mean activation under Read fact 2 minus the mean activation under Read fact 1 on reference prompts. R1 and R2 denote two fixed attention heads. The schematic illustrates an answer change from True (Fact 1) to False (Fact 2), while the written instruction remains Read fact 1 .
概要
- 同じグラフ事実を使い、タスクごとに注意ヘッドの影響と回答への重要性を測った。
- 五つの公開重みモデルで、タスク変更に伴う内部の影響分布の変化を観測した。
- 条件別の応答写像は、二条件の平均写像より後段の応答予測誤差を小さくした。
補足:編集した模式図で仕組みを確認する
VISUAL EXPLAINER
図でつかむ、Task-Dependent Component Influenceの仕組み
- 01共通のグラフ事実
- 02タスクと内部状態の介入
- 03後段応答の測定
- 04条件別の応答写像
原論文の説明をもとにした模式図です。処理の細部は省略しています。
研究の背景
言語モデルは、同じ重みや注意ヘッドをさまざまなタスクで使う。注意ヘッドは入力のどこを参照するかを分担する内部部品だが、共通の部品を見つけるだけでは、その部品が各タスクで何をしているかまでは分からない。
本研究は、同じ部品どうしの情報の流れがタスクに応じて変わるかを調べる。対象となる事実をそろえて比較することで、入力内容の違いと、タスクによる処理の違いを分けて理解しようとする。
手法
入力には、どの対象からどの対象へつながるかを記述した有向グラフの事実を使う。内部の注意ヘッドや活性、つまり計算途中の数値表現へ介入し、その変更が後の層へどれだけ伝わるかを影響として測る。回答がどれだけ変わるかは重要性として別に測定する。
GemmaとQwenの実験では、書かれた指示を変えずに早い段階の活性を編集し、モデルが読む事実を切り替える。編集前と後で、前段のヘッドの変化から後段の反応を予測する線形写像を作る。例えば同じ事実群でも、内部状態が異なると同じヘッドが別の関係を拾い、その影響の伝わり方も変わるかを確認する。
新規性
部品が使われているかだけでなく、共有された部品間の影響関係へ焦点を移す。同じ事実と固定した部品を比較することで、タスクごとの役割をネットワークとして記述する点が特徴となる。
外側の指示を変えない活性編集も使い、内部のタスク文脈と後段の応答の対応を調べる。これにより、文章上の指示差だけでは説明しきれない内部の情報選択を測定対象にする。
従来手法との違い
後段の応答予測では、編集前後の条件に対応した二つの線形写像と、それらを平均した写像を比較する。平均写像は、二条件の情報の流れを一つとして扱う基準に相当する。
部品の重要性を測るだけの見方と比べ、同じ部品がどの事実を参照し、どこへ影響するかを区別する。これは回答精度を上げる新しい推論器の比較ではなく、内部計算の説明の粒度を変える分析である。
実験結果
五つの公開重みモデル、四つのモデル系列、15億から140億パラメータの範囲で、タスク変更に伴う影響の再分配を報告した。活性編集による詳細な試験にはGemma-2-9BとQwen3-14Bを用いた。
別の事実へ介入した際、対応する条件の写像は平均写像より平均二乗予測誤差をGemmaで53.6%、Qwenで5.0%減らした。これは内部応答の予測誤差の低下であり、タスク正答率の改善ではない。二モデルで効果の大きさが違う点も、結論の適用範囲として読む必要がある。
応用の可能性
編集上の応用案 · 論文が実証した用途とは区別しています。
編集上の応用案:社内LLMの特定の応答を調整する前に、複数の業務タスクで共有部品の影響を診断する。入力は同じ事実を使うタスク対、出力は条件ごとの影響関係と回答の変化である。
一つの応答だけを変えたいとき、別のタスクへ影響が波及しそうな部品を見極めるための分析を想定する。論文はこの用途の改善を実証したものではないため、実際の調整法の効果は独立に評価する。
応用先の候補からNauhに相談できます。
導入時の検証
導入時の検証案 · 対象データでの再評価が必要です。
導入時の検証案:内部状態を測定できるモデルで、事実は共通だが求める処理が異なる小さなタスク集合を作る。まず活性を変えない条件を記録し、限定した部品への小さな介入で後段と回答の変化を測る。
条件別の写像と平均写像を、写像の構築に使わない事実で比較する。応答予測の誤差に加え、目的タスクの正答と他タスクの悪化も確認し、内部の説明が実際の振る舞いの制御に役立つかを検証する。
限界と課題
報告はグラフ事実をそろえた実験に基づき、任意の長文会話や業務データを対象に同じ影響関係が得られるとは示していない。線形写像も測定した変更範囲の近似であり、内部計算の全体を完全に説明するものではない。
編集上は、介入量や対象層を変えた場合の安定性、自然なタスク切替との対応、他のモデル系列への適用を確認したい。影響が大きい部品を除去すれば望む行動だけを変えられる、という保証とは分けて理解する必要がある。
出典
元のタイトル・要旨を確認する(英語)
Task Context Shapes Component Roles in Language Models
Large language models reuse the same attention heads across tasks, but identifying these shared heads does not explain what they do differently in each task. A natural source of inspiration is task-dependent interactions among shared brain regions, which motivate a network view of language-model computation. Here, we compare fixed model components across tasks using identical graph facts, statements specifying which directed connections are present. We measure how interventions affect attention heads and the activation state in later layers (influence), as well as the answer (importance). Task changes redistribute the influence in five open-weight models spanning four families and 1.5-14 billion parameters. In Gemma-2-9B and Qwen3-14B, an activation edit changes an early internal activation vector and switches which fact the model reads while the written instruction stays fixed. The same heads then respond to different graph facts and influence later components differently. For each prompt, we construct two linear response maps, one before the edit and one after it. Each map predicts a later head's response from a measured change in an earlier head. For a separate factual intervention, the map for the corresponding condition reduces mean squared prediction error by 53.6% in Gemma and 5.0% in Qwen compared with the average of the two maps. These findings show that task context changes both which graph facts the shared components respond to and how their outputs affect later computation. A network account may help explain how models use shared parameters to perform different computations. Measurements of task-dependent influence could also guide interventions intended to alter one behavior while preserving others.
論文本体の取得範囲に基づく解説。AIが作成した未校閲の記事です。性能の数値は著者の評価条件に依存します。応用例と検証計画は編集上の提案です。収集:2026-10-13




