vix.ing · top · new · best · stats · spec

Grams: Gradient Descent with Adaptive Momentum Scaling for Training Large Language Models

2024/12/22 by Xiaoyu Li, Cao, Yang, Li, Xiaoyu +2 · 1 citation
Engineering · #Artificial Intelligence (cs.AI) #Data Structures and Algorithms (cs.DS) #FOS: Computer and information sciences #FOS: Mathematics #Machine Learning (cs.LG) #Optimization and Control (math.OC) #Slime Mold and Myxomycetes Research

paper · pdf · doi:10.48550/arxiv.2412.17107

openalex publication_date 2024/12/22 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

We introduce Gradient Descent with Adaptive Momentum Scaling (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 large language models. Code is available at \hrefhttps://github.com/Gunale0926/Gramshttps://github.com/Gunale0926/Grams.

Cited by

Related