ICLR 2023top-25%108 citations

Omnigrok: Grokking Beyond Algorithmic Data

Ziming Liu, Eric J Michaud, Max Tegmark

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. 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, although the grokking signals are sometimes less dramatic. We attribute the dramatic nature of grokking for algorithmic datasets to representation learning.

grokkingloss landscapeneural dynamicsrepresentation learninginitialization
BibTeX
@inproceedings{
liu2023omnigrok,
title={Omnigrok: Grokking Beyond Algorithmic Data},
author={Ziming Liu and Eric J Michaud and Max Tegmark},
booktitle={The Eleventh International Conference on Learning Representations },
year={2023},
url={https://openreview.net/forum?id=zDiHoIWa0q1}
}