arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2602.02859cs.LG
收藏

在Grokking后期阶段的泛化崩溃:用Weightwatcher检测anti-grokking

Late-Stage Generalization Collapse in Grokking: Detecting anti-grokking with Weightwatcher

University of California San Diego, Data Science and Engineering(加州大学圣地亚哥分校数据科学与工程)

Hari K Prakash, Charles H Martin

AI总结:

本文研究了Grokking后期阶段的泛化崩溃现象,通过WeightWatcher工具检测anti-grokking,并揭示了相关陷阱对泛化能力的影响。

摘要:

神经网络中的记忆化缺乏精确的操作定义,通常是从Grokking阶段推断出来的,其中训练准确率饱和而测试准确率仍然非常低。我们在这个训练阶段识别出一个之前未报告的Grokking的第三阶段:anti-grokking,即泛化能力的后期崩溃。我们重新审视两个经典的Grokking设置:一个在MNIST子集上训练的三层MLP和一个在模加法上训练的transformer,但训练远超标准。在两种情况下,当模型从pre-grokking过渡到成功的泛化后,测试准确率会再次降至随机水平,而训练准确率保持完美,表明了一种不同的泛化后失败模式。为了诊断anti-grokking,我们使用基于HTSR/SETOL理论的开源WeightWatcher工具。主要信号是相关陷阱的出现:在洗牌权重矩阵的经验谱密度中,超出Marchenko-Pastur bulk的异常大的特征值,这些被预测会损害泛化。作为次要信号,anti-grokking对应于HTSR层质量度量α偏离2.0。这两个指标都不需要访问测试或训练数据。我们比较了这些信号与替代的Grokking诊断方法,包括ℓ2范数、激活稀疏性、绝对权重熵和局部电路复杂度。这些指标跟踪pre-grokking和grokking,但无法识别anti-grokking。最后,我们展示了相关陷阱可以导致灾难性遗忘和/或原型记忆化,并在大规模LLM中观察到类似的病理现象,如OSS GPT 20/120B。

英文摘要:

\emph{Memorization} in neural networks lacks a precise operational definition and is often inferred from the grokking regime, where training accuracy saturates while test accuracy remains very low. We identify a previously unreported third phase of grokking in this training regime: \emph{anti-grokking}, a late-stage collapse of generalization. We revisit two canonical grokking setups: a 3-layer MLP trained on a subset of MNIST and a transformer trained on modular addition, but extended training far beyond standard. In both cases, after models transition from pre-grokking to successful generalization, test accuracy collapses back to chance while training accuracy remains perfect, indicating a distinct post-generalization failure mode. To diagnose anti-grokking, we use the open-source \texttt{WeightWatcher} tool based on HTSR/SETOL theory. The primary signal is the emergence of \emph{Correlation Traps}: anomalously large eigenvalues beyond the Marchenko--Pastur bulk in the empirical spectral density of shuffled weight matrices, which are predicted to impair generalization. As a secondary signal, anti-grokking corresponds to the average HTSR layer quality metric $α$ deviating from $2.0$. Neither metric requires access to the test or training data. We compare these signals to alternative grokking diagnostic, including $\ell_2$ norms, Activation Sparsity, Absolute Weight Entropy, and Local Circuit Complexity. These track pre-grokking and grokking but fail to identify anti-grokking. Finally, we show that Correlation Traps can induce catastrophic forgetting and/or prototype memorization, and observe similar pathologies in large-scale LLMs, like OSS GPT 20/120B.

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

↑