paper-with-me

홈 › Papers

Methods of improving LLM training stability

2024-10-22 · Oleg Rybakov, Mike Chrzanowski, Peter Dykas, Jinze Xue, Ben Lanir

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.

📄 PDF Abstract BibTeX arXiv:2410.16682

Code (0)

등록된 구현이 없습니다.

Tasks

Small Language Model

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Residual Connection 설명 없음
Position-Wise Feed-Forward Layer 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Multi-Head Attention 설명 없음
Adam 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…

Similar Papers 제목 키워드 기반

Optimizer Dynamics at the Edge of Stability with Differential Privacy

2025-12-22 · Ayana Hussain, Ricky Fang arxiv

Deep learning models can reveal sensitive information about individual training examples, and while differential privacy (DP) provides guarantees restricting such leakage, it also alters optimization dynamics in poorly u…

Zeroth-Order Optimization at the Edge of Stability

2026-04-16 · Minhak Song, Liang Zhang, Bingcong Li, Niao He 외 arxiv

Zeroth-order (ZO) methods are widely used when gradients are unavailable or prohibitively expensive, including black-box learning and memory-efficient fine-tuning of large models, yet their optimization dynamics in deep …

The Impact of Dimensionality on the Stability of Node Embeddings

2026-04-09 · Tobias Schumacher, Simon Reichelt, Markus Strohmaier arxiv

Previous work has shown that node embedding methods can produce different representations and downstream predictions across repeated training runs, even when trained on the same data with identical hyperparameters. Howev…

Instability in Downstream Task Performance During LLM Pretraining

2025-10-06 · Yuto Nishida, Masaru Isonuma, Yusuke Oda arxiv

When training large language models (LLMs), it is common practice to track downstream task performance throughout the training process and select the checkpoint with the highest validation score. However, downstream metr…

Adaptive Gradient Methods at the Edge of Stability

2022-07-29 · Jeremy M. Cohen, Behrooz Ghorbani, Shankar Krishnan, Naman Agarwal 외

Very little is known about the training dynamics of adaptive gradient methods like Adam in deep learning. In this paper, we shed light on the behavior of these algorithms in the full-batch and sufficiently large batch se…