Composing Global Solutions to Reasoning Tasks via Algebraic Objects in Neural Nets
Not on the map. Why?
Abstract (arXiv)
We prove rich algebraic structures of the solution space for 2-layer neural networks with quadratic activation and L2 loss, trained on reasoning tasks in Abelian group (e.g., modular addition). Such a rich structure enables analytical construction of global optimal solutions from partial solutions that only satisfy part of the loss, despite its high nonlinearity. We coin the framework as CoGS (emphunderlineComposing underlineGlobal underlineSolutions). Specifically, we show that the weight space over different numbers of hidden nodes of the 2-layer network is equipped with a semi-ring algebraic structure, and the loss function to be optimized consists of sum potentials, which are ring homomorphisms, allowing partial solutions to be composed into global ones by ring addition and multiplication. Our experiments show that around 95% of the solutions obtained by gradient descent match exactly our theoretical constructions. Although the global solutions constructed only required a small number of hidden nodes, our analysis on gradient dynamics shows that overparameterization asymptotically decouples training dynamics and is beneficial. We further show that training dynamics favors simpler solutions under weight decay, and thus high-order global solutions such as perfect memorization are unfavorable. The code is open sourced at https://github.com/facebookresearch/luckmatters/tree/yuandong3/ssl/real-dataset.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 32 of its 40 references that are in the map. First posted on arXiv 2 Oct 2024.
Builds on
32 of 40 references.
References · 32
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2020GLU Variants Improve Transformercited by 1,724
- 2021Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gaugescited by 1,131
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
- 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 965
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
- 2017Lifelong Learning with Dynamically Expandable Networkscited by 689
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
- 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 399
- 2024TravelPlanner: A Benchmark for Real-World Planning with Language Agentscited by 385
- 2018Slimmable Neural Networkscited by 301
20 more
- 2022Transformers Learn Shortcuts to Automatacited by 260
- 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 256
- 2021Primer: Searching for Efficient Transformers for Language Modelingcited by 162
- 2023The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networkscited by 153
- 2024Physics of Language Models: Part 2.1, Grade-School Math and the Hidden Reasoning Processcited by 107
- 2023Explaining grokking through circuit efficiencycited by 105
- 2018On the Power of Over-parametrization in Neural Networks with Quadratic Activationcited by 102
- 2023Grokking modular arithmeticcited by 77
- 2024Learning and Leveraging World Models in Visual Representation Learningcited by 71
- 2024Alice in Wonderland: Simple Tasks Showing Complete Reasoning Breakdown in State-Of-the-Art Large Language Modelscited by 67
- 2024ReLU2 Wins: Discovering Efficient Activation Functions for Sparse LLMscited by 66
- 2019Splitting Steepest Descent for Growing Neural Architecturescited by 52
- 2024Pre-trained Large Language Models Use Fourier Features to Compute Additioncited by 38
- 2023Feature emergence via margin maximization: case studies in algebraic taskscited by 33
- 2023Emergence of Maps in the Memories of Blind Navigation Agentscited by 31
- 2023Emergent Representations of Program Semantics in Language Models Trained on Programscited by 28
- 2024Unified View of Grokking, Double Descent and Emergent Abilities: A Perspective from Circuits Competitioncited by 23
- 2024When Can Transformers Count to n?cited by 22
- 2020Backward Feature Correction: How Deep Learning Performs Deep (Hierarchical) Learningcited by 18
- 2023Counting and Algorithmic Generalization with Transformerscited by 11
Built on by
Citing papers per year: 2025: 4; 2026: 1.
5 papers.
- 2025Provable Scaling Laws of Feature Emergence from Learning Dynamics of Grokkingcited by 14
- 2025Unlocking Out-of-Distribution Generalization in Transformers via Recursive Latent Space Reasoningcited by 5
- 2025Distributional Biases in Post-Training: A Markovian Analysis of Reasoning Trajectoriescited by 3
- 2025Why Neural Network Can Discover Symbolic Structures with Gradient-based Training: An Algebraic and Geometric Foundation for Neurosymbolic Reasoningcited by 1
- 2026Assign and Add: A Mechanistic Study of Compositional Arithmeticcited by 0
- 2026Assign and Add: A Mechanistic Study of Compositional Arithmetic29 May 2026
- 2025Distributional Biases in Post-Training: A Markovian Analysis of Reasoning Trajectories10 Nov 2025
- 2025Unlocking Out-of-Distribution Generalization in Transformers via Recursive Latent Space Reasoning15 Oct 2025
- 2025Provable Scaling Laws of Feature Emergence from Learning Dynamics of Grokking25 Sep 2025
- 2025Why Neural Network Can Discover Symbolic Structures with Gradient-based Training: An Algebraic and Geometric Foundation for Neurosymbolic Reasoning26 Jun 2025