Lune

ICML2023Top-tier venue

A Toy Model of Universality: Reverse Engineering how Networks Learn Group Operations

Bilal Chughtai, Lawrence Chan, Neel Nanda

Abstract

Universality is a key hypothesis in mechanistic interpretability -- that different models learn similar features and circuits when trained on similar tasks. In this work, we study the universality hypothesis by examining how small neural networks learn to implement group composition. We present a novel algorithm by which neural networks may implement composition for any finite group via mathematical representation theory. We then show that networks consistently learn this algorithm by reverse engineering model logits and weights, and confirm our understanding using ablations. By studying networks of differing architectures trained on various groups, we find mixed evidence for universality: using our algorithm, we can completely characterize the family of circuits and features that networks learn on this task, but for a given network the precise circuits learned -- as well as the order they develop -- are arbitrary.

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.

46 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 Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit
  • Towards Best Practices of Activation Patching in Language Models: Metrics and Methods cites The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks
  • Towards Best Practices of Activation Patching in Language Models: Metrics and Methods cites Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit
  • The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks cites Towards Understanding Grokking: An Effective Theory of Representation Learning
  • The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks cites Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit
  • Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit cites Language Models are Few-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers46

  1. Towards Best Practices of Activation Patching in Language Models: Metrics and MethodsFred Zhang, Neel NandaICLR 2024 · 233 citations
  2. The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural NetworksZiqian Zhong, Ziming Liu, Max Tegmark, Jacob AndreasNeurIPS 2023 · 181 citations
  3. Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity TrackingNikhil Prakash, Tamar Rott Shaham, Tal Haklay, Yonatan Belinkov et al.ICLR 2024 · 113 citations
  4. Successor Heads: Recurring, Interpretable Attention Heads In The WildRhys Gould, Euan Ong, George Ogden, Arthur ConmyICLR 2024 · 75 citations
  5. 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

Builds on8

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Towards Understanding Grokking: An Effective Theory of Representation LearningZiming Liu, Ouail Kitouni, Niklas Nolte, Eric J. Michaud et al.NeurIPS 2022 · 299 citations
  3. Revisiting Model Stitching to Compare Neural RepresentationsYamini Bansal, Preetum Nakkiran, Boaz BarakNeurIPS 2021 · 253 citations
  4. 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
  5. Thinking Like TransformersGail Weiss, Yoav Goldberg, Eran YahavICML 2021 · 183 citations

Related papers

  1. Towards a Unified and Verified Understanding of Group-Operation NetworksWilson Wu, Louis Jaburi, Jacob Drori, Jason GrossICLR 2025
  2. Deep neural networks divide and conquer dihedral multiplicationSihui Wei, Gavin McCracken, Gabriela Moisescu-Pareja, Harley Wiltzer et al.ICML 2026
  3. Grokking Group Multiplication with CosetsDashiell Stander, Qinan Yu, Honglu Fan, Stella BidermanICML 2024 · 20 citations
  4. Validating Mechanistic Interpretations: An Axiomatic ApproachNils Palumbo, Ravi Mangal, Zifan Wang, Saranya Vijayakumar et al.ICML 2025
  5. Patterning: The Dual of InterpretabilityGeorge Wang, Daniel MurfetICML 2026 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines