Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasets

Alethea Power, Yuri Burda, Harri Edwards, Igor Babuschkin, Vedant Misra
1/6/2022
cs.LG

Official code: openai/grok (4,266 stars, MIT, last commit 2024-03-19).

Abstract

In this paper we propose to study generalization of neural networks on small algorithmically generated datasets. In this setting, questions about data efficiency, memorization, generalization, and speed of learning can be studied in great detail. In some situations we show that neural networks learn through a process of "grokking" a pattern in the data, improving generalization performance from random chance level to perfect generalization, and that this improvement in generalization can happen well past the point of overfitting. We also study generalization as a function of dataset size and find that smaller datasets require increasing amounts of optimization for generalization. We argue that these datasets provide a fertile ground for studying a poorly understood aspect of deep learning: generalization of overparametrized neural networks beyond memorization of the finite training dataset.

View on arXivView PDF

Code Implementations(1)

openai/grokOfficial100%
MIT
4,266591Shell, PythonApr 12, 20212 years agoMIT

Similar Papers

Cite this paper

@article{power2022grokking,
  title  = {Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasets},
  author = {Alethea Power and Yuri Burda and Harri Edwards and Igor Babuschkin and Vedant Misra},
  year   = {2022},
  eprint = {2201.02177},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.02177}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.02177.svg)](https://codeofpaper.com/paper/2201.02177)

Discussion