用噪声驱动逃逸解释深度网络中延迟泛化的现象
Noise-Driven Escape from Metastable Phases explains Grokking in Deep Neural Networks

- 通过调节正则化强度制造能量陷阱,模拟模型被困状态
- 随机梯度下降噪声使模型跨越能垒,逃逸时间符合阿伦尼乌斯规律
- 揭示了复杂任务下多稳态与泛化延迟的内在联系
深度神经网络在L2正则化强度变化下表现出一阶相变,每次相变对应一个新可学习特征的出现。当正则化强度低于临界值时,所有特征理论上均可学习,但共存的亚稳态被能垒分隔,可能阻碍网络收敛。一个关键问题是所谓的‘突现泛化’(grokking):经过长时间过拟合后,泛化能力突然且显著提升。我们研究线性DNN发现,这种现象与一阶相变中的滞后效应一致:通过刻意设计强正则化将模型困于低准确率亚稳态,仅当SGD噪声驱动其跨越能垒时才实现逃逸,且逃逸时间遵循阿伦尼乌斯定律。通过稀疏子采样,我们在两个数量级的逃逸时间内重现了类似突现泛化的延迟收敛曲线,并观察到测试误差最终趋近训练误差。结果表明,亚稳态数量等于可学习特征数——即数据协方差矩阵的奇异值个数,任务越复杂,滞后效应越明显。证据显示该机制可能普遍存在于非线性DNN中,为更高效的学习方案提供了新路径。
原文摘要 · Abstract (English)
Deep neural networks (DNNs) exhibit first order phase transitions under variations of the L2 regularization strength, with each transition marking the onset of a new learnable feature. Below a critical regularization strength, all features are in principle learnable, but coexisting metastable states, separated by energy barriers, can trap the network and impede convergence. A strength of DNNs is their ability to generalize. But many open questions remain, among them the origin of so called grokking: the abrupt, delayed onset of generalization after prolonged apparent overfitting. We show for linear DNNs that grokking is consistent with hysteresis in first-order L2 phase transitions: using L2 regularization to engineer deliberate trapping, we demonstrate that a model in a low-accuracy metastable state escapes only when SGD noise drives it across an energy barrier, with escape times following Arrhenius scaling. We reproduce grokking-like delayed convergence across two orders of magnitude in escape time by deliberately trapping models in metastable phases. Using sparse sub-sampling we also reproduce the canonical grokking curve where test error eventually approaches the final training error. Our work suggests that the number of metastable states equals the number of learnable features -- one per singular value of the data covariance -- the potential for hysteresis grows naturally with task complexity. We provide evidence that the same mechanism likely operates in general nonlinear DNNs. Our results provide routes toward more efficient learning schemes.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。