mlsanityData to 14 Oct 2026

SPAM: Spike-Aware Adam with Momentum Reset for Stable LLM Training

arXiv 2501.06842 ↗First posted 12 Jan 2025cs.LG cs.AI cs.CLcited by 28

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

  1. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2017Proximal Policy Optimization Algorithmscited by 15,215
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  5. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  7. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  8. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  9. 2022A ConvNet for the 2020scited by 3,579
  10. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  11. 2022A Time Series is Worth 64 Words: Long-term Forecasting with Transformerscited by 2,039
  12. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
33 more
  1. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
  2. 2020GLU Variants Improve Transformercited by 1,804
  3. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  4. 2019Root Mean Square Layer Normalizationcited by 1,480
  5. 2020On Layer Normalization in the Transformer Architecturecited by 922
  6. 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 905
  7. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 843
  8. 2021CogView: Mastering Text-to-Image Generation via Transformerscited by 694
  9. 2021Carbon Emissions and Large Neural Network Trainingcited by 567
  10. 2019Rigging the Lottery: Making All Tickets Winnerscited by 495
  11. 2024GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projectioncited by 463
  12. 2021Gradient Descent on Neural Networks Typically Occurs at the Edge of Stabilitycited by 427
  13. 20218-bit Optimizers via Block-wise Quantizationcited by 403
  14. 2017Scalable Training of Artificial Neural Networks with Adaptive Sparse Connectivity inspired by Network Sciencecited by 328
  15. 2023LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Modelscited by 324
  16. 2019A Tail-Index Analysis of Stochastic Gradient Noise in Deep Neural Networkscited by 214
  17. 2023ReLoRA: High-Rank Training Through Low-Rank Updatescited by 204
  18. 2019Fixup Initialization: Residual Learning Without Normalizationcited by 198
  19. 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 178
  20. 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 161
  21. 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
  22. 2024Adam-mini: Use Fewer Learning Rates To Gain Morecited by 137
  23. 2017Stochastic gradient descent performs variational inference, converges to limit cycles for deep networkscited by 109
  24. 2022What Language Model to Train if You Have One Million GPU Hours?cited by 92
  25. 2022The Unreasonable Effectiveness of Random Pruning: Return of the Most Naive Baseline for Sparse Trainingcited by 85
  26. 2016A Variational Analysis of Stochastic Gradient Algorithmscited by 57
  27. 2023A Theory on Adam Instability in Large-Scale Machine Learningcited by 56
  28. 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 52
  29. 2024Q-GaLore: Quantized GaLore with INT4 Projection and Layer-Adaptive Low-Rank Gradientscited by 38
  30. 2024Mix-LN: Unleashing the Power of Deeper Layers by Combining Pre-LN and Post-LNcited by 37
  31. 2023CAME: Confidence-guided Adaptive Memory Efficient Optimizationcited by 36
  32. 2020A new regret analysis for Adam-type algorithmscited by 35
  33. 2019Blockwise Adaptivity: Faster Training and Better Generalization in Deep Learningcited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 11; 2026: 17.

28 papers.

Sort:

By area:

  1. 2025The Curse of Depth in Large Language Modelscited by 62
  2. 2025Cautious Weight Decaycited by 13
  3. 2025Why Tree-Style Branching Matters for Thought Advantage Estimation in GRPOcited by 10
  4. 2026Enhancing LLM Training via Spectral Clippingcited by 10
  5. 2025Reparameterized LLM Training via Orthogonal Equivalence Transformationcited by 9
  6. 2025GradPower: Powering Gradients for Faster Language Model Pre-Trainingcited by 8
  7. 2026On Surprising Effectiveness of Masking Updates in Adaptive Optimizerscited by 7
  8. 2025AdaGC: Enhancing LLM Pretraining Stability via Adaptive Gradient Clippingcited by 6
  9. 2025GradientStabilizer:Fix the Norm, Not the Gradientcited by 6
  10. 2026Understanding Quantization of Optimizer States in LLM Pre-training: Dynamics of State Staleness and Effectiveness of State Resetscited by 6
  11. 2025Scalable Parameter and Memory Efficient Pretraining for LLM: Recent Algorithmic Advances and Benchmarkingcited by 5
  12. 2025Conda: Column-Normalized Adam for Training Large Language Models Fastercited by 5
16 more
  1. 2025SPaCe: Unlocking Sample-Efficient Large Language Models Training With Self-Pace Curriculum Learningcited by 4
  2. 2026PowLU: An Activation Function for Stable Pre-Training of LLMscited by 4
  3. 2026Exploring Silent Data Corruption as a Reliability Challenge in LLM Trainingcited by 3
  4. 2025Taming LLMs by Scaling Learning Rates with Gradient Groupingcited by 2
  5. 2026Budget-aware Auto Optimizer Configuratorcited by 1
  6. 2026Finite-Horizon Input-Output Dynamics of Minibatch Perturbations in AdamWcited by 1
  7. 2026Can Entry-Wise Clipping Give Spectral Control of Stochastic Gradients?cited by 0
  8. 2026Outer-Momentum Restarting in High-Dimensional Two-Phase Optimizationcited by 0
  9. 2026GNMR: Runtime Stability Control for Low-Precision Large Language Model Trainingcited by 0
  10. 2026Memory-Efficient LLM Training with Dynamic Sparsity: From Stability to Practical Scalingcited by 0
  11. 2026Breaking the Bubble: Asynchronous Pipeline Parallel Training with Bounded Weight Inconsistencycited by 0
  12. 2026OmniOpt: Taxonomy, Geometry, and Benchmarking of Modern Optimizerscited by 0
  13. 2026Training nGPTcited by 0
  14. 2026One QK Channel, Many Sources: Tracing Low-Precision Attention Collapsecited by 0
  15. 2026Blog: Survey of Optimizerscited by 0
  16. 2026SOLAR: A State-Driven Online Learning Rate Scheduler for LLM Pretrainingcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025AdamS: Momentum Itself Can Be A Normalizer for LLM Pretraining and Post-training
  2. 2025Polar Sparsity: High Throughput Batched LLM Inferencing with Scalable Contextual Sparsity
  3. 2024ShadowLLM: Predictor-based Contextual Sparsity for Large Language Models
  4. 2026SCAPE: Accurate and Efficient LLM Training with Extreme Sparse Communication
  5. 2025A Convergence Analysis of Adaptive Optimizers under Floating-point Quantization
  6. 2026Do We Need Adam? Surprisingly Strong and Sparse Reinforcement Learning with SGD in LLMs
  7. 2026Leap+Verify: Regime-Adaptive Speculative Weight Prediction for Accelerating Neural Network Training
  8. 2024APOLLO: SGD-like Memory, AdamW-level Performance