Skip to main content
QUICK REVIEW

[論文レビュー] Is Grokking Worthwhile? Functional Analysis and Transferability of Generalization Circuits in Transformers

Kaiyu He, Zhang Mian|arXiv (Cornell University)|Jan 14, 2026
Topic ModelingComputer Science被引用数 1
ひとこと要約

この論文は、パラメータ共有型トランスフォーマーにおける grokking および Generalization Circuits を機序的に分析し、grokking が新たな推論パラダイムを意味しないこと、そして新しい事実への移行性が限定的であることを示す。十分な監視があれば、非 grokked モデルは grokked モデルと同等になり得ることも示している。

ABSTRACT

While Large Language Models (LLMs) excel at factual retrieval, they often struggle with the "curse of two-hop reasoning" in compositional tasks. Recent research suggests that parameter-sharing transformers can bridge this gap by forming a "Generalization Circuit" during a prolonged "grokking" phase. A fundamental question arises: Is a grokked model superior to its non-grokked counterparts on downstream tasks? Furthermore, is the extensive computational cost of waiting for the grokking phase worthwhile? In this work, we conduct a mechanistic study to evaluate the Generalization Circuit's role in knowledge assimilation and transfer. We demonstrate that: (i) The inference paths established by non-grokked and grokked models for in-distribution compositional queries are identical. This suggests that the "Generalization Circuit" does not represent the sudden acquisition of a new reasoning paradigm. Instead, we argue that grokking is the process of integrating memorized atomic facts into an naturally established reasoning path. (ii) Achieving high accuracy on unseen cases after prolonged training and the formation of a certain reasoning path are not bound; they can occur independently under specific data regimes. (iii) Even a mature circuit exhibits limited transferability when integrating new knowledge, suggesting that "grokked" Transformers do not achieve a full mastery of compositional logic.

研究の動機と目的

  • transformers における grokking と Generalization Circuits の理解を動機づける。
  • 下流タスクで grokked モデルが非 grokked モデルを上回るかを調査する。
  • Generalization Circuits が新しい事実やタスクへ転移するかを検討する。
  • 学習した推論の unseen compositions and facts への転移性を評価する。

提案手法

  • ID と OOD スプリットを持つ合成の二段階推論データセットを使用する。
  • Generalization Circuits を特定するために logit lens を用いて内部推論を追跡する。
  • 異なる supervision レジーム下で grokked および non-grokked モデルを比較する。
  • mechanism か behavior をテストするために OOD facts を訓練に追加する。
  • 新しい原子事実に対する転移性を評価するために事前学習済みモデルをファインチューンする。
Figure 1: Mechanistic Comparison Between traditional transformer and parameter-sharing transformer. (Left) Standard Transformers struggle with representational mismatch across independent layers and are unable to generalize to compositional reasoning. (Right) Transformer with shared parameter resolv
Figure 1: Mechanistic Comparison Between traditional transformer and parameter-sharing transformer. (Left) Standard Transformers struggle with representational mismatch across independent layers and are unable to generalize to compositional reasoning. (Right) Transformer with shared parameter resolv

実験結果

リサーチクエスチョン

  • RQ1in-distribution および out-of-distribution の組成的クエリに対して、grokked と non-grokked トランスフォーマーは同じ推論経路を使用するか。
  • RQ2Generalization Circuit は新しい推論能力の原因か、それとも単なる記憶統合プロセスか。
  • RQ3 unseen facts や新しい組成シナリオへの Generalization Circuit の転移性はどの程度か。
  • RQ4 full supervision またはターゲットを絞った augmentation は grokking なしに grokked の挙動を再現できるか。
  • RQ5grokked トランスフォーマーから新しい知識へ一般化推論を転送する際の制限は何か。

主な発見

  • non-grokked モデルはイン・ディストリビューションデータで grokked モデルと同じ推論経路をたどり、十分な supervision で同等の転送性能に達し得る。
  • grokking は Generalization Circuit に必ずしも結びつかず、モデルは本来の機構を形成せずに grokking に似た挙動を示すことがあり得る。
  • Generalization Circuit を形成した後でも新奇な事実への転送性は限定的であり、新しい事実には追加の grokking や大量のデータが必要となる可能性がある。
  • 行動的 grokking は基盤となる回路なしに生じ得るため、観測された grokking と機構形成との間には解離がある。
  • 成熟した Generalization Circuit は一部の設定で新しい事実の迅速な統合を助けるが、領域横断の広い組成的熟達を保証するものではない。
  • Fake grokking モデルは新しい事実を記憶するが、それらの事実を用いた組成的推論を支援できない。
Figure 2: Transformer model “Grokking” under different data regime.
Figure 2: Transformer model “Grokking” under different data regime.

この論文を読む

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

Nubintでこの論文を読む

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