ZClip: Adaptive Spike Mitigation for LLM Pre-Training
Not on the map. Why?
Abstract (arXiv)
Training large language models (LLMs) presents numerous challenges, including gradient instability and loss spikes. These phenomena can lead to catastrophic divergence, requiring costly checkpoint restoration and data batch skipping. Traditional gradient clipping techniques, such as constant or norm-based methods, fail to address these issues effectively due to their reliance on fixed thresholds or heuristics, leading to inefficient learning and requiring frequent manual intervention. In this work, we propose ZClip, an adaptive gradient clipping algorithm that dynamically adjusts the clipping threshold based on statistical properties of gradient norms over time. Unlike prior reactive strategies, ZClip proactively adapts to training dynamics without making any prior assumptions on the scale and the temporal evolution of gradient norms. At its core, it leverages z-score-based anomaly detection to identify and mitigate large gradient spikes, preventing malignant loss spikes while not interfering with convergence otherwise. Our code is available at: https://github.com/bluorion-com/ZClip.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 6 of its 13 references that are in the map. First posted on arXiv 3 Apr 2025.
Builds on
6 of 13 references.
References · 6
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2024RegMix: Data Mixture as Regression for Language Model Pre-trainingcited by 177
- 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 52
- 2020AutoClip: Adaptive Gradient Clipping for Source Separation Networkscited by 12
Built on by
Citing papers per year: 2025: 2; 2026: 8.
10 papers.
- 2025QVGen: Pushing the Limit of Quantized Video Generative Modelscited by 22
- 2026Grouped Query Experts: Mixture-of-Experts on GQA Self-Attentioncited by 2
- 2026MSign: An Optimizer Preventing Training Instability in Large Language Models via Stable Rank Restorationcited by 1
- 2025oboro: Text-to-Image Synthesis on Limited Data using Flow-based Diffusion Transformer with MMH Attentioncited by 0
- 2026Active Inference with a Self-Prior in the Mirror-Mark Taskcited by 0
- 2026A Mechanism Study of Delayed Loss Spikes in Batch-Normalized Linear Modelscited by 0
- 2026From Syntax to Semantics: Unveiling the Emergence of Chirality in SMILES Translation Modelscited by 0
- 2026OmniOpt: Taxonomy, Geometry, and Benchmarking of Modern Optimizerscited by 0
- 2026Grouped Value Attention: Efficient KV Caching via On-Demand Key Reconstructioncited by 0
- 2026CAST: History-Adaptive Spectral Clipping for LLM Pretrainingcited by 0
- 2026CAST: History-Adaptive Spectral Clipping for LLM Pretraining14 Oct 2026
- 2026Grouped Value Attention: Efficient KV Caching via On-Demand Key Reconstruction8 Sep 2026
- 2026OmniOpt: Taxonomy, Geometry, and Benchmarking of Modern Optimizers4 Jul 2026
- 2026Grouped Query Experts: Mixture-of-Experts on GQA Self-Attention18 Jun 2026
- 2026From Syntax to Semantics: Unveiling the Emergence of Chirality in SMILES Translation Models11 May 2026
- 2026A Mechanism Study of Delayed Loss Spikes in Batch-Normalized Linear Models18 Apr 2026
- 2026Active Inference with a Self-Prior in the Mirror-Mark Task2 Apr 2026
- 2026MSign: An Optimizer Preventing Training Instability in Large Language Models via Stable Rank Restoration2 Feb 2026
- 2025oboro: Text-to-Image Synthesis on Limited Data using Flow-based Diffusion Transformer with MMH Attention11 Nov 2025
- 2025QVGen: Pushing the Limit of Quantized Video Generative Models16 May 2025