arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.08237cs.LGstat.ML
收藏

分布谱诊断法用于定位Grokking转变

Distributional Spectral Diagnostics for Localizing Grokking Transitions

Institute of Science Tokyo(东京科学研究所);University of Science and Technology of China(中国科学技术大学)

Ziyue Wang, Yufeng Ying, Takafumi Kanamori

AI总结:

本文提出通过分布谱诊断法定位Grokking转变,利用经验分布、Wasserstein坐标和Hankel DMD分析,实现对训练轨迹中转变的检测与定位。

摘要:

在Grokking中,模型首先拟合训练数据但测试准确率较低,随后才开始泛化。本文探讨是否能从观察到的训练轨迹中提前定位这一转变,并将其视为一个诊断问题,明确阈值/假阳性率/提前时间的权衡。任务相关的可观测量被总结为经验分布,映射到Wasserstein/分位数坐标,并通过Hankel动态模式分解(DMD)分析;所得的重建残差,结合谱和有效秩,构成诊断输出。在预留的模加法Transformer运行中,残差在运行级别上对Grokking与非Grokking的判别具有约0.93的AUROC;在固定持续阈值操作规则下,真阳性警报可提前发生,提前时间与假警报率和置信区间联合报告。扰动实验显示,在测试的wd=1池中,高残差窗口的短周期扰动偏差比低残差窗口大约3倍。在相同数据规范窗口控制中,扰动敏感性与残差排序一致,而非总参数范数排序,表明残差在研究的wd=1动态中不仅仅是总范数代理。范数信号在运行级别仍保持强的区域指示器,而对数概率在当前协议下表现最佳。本文将残差定位为研究的模运算Transformer设置中的窗口级监控和定位信号,而非通用的早期预警预测器或干预规则。

英文摘要:

In grokking, a model first fits the training data while test accuracy remains low, and only later begins to generalize. We ask whether this transition can be localized from observed training trajectories before the test accuracy rises, and formulate grokking transition localization as a diagnostic problem with an explicit threshold/FPR/lead-time trade-off. Task-dependent observables are summarized as empirical distributions, mapped to Wasserstein/quantile coordinates, and analyzed by Hankel dynamic mode decomposition (DMD); the resulting reconstruction residual, together with spectrum and effective rank, forms the diagnostic output. On held-out modular-addition Transformer runs, the residual achieves AUROC \(\approx \) 0.93 for grokking-vs-non-grokking discrimination at the run level; under a fixed sustained-threshold operating rule, true-positive alarms can precede onset, with lead time reported jointly with false-alarm rate and uncertainty intervals. Perturbation experiments show that, in the tested \(wd=1\) pool, high-residual windows exhibit about \(3\times\) larger short-horizon perturbation deviation than low-residual windows. In a same-data norm-window control, perturbation sensitivity aligns with the residual ordering rather than total-parameter-norm ordering, suggesting that the residual is not merely a total-norm proxy at the window level in the studied \(wd=1\) dynamics. Norm signals remain strong run-level regime indicators, and log-probability performs best among the observables tested under the current protocol. We position the residual as a window-level monitoring and localization signal in the studied modular-arithmetic Transformer settings, not a universal early-warning predictor or an intervention rule.

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

↑