Lune

ICML2024Top-tier venue

Deep Networks Always Grok and Here is Why

Ahmed Imtiaz Humayun, Randall Balestriero, Richard G. Baraniuk

Abstract

Grokking, or delayed generalization, is a phenomenon where generalization in a deep neural network (DNN) occurs long after achieving near zero training error. Previous studies have reported the occurrence of grokking in specific controlled settings, such as DNNs initialized with large-norm parameters or transformers trained on algorithmic datasets. We demonstrate that grokking is actually much more widespread and materializes in a wide range of practical settings, such as training of a convolutional neural network (CNN) on CIFAR10 or a Resnet on Imagenette. We introduce the new concept of delayed robustness, whereby a DNN groks adversarial examples and becomes robust, long after interpolation and/or generalization. We develop an analytical explanation for the emergence of both delayed generalization and delayed robustness based on the local complexity of a DNN's input-output mapping. Our local complexity measures the density of so-called linear regions (aka, spline partition regions) that tile the DNN input space and serves as a utile progress measure for training. We provide the first evidence that, for classification problems, the linear regions undergo a phase transition during training whereafter they migrate away from the training samples (making the DNN mapping smoother there) and towards the decision boundary (making the DNN mapping less smooth there). Grokking occurs post phase transition as a robust partition of the input space thanks to the linearization of the DNN mapping around the training points. Website: https://bit.ly/grok-adversarial

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.

15 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

  • Benign Overfitting and Grokking in ReLU Networks for XOR Cluster Data cites Progress measures for grokking via mechanistic interpretability
  • Benign Overfitting and Grokking in ReLU Networks for XOR Cluster Data cites Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit
  • Progress measures for grokking via mechanistic interpretability cites Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit
  • Explaining Grokking and Information Bottleneck through Neural Collapse Emergence cites Benign Overfitting and Grokking in ReLU Networks for XOR Cluster Data
  • Explaining Grokking and Information Bottleneck through Neural Collapse Emergence cites Progress measures for grokking via mechanistic interpretability
  • Explaining Grokking and Information Bottleneck through Neural Collapse Emergence cites Flatness is Necessary, Neural Collapse is Not: Rethinking Generalization via Grokking
  • Flatness is Necessary, Neural Collapse is Not: Rethinking Generalization via Grokking cites Progress measures for grokking via mechanistic interpretability
  • Flatness is Necessary, Neural Collapse is Not: Rethinking Generalization via Grokking cites Towards Understanding Sharpness-Aware Minimization
  • Grokking in LLM Pretraining? Monitor Memorization-to-Generalization without Test cites Progress measures for grokking via mechanistic interpretability
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers15

  1. Understanding Visual Feature Reliance through the Lens of ComplexityThomas Fel, Louis Béthune, Andrew K. Lampinen, Thomas Serre et al.NeurIPS 2024 · 20 citations
  2. Learning Transferable Features for Implicit Neural RepresentationsKushal Kardam Vyas, Ahmed Imtiaz Humayun, Aniket Dashpute, Richard G. Baraniuk et al.NeurIPS 2024 · 18 citations
  3. Grokking in LLM Pretraining? Monitor Memorization-to-Generalization without TestZiyue Li, Chenrui Fan, Tianyi ZhouICLR 2026 · 11 citations
  4. Flatness is Necessary, Neural Collapse is Not: Rethinking Generalization via GrokkingTing Han, Linara Adilova, Henning Petzka, Jens Kleesiek et al.NeurIPS 2025 · 9 citations
  5. Explaining Grokking and Information Bottleneck through Neural Collapse EmergenceKeitaro Sakamoto, Issei SatoICLR 2026 · 5 citations

Builds on7

  1. Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacksFrancesco Croce, Matthias HeinICML 2020 · 2,337 citations
  2. 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
  3. Towards Understanding Sharpness-Aware MinimizationMaksym Andriushchenko, Nicolas FlammarionICML 2022 · 190 citations
  4. Progress measures for grokking via mechanistic interpretabilityNeel Nanda, Lawrence Chan, Tom Lieberum, Jess Smith et al.ICLR 2023 · 54 citations
  5. Benign Overfitting and Grokking in ReLU Networks for XOR Cluster DataZhiwei Xu, Yutong Wang, Spencer Frei, Gal Vardi et al.ICLR 2024 · 39 citations

Related papers

  1. To Grok Grokking: Provable Grokking in Ridge RegressionMingyue Xu, Gal Vardi, Itay SafranICML 2026
  2. Grokking as a First Order Phase Transition in Two Layer NetworksNoa Rubin, Inbar Seroussi, Zohar RingelICLR 2024 · 43 citations
  3. Omnigrok: Grokking Beyond Algorithmic DataZiming Liu, Eric J. Michaud, Max TegmarkICLR 2023 · 8 citations
  4. Grokking Beyond the Euclidean Norm of Model ParametersPascal Tikeng Notsawo Jr., Guillaume Dumas, Guillaume RabusseauICML 2025
  5. Let Me Grok for You: Accelerating Grokking via Embedding Transfer from a Weaker ModelZhiwei Xu, Zhiyu Ni, Yixin Wang, Wei HuICLR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines