mlsanityData to 14 Oct 2026

ZClip: Adaptive Spike Mitigation for LLM Pre-Training

arXiv 2504.02507 ↗First posted 3 Apr 2025cs.LG cs.CLcited by 10

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  4. 2024RegMix: Data Mixture as Regression for Language Model Pre-trainingcited by 177
  5. 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 52
  6. 2020AutoClip: Adaptive Gradient Clipping for Source Separation Networkscited by 12

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 8.

10 papers.