English

Grokking at the Edge of Linear Separability

Machine Learning 2025-07-22 v2 Disordered Systems and Neural Networks Machine Learning Mathematical Physics math.MP

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.

Keywords

Cite

@article{arxiv.2410.04489,
  title  = {Grokking at the Edge of Linear Separability},
  author = {Alon Beck and Noam Levi and Yohai Bar-Sinai},
  journal= {arXiv preprint arXiv:2410.04489},
  year   = {2025}
}

Comments

Camera-ready version, ICML 2025

R2 v1 2026-06-28T19:10:18.550Z