Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalization
AI-generated Key Points
⚠The license of the paper does not allow us to build upon its content and the key points are generated using the paper metadata rather than the full article.
- Authors Boshi Wang, Xiang Yue, Yu Su, and Huan Sun explore transformers' capabilities in learning implicit reasoning over parametric knowledge
- Focus on two key reasoning types: composition and comparison
- Transformers can learn implicit reasoning after extensive training beyond overfitting
- Varying levels of generalization observed across different types of reasoning tasks
- Transformers struggle with systematic generalization for composition tasks but excel in comparison tasks
- "Grokking" concept involves forming a generalizing circuit within the transformer model
- Efficiency of the generalizing circuit plays a crucial role in the model's ability to reason implicitly
- Connection between systematicity and configuration of the generalizing circuit explored
- Insights provided for optimizing data and training setups to enhance implicit reasoning induction
- Potential enhancements to transformer architecture suggested by promoting cross-layer knowledge sharing
- Comparison between GPT-4-Turbo and Gemini-1.5-Pro models highlights power of fully grokked transformers for complex reasoning tasks
Authors: Boshi Wang, Xiang Yue, Yu Su, Huan Sun
Abstract: We study whether transformers can learn to implicitly reason over parametric knowledge, a skill that even the most capable language models struggle with. Focusing on two representative reasoning types, composition and comparison, we consistently find that transformers can learn implicit reasoning, but only through grokking, i.e., extended training far beyond overfitting. The levels of generalization also vary across reasoning types: when faced with out-of-distribution examples, transformers fail to systematically generalize for composition but succeed for comparison. We delve into the model's internals throughout training, conducting analytical experiments that reveal: 1) the mechanism behind grokking, such as the formation of the generalizing circuit and its relation to the relative efficiency of generalizing and memorizing circuits, and 2) the connection between systematicity and the configuration of the generalizing circuit. Our findings guide data and training setup to better induce implicit reasoning and suggest potential improvements to the transformer architecture, such as encouraging cross-layer knowledge sharing. Furthermore, we demonstrate that for a challenging reasoning task with a large search space, GPT-4-Turbo and Gemini-1.5-Pro based on non-parametric memory fail badly regardless of prompting styles or retrieval augmentation, while a fully grokked transformer can achieve near-perfect accuracy, showcasing the power of parametric memory for complex reasoning.
Ask questions about this paper to our AI assistant
You can also chat with multiple papers at once here.
⚠The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.
Assess the quality of the AI-generated content by voting
Score: 0
Why do we need votes?
Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.
The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.
⚠The license of this specific paper does not allow us to build upon its content and the summarizing tools will be run using the paper metadata rather than the full article. However, it still does a good job, and you can also try our tools on papers with more open licenses.
Similar papers summarized with our AI tools
Navigate through even more similar papers through a
tree representationLook for similar papers (in beta version)
By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.
Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.