特征排斥与谱锁定:对双层网络 Grokking 的实证研究
Feature Repulsion and Spectral Lock-in: An Empirical Study of Two-Layer Network Grokking
AI总结:
本文通过实验证实了双层网络在Grokking阶段中特征排斥机制的有效性,揭示了参数更新的谱特征与激活函数导数之间的依赖关系。
摘要:
本文证明了在Grokking阶段中,双层网络的特征排斥机制的有效性,揭示了参数更新的谱特征与激活函数导数之间的依赖关系。通过在Tian的模块化加法设置上直接测试,观察到结构-机制的解离。预测的符号规则在激活函数的前200个最相似特征对上表现出鲁棒性。然而,参数更新中的谱特征强烈依赖于激活函数的导数。在σ=x²的情况下,简单的斜率检测器在ΔW的滚动特征间隙σ₂/σ₃上在15/15个Grokking种子在第174个 epoch(IQR [173,174])触发,且在非Grokking对照组中从未触发,具有229倍的晚期阶段幅度分离,谱为秩2。相比之下,在σ=ReLU的情况下,检测器从未触发,谱保持有效秩1。这种解离与Tian的定理5中聚焦(幂律)和扩散(ReLU)记忆的区别相一致:虽然B的符号结构仅依赖于F^T F,但特征排斥如何转化为权重更新则关键依赖于激活函数导数σ'。
英文摘要:
Tian (2025) proves a repulsion theorem (Theorem 6) for the matrix $ B = (\widetilde{F}^\top \widetilde{F} + ηI)^{-1} $ during the interactive feature-learning stage of grokking: similar features have negative off-diagonal entries $ B_{j\ell} $, producing an effective repulsive force that drives them apart. However, the theorem does not specify when this mechanism becomes empirically observable, nor whether it leaves a measurable spectral signature in the parameter updates. We test this directly on Tian's modular addition setup ($ M = 71 $, $ K = 2048 $, MSE loss) and observe a clear structure-mechanism dissociation. The predicted sign rule holds robustly on the top-200 most-similar feature pairs across activations (empirical sign-match rising from 0.865 to 0.985 on $ σ= x^2 $ across 5 seeds, and saturating at 1.000 on $ σ= \operatorname{ReLU} $). However, the spectral signature in the parameter updates is strongly activation-dependent. With $ σ= x^2 $, a simple slope detector on the rolling eigengap $ σ_2 / σ_3 $ of $ ΔW $ fires in 15/15 grokking seeds at epoch 174 (IQR [173,174]) and in 0/15 non-grokking controls, with 229$ \times $ late-stage magnitude separation; the spectrum is rank-2. In contrast, with $ σ= \operatorname{ReLU} $, the detector never fires and the spectrum remains effectively rank-1. This dissociation aligns with Tian's Theorem 5 distinction between focused (power-law) and spreading (ReLU) memorization: while the sign structure of $ B $ depends only on $ \widetilde{F}^\top \widetilde{F} $, how feature repulsion translates into weight updates critically depends on the activation derivative $ σ' $.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。