电路同步先于泛化:来自Grokking Transformer中傅里叶结构的因果证据
Learned Structure Shows Up Earlier in the Task's Own Basis: A Controlled Look at a Synchronisation Precursor in Grokking
AI总结:
提出频率同步度(FSD)指标,发现其在模算术任务中比grokking早500-3000步同步,且通过权重衰减控制验证了间隔期的正则化本质,提供因果证据。
摘要:
Grokking——模算术上的transformer从近乎随机突然转变为近乎完美的验证准确率——归因于傅里叶电路,但其时机、因果结构和可控性仍知之甚少。我们引入了频率同步度(FSD),一种无需先验电路知识的归一化、置换检验的傅里叶电路同步度量。在九个模加法配置(素数p∈{53,71,97,113,131},三个种子)中,FSD在grokking前500-3000步同步(平均领先+1722步;所有九个为正,符号检验p≈0.004),并且在所有九个案例中先于受限logit损失基线(Nanda等人的排除损失),使其成为最早可用的预测器。我们提供了直接因果证据,证明相间间隙是一种正则化现象:在FSD峰值步骤分叉训练并变化权重衰减λ,会产生严格单调的更早grokking,且Δ_t与1/λ成正比。该定律在三个素数(p∈{53,97,131};两个干净案例的R²=1.00和R²=0.99)上重复,表示为Δ_t ~ C/λ,与(1/λ)*log(||W_mem||/τ)一致。架构消融实验表明,仅注意力模型在强FSD前兆下grok;仅MLP模型从不grok;单层模型的FSD滞后,确认了前兆是多块电路属性。
英文摘要:
Analyses of grokking usually read hidden activations in one basis, most often the Fourier basis modulo $p$. We ask how much the answer to "has the network organised yet?" depends on that choice. The measure FSD$_{\rm gen}$ averages each unit's activation over inputs with the same answer and counts how many units share the same strongest irreducible representation. For modular multiplication we read one answer-averaged profile in three orders: discrete-logarithm order, in which the characters of the multiplicative group become Fourier modes; natural order; and random orders. Across 60 networks at $p\in\{59,97,113\}$, the discrete-log reading reached a fixed threshold before both other readings in 60 of 60 networks (59 of 60 when it had to hold 500 steps). Because untrained networks already score higher in discrete-log order, we also required an equal rise above each reading's untrained level; the discrete-log reading was still first in at least 16 of 20 networks at every prime. At $p=59$ and $p=97$ this happened during the memorisation plateau in 35 of 39 networks; at $p=113$ in 12 of 20. Memorisation preceded grokking in all 179 runs that grokked, by more than any synchronisation signal on average, so a lead over grokking is not by itself evidence of a detected circuit. Synchronisation time is only weakly related to grokking time (pooled $ρ=0.18$). On six finite groups, read with the same measure in every basis, the irreducible-representation reading came before random element orders on all six; with equal-rise thresholds this held in every case on four groups, in 7 of 10 on $\mathbb{Z}_5\times\mathbb{Z}_5$ and in none on $D_{16}$, where about half the profile power lies in one-dimensional representations the measure leaves out. We also correct a conjugate-pair artefact that roughly halves the measure on abelian groups. This version withdraws the causal and predictive claims of v1.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。