83
2

Grams: Gradient Descent with Adaptive Momentum Scaling

Abstract

We introduce G\mathbf{G}radient Descent with A\mathbf{A}daptive M\mathbf{M}omentum S\mathbf{S}caling (Grams\mathbf{Grams}), a novel optimization algorithm that decouples the direction and magnitude of parameter updates in deep learning. Unlike traditional optimizers that directly integrate momentum into updates, Grams separates the update direction, derived from current gradients, from momentum, which is used solely for adaptive magnitude scaling. This approach enables Grams to achieve improved loss descent compared to state-of-the-art cautious and momentum-based optimizers. We theoretically demonstrate that Grams descents faster than other state-of-the-art optimizers and establish a global convergence guarantee for Grams. We also validate its effectiveness through extensive empirical evaluations. The results demonstrate Grams' superior performance, including faster convergence and better generalization, compared to widely-used optimizers such as Adam, Lion, and their cautious variants. Our results highlight Grams' potential as a transformative approach for efficiently training and fine-tuning large language models. Code is available atthis https URL.

View on arXiv
@article{cao2025_2412.17107,
  title={ Grams: Gradient Descent with Adaptive Momentum Scaling },
  author={ Yang Cao and Xiaoyu Li and Zhao Song },
  journal={arXiv preprint arXiv:2412.17107},
  year={ 2025 }
}
Comments on this paper