[2311.07568] Feature emergence via margin maximization: case studies in algebraic tasks
Abstract:Understanding the internal representations learned by neural networks is a cornerstone challenge in the science of machine learning. While there have been significant recent strides in some cases towards understanding how neural networks implement specific target functions, this paper explores a complementary question -- why do networks arrive at particular computational strategies? Our inquiry focuses on the algebraic learning tasks of modular addition, sparse parities, and finite group operations. Our primary theoretical findings analytically characterize the features learned by stylized neural networks for these algebraic tasks. Notably, our main technique demonstrates how the principle of margin maximization alone can be used to fully specify the features learned by the network. Specifically, we prove that the trained networks utilize Fourier features to perform modular addition and employ features corresponding to irreducible group-theoretic representations to perform compositions in general groups, aligning closely with the empirical observations of Nanda et al. and Chughtai et al. More generally, we hope our techniques can help to foster a deeper understanding of why neural networks adopt specific computational strategies.
Feature emergence via margin maximization: case studies in algebraic tasks Depen Morwani, Benjamin L. Edelman∗, Costin-Andrei Oncescu∗, Rosie Zhao∗, Sham Kakade Harvard University {dmorwani,bedelman,concescu,rosiezhao}@g.harvard.edu, arXiv:2311.07568v2 [cs.LG] 19 Feb 2024…
related reading
- Zoom In: An Introduction to Circuitsdistill.pub
- Toy Models of Superpositiontransformer-circuits.pub
- Neural networks and deep learningneuralnetworksanddeeplearning.com
- [2602.16849] On the Mechanism and Dynamics of Modular Addition: Fourier Features, Lottery Ticket, and Grokkingarxiv.org
- Feature Visualizationdistill.pub
- On neural scaling and the quanta hypothesisericjmichaud.com
- nn-notes.pdfboris-hanin.github.io
- A Spectral Condition for Feature Learningarxiv.org
- Investigating the learning coefficient of modular addition: hackathon project — LessWronglesswrong.com
- Neural networks and deep learningneuralnetworksanddeeplearning.com
- [2604.21691] There Will Be a Scientific Theory of Deep Learningarxiv.org
- [2608.13335] Neural Quadratic Forms: A Unified Minimal Model for Sudden Learning and Scaling Lawsarxiv.org