View a PDF of the paper titled Detecting overfitting in Neural Networks during long-horizon grokking using Random Matrix Theory, by Hari K. Prakash and Charles H Martin
Abstract:Training Neural Networks (NNs) without overfitting is difficult; detecting that overfitting is difficult as well. We present a novel Random Matrix Theory method that detects the onset of overfitting in deep learning models without access to train or test data. For each model layer, we randomize each weight matrix element-wise, $\mathbf{W} \to \mathbf{W}^{\mathrm{rand}}$, fit the randomized empirical spectral distribution with a Marchenko-Pastur distribution, and identify large outliers that violate self-averaging. We call these outliers Correlation Traps. During the onset of overfitting, which we call the “anti-grokking” phase in long-horizon grokking, Correlation Traps form and grow in number and scale as test accuracy decreases while train accuracy remains high. Traps may be benign or may harm generalization; we provide an empirical approach to distinguish between them by passing random data through the trained model and evaluating the JS divergence of output logits. Our findings show that anti-grokking is an additional grokking phase with high train accuracy and decreasing test accuracy, structurally distinct from pre-grokking through its Correlation Traps. More broadly, we find that some foundation-scale LLMs exhibit the same Correlation Traps, indicating potentially harmful overfitting.
Submission history
From: Hari Prakash [view email]
[v1]
Tue, 12 May 2026 16:57:48 UTC (7,650 KB)
[v2]
Thu, 14 May 2026 04:36:50 UTC (7,650 KB)
[v3]
Sun, 29 Nov 2026 23:30:01 UTC (6,262 KB)
![[2605.12394] Detecting overfitting in Neural Networks during long-horizon grokking using Random Matrix Theory [2605.12394] Detecting overfitting in Neural Networks during long-horizon grokking using Random Matrix Theory](https://techwavedispatch.com/wp-content/uploads/2026/12/260512394-Detecting-overfitting-in-Neural-Networks-during-long-horizon-grokking-using-1024x597.png)