mlsanityData to 7 Oct 2026

Methods of improving LLM training stability

arXiv 2410.16682 ↗First posted 22 Oct 2024cs.CL cs.LGcited by 13

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

  1. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  2. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  4. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
  5. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
  6. 2021Going deeper with Image Transformerscited by 759
  7. 2023Scaling Vision Transformers to 22 Billion Parameterscited by 690
  8. 2016Neural Combinatorial Optimization with Reinforcement Learningcited by 600
  9. 2020Query-Key Normalization for Transformerscited by 266
  10. 2023Small-scale proxies for large-scale Transformer training instabilitiescited by 182
  11. 2021Primer: Searching for Efficient Transformers for Language Modelingcited by 162
  12. 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 154
4 more
  1. 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 147
  2. 2023Stable and low-precision training for large-scale vision-language modelscited by 74
  3. 2023A Theory on Adam Instability in Large-Scale Machine Learningcited by 54
  4. 2024Transformer Normalisation Layers and the Independence of Semantic Subspacescited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 5; 2026: 6.

13 papers.

Sort:

By area: