Lune

ACL Findings2026

Is Grokking Worthwhile? Functional Analysis and Transferability of Generalization Circuits in Transformers

Kaiyu He, Mian Zhang, Peilin Wu, Xinya Du, Zhiyu Chen

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 a 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. Our code and data have been released on GitHub. 1

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • How do Transformers Learn Implicit Reasoning? cites Grokking of Implicit Reasoning in Transformers: A Mechanistic Journey to the Edge of Generalization
  • Grokking of Implicit Reasoning in Transformers: A Mechanistic Journey to the Edge of Generalization cites Progress measures for grokking via mechanistic interpretability
  • To Grok or not to Grok: Disentangling Generalization and Memorization on Corrupted Algorithmic Datasets cites Progress measures for grokking via mechanistic interpretability
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on7

  1. Progress measures for grokking via mechanistic interpretabilityNeel Nanda, Lawrence Chan, Tom Lieberum, Jess Smith et al.ICLR 2023 · 54 citations
  2. Grokking of Implicit Reasoning in Transformers: A Mechanistic Journey to the Edge of GeneralizationBoshi Wang, Xiang Yue, Yu Su, Huan SunNeurIPS 2024 · 48 citations
  3. To Grok or not to Grok: Disentangling Generalization and Memorization on Corrupted Algorithmic DatasetsDarshil Doshi, Aritra Das, Tianyu He, Andrey GromovICLR 2024 · 23 citations
  4. How do Transformers Learn Implicit Reasoning?Jiaran Ye, Zijun Yao, Zhidian Huang, Liangming Pan et al.NeurIPS 2025 · 17 citations
  5. A Mechanistic Analysis of a Transformer Trained on a Symbolic Multi-Step Reasoning TaskJannik Brinkmann, Abhay Sheshadri, Victor Levoso, Paul Swoboda et al.ACL Findings 2024 · 3 citations

Related papers

  1. Grokking in the Wild: Data Augmentation for Real-World Multi-Hop Reasoning with TransformersRoman Abramov, Felix Steinbauer, Gjergji KasneciICML 2025
  2. Towards Understanding Grokking: An Effective Theory of Representation LearningZiming Liu, Ouail Kitouni, Niklas Nolte, Eric J. Michaud et al.NeurIPS 2022 · 299 citations
  3. Grokking in LLM Pretraining? Monitor Memorization-to-Generalization without TestZiyue Li, Chenrui Fan, Tianyi ZhouICLR 2026 · 11 citations
  4. On the Emergence of Implicit Curriculum in RLVR Learning DynamicsYu Huang, Zixin Wen, Yuejie Chi, Yuting Wei et al.ICML 2026 · 6 citations
  5. Is Grokking a Computational Glass Relaxation?Xiaotian Zhang, Yue Shang, Entao Yang, Ge ZhangNeurIPS 2025 · 8 citations
Dusk over the sea between two cliffs drawn in fine vertical lines