Lune

ICLR2024Top-tier venue

Feature emergence via margin maximization: case studies in algebraic tasks

Depen Morwani, Benjamin L. Edelman, Costin-Andrei Oncescu, Rosie Zhao, Sham M. Kakade

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. (2023) and Chughtai et al. (2023) . More generally, we hope our techniques can help to foster a deeper understanding of why neural networks adopt specific computational strategies.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

20 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokking cites Towards Understanding Grokking: An Effective Theory of Representation Learning
  • Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokking cites Directional convergence and alignment in deep learning
  • Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokking cites Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit
  • Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokking cites Gradient Descent Maximizes the Margin of Homogeneous Neural Networks
  • Directional convergence and alignment in deep learning cites Gradient Descent Maximizes the Margin of Homogeneous Neural Networks
  • Uncovering a Universal Abstract Algorithm for Modular Addition in Neural Networks cites Towards Understanding Grokking: An Effective Theory of Representation Learning
  • Uncovering a Universal Abstract Algorithm for Modular Addition in Neural Networks cites Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokking
  • Uncovering a Universal Abstract Algorithm for Modular Addition in Neural Networks cites Grokking Group Multiplication with Cosets
  • Alternating Gradient Flows: A Theory of Feature Learning in Two-layer Neural Networks cites Pre-trained Large Language Models Use Fourier Features to Compute Addition
  • Alternating Gradient Flows: A Theory of Feature Learning in Two-layer Neural Networks cites Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce GrokkingKaifeng Lyu, Jikai Jin, Zhiyuan Li, Simon Shaolei Du et al.ICLR 2024 · 71 citations
  2. Pre-trained Large Language Models Use Fourier Features to Compute AdditionTianyi Zhou, Deqing Fu, Vatsal Sharan, Robin JiaNeurIPS 2024 · 48 citations
  3. Grokking Group Multiplication with CosetsDashiell Stander, Qinan Yu, Honglu Fan, Stella BidermanICML 2024 · 20 citations
  4. Alternating Gradient Flows: A Theory of Feature Learning in Two-layer Neural NetworksDaniel Kunin, Giovanni Luca Marchetti, Feng Chen, Dhruva Karkada et al.NeurIPS 2025 · 15 citations
  5. Uncovering a Universal Abstract Algorithm for Modular Addition in Neural NetworksGavin McCracken, Gabriela Moisescu-Pareja, Vincent Létourneau, Doina Precup et al.NeurIPS 2025 · 14 citations

Builds on15

  1. Solving Quantitative Reasoning Problems with Language ModelsAitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer et al.NeurIPS 2022 · 2,039 citations
  2. Gradient Descent Maximizes the Margin of Homogeneous Neural NetworksKaifeng Lyu, Jian LiICLR 2020 · 402 citations
  3. Towards Understanding Grokking: An Effective Theory of Representation LearningZiming Liu, Ouail Kitouni, Niklas Nolte, Eric J. Michaud et al.NeurIPS 2022 · 299 citations
  4. Directional convergence and alignment in deep learningZiwei Ji, Matus TelgarskyNeurIPS 2020 · 226 citations
  5. Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational LimitBoaz Barak, Benjamin L. Edelman, Surbhi Goel, Sham M. Kakade et al.NeurIPS 2022 · 220 citations

Related papers

  1. A Toy Model of Universality: Reverse Engineering how Networks Learn Group OperationsBilal Chughtai, Lawrence Chan, Neel NandaICML 2023 · 144 citations
  2. Sequential Group Composition: A Window into the Mechanics of Deep LearningGiovanni Luca Marchetti, Daniel Kunin, Adele Myers, Francisco Acosta et al.ICML 2026 · 8 citations
  3. FACT: a first-principles alternative to the Neural Feature Ansatz for how networks learn representationsEnric Boix Adserà, Neil Mallinar, James B. Simon, Misha BelkinICLR 2026 · 2 citations
  4. Discovering Group Structures via Unitary Representation LearningDongsung HuhICLR 2025
  5. Deep neural networks divide and conquer dihedral multiplicationSihui Wei, Gavin McCracken, Gabriela Moisescu-Pareja, Harley Wiltzer et al.ICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines