Grokking at the Edge of Linear Separability

Alon Beck, Noam Levi, Yohai Bar-Sinai
10/6/2024
stat.MLcond-mat.dis-nncs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

We investigate the phenomenon of grokking -- delayed generalization accompanied by non-monotonic test loss behavior -- in a simple binary logistic classification task, for which "memorizing" and "generalizing" solutions can be strictly defined. Surprisingly, we find that grokking arises naturally even in this minimal model when the parameters of the problem are close to a critical point, and provide both empirical and analytical insights into its mechanism. Concretely, by appealing to the implicit bias of gradient descent, we show that logistic regression can exhibit grokking when the training dataset is nearly linearly separable from the origin and there is strong noise in the perpendicular directions. The underlying reason is that near the critical point, "flat" directions in the loss landscape with nearly zero gradient cause training dynamics to linger for arbitrarily long times near quasi-stable solutions before eventually reaching the global minimum. Finally, we highlight similarities between our findings and the recent literature, strengthening the conjecture that grokking generally occurs in proximity to the interpolation threshold, reminiscent of critical phenomena often observed in physical systems.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{beck2024grokking,
  title  = {Grokking at the Edge of Linear Separability},
  author = {Alon Beck and Noam Levi and Yohai Bar-Sinai},
  year   = {2024},
  eprint = {2410.04489},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.04489v2},
  journal = {ICML 2024 2024}
}

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

Discussion