SPAM: Spike-Aware Adam with Momentum Reset for Stable LLM Training
Not on the map. Why?
Abstract (arXiv)
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 various tasks, including (1) LLM pre-training from 60M to 1B, (2) 4-bit LLM pre-training,(3) reinforcement learning, and (4) Time Series Forecasting. 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
Key facts. Cited by 28 papers in the map (data through 14 Oct 2026). Builds on 45 of its 60 references that are in the map. First posted on arXiv 12 Jan 2025.
Builds on
45 of 60 references.
References · 45
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2022A ConvNet for the 2020scited by 3,579
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2022A Time Series is Worth 64 Words: Long-term Forecasting with Transformerscited by 2,039
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
33 more
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2020GLU Variants Improve Transformercited by 1,804
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2020On Layer Normalization in the Transformer Architecturecited by 922
- 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 905
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 843
- 2021CogView: Mastering Text-to-Image Generation via Transformerscited by 694
- 2021Carbon Emissions and Large Neural Network Trainingcited by 567
- 2019Rigging the Lottery: Making All Tickets Winnerscited by 495
- 2024GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projectioncited by 463
- 2021Gradient Descent on Neural Networks Typically Occurs at the Edge of Stabilitycited by 427
- 20218-bit Optimizers via Block-wise Quantizationcited by 403
- 2017Scalable Training of Artificial Neural Networks with Adaptive Sparse Connectivity inspired by Network Sciencecited by 328
- 2023LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Modelscited by 324
- 2019A Tail-Index Analysis of Stochastic Gradient Noise in Deep Neural Networkscited by 214
- 2023ReLoRA: High-Rank Training Through Low-Rank Updatescited by 204
- 2019Fixup Initialization: Residual Learning Without Normalizationcited by 198
- 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 178
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 161
- 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
- 2024Adam-mini: Use Fewer Learning Rates To Gain Morecited by 137
- 2017Stochastic gradient descent performs variational inference, converges to limit cycles for deep networkscited by 109
- 2022What Language Model to Train if You Have One Million GPU Hours?cited by 92
- 2022The Unreasonable Effectiveness of Random Pruning: Return of the Most Naive Baseline for Sparse Trainingcited by 85
- 2016A Variational Analysis of Stochastic Gradient Algorithmscited by 57
- 2023A Theory on Adam Instability in Large-Scale Machine Learningcited by 56
- 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 52
- 2024Q-GaLore: Quantized GaLore with INT4 Projection and Layer-Adaptive Low-Rank Gradientscited by 38
- 2024Mix-LN: Unleashing the Power of Deeper Layers by Combining Pre-LN and Post-LNcited by 37
- 2023CAME: Confidence-guided Adaptive Memory Efficient Optimizationcited by 36
- 2020A new regret analysis for Adam-type algorithmscited by 35
- 2019Blockwise Adaptivity: Faster Training and Better Generalization in Deep Learningcited by 6
Built on by
Citing papers per year: 2025: 11; 2026: 17.
28 papers.
Sort:
By area:
- 2025The Curse of Depth in Large Language Modelscited by 62
- 2025Cautious Weight Decaycited by 13
- 2025Why Tree-Style Branching Matters for Thought Advantage Estimation in GRPOcited by 10
- 2026Enhancing LLM Training via Spectral Clippingcited by 10
- 2025Reparameterized LLM Training via Orthogonal Equivalence Transformationcited by 9
- 2025GradPower: Powering Gradients for Faster Language Model Pre-Trainingcited by 8
- 2026On Surprising Effectiveness of Masking Updates in Adaptive Optimizerscited by 7
- 2025AdaGC: Enhancing LLM Pretraining Stability via Adaptive Gradient Clippingcited by 6
- 2025GradientStabilizer:Fix the Norm, Not the Gradientcited by 6
- 2026Understanding Quantization of Optimizer States in LLM Pre-training: Dynamics of State Staleness and Effectiveness of State Resetscited by 6
- 2025Scalable Parameter and Memory Efficient Pretraining for LLM: Recent Algorithmic Advances and Benchmarkingcited by 5
- 2025Conda: Column-Normalized Adam for Training Large Language Models Fastercited by 5
16 more
- 2025SPaCe: Unlocking Sample-Efficient Large Language Models Training With Self-Pace Curriculum Learningcited by 4
- 2026PowLU: An Activation Function for Stable Pre-Training of LLMscited by 4
- 2026Exploring Silent Data Corruption as a Reliability Challenge in LLM Trainingcited by 3
- 2025Taming LLMs by Scaling Learning Rates with Gradient Groupingcited by 2
- 2026Budget-aware Auto Optimizer Configuratorcited by 1
- 2026Finite-Horizon Input-Output Dynamics of Minibatch Perturbations in AdamWcited by 1
- 2026Can Entry-Wise Clipping Give Spectral Control of Stochastic Gradients?cited by 0
- 2026Outer-Momentum Restarting in High-Dimensional Two-Phase Optimizationcited by 0
- 2026GNMR: Runtime Stability Control for Low-Precision Large Language Model Trainingcited by 0
- 2026Memory-Efficient LLM Training with Dynamic Sparsity: From Stability to Practical Scalingcited by 0
- 2026Breaking the Bubble: Asynchronous Pipeline Parallel Training with Bounded Weight Inconsistencycited by 0
- 2026OmniOpt: Taxonomy, Geometry, and Benchmarking of Modern Optimizerscited by 0
- 2026Training nGPTcited by 0
- 2026One QK Channel, Many Sources: Tracing Low-Precision Attention Collapsecited by 0
- 2026Blog: Survey of Optimizerscited by 0
- 2026SOLAR: A State-Driven Online Learning Rate Scheduler for LLM Pretrainingcited by 0
- 2026SOLAR: A State-Driven Online Learning Rate Scheduler for LLM Pretraining28 Sep 2026
- 2026Blog: Survey of Optimizers28 Aug 2026
- 2026Finite-Horizon Input-Output Dynamics of Minibatch Perturbations in AdamW20 Aug 2026
- 2026One QK Channel, Many Sources: Tracing Low-Precision Attention Collapse3 Aug 2026
- 2026Training nGPT2 Aug 2026
- 2026OmniOpt: Taxonomy, Geometry, and Benchmarking of Modern Optimizers4 Jul 2026
- 2026Breaking the Bubble: Asynchronous Pipeline Parallel Training with Bounded Weight Inconsistency5 Jun 2026
- 2026Memory-Efficient LLM Training with Dynamic Sparsity: From Stability to Practical Scaling30 May 2026
- 2026GNMR: Runtime Stability Control for Low-Precision Large Language Model Training30 May 2026
- 2026Outer-Momentum Restarting in High-Dimensional Two-Phase Optimization27 May 2026
- 2026Can Entry-Wise Clipping Give Spectral Control of Stochastic Gradients?26 May 2026
- 2026PowLU: An Activation Function for Stable Pre-Training of LLMs25 May 2026
16 more
- 2026Budget-aware Auto Optimizer Configurator6 May 2026
- 2026Exploring Silent Data Corruption as a Reliability Challenge in LLM Training1 Apr 2026
- 2026Understanding Quantization of Optimizer States in LLM Pre-training: Dynamics of State Staleness and Effectiveness of State Resets17 Mar 2026
- 2026Enhancing LLM Training via Spectral Clipping15 Mar 2026
- 2026On Surprising Effectiveness of Masking Updates in Adaptive Optimizers17 Feb 2026
- 2025Cautious Weight Decay14 Oct 2025
- 2025Why Tree-Style Branching Matters for Thought Advantage Estimation in GRPO29 Sep 2025
- 2025Conda: Column-Normalized Adam for Training Large Language Models Faster29 Sep 2025
- 2025SPaCe: Unlocking Sample-Efficient Large Language Models Training With Self-Pace Curriculum Learning7 Aug 2025
- 2025Reparameterized LLM Training via Orthogonal Equivalence Transformation9 Jun 2025
- 2025Taming LLMs by Scaling Learning Rates with Gradient Grouping1 Jun 2025
- 2025GradPower: Powering Gradients for Faster Language Model Pre-Training30 May 2025
- 2025Scalable Parameter and Memory Efficient Pretraining for LLM: Recent Algorithmic Advances and Benchmarking28 May 2025
- 2025GradientStabilizer:Fix the Norm, Not the Gradient24 Feb 2025
- 2025AdaGC: Enhancing LLM Pretraining Stability via Adaptive Gradient Clipping16 Feb 2025
- 2025The Curse of Depth in Large Language Models9 Feb 2025
- 2026Training nGPTcited by 0
- 2026Training nGPT2 Aug 2026
- 2025The Curse of Depth in Large Language Modelscited by 62
- 2025Cautious Weight Decaycited by 13
- 2026Enhancing LLM Training via Spectral Clippingcited by 10
- 2025Reparameterized LLM Training via Orthogonal Equivalence Transformationcited by 9
- 2025GradPower: Powering Gradients for Faster Language Model Pre-Trainingcited by 8
- 2026On Surprising Effectiveness of Masking Updates in Adaptive Optimizerscited by 7
- 2025AdaGC: Enhancing LLM Pretraining Stability via Adaptive Gradient Clippingcited by 6
- 2025GradientStabilizer:Fix the Norm, Not the Gradientcited by 6
- 2026Understanding Quantization of Optimizer States in LLM Pre-training: Dynamics of State Staleness and Effectiveness of State Resetscited by 6
- 2025Scalable Parameter and Memory Efficient Pretraining for LLM: Recent Algorithmic Advances and Benchmarkingcited by 5
- 2025Conda: Column-Normalized Adam for Training Large Language Models Fastercited by 5
- 2026PowLU: An Activation Function for Stable Pre-Training of LLMscited by 4
12 most cited of 25 All 25 (JSON)
- 2026SOLAR: A State-Driven Online Learning Rate Scheduler for LLM Pretraining28 Sep 2026
- 2026Blog: Survey of Optimizers28 Aug 2026
- 2026Finite-Horizon Input-Output Dynamics of Minibatch Perturbations in AdamW20 Aug 2026
- 2026One QK Channel, Many Sources: Tracing Low-Precision Attention Collapse3 Aug 2026
- 2026OmniOpt: Taxonomy, Geometry, and Benchmarking of Modern Optimizers4 Jul 2026
- 2026Breaking the Bubble: Asynchronous Pipeline Parallel Training with Bounded Weight Inconsistency5 Jun 2026
- 2026Memory-Efficient LLM Training with Dynamic Sparsity: From Stability to Practical Scaling30 May 2026
- 2026GNMR: Runtime Stability Control for Low-Precision Large Language Model Training30 May 2026
- 2026Outer-Momentum Restarting in High-Dimensional Two-Phase Optimization27 May 2026
- 2026Can Entry-Wise Clipping Give Spectral Control of Stochastic Gradients?26 May 2026
- 2026PowLU: An Activation Function for Stable Pre-Training of LLMs25 May 2026
- 2026Budget-aware Auto Optimizer Configurator6 May 2026
12 newest of 25 All 25 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025AdamS: Momentum Itself Can Be A Normalizer for LLM Pretraining and Post-training
- 2025Polar Sparsity: High Throughput Batched LLM Inferencing with Scalable Contextual Sparsity
- 2024ShadowLLM: Predictor-based Contextual Sparsity for Large Language Models
- 2026SCAPE: Accurate and Efficient LLM Training with Extreme Sparse Communication
- 2025A Convergence Analysis of Adaptive Optimizers under Floating-point Quantization
- 2026Do We Need Adam? Surprisingly Strong and Sparse Reinforcement Learning with SGD in LLMs
- 2026Leap+Verify: Regime-Adaptive Speculative Weight Prediction for Accelerating Neural Network Training
- 2024APOLLO: SGD-like Memory, AdamW-level Performance