Late-Stage Generalization Collapse in Grokking: Detecting anti-grokking with Weightwatcher
Hari K Prakash, Charles H Martin
TL;DR
The paper investigates late-stage generalization collapse, anti-grokking, in neural networks by applying WeightWatcher with HTSR/SETOL theory to detect Correlation Traps and track the tail exponent $\alpha$ across training. It analyzes a 3-layer MLP on a MNIST subset and a transformer on modular addition, revealing three phases: pre-grokking, grokking, and anti-grokking, with anti-grokking marked by numerous traps and $\alpha<2$ in some layers. Correlation Traps emerge as robust indicators of anti-grokking, even without access to training or test labels, while $\alpha$ provides a secondary signal. The results highlight distinct memorization regimes (prototype memorization in MLP, rule-based memorization in MA) and suggest that long-term spectral diagnostics can diagnose and potentially prevent catastrophic forgetting in large models.
Abstract
\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.
