AdaGC: Enhancing LLM Pretraining Stability via Adaptive Gradient Clipping
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
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
29 more
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2024Mixtral of Expertscited by 1,823
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
- 2021LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairscited by 1,555
- 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,492
- 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
- 2019On the Convergence of Adam and Beyondcited by 841
- 2023Scaling Vision Transformers to 22 Billion Parameterscited by 694
- 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 674
- 2023Baichuan 2: Open Large-scale Language Modelscited by 670
- 2023Symbolic Discovery of Optimization Algorithmscited by 434
- 2021High-Performance Large-Scale Image Recognition Without Normalizationcited by 360
- 20242 OLMo 2 Furiouscited by 340
- 2022Scaling Language-Image Pre-training via Maskingcited by 317
- 2023Small-scale proxies for large-scale Transformer training instabilitiescited by 183
- 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
- 2023Stable and low-precision training for large-scale vision-language modelscited by 75
- 2019Quick and (not so) Dirty: Unsupervised Selection of Justification Sentences for Multi-hop Question Answeringcited by 59
- 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 52
- 2020A Qualitative Study of the Dynamic Behavior for Adaptive Gradient Algorithmscited by 33
- 2025Tensor Product Attention Is All You Needcited by 31
- 2025SPAM: Spike-Aware Adam with Momentum Reset for Stable LLM Trainingcited by 28
- 2023Improving Training Stability for Multitask Ranking Models in Recommender Systemscited by 13
- 2024Initialization of Large Language Models via Reparameterization to Mitigate Loss Spikescited by 4
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2025SPaCe: Unlocking Sample-Efficient Large Language Models Training With Self-Pace Curriculum Learningcited by 4
- 2026Evolution of Optimization Methods: Algorithms, Scenarios, and Evaluationscited by 3
- 2026A Mechanism Study of Delayed Loss Spikes in Batch-Normalized Linear Modelscited by 0
- 2026OmniOpt: Taxonomy, Geometry, and Benchmarking of Modern Optimizerscited by 0
- 2026One QK Channel, Many Sources: Tracing Low-Precision Attention Collapsecited by 0
- 2026CAST: History-Adaptive Spectral Clipping for LLM Pretrainingcited by 0
- 2026CAST: History-Adaptive Spectral Clipping for LLM Pretraining14 Oct 2026
- 2026One QK Channel, Many Sources: Tracing Low-Precision Attention Collapse3 Aug 2026
- 2026OmniOpt: Taxonomy, Geometry, and Benchmarking of Modern Optimizers4 Jul 2026
- 2026A Mechanism Study of Delayed Loss Spikes in Batch-Normalized Linear Models18 Apr 2026
- 2026Evolution of Optimization Methods: Algorithms, Scenarios, and Evaluations14 Apr 2026
- 2025SPaCe: Unlocking Sample-Efficient Large Language Models Training With Self-Pace Curriculum Learning7 Aug 2025