Skip to main content
QUICK REVIEW

[論文レビュー] LLMs Faithfully and Iteratively Compute Answers During CoT: A Systematic Analysis With Multi-step Arithmetics

Keito Kudo, Yoichi Aoki|ArXiv.org|Dec 2, 2024
Artificial Intelligence in LawSocial Sciences被引用数 3
ひとこと要約

本研究では、大規模言語モデル(LLMs)が多段階の算術的タスクにおいて、チェーン・オブ・トゥーク(CoT)生成の前か、それともその間に内部的思考を行っているかを調査する。10体のLLMを用いた因果的プロービングと活性化パッチングにより、単純な部分問題はCoTの開始前にすでに内部で解決されているのに対し、複雑なマルチホップ推論はCoT中に行われており、『話す→考える』と『考える→話す』のハイブリッドなメカニズムが、体系的な内部計算パターンを示していることが明らかになった。

ABSTRACT

This study investigates the internal information flow of large language models (LLMs) while performing chain-of-thought (CoT) style reasoning. Specifically, with a particular interest in the faithfulness of the CoT explanation to LLMs' final answer, we explore (i) when the LLMs' answer is (pre)determined, especially before the CoT begins or after, and (ii) how strongly the information from CoT specifically has a causal effect on the final answer. Our experiments with controlled arithmetic tasks reveal a systematic internal reasoning mechanism of LLMs. They have not derived an answer at the moment when input was fed into the model. Instead, they compute (sub-)answers while generating the reasoning chain on the fly. Therefore, the generated reasoning chains can be regarded as faithful reflections of the model's internal computation.

研究の動機と目的

  • 大規模言語モデル(LLMs)におけるチェーン・オブ・トゥーク(CoT)出力が、内部的思考の忠実な反映であるのか、それとも後から正当化するためのものであるのかを特定すること。
  • 答えの計算タイミングを特定すること—モデルがCoT生成の前か、それともその間に内部で答えを解決しているのか。
  • 単一ステップの単純な問題とマルチホップの複雑な推論の両者を、内部計算のタイミングの観点から区別すること。
  • プロービングと干渉技術を用いて、内部表現と最終的な答えの因果的関係を分析すること。
  • 多様なLLMにおいて、制御された算術的タスクの下で体系的な内部推論パターンの証拠を提供すること。

提案手法

  • 著者らは、明示的な変数とターゲットを備えた、記号的で多段階の算術的推論タスクの制御されたテストベッドを設計した。
  • 各レイヤーおよびタイムステップで因果的プロービングを適用し、隠れ状態が変数(例:A、B、C)の正しい値を初めて予測するタイミングを特定した。
  • 特定のタイムステップで高いプローブ精度が得られれば、モデルがその対応する値をすでに内部で計算していることを示している。
  • プロービング結果の妥当性を検証するために、高いプローブ精度(H+)および低いプローブ精度(H−)領域からの隠れ状態を置き換える活性化パッチングを用いた。
  • 異なるパッチング条件におけるモデル出力を比較することで、内部状態が最終的な答えに与える因果的影響を評価した。
  • この分析は、Qwen、Llama、Yi、Mistralを含む10体のLLMに、複雑さが増す5段階のタスクレベルで適用された。
Figure 1: Probes predict each variable’s value from the LLMs’ hidden states at each timestep $\times$ layer; a high accuracy indicates where the model completes the corresponding calculation ( § ˜ 3 ). Causal interventions ( § ˜ 4.1 , § ˜ 4.2 ) revealed a somewhat indirect relationship between sub-
Figure 1: Probes predict each variable’s value from the LLMs’ hidden states at each timestep $\times$ layer; a high accuracy indicates where the model completes the corresponding calculation ( § ˜ 3 ). Causal interventions ( § ˜ 4.1 , § ˜ 4.2 ) revealed a somewhat indirect relationship between sub-

実験結果

リサーチクエスチョン

  • RQ1LLMsが内部で答えを計算するのは、推論プロセスのどの段階か—CoT生成の前か、それともその中か?
  • RQ2チェーン・オブ・トゥーク出力は、内部的思考の忠実な反映であるのか、それとも後から正当化するためのものなのか?
  • RQ3単純な部分問題はCoTの開始前に解決され、複雑なマルチホップ問題はCoT中に出力されるのか?
  • RQ4CoT推論において、内部表現と最終的答えの因果的関係は何か?
  • RQ5異なるLLMアーキテクチャとタスクの複雑さにおいて、内部計算のパターンはどのように変化するか?

主な発見

  • 単純な1ステップの算術(例:A = 2 + 3)は、CoT生成の開始前にすでに内部で計算されており、初期タイムステップでの高いプローブ精度によって裏付けられている。
  • より複雑なマルチホップ推論(例:B = 1 + A、ここでA = 2 + 3)は、CoT生成フェーズ中に発生しており、CoTトークンが生成された後からプローブ精度が上昇している。
  • 活性化パッチングによる因果的干渉により、高いプローブ精度領域からの内部状態が最終的な答えに顕著に影響することが確認されたが、因果的経路は多少間接的であった。
  • Llama3.2-3Bでは、モデルが隠れ状態内で中間値(例:B = 5)を正しく計算しているが、出力直前に誤って上書きしており、最終的な誤りを引き起こしている。
  • プロービング結果は、モデル間で一貫した内部推論パターンを示しており、『話す→考える』と『考える→話す』の両方の行動が体系的に融合していることが明らかになった。
  • 誤り分析により、モデルはしばしば内部で正しい中間値を導出しているが、最終出力にそれを保持できていないことが判明し、最終トークン生成における不安定性が示唆された。
Figure 2: Probing results for Qwen2.5-7B at the task level 3 . The input sequence below the graphs is one example (the results are averaged over the test set). The upper part indicates the maximum probing accuracy achieved at each token position $t$ . The bottom part shows the probing accuracies in
Figure 2: Probing results for Qwen2.5-7B at the task level 3 . The input sequence below the graphs is one example (the results are averaged over the test set). The upper part indicates the maximum probing accuracy achieved at each token position $t$ . The bottom part shows the probing accuracies in

この論文を読む

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

Nubintでこの論文を読む

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