Methods of improving LLM training stability
Not on the map. Why?
Abstract (arXiv)
Training stability of large language models(LLMs) is an important research topic. Reproducing training instabilities can be costly, so we use a small language model with 830M parameters and experiment with higher learning rates to force models to diverge. One of the sources of training instability is the growth of logits in attention layers. We extend the focus of the previous work and look not only at the magnitude of the logits but at all outputs of linear layers in the Transformer block. We observe that with a high learning rate the L2 norm of all linear layer outputs can grow with each training step and the model diverges. Specifically we observe that QKV, Proj and FC2 layers have the largest growth of the output magnitude. This prompts us to explore several options: 1) apply layer normalization not only after QK layers but also after Proj and FC2 layers too; 2) apply layer normalization after the QKV layer (and remove pre normalization). 3) apply QK layer normalization together with softmax capping. We show that with the last two methods we can increase learning rate by 1.5x (without model divergence) in comparison to an approach based on QK layer normalization only. Also we observe significant perplexity improvements for all three methods in comparison to the baseline model.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 16 of its 21 references that are in the map. First posted on arXiv 22 Oct 2024.
Builds on
16 of 21 references.
References · 16
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2021Going deeper with Image Transformerscited by 759
- 2023Scaling Vision Transformers to 22 Billion Parameterscited by 690
- 2016Neural Combinatorial Optimization with Reinforcement Learningcited by 600
- 2020Query-Key Normalization for Transformerscited by 266
- 2023Small-scale proxies for large-scale Transformer training instabilitiescited by 182
- 2021Primer: Searching for Efficient Transformers for Language Modelingcited by 162
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 154
4 more
- 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 147
- 2023Stable and low-precision training for large-scale vision-language modelscited by 74
- 2023A Theory on Adam Instability in Large-Scale Machine Learningcited by 54
- 2024Transformer Normalisation Layers and the Independence of Semantic Subspacescited by 6
Built on by
Citing papers per year: 2024: 2; 2025: 5; 2026: 6.
13 papers.
Sort:
By area:
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 46
- 2025HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalizationcited by 15
- 2026Scaling Behavior Cloning Improves Causal Reasoning: An Open Model for Real-Time Video Game Playingcited by 10
- 2024LIBMoE: A Library for comprehensive benchmarking Mixture of Experts in Large Language Modelscited by 6
- 2024YuLan-Mini: An Open Data-efficient Language Modelcited by 5
- 2025Instability in Downstream Task Performance During LLM Pretrainingcited by 4
- 2025Controlling changes to attention logitscited by 3
- 2025Spectral Alignment as Predictor of Loss Explosion in Neural Network Trainingcited by 2
- 2026Pion: A Spectrum-Preserving Optimizer via Orthogonal Equivalence Transformationcited by 2
- 2026GeoNorm: Unify Pre-Norm and Post-Norm with Geodesic Optimizationcited by 1
- 2026Stability as a Liability:Systematic Breakdown of Linguistic Structure in LLMscited by 0
- 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventionscited by 0
1 more
- 2026One QK Channel, Many Sources: Tracing Low-Precision Attention Collapse3 Aug 2026
- 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventions6 Jun 2026
- 2026Pion: A Spectrum-Preserving Optimizer via Orthogonal Equivalence Transformation12 May 2026
- 2026GeoNorm: Unify Pre-Norm and Post-Norm with Geodesic Optimization29 Jan 2026
- 2026Stability as a Liability:Systematic Breakdown of Linguistic Structure in LLMs26 Jan 2026
- 2026Scaling Behavior Cloning Improves Causal Reasoning: An Open Model for Real-Time Video Game Playing8 Jan 2026
- 2025Controlling changes to attention logits26 Nov 2025
- 2025Instability in Downstream Task Performance During LLM Pretraining6 Oct 2025
- 2025Spectral Alignment as Predictor of Loss Explosion in Neural Network Training5 Oct 2025
- 2025HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization6 Mar 2025
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategy30 Jan 2025
- 2024YuLan-Mini: An Open Data-efficient Language Model23 Dec 2024
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 46
- 2025HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalizationcited by 15
- 2024YuLan-Mini: An Open Data-efficient Language Modelcited by 5
- 2025Instability in Downstream Task Performance During LLM Pretrainingcited by 4
- 2025Controlling changes to attention logitscited by 3
- 2025Spectral Alignment as Predictor of Loss Explosion in Neural Network Trainingcited by 2
- 2026Pion: A Spectrum-Preserving Optimizer via Orthogonal Equivalence Transformationcited by 2
- 2026GeoNorm: Unify Pre-Norm and Post-Norm with Geodesic Optimizationcited by 1
- 2026Stability as a Liability:Systematic Breakdown of Linguistic Structure in LLMscited by 0
- 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventionscited by 0
- 2026One QK Channel, Many Sources: Tracing Low-Precision Attention Collapsecited by 0
- 2026One QK Channel, Many Sources: Tracing Low-Precision Attention Collapse3 Aug 2026
- 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventions6 Jun 2026
- 2026Pion: A Spectrum-Preserving Optimizer via Orthogonal Equivalence Transformation12 May 2026
- 2026GeoNorm: Unify Pre-Norm and Post-Norm with Geodesic Optimization29 Jan 2026
- 2026Stability as a Liability:Systematic Breakdown of Linguistic Structure in LLMs26 Jan 2026
- 2025Controlling changes to attention logits26 Nov 2025
- 2025Instability in Downstream Task Performance During LLM Pretraining6 Oct 2025
- 2025Spectral Alignment as Predictor of Loss Explosion in Neural Network Training5 Oct 2025
- 2025HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization6 Mar 2025
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategy30 Jan 2025
- 2024YuLan-Mini: An Open Data-efficient Language Model23 Dec 2024