Lune

ICML2026Top-tier venue

Deep neural networks divide and conquer dihedral multiplication

Sihui Wei, Gavin McCracken, Gabriela Moisescu-Pareja, Harley Wiltzer, Doina Precup, Irina Rish, Jonathan Love

Abstract

We find multilayer perceptrons and transformers both universally learn an instantiation of the same divide-and-conquer algorithm that requires only a logarithmic number of neural representations to solve dihedral multiplication. Clustering neurons based on similar activation behaviour reveals remarkably clear structure: each neural representation corresponds to a Cayley graph. To our knowledge, this is the first work that fully characterizes and describes all neural representations that are learnable on a dataset, while prior work on group multiplications studied neuron-level behavior, or preliminarily investigated cluster behavior. Thus, we can understand the algorithm networks universally learn at three levels of abstraction: 1) Neurons activate on coset or approximate coset structure of the dihedral group. 2) Groups of neurons together form neural representations that act to divide the dataset into different subproblems, being Cayley graphs, where the equivalence class of the answer is computed. 3) The global algorithm then linearly combines each neural representation (subproblem) together at the logits. This work provides the community with a deep case study and a well-understood toy model for interpretability, and makes progress toward proving the conjecture that networks trained via stochastic gradient methods divide and conquer all group multiplication tasks.

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.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Feature emergence via margin maximization: case studies in algebraic tasks cites Progress measures for grokking via mechanistic interpretability
  • Feature emergence via margin maximization: case studies in algebraic tasks cites The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks
  • Feature emergence via margin maximization: case studies in algebraic tasks cites A Toy Model of Universality: Reverse Engineering how Networks Learn Group Operations
  • The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks cites Progress measures for grokking via mechanistic interpretability
  • The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks cites A Toy Model of Universality: Reverse Engineering how Networks Learn Group Operations
  • A Toy Model of Universality: Reverse Engineering how Networks Learn Group Operations cites Progress measures for grokking via mechanistic interpretability
  • Learning to grok: Emergence of in-context learning and skill composition in modular arithmetic tasks cites Progress measures for grokking via mechanistic interpretability
  • Learning to grok: Emergence of in-context learning and skill composition in modular arithmetic tasks cites The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on10

  1. The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural NetworksZiqian Zhong, Ziming Liu, Max Tegmark, Jacob AndreasNeurIPS 2023 · 181 citations
  2. A Toy Model of Universality: Reverse Engineering how Networks Learn Group OperationsBilal Chughtai, Lawrence Chan, Neel NandaICML 2023 · 144 citations
  3. Progress measures for grokking via mechanistic interpretabilityNeel Nanda, Lawrence Chan, Tom Lieberum, Jess Smith et al.ICLR 2023 · 54 citations
  4. Learning to grok: Emergence of in-context learning and skill composition in modular arithmetic tasksTianyu He, Darshil Doshi, Aritra Das, Andrey GromovNeurIPS 2024 · 52 citations
  5. Feature emergence via margin maximization: case studies in algebraic tasksDepen Morwani, Benjamin L. Edelman, Costin-Andrei Oncescu, Rosie Zhao et al.ICLR 2024 · 35 citations

Related papers

  1. 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
  2. Grokking Group Multiplication with CosetsDashiell Stander, Qinan Yu, Honglu Fan, Stella BidermanICML 2024 · 20 citations
  3. 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
  4. On The Geometry and Topology of Representations: the Manifolds of Modular AdditionGabriela Moisescu-Pareja, Gavin McCracken, Harley Wiltzer, Colin Daniels et al.ICLR 2026 · 3 citations
  5. Composing Global Solutions to Reasoning Tasks via Algebraic Objects in Neural NetsYuandong TianNeurIPS 2025 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines