From Groups to Rings: Causal Evidence for Algebraic Decomposition in Grokked Transformers
Shurui Zheng, Fanhong Li, Zhixing Huang, Zixi Li, Lei Ji
NeurIPS page · OpenReview · Open on the map
Category: Interpretability & Model Adaptation › Transformer Algorithmic Decomposition · Type: new method · Keywords: grokking, transformer interpretability, algebraic decomposition, Wedderburn-Artin theorem, causal intervention, model analysis
Summary
The paper uses interchange intervention accuracy (IIA) to demonstrate that grokked Transformers decompose computation along Wedderburn-Artin components of target algebras.
Explained to a 5-year-old
Some computer programs called transformers sometimes learn a new skill all at once, which scientists call "grokking". The researchers wanted to see if these programs think in separate parts, like different rooms in a house. They looked at many math puzzles that work like simple games with numbers. They discovered that the transformers split their thinking so that each part works on its own math puzzle, and mistakes stay inside that part. This helps us understand how these programs learn and might make them easier to design in the future.
Explained to a 5-year-old, longer
A transformer is a kind of computer program that can read and write sequences of words. Sometimes when we train these programs, they suddenly start solving problems correctly, which is called grokking. The researchers wanted to understand why this sudden improvement happens. They looked at many different math games that involve simple number systems. These games are based on algebraic structures that mathematicians study. The scientists used a special way to see how the program splits its work into different parts. They found that the program naturally divides its thinking along the lines of these math structures. This means that each part of the program focuses on one particular math puzzle. When the program makes a mistake, the mistake stays inside that part and does not spread to others. This separation helps the program keep its different abilities independent. The researchers also looked at more complicated math where the rules do not commute. In those cases, only larger programs could manage to split their work correctly. Understanding this splitting can help designers create programs that learn more reliably.
For a technical reader
The study investigates how grokked transformer models organize their internal computations by examining algebraic decomposition. Using a causal intervention approach, the authors show that model activations align with Wedderburn-Artin components, leading to high accuracy and compartmentalized errors. The results reveal that larger models are needed for non-commutative settings, providing insight into scaling requirements for interpretable behavior.
Problem
Existing work has identified various algebraic representations in grokked Transformers, but it is unclear whether these representations lead to a systematic decomposition of computation across algebraic components. This paper investigates the underlying algebraic decomposition in such models.
Method
The authors employ a causal intervention technique that measures the impact of swapping activations across different algebraic components, allowing them to assess how computation is partitioned. They apply this analysis across multiple commutative algebras over finite fields and examine both commutative and non-commutative cases. The results show that computation aligns with Wedderburn components and that errors remain confined to specific components.
Results
Across 11 commutative algebras, the models achieve high accuracy (≥97%) and errors stay confined to specific components (about 3.8 times less likely to spill). In non-commutative settings, only larger models exhibit selective alignment, indicating a capacity requirement.
Contributions
The work provides causal evidence that grokked Transformers decompose computation according to Wedderburn-Artin components, unifying prior observations of Fourier and group representations. It also reveals that non-commutativity imposes a capacity threshold for this decomposition.
Limitations and assumptions
The analysis is restricted to the specific grokked transformer architectures examined and to the finite fields and groups studied, so generalizability to other models or algebras is not proven.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction