Grokking的理论框架:插值后接黎曼范数最小化
A Theoretical Framework for Grokking: Interpolation followed by Riemannian Norm Minimisation
AI总结:
本文研究带小权重衰减的梯度流动力学,证明其轨迹呈现两阶段行为:先快速收敛到临界点流形,再缓慢最小化参数范数,从而为深度学习中的grokking效应提供了基于优化的理论解释,并在合成回归任务上得到验证。
摘要:
我们研究在一般训练损失 $F: \mathbb{R}^d \to \mathbb{R}$ 上具有小权重衰减的梯度流动力学。在温和的正则性假设下,并假设无正则化梯度流收敛,我们证明带有权重衰减 $λ$ 的轨迹在 $λ\to 0$ 时表现出两阶段行为。在初始快速阶段,轨迹遵循无正则化梯度流并收敛到 $F$ 的临界点流形。然后,在 $1/λ$ 量级的时间,轨迹进入缓慢漂移阶段,并遵循最小化参数 $\ell_2$-范数的黎曼梯度流。这种纯基于优化的现象为深度学习中观察到的 grokking 效应提供了自然解释,即训练损失迅速降至零,而测试损失在长期停滞后才突然改善。我们认为,如我们的分析所解释,这种泛化跃变可归因于权重衰减引起的缓慢范数减小。我们在几个合成回归任务上经验性地验证了该机制。
英文摘要:
We study the dynamics of gradient flow with small weight decay on general training losses $F: \mathbb{R}^d \to \mathbb{R}$. Under mild regularity assumptions and assuming convergence of the unregularised gradient flow, we show that the trajectory with weight decay $λ$ exhibits a two-phase behaviour as $λ\to 0$. During the initial fast phase, the trajectory follows the unregularised gradient flow and converges to a manifold of critical points of $F$. Then, at time of order $1/λ$, the trajectory enters a slow drift phase and follows a Riemannian gradient flow minimising the $\ell_2$-norm of the parameters. This purely optimisation-based phenomenon offers a natural explanation for the \textit{grokking} effect observed in deep learning, where the training loss rapidly reaches zero while the test loss plateaus for an extended period before suddenly improving. We argue that this generalisation jump can be attributed to the slow norm reduction induced by weight decay, as explained by our analysis. We validate this mechanism empirically on several synthetic regression tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。