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
一句话总结

该论文在参数共享 Transformer 中通过机制性分析 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.

研究动机与目标

  • 理解 Transformer 中 grokking 与 Generalization Circuits 的动机与意义。
  • 探究 grokked 模型在下游任务上是否优于非 grokked 模型。
  • 考察 Generalization Circuits 是否对新事实和任务具备迁移性。
  • 评估学到的推理在未见组合与事实中的可迁移性。

提出的方法

  • 使用带有 ID 和 OOD 拆分的合成两跳组组合推理数据集。
  • 通过 logit lens 跟踪内部推理,识别 Generalization Circuits。
  • 在不同监督程度下比较 grokked 与 non-grokked 模型。
  • 通过对 OOD 事实的增强训练来测试机制与行为的区别。
  • 在新原子事实上对预训练模型进行微调以评估可迁移性。
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

实验结果

研究问题

  • RQ1grokked 与 non-grokked Transformer 在入分布与异分布的组合查询上是否使用相同的推理路径?
  • RQ2Generalization Circuit 是新推理能力的原因还是仅仅是记忆整合过程?
  • RQ3Generalization Circuit 对未见事实或新组合情景的可迁移性如何?
  • RQ4完全监督或有针对性的增强是否能在不 grokking 的情况下复制 grokked 行为?
  • RQ5从 grokked Transformer 到新知识的通用推理的可迁移性有什么极限?

主要发现

  • 在入分布数据上,非 grokked 模型遵循与 grokked 模型相同的推理路径,并在充分监督下达到等效的迁移性能。
  • Grokking 不一定与 Generalization Circuit 绑定;一个模型在未形成预期机制的情况下也可能表现出类似 grokking 的行为。
  • 即使形成了 Generalization Circuit,对新事实的迁移能力仍然有限,可能需要额外的 grokking 或大量数据来处理新事实。
  • 行为上的 grokking 可能在没有底层电路的情况下发生,表明观测到的 grokking 与机制形成之间存在分离。
  • 成熟的 Generalization Circuit 在某些设置下有助于快速整合新事实,但并不保证在跨领域的广泛组合掌握。
  • 假冒 grokking 的模型记忆了新事实,但不能以这些事实支持组合推理。
Figure 2: Transformer model “Grokking” under different data regime.
Figure 2: Transformer model “Grokking” under different data regime.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。