arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.12332cs.LGstat.ML
收藏

为什么会顿悟?模块加法顿悟现象的理论分析

Why Do You Grok? A Theoretical Analysis of Grokking Modular Addition

Toyota Technological Institute at Chicago(芝加哥丰田理工学院);University of British Columbia(不列颠哥伦比亚大学);Peking University(北京大学);Amii(Amii研究院)

Mohamad Amin Mohamadi, Zhiyuan Li, Lei Wu, Danica J. Sutherland

AI总结:

该论文从理论上解释了模块加法中的顿悟现象,证明模型从核机制行为转向极限行为是顿悟的原因,并验证了两层二次网络和简单Transformer在过拟合后逃离核机制并实现泛化。

摘要:

我们针对最初研究的模块加法问题,提出了对“顿悟”现象的理论解释,即模型在过拟合很久之后才实现泛化的现象。首先,我们证明在梯度下降早期,当“核机制”近似成立时,任何置换等变模型在模块加法上都无法达到较小的总体误差,除非它至少看到所有可能数据点的恒定比例。然而,最终模型会逃离核机制。我们证明,实现零训练损失且具有有界ℓ∞范数的两层二次网络,在训练点显著较少的情况下也能很好地泛化,并进一步证明此类网络存在且可以通过带有小ℓ∞正则化的梯度下降找到。我们还提供了经验证据,表明这些网络以及简单的Transformer,仅在最初过拟合后才离开核机制。综合来看,我们的结果有力地支持了顿悟现象是深度网络梯度下降从类核行为向极限行为转变的结果这一观点。

英文摘要:

We present a theoretical explanation of the ``grokking'' phenomenon, where a model generalizes long after overfitting,for the originally-studied problem of modular addition. First, we show that early in gradient descent, when the ``kernel regime'' approximately holds, no permutation-equivariant model can achieve small population error on modular addition unless it sees at least a constant fraction of all possible data points. Eventually, however, models escape the kernel regime. We show that two-layer quadratic networks that achieve zero training loss with bounded $\ell_{\infty}$ norm generalize well with substantially fewer training points, and further show such networks exist and can be found by gradient descent with small $\ell_{\infty}$ regularization. We further provide empirical evidence that these networks as well as simple Transformers, leave the kernel regime only after initially overfitting. Taken together, our results strongly support the case for grokking as a consequence of the transition from kernel-like behavior to limiting behavior of gradient descent on deep networks.

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

↑