arXiv:2603.14315cs.LGmath.OC2026-03被引 4

通过谱剪裁提升大模型训练稳定性与泛化能力

Enhancing LLM Training via Spectral Clipping

  • 对优化器更新进行谱范数裁剪,控制权重变化幅度
  • 实验显示能统一降低各类优化器的验证损失,最佳结果达当前最优
  • 适合追求训练稳定性和模型泛化的LLM研究者使用

基于谱的优化器如Muon直接作用于更新的谱结构,而标准自适应方法(如AdamW)不考虑权重与梯度的谱特性,导致大语言模型训练中存在两个实证问题:(i) 优化器更新具有较大的谱范数,可能引发训练不稳定并降低泛化性能;(ii) 随机梯度噪声呈现稀疏谱尖峰,少数奇异值远大于其余。本文提出SPECTRA框架,通过(1)更新后谱剪裁以施加谱范数约束,(2)可选的梯度前谱剪裁以抑制谱噪声尖峰。证明后剪裁等价于带谱范数约束和权重正则化的复合Frank-Wolfe方法,并分析前剪裁对稀疏谱尖峰的缓解机制。提出基于Newton-Schulz迭代的高效软谱剪裁,避免昂贵的SVD计算。在大语言模型预训练中,SPECTRA统一提升了AdamW、Signum、Mars、AdEMAMix等多种优化器的验证损失表现,最优变体达到当前最优水平。使用SPECTRA训练的模型具有更小的权重范数,验证了谱剪裁与正则化之间的关联。

原文摘要 · Abstract (English)

While spectral-based optimizers like Muon operate directly on the spectrum of updates, standard adaptive methods such as AdamW do not account for the spectral structure of weights and gradients, leaving them vulnerable to two empirical issues in large language model (LLM) training: (i) the optimizer updates can have large spectral norms, potentially destabilizing training and degrading generalization; (ii) stochastic gradient noise can exhibit sparse spectral spikes, with a few dominant singular values much larger than the rest. We propose SPECTRA, a general framework addressing these by (i) post-spectral clipping of updates to enforce spectral-norm constraints (ii) optional pre-spectral clipping of gradients to suppress spectral noise spikes. We prove that post-clipping constitutes a Composite Frank-Wolfe method with spectral-norm constraints and weight regularization. We further analyze how pre-clipping mitigates sparse spectral spikes. We propose efficient soft spectral clipping via Newton-Schulz iterations, avoiding expensive SVD. Experiments on LLM pretraining show SPECTRA uniformly improves validation loss for various optimizers, including AdamW, Signum, Mars, and AdEMAMix, with the best-performing variants achieving state-of-the-art results. Models trained with SPECTRA exhibit smaller weight norms, confirming the link between spectral clipping and regularization.

优化器谱剪裁LLM训练正则化

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