Top Qs
Timeline
Chat
Perspective

Grokking (machine learning)

Phase transition in machine learning From Wikipedia, the free encyclopedia

Grokking (machine learning)
Remove ads

In machine learning, grokking, or delayed generalization, is a phenomenon where a model abruptly transitions from overfitting (performing well only on training data) to generalizing (performing well on both training and test data), after many training iterations of seemingly little progress. This contrasts with typical learning, where generalization occurs gradually alongside improved performance on training data.[2][3][4]

Thumb
The blue loss curves represent early memorization of the training set (overfitting), and the red curves show late generalization, with the learning of a modular addition algorithm that works with unseen inputs.[1]
Remove ads

History

Grokking was introduced in January 2022 by OpenAI researchers investigating how neural networks perform calculations. It is derived from the word grok coined by Robert Heinlein in his novel Stranger in a Strange Land.[1]

Interpretations

Summarize
Perspective

Grokking can be understood as a phase transition during the training process.[5] In particular, recent work has shown that grokking may be due to a complexity phase transition in the model during training.[6] While grokking has been thought of as largely a phenomenon of relatively shallow models, grokking has been observed in deep neural networks and non-neural models and is the subject of active research.[7][8][9][10]

One potential explanation is that the weight decay (a component of the loss function that penalizes higher values of the neural network parameters, also called regularization) slightly favors the general solution that involves lower weight values, but that is also harder to find. According to Neel Nanda, the process of learning the general solution may be gradual, even though the transition to the general solution occurs more suddenly later.[1]

Recent theories[11][12] have hypothesized that grokking occurs when neural networks transition from a "lazy training"[13] regime where the weights do not deviate far from initialization, to a "rich" regime where weights abruptly begin to move in task-relevant directions. Follow-up empirical and theoretical work[14] has accumulated evidence in support of this perspective, and it offers a unifying view of earlier work as the transition from lazy to rich training dynamics is known to arise from properties of adaptive optimizers,[15] weight decay,[16] initial parameter weight norm,[9] and more.

Remove ads

See also

References

Loading related searches...

Wikiwand - on

Seamless Wikipedia browsing. On steroids.

Remove ads