arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.16849cs.LGmath.OCstat.ML
收藏

关于模加法机制和动力学:傅里叶特征、彩票彩票和Grokking

On the Mechanism and Dynamics of Modular Addition: Fourier Features, Lottery Ticket, and Grokking

Yale University(耶鲁大学)

Jianliang He, Leda Wang, Siyu Chen, Zhuoran Yang

AI总结:

本文研究了两层神经网络在模加法任务中的学习机制,揭示了傅里叶特征、彩票机制和Grokking的形成过程。

摘要:

我们对两层神经网络如何学习特征以解决模加法任务进行了全面分析。我们的工作提供了对学习模型的完整机理解释和对其训练动态的理论解释。尽管先前的研究已经确定了单个神经元学习单频傅里叶特征和相位对齐,但并未完全解释这些特征如何组合成一个全局解决方案。我们通过正式化一个在训练过程中出现的多样化条件来填补这一空白,该条件包括两个部分:相位对称性和频率多样化。我们证明这些性质使网络能够集体近似一个有缺陷的指示函数,以正确逻辑解决模加法任务。虽然单个神经元产生噪声信号,但相位对称性使多数投票方案能够消除噪声,使网络能够稳健地识别正确总和。此外,我们通过随机初始化解释了这些特征的出现机制,即彩票彩票机制。我们的梯度流分析证明了频率在每个神经元内竞争,

英文摘要:

We present a comprehensive analysis of how two-layer neural networks learn features to solve the modular addition task. Our work provides a full mechanistic interpretation of the learned model and a theoretical explanation of its training dynamics. While prior work has identified that individual neurons learn single-frequency Fourier features and phase alignment, it does not fully explain how these features combine into a global solution. We bridge this gap by formalizing a diversification condition that emerges during training when overparametrized, consisting of two parts: phase symmetry and frequency diversification. We prove that these properties allow the network to collectively approximate a flawed indicator function on the correct logic for the modular addition task. While individual neurons produce noisy signals, the phase symmetry enables a majority-voting scheme that cancels out noise, allowing the network to robustly identify the correct sum. Furthermore, we explain the emergence of these features under random initialization via a lottery ticket mechanism. Our gradient flow analysis proves that frequencies compete within each neuron, with the "winner" determined by its initial spectral magnitude and phase alignment. From a technical standpoint, we provide a rigorous characterization of the layer-wise phase coupling dynamics and formalize the competitive landscape using the ODE comparison lemma. Finally, we use these insights to demystify grokking, characterizing it as a three-stage process involving memorization followed by two generalization phases, driven by the competition between loss minimization and weight decay.

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

↑