arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.04434cs.LGcs.AIstat.ML
收藏

Grokking与泛化崩溃:来自HTSR理论的见解

Grokking and Generalization Collapse: Insights from \texttt{HTSR} theory

University of California San Diego(加州大学圣地亚哥分校);Calculation Consulting

Hari K. Prakash, Charles H. Martin

AI总结:

本文基于HTSR理论在MNIST子集上训练三层MLP,发现训练极晚期出现的anti-grokking阶段,并证明仅用层质量度量α即可区分pre-grokking、grokking和anti-grokking三个阶段,为无测试数据条件下检测过拟合与泛化崩溃提供了新方法。

摘要:

我们使用一个在MNIST的1k样本子集上训练的三层MLP,在有和无权重衰减的条件下,研究了神经网络中众所周知的grokking现象,并发现了一个新的第三阶段——anti-grokking——它出现在训练的很晚阶段,与熟悉的pre-grokking阶段相似但又不同:测试准确率崩溃,而训练准确率保持完美。这种晚期崩溃不同于已知的pre-grokking和grokking阶段,并且未被其他已提出的grokking进展度量方法检测到。利用开源WeightWatcher工具中的Heavy-Tailed Self-Regularization(HTSR),我们表明仅凭HTSR层质量度量α就能划分所有三个阶段,而最好的竞争度量只能检测前两个阶段。anti-grokking通过训练10^7步得以揭示,并且总是以α<2和Correlation Traps的出现为先兆——Correlation Traps是随机化层权重矩阵中的异常奇异值,使层权重矩阵变得非典型并标志着对训练集的过拟合。这些陷阱通过对逐层经验谱密度的目视检查以及对随机化谱使用Kolmogorov–Smirnov检验得到验证。包括激活稀疏性、绝对权重熵、电路复杂度和l^2权重范数在内的比较度量能够跟踪pre-grokking和grokking,但无法区分grokking和anti-grokking。这一发现提供了一种无需直接访问测试数据即可测量过拟合和泛化崩溃的方法。这些结果强化了HTSR α在α≈2处提供通用层收敛目标的主张,并强调了使用HTSR alpha(α)度量作为泛化度量指标的价值。

英文摘要:

We study the well-known grokking phenomena in neural networks (NNs) using a 3-layer MLP trained on 1 k-sample subset of MNIST, with and without weight decay, and discover a novel third phase -- \emph{anti-grokking} -- that occurs very late in training and resembles but is distinct from the familiar \emph{pre-grokking} phases: test accuracy collapses while training accuracy stays perfect. This late-stage collapse is distinct, from the known pre-grokking and grokking phases, and is not detected by other proposed grokking progress measures. Leveraging Heavy-Tailed Self-Regularization HTSR through the open-source WeightWatcher tool, we show that the HTSR layer quality metric $α$ alone delineates all three phases, whereas the best competing metrics detect only the first two. The \emph{anti-grokking} is revealed by training for $10^7$ and is invariably heralded by $α< 2$ and the appearance of \emph{Correlation Traps} -- outlier singular values in the randomized layer weight matrices that make the layer weight matrix atypical and signal overfitting of the training set. Such traps are verified by visual inspection of the layer-wise empirical spectral densities, and by using Kolmogorov--Smirnov tests on randomized spectra. Comparative metrics, including activation sparsity, absolute weight entropy, circuit complexity, and $l^2$ weight norms track pre-grokking and grokking but fail to distinguish grokking from anti-grokking. This discovery provides a way to measure overfitting and generalization collapse without direct access to the test data. These results strengthen the claim that the \emph{HTSR} $α$ provides universal layer-convergence target at $α\approx 2$ and underscore the value of using the HTSR alpha $(α)$ metric as a measure of generalization.

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

↑