arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.25009cs.LG
收藏

对Grokking的系统实证研究:深度、架构、激活和正则化

A Systematic Empirical Study of Grokking: Depth, Architecture, Activation, and Regularization

University of Maryland, Baltimore County(马里兰大学巴尔的摩县分校);Howard University(霍华德大学)

Shalima Binta Manir, Anamika Paul Rupa

AI总结:

本文通过模块加法(mod 97)任务系统研究神经网络从记忆到泛化的延迟过渡,发现泛化能力主要由优化稳定性与正则化交互决定,揭示了深度、激活函数和权重衰减对Grokking的影响。

摘要:

理解神经网络中从记忆到泛化的延迟过渡仍不充分,部分原因在于先前的实证研究混淆了架构、优化和正则化的作用。本文提出了一项受控研究,系统地解耦这些因素,在模块加法(mod 97)任务中使用匹配且精心调制的训练制度。我们的核心发现是,Grokking动态主要由优化稳定性与正则化的交互决定,而非架构。具体而言,我们显示:(1)深度有非单调效应,深度4的MLP持续无法Grokking,而深度8的残差网络恢复泛化能力,表明深度需要架构稳定化;(2)在匹配超参数下,Transformer与MLP之间的明显差距(1.11倍延迟)消失,表明先前报告的差异主要归因于优化器和正则化混淆;(3)激活函数效应依赖于制度,GELU在正则化允许记忆时比ReLU快4.3倍;(4)权重衰减是主导控制参数,展示出一个狭窄的“Goldilocks”区域,其中Grokking发生,而过少或过多的权重衰减会阻止泛化。在3-5个种子配置下,这些结果提供了Grokking作为交互驱动现象的统一实证解释。我们的发现挑战了以架构为中心的解释,并澄清了优化和正则化如何共同调控延迟泛化。

英文摘要:

Grokking the delayed transition from memorization to generalization in neural networks remains poorly understood, in part because prior empirical studies confound the roles of architecture, optimization, and regularization. We present a controlled study that systematically disentangles these factors on modular addition (mod 97), with matched and carefully tuned training regimes across models. Our central finding is that grokking dynamics are not primarily determined by architecture, but by interactions between optimization stability and regularization. Specifically, we show: (1) \textbf{depth has a non-monotonic effect}, with depth-4 MLPs consistently failing to grok while depth-8 residual networks recover generalization, demonstrating that depth requires architectural stabilization; (2) \textbf{the apparent gap between Transformers and MLPs largely disappears} (1.11$\times$ delay) under matched hyperparameters, indicating that previously reported differences are largely due to optimizer and regularization confounds; (3) \textbf{activation function effects are regime-dependent}, with GELU up to 4.3$\times$ faster than ReLU only when regularization permits memorization; and (4) \textbf{weight decay is the dominant control parameter}, exhibiting a narrow ``Goldilocks'' regime in which grokking occurs, while too little or too much prevents generalization. Across 3--5 seeds per configuration, these results provide a unified empirical account of grokking as an interaction-driven phenomenon. Our findings challenge architecture-centric interpretations and clarify how optimization and regularization jointly govern delayed generalization.

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

↑