arXiv:2509.21519cs.LGcs.AI2025-09被引 14

揭示复杂输入下特征涌现的数学规律,解释延迟泛化现象。

Provable Scaling Laws of Feature Emergence from Learning Dynamics of Grokking

  • 提出Li₂框架,分三个阶段解析两层网络的梯度动态与特征学习。
  • 发现独立学习阶段特征对应能量函数的局部极大值,可泛化且随样本量变化。
  • 证明了优化器有效性与超参数影响,适用于多层网络分析。

尽管延迟泛化(grokking)现象已被广泛研究,但尚无数学框架能刻画在复杂结构输入下何种特征会涌现、如何涌现及其与训练梯度动态的关系。本文提出新框架 $/mathbf{Li}_2$,揭示两层非线性网络中 grokking 的三个关键阶段:(I) 懒惰学习,(II) 独立特征学习,(III) 交互特征学习。在懒惰学习阶段,顶层过拟合随机隐藏表示,模型看似记忆;同时反向传播梯度 $G_F$ 携带目标标签信息,其特定结构使每个隐藏节点可独立学习表示。有趣的是,独立学习动力学恰好对应能量函数 $E$ 的梯度上升,其局部极大值即为涌现特征。我们研究这些局部极值诱导特征的泛化能力、表征能力及其随样本量的变化,在群算术任务中验证。当隐藏节点进入后期交互阶段时,我们严格证明 $G_F$ 如何聚焦于缺失特征。该研究揭示了权重衰减、学习率、样本量等关键超参数的作用,导出特征涌现、记忆与泛化的可证明尺度律,并从梯度动力学原理解释近期优化器如 Muon 的有效性。分析可扩展至多层网络。代码已公开于 https://github.com/yuandong-tian/understanding/tree/main/ssl/real-dataset/cogo。

原文摘要 · Abstract (English)

While the phenomenon of grokking, i.e., delayed generalization, has been studied extensively, it remains an open problem whether there is a mathematical framework that characterizes what kind of features will emerge, how and in which conditions it happens, and is closely related to the gradient dynamics of the training, for complex structured inputs. We propose a novel framework, named $\mathbf{Li}_2$, that captures three key stages for the grokking behavior of 2-layer nonlinear networks: (I) Lazy learning, (II) independent feature learning and (III) interactive feature learning. At the lazy learning stage, top layer overfits to random hidden representation and the model appears to memorize, and at the same time, the backpropagated gradient $G_F$ from the top layer now carries information about the target label, with a specific structure that enables each hidden node to learn their representation independently. Interestingly, the independent dynamics follows exactly the gradient ascent of an energy function $E$, and its local maxima are precisely the emerging features. We study whether these local-optima induced features are generalizable, their representation power, and how they change on sample size, in group arithmetic tasks. When hidden nodes start to interact in the later stage of learning, we provably show how $G_F$ changes to focus on missing features that need to be learned. Our study sheds lights on roles played by key hyperparameters such as weight decay, learning rate and sample sizes in grokking, leads to provable scaling laws of feature emergence, memorization and generalization, and reveals why recent optimizers such as Muon can be effective, from the first principles of gradient dynamics. Our analysis can be extended to multi-layers. The code is available at https://github.com/yuandong-tian/understanding/tree/main/ssl/real-dataset/cogo.

梯度动态特征涌现深度学习理论缩放定律

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。