GradientStabilizer:Fix the Norm, Not the Gradient

Tianjin Huang, Zhangyang Wang, Haotian Hu, Zhenyu Zhang, Gaojie Jin +8 more
2/24/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{huang2025gradientstabilizerfix,
  title  = {GradientStabilizer:Fix the Norm, Not the Gradient},
  author = {Tianjin Huang and Zhangyang Wang and Haotian Hu and Zhenyu Zhang and Gaojie Jin and Xiang Li and Li Shen and Jiaxing Shang and Tianlong Chen and Ke Li and Lu Liu and Qingsong Wen and Shiwei Liu},
  year   = {2025},
  eprint = {2502.17055},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.17055v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.17055.svg)](https://codeofpaper.com/paper/2502.17055)

Discussion