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

ILDR:几何早期内化现象的检测

ILDR: Geometric Early Detection of Grokking

Virginia Tech(弗吉尼亚理工大学)

Shreel Golwala

AI总结:

本文提出ILDR指标,通过计算最后一层表示的类间距离与类内散度比,实现对神经网络早期内化现象的早期检测,提升模型泛化能力。

摘要:

Grokking描述了神经网络在训练准确率达到完美后,验证准确率迟迟不提升,随后突然转向强泛化现象。现有检测信号间接:权重范数反映参数空间正则化,但始终滞后于过渡;GrokFast的慢梯度EMA在无梯度放大时不稳定,标准差超过均值领先时间。本文提出交互/内在类距离比(ILDR),在倒数第二层表示上计算类间中心分离与类内散度比。ILDR提供早期检测信号:在验证准确率出现过渡前,其值上升并超过阈值2.5倍,表明表示空间的早期几何重组。基于Fisher线性判别准则,ILDR无需特征分解,运行时间O(|C|^2 + N)。在留出数据上评估,使其对记忆效应具有鲁棒性。在模运算和置换群组成(S5)中,ILDR领先过渡9至73%的训练预算,领先时间随任务代数复杂性增加。在八个随机种子中,ILDR领先950±250步,变异系数26%,过渡后方差下降1696倍,与表示空间中的尖锐相变一致。使用ILDR作为早期停止触发器可平均减少18.6%的训练时间。在ILDR阈值触发的优化器干预显示双向控制过渡,表明ILDR跟踪泛化背后的表示条件,而非下游相关性。

英文摘要:

Grokking describes a delayed generalization phenomenon in which a neural network achieves perfect training accuracy long before validation accuracy improves, followed by an abrupt transition to strong generalization. Existing detection signals are indirect: weight norm reflects parameter-space regularization and consistently lags the transition, while GrokFast's slow gradient EMA, used without gradient amplification, is unstable across seeds with standard deviation exceeding mean lead time. We propose the Inter/Intra-class Distance Ratio (ILDR), a geometric metric computed on second-to-last layer representations as the ratio of inter-class centroid separation to intra-class scatter. ILDR provides an early detection signal: it rises and crosses a threshold at 2.5 times its baseline before the grokking transition appears in validation accuracy, indicating early geometric reorganization in representation space. Grounded in Fisher's linear discriminant criterion, ILDR requires no eigendecomposition and runs in O(|C|^2 + N). It is evaluated exclusively on held-out data, making it robust to memorization effects. Across modular arithmetic and permutation group composition (S5), ILDR leads the grokking transition by 9 to 73 percent of the training budget, with lead time increasing with task algebraic complexity. Over eight random seeds, ILDR leads by 950 +/- 250 steps with a coefficient of variation of 26 percent, and post-grokking variance drops by 1696 times, consistent with a sharp phase transition in representation space. Using ILDR as an early stopping trigger reduces training by 18.6 percent on average. Optimizer interventions triggered at the ILDR threshold demonstrate bidirectional control over the transition, suggesting ILDR tracks representational conditions underlying generalization rather than a downstream correlate.

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

↑