arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.17055cs.LGcs.AI
收藏

GradientStabilizer:固定范数,而非梯度

GradientStabilizer:Fix the Norm, Not the Gradient

Department of Computer Science, University of Exeter(埃克塞特大学计算机科学系);Department of Mathematics and Computer Science, Eindhoven University of Technology(埃因霍温理工大学数学与计算机科学系);School of the Gifted Young, University of Science and Technology of China(中国科学技术大学天才青年学院);Department of Electrical and Computer Engineering, University of Texas at Austin(德克萨斯大学奥斯汀分校电气与计算机工程系);Department of Computer Science, University of Reading(阅读大学计算机科学系);School of Cyber Science and Technology, Sun Yat-sen University(中山大学网络科学与技术学院);Department of Computer Science, The University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校计算机科学系);ELLIS Institute Tubingen(图宾根ELLIS研究所);Max Planck Institute for Intelligent Systems(马克斯·普朗克智能系统研究所);Tübingen AI Center, Tübingen, Germany(图宾根人工智能中心,德国图宾根);College of Computer Science, Chongqing University(重庆大学计算机学院)

Tianjin Huang, Zhangyang Wang, Haotian Hu, Zhenyu Zhang, Gaojie Jin, Xiang Li, Li Shen, Jiaxing Shang, Tianlong Chen, Ke Li, Lu Liu, Qingsong Wen, Shiwei Liu

AI总结:

提出GradientStabilizer,一种轻量级梯度变换方法,通过统计稳定的梯度范数估计替换更新幅度,在不改变梯度方向的前提下抑制极端梯度尖峰,从而提升训练稳定性并减少发散。

摘要:

现代深度学习系统中的训练不稳定性通常由罕见但极端的梯度范数尖峰引发,这些尖峰可能导致参数更新过大、破坏优化器状态,并导致缓慢恢复或发散。广泛使用的保护措施如梯度裁剪可以缓解这些故障,但需要调整阈值且不加区分地截断大更新。我们提出GradientStabilizer,一种轻量级、即插即用的梯度变换方法,它在保留瞬时梯度方向的同时,用从运行梯度范数统计中导出的统计稳定估计替换更新幅度。我们证明了在尖峰步骤上,得到的稳定幅度一致有界,与尖峰大小无关,并展示了这种有界性如何控制自适应方法中优化器状态的演化。在LLM预训练(FP16)、量化感知预训练(FP4)、ImageNet分类、强化学习和时间序列预测中,GradientStabilizer一致地提高了训练稳定性,扩大了稳定学习率区域,并相对于基于裁剪的基线减少了发散,甚至显著降低了Adam对权重衰减强度的敏感性。代码即将发布。

英文摘要:

Training instability in modern deep learning systems is frequently triggered by rare but extreme gradient-norm spikes, which can induce oversized parameter updates, corrupt optimizer state, and lead to slow recovery or divergence. Widely used safeguards such as gradient clipping mitigate these failures but require threshold tuning and indiscriminately truncate large updates. We propose GradientStabilizer, a lightweight, drop-in gradient transform that preserves the instantaneous gradient direction while replacing the update magnitude with a statistically stabilized estimate derived from running gradient-norm statistics. We prove that the resulting stabilized magnitude is uniformly bounded on spike steps, independent of the spike size, and show how this boundedness controls optimizer state evolution in adaptive methods. Across LLM pre-training (FP16), quantization-aware pre-training (FP4), ImageNet classification, reinforcement learning, and time-series forecasting, GradientStabilizer consistently improves training stability, widens stable learning-rate regions, and reduces divergence relative to clipping-based baselines, even substantially reducing Adam's sensitivity to weight-decay strength. Code will be released soon.

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

↑