The Ohio State University
Comparative Investigation of Grokking in Transformers and Beyond: A Study on Reasoning
Abstract
dc:descriptionLarge Language Models (LLMs) have transformed natural language understanding and generation but still face significant challenges in logical deduction, systematic reasoning, and generalization. These reasoning tasks often reveal weaknesses in current models, resulting in hallucinations and inconsistent outputs despite fluent language. Existing approaches mainly address reasoning capabilities through high-level interventions, overlooking core model limitations. Grokking—where models unexpectedly generalize after prolonged training beyond overfitting—offers a promising avenue for studying reasoning dynamics. This research systematically explores how dataset design and model architectures influence grokking’s emergence and efficiency. The study finds that GPT and LLaMA architectures exhibited grokking on the comparison task, though LLaMA did so more slowly than GPT. In contrast, RWKV and Mamba failed to grok under identical conditions. The research also examines dataset characteristics affecting grokking performance, observing that a minimum threshold of distinct entities is essential for effective grokking, while lower attribute value ranges accelerate generalization. These findings deepen understanding of reasoning tasks’ interaction with training dynamics and provide practical guidance for enhancing generalization in language models.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Level thesis:degree_level
- masters
- Discipline thesis:degree_discipline
- Computer Science and Engineering
- Grantor dc:publisher
- The Ohio State University
- Year dc:date
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Kanaka, Nikhil Pavan
- Advisor dc:contributor.advisor
-
- Ramnath, Rajiv
Subjects
dc:subject × 7Rights
dc:rights- Statement dc:rights
-
- unrestricted
- This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://rave.ohiolink.edu/etdc/view?acc_num=osu1735823305256322