dc.contributor.author | Huang, T | |
dc.contributor.author | Zhu, Z | |
dc.contributor.author | Jin, G | |
dc.contributor.author | Liu, L | |
dc.contributor.author | Wang, Z | |
dc.contributor.author | Liu, S | |
dc.date.accessioned | 2025-02-24T14:51:28Z | |
dc.date.issued | 2025 | |
dc.date.updated | 2025-02-24T13:23:30Z | |
dc.description.abstract | Large Language Models (LLMs) have demonstrated exceptional performance across diverse tasks, yet their training remains highly resource intensive and susceptible to critical challenges such as training instability. A predominant source of this instability stems from gradient and loss spikes, which disrupt the learning process, often leading to costly interventions like checkpoint recovery and experiment restarts, further amplifying inefficiencies. This paper presents a comprehensive investigation into gradient spikes observed during LLM training, revealing their prevalence across multiple architectures and datasets. Our analysis shows that these spikes can be up to 1000× larger than typical gradients, substantially deteriorating model performance. To address this issue, we propose Spike-Aware Adam with Momentum Reset (SPAM), a novel optimizer designed to counteract gradient spikes through momentum reset and spike-aware gradient clipping. Extensive experiments, including both pre-training and fine-tuning, demonstrate that SPAM consistently surpasses Adam and its variants across a range of model scales. Additionally, SPAM facilitates memory-efficient training by enabling sparse momentum, where only a subset of momentum terms are maintained and updated. When operating under memory constraints, SPAM outperforms state-of-the-art memory-efficient optimizers such as GaLore and Adam-Mini. Our work underscores the importance of mitigating gradient spikes in LLM training and introduces an effective optimization strategy that enhances both training stability and resource efficiency at scale. Code is available at
https://github.com/TianjinYellow/SPAM-Optimizer.git | en_GB |
dc.identifier.citation | ICLR 2025 - The Thirteenth International Conference on Learning Representations, 24 - 28 April 2025, Singapore. Awaiting full citation and link | en_GB |
dc.identifier.uri | http://hdl.handle.net/10871/140194 | |
dc.identifier | ORCID: 0000-0002-7740-8843 (Huang, Tianjin) | |
dc.language.iso | en | en_GB |
dc.publisher | International Conference on Learning Representations | en_GB |
dc.relation.url | https://iclr.cc/Conferences/2025 | en_GB |
dc.relation.url | https://iclr.cc/virtual/2025/papers.html | en_GB |
dc.relation.url | https://iclr.cc/virtual/2025/poster/30015 | en_GB |
dc.relation.url | https://github.com/TianjinYellow/SPAM-Optimizer.git | en_GB |
dc.rights.embargoreason | Under embargo until close of conference | en_GB |
dc.rights | © 2025 The author(s) | en_GB |
dc.title | SPAM: Spike-Aware Adam with Momentum Reset for Stable LLM Training | en_GB |
dc.type | Conference paper | en_GB |
dc.date.available | 2025-02-24T14:51:28Z | |
dc.description | This is the final version. | en_GB |
dc.rights.uri | http://www.rioxx.net/licenses/all-rights-reserved | en_GB |
rioxxterms.version | VoR | en_GB |
rioxxterms.licenseref.startdate | 2025-01-12 | |
rioxxterms.type | Conference Paper/Proceeding/Abstract | en_GB |
refterms.dateFCD | 2025-02-24T14:31:50Z | |
refterms.versionFCD | VoR | |
refterms.panel | B | en_GB |