arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.01774cs.LGcs.AI
收藏

Grokking 现象解释:一种统计现象

Grokking Explained: A Statistical Phenomenon

IBM Research(IBM研究院);City, University of London(伦敦城市大学)

Breno W. Carvalho, Artur S. d'Avila Garcez, Luís C. Lamb, Emílio Vital Brazil

AI总结:

本文将 grokking 形式化为一种由训练与测试分布偏移引发的统计现象,通过两个合成数据集证明小样本采样只是实现分布偏移的便捷机制而非根本原因,并揭示等变类别结构和密集数据下也可出现 grokking。

摘要:

Grokking(延迟泛化)是一种引人关注的学习现象,即测试集损失仅在模型训练集损失收敛之后才急剧下降。这对深度学习网络训练动力学的传统理解提出了挑战。在本文中,我们对 grokking 进行了形式化并加以研究,强调其出现的一个关键因素是训练数据与测试数据之间的分布偏移。我们引入了两个专门设计用于分析 grokking 的合成数据集。一个数据集考察有限采样的影响,另一个数据集研究迁移学习在 grokking 中的作用。通过对子类别进行受控的不平衡采样来诱导分布偏移,我们系统地复现了这一现象,证明虽然小样本采样与 grokking 密切相关,但它并非其原因。相反,小样本采样是实现必要分布偏移的一种便捷机制。我们还表明,当类别构成等变映射时,grokking 可以通过模型从相似类别或子类别中学习的能力来解释。与先前认为 grokking 主要源于高正则化和稀疏数据的工作不同,我们证明它也可以在密集数据和最小超参数调优的情况下发生。我们的发现加深了对 grokking 的理解,并为未来训练过程中开发更好的停止准则铺平了道路。

英文摘要:

Grokking, or delayed generalization, is an intriguing learning phenomenon where test set loss decreases sharply only after a model's training set loss has converged. This challenges conventional understanding of the training dynamics in deep learning networks. In this paper, we formalize and investigate grokking, highlighting that a key factor in its emergence is a distribution shift between training and test data. We introduce two synthetic datasets specifically designed to analyze grokking. One dataset examines the impact of limited sampling, and the other investigates transfer learning's role in grokking. By inducing distribution shifts through controlled imbalanced sampling of sub-categories, we systematically reproduce the phenomenon, demonstrating that while small-sampling is strongly associated with grokking, it is not its cause. Instead, small-sampling serves as a convenient mechanism for achieving the necessary distribution shift. We also show that when classes form an equivariant map, grokking can be explained by the model's ability to learn from similar classes or sub-categories. Unlike earlier work suggesting that grokking primarily arises from high regularization and sparse data, we demonstrate that it can also occur with dense data and minimal hyper-parameter tuning. Our findings deepen the understanding of grokking and pave the way for developing better stopping criteria in future training processes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑