arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.16967cs.LGcs.AI
收藏

通过损失景观几何预测Grokking的早期预警信号

Early-Warning Signals of Grokking via Loss-Landscape Geometry

Yongzhong Xu

AI总结:

研究通过损失景观几何分析序列学习任务,发现交换子缺陷在泛化前显著上升,揭示其作为transformers中延迟泛化早期预警信号的机制。

摘要:

Grokking——长时间训练后从记忆到泛化的突然转变——已被联系到模块算术中的低维执行流形限制。本文研究了SCAN组合泛化和Dyck-1深度预测两个序列学习基准,发现交换子缺陷在泛化前显著上升,其提前时间遵循超线性幂律。权重空间PCA显示,谱集中度不是普遍前兆,但交换子缺陷是。因果干预表明,增强非交换性可加速Grokking,而抑制正交梯度流可延迟或防止泛化。三种任务家族形成因果敏感性的光谱,但抑制均延迟或防止泛化,确立必要性为普遍发现。这些结果将交换子缺陷识别为transformers中延迟泛化的稳健、架构无关、因果相关的早期预警信号。

英文摘要:

Grokking -- the abrupt transition from memorization to generalization after prolonged training -- has been linked to confinement on low-dimensional execution manifolds in modular arithmetic. Whether this mechanism extends beyond arithmetic remains open. We study two sequence-learning benchmarks: SCAN compositional generalization and Dyck-1 depth prediction. Across both tasks and a wide range of learning rates, the commutator defect -- a curvature measure derived from non-commuting gradient updates -- rises well before generalization, with lead times following a superlinear power law (alpha approximately 1.18 for SCAN, approximately 1.13 for Dyck), consistent with prior results on modular arithmetic. Weight-space PCA reveals that spectral concentration is not a universal precursor; the commutator defect is. Causal interventions demonstrate a mechanistic role: amplifying non-commutativity accelerates grokking (roughly 32% on SCAN, roughly 50% on Dyck), while suppressing orthogonal gradient flow delays or prevents it. The three task families form a spectrum of causal sensitivity -- modular arithmetic is rigid, Dyck is responsive, SCAN is intermediate -- yet suppression delays or prevents grokking in all cases, establishing necessity as a universal finding. These results identify the commutator defect as a robust, architecture-agnostic, causally implicated early-warning signal for delayed generalization in transformers.

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

↑