[Paper Review] Is Grokking Worthwhile? Functional Analysis and Transferability of Generalization Circuits in Transformers
The paper mechanistically analyzes grokking and Generalization Circuits in parameter-sharing Transformers, showing that grokking does not imply a new reasoning paradigm and that transferability to new facts is limited. It also demonstrates that with sufficient supervision, non-grokked models can match grokked ones.
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.
Motivation & Objective
- Motivate understanding of grokking and Generalization Circuits in transformers.
- Investigate whether grokked models outperform non-grokked ones on downstream tasks.
- Examine whether Generalization Circuits transfer to new facts and tasks.
- Assess the transferability of learned reasoning to unseen compositions and facts.
Proposed method
- Use a synthetic two-hop compositional reasoning dataset with ID and OOD splits.
- Trace internal reasoning via logit lens to identify Generalization Circuits.
- Compare grokked and non-grokked models under varying supervision regimes.
- Augment training with OOD facts to test mechanism versus behavior.
- Finetune pre-trained models on new atomic facts to assess transferability.

Experimental results
Research questions
- RQ1Do grokked and non-grokked transformers use the same reasoning paths on in-distribution and out-of-distribution compositional queries?
- RQ2Is the Generalization Circuit the cause of new reasoning capabilities or merely a memorization integration process?
- RQ3How transferable is a Generalization Circuit to unseen facts or new compositional scenarios?
- RQ4Can full supervision or targeted augmentation replicate grokked behavior without grokking?
- RQ5What limits transferability of generalized reasoning from grokked transformers to new knowledge?
Key findings
- Non-grokked models follow the same reasoning path as grokked models on in-distribution data and can reach equivalent transfer performance with sufficient supervision.
- Grokking is not necessarily tied to a Generalization Circuit; a model can exhibit behavior resembling grokking without forming the intended mechanism.
- Even after forming a Generalization Circuit, transferability to novel facts remains limited and may require additional grokking or substantial data for new facts.
- Behavioral grokking can occur without the underlying circuit, implying a dissociation between observed grokking and mechanism formation.
- A mature Generalization Circuit aids fast integration of new facts in some setups but does not guarantee broad compositional mastery across domains.
- Fake grokking models memorize new facts but fail to support compositional reasoning with those facts.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.