Omnigrok: Grokking Beyond Algorithmic Data

Ziming Liu, Eric J. Michaud, Max Tegmark
10/3/2022
183 citations
cs.LGcs.AIphysics.data-an

Official code: KindXiaoming/Omnigrok (66 stars, Jupyter Notebook, last commit 2023-02-24).

Abstract

Grokking, the unusual phenomenon for algorithmic datasets where generalization happens long after overfitting the training data, has remained elusive. We aim to understand grokking by analyzing the loss landscapes of neural networks, identifying the mismatch between training and test losses as the cause for grokking.

Show full abstract

We refer to this as the "LU mechanism" because training and test losses (against model weight norm) typically resemble "L" and "U", respectively. This simple mechanism can nicely explain many aspects of grokking: data size dependence, weight decay dependence, the emergence of representations, etc. Guided by the intuitive picture, we are able to induce grokking on tasks involving images, language and molecules. In the reverse direction, we are able to eliminate grokking for algorithmic datasets. We attribute the dramatic nature of grokking for algorithmic datasets to representation learning.

View on arXivView PDF

Code Implementations(1)

Omnigrok: Grokking Beyond Algorithmic Data

6615Jupyter NotebookFeb 24, 20233 years ago

Similar Papers

Cite this paper

@article{liu2022omnigrok,
  title  = {Omnigrok: Grokking Beyond Algorithmic Data},
  author = {Ziming Liu and Eric J. Michaud and Max Tegmark},
  year   = {2022},
  eprint = {2210.01117},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.01117}
}

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/2210.01117.svg)](https://codeofpaper.com/paper/2210.01117)

Discussion