arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2512.04299cs.LGmath.OCstat.ML
收藏

何时谱梯度更新有助于深度学习?

When do spectral gradient updates help in deep learning?

The Wharton School, University of Pennsylvania(宾夕法尼亚大学沃顿商学院)

Damek Davis, Dmitriy Drusvyatskiy

AI总结:

本文提出一个分层条件,用于预测谱梯度更新在深度学习中优于欧几里得梯度的方法,通过分析激活矩阵的稳定秩和梯度的核范数比值,揭示了谱方法在训练深度网络中的有效条件。

摘要:

谱梯度方法,如最近流行的Muon优化器,是训练深度神经网络和变换器的一种有前途的替代方案,但仍然不清楚在哪些情况下它们能表现得更好。我们提出一个简单的分层条件,预测何时谱更新能比欧几里得梯度步产生更大的损失减少。该条件比较每个参数块中梯度的平方核范数到弗罗贝尼乌斯范数比值与输入激活的稳定秩。为了理解何时该条件可能被满足,我们首先证明在随机特征回归、前馈网络和变换器块中,激活后的矩阵在高斯初始化下具有低稳定秩。在 spiked 随机特征模型中,我们进一步表明,在短时间预热后,欧几里得梯度的核范数到弗罗贝尼乌斯比值随着数据维度增长,而激活的稳定秩保持有界,因此预测的谱更新优势随维度增长。我们通过合成回归实验和NanoGPT规模的语言模型训练验证了这些预测,在其中发现中间激活在整个训练过程中具有低稳定秩,对应的梯度保持大的核范数到弗罗贝尼乌斯比值。这些结果确定了谱梯度方法,如Muon,在训练深度网络和变换器中的有效条件。

英文摘要:

Spectral gradient methods, such as the recently popularized Muon optimizer, are a promising alternative to standard Euclidean gradient descent for training deep neural networks and transformers, but it is still unclear in which regimes they are expected to perform better. We propose a simple layerwise condition that predicts when a spectral update yields a larger decrease in the loss than a Euclidean gradient step. This condition compares, for each parameter block, the squared nuclear-to-Frobenius ratio of the gradient to the stable rank of the incoming activations. To understand when this condition may be satisfied, we first prove that post-activation matrices have low stable rank at Gaussian initialization in random feature regression, feedforward networks, and transformer blocks. In spiked random feature models we then show that, after a short burn-in, the Euclidean gradient's nuclear-to-Frobenius ratio grows with the data dimension while the stable rank of the activations remains bounded, so the predicted advantage of spectral updates scales with dimension. We validate these predictions in synthetic regression experiments and in NanoGPT-scale language model training, where we find that intermediate activations have low-stable-rank throughout training and the corresponding gradients maintain large nuclear-to-Frobenius ratios. Together, these results identify conditions for spectral gradient methods, such as Muon, to be effective in training deep networks and transformers.

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

↑