English

Gradient Shaping Beyond Clipping: A Functional Perspective on Update Magnitude Control

Machine Learning 2025-10-03 v1

Abstract

Gradient clipping is widely used to stabilize deep network training, but its formulation as a hard, fixed threshold limits flexibility and ignores gradient distribution dynamics. We propose SPAMP (Statistical Per-layer Adaptive Modulation and Projection), a unified framework that generalizes clipping into smooth, per-layer gradient shaping. SPAMP tracks local gradient statistics, dynamically estimates thresholds, and applies power-based transformations to modulate update magnitudes in a differentiable manner. This perspective recasts clipping and warmup as dual mechanisms for controlling the effective update scale ηtgt\eta_t \|g_t\|, offering a principled alternative to rigid heuristics. Extensive experiments across image and language tasks demonstrate that SPAMP improves stability, convergence, and robustness over existing methods.

Keywords

Cite

@article{arxiv.2510.01578,
  title  = {Gradient Shaping Beyond Clipping: A Functional Perspective on Update Magnitude Control},
  author = {Haochen You and Baojing Liu},
  journal= {arXiv preprint arXiv:2510.01578},
  year   = {2025}
}

Comments

Accepted as a conference paper at ACM Multimedia Asia 2025

R2 v1 2026-07-01T06:12:13.033Z