mlsanityData to 14 Oct 2026

AdaGC: Enhancing LLM Pretraining Stability via Adaptive Gradient Clipping

arXiv 2502.11034 ↗First posted 16 Feb 2025cs.LGcited by 6

Not on the map. Why?

Abstract (arXiv)

Loss spikes remain a persistent obstacle in large-scale language model pretraining. While previous research has attempted to identify the root cause of loss spikes by investigating individual factors, we observe that, in practice, such spikes are typically triggered by the confluence of heterogeneous factors. Empirically, loss spikes may arise from a combination of data outliers, hardware or transient computational faults, numerical precision issues, and hyperparameter settings. Regardless of the underlying cause, these spikes manifest as unstable optimizer updates, as abnormal gradients contaminate both first- and second-moment states. In this paper, we propose a principled gradient-centric remedy: AdaGC, an adaptive per-tensor gradient clipping scheme that mitigates such contamination by bounding gradient norms relative to a tensor-wise exponential moving average of their historical clipped values. AdaGC is optimizer-agnostic, introduces negligible memory overhead, and reduces communication costs compared to GlobalGC, particularly in hybrid-parallel distributed training. Experiments on Llama-2 7B, Mixtral 8x1B, and ERNIE 10B-A1.4B demonstrate that AdaGC robustly eliminates training instabilities, consistently reducing spike scores to zero for all models and improving downstream accuracy over GlobalGC by 1.32%, 1.27%, and 2.48%, respectively. Furthermore, AdaGC seamlessly integrates with optimizers such as Muon and Lion, consistently yielding higher average accuracy and zero spike scores. The code is available at https://github.com/PaddlePaddle/PaddleFleet (see Research/AdaGC).

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 41 of its 60 references that are in the map. First posted on arXiv 16 Feb 2025.

Builds on

41 of 60 references.

References · 41

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  5. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  6. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
  7. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  8. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  9. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  10. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
  11. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  12. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
29 more
  1. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  2. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  3. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
  4. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
  5. 2024Mixtral of Expertscited by 1,823
  6. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
  7. 2021LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairscited by 1,555
  8. 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,492
  9. 2019Root Mean Square Layer Normalizationcited by 1,480
  10. 2020On Layer Normalization in the Transformer Architecturecited by 922
  11. 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 905
  12. 2019On the Convergence of Adam and Beyondcited by 841
  13. 2023Scaling Vision Transformers to 22 Billion Parameterscited by 694
  14. 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 674
  15. 2023Baichuan 2: Open Large-scale Language Modelscited by 670
  16. 2023Symbolic Discovery of Optimization Algorithmscited by 434
  17. 2021High-Performance Large-Scale Image Recognition Without Normalizationcited by 360
  18. 20242 OLMo 2 Furiouscited by 340
  19. 2022Scaling Language-Image Pre-training via Maskingcited by 317
  20. 2023Small-scale proxies for large-scale Transformer training instabilitiescited by 183
  21. 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
  22. 2023Stable and low-precision training for large-scale vision-language modelscited by 75
  23. 2019Quick and (not so) Dirty: Unsupervised Selection of Justification Sentences for Multi-hop Question Answeringcited by 59
  24. 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 52
  25. 2020A Qualitative Study of the Dynamic Behavior for Adaptive Gradient Algorithmscited by 33
  26. 2025Tensor Product Attention Is All You Needcited by 31
  27. 2025SPAM: Spike-Aware Adam with Momentum Reset for Stable LLM Trainingcited by 28
  28. 2023Improving Training Stability for Multitask Ranking Models in Recommender Systemscited by 13
  29. 2024Initialization of Large Language Models via Reparameterization to Mitigate Loss Spikescited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 5.

6 papers.