atlas

Research map / Architectures and efficiency / RNNs and normalization

Small-scale proxies for large-scale Transformer training instabilities

ICLR 2024 · Architectures and efficiency › RNNs and normalization · approach: Layer-wise analysis of language models · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Reproduces Transformer training instabilities (attention logit growth, output logit divergence) in small models at high learning rates and studies interventions (qk-layernorm, z-loss, warm-up, weight decay, muParam) via a learning-rate-sensitivity metric.

Problem

Large Transformer training instabilities are costly to reproduce and study; the paper asks whether they can be reproduced and predicted at small scale.

Approach

Measure LR sensitivity (expected deviation from optimal final loss across three orders of magnitude of learning rate) as a summary of LR-vs-loss curves across model scales, use it to reproduce known instabilities in small models, and extrapolate scaling trends of activation/gradient norms to predict instabilities.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add qk-layernorm (ablation)small Transformers · LR sweep 3e-4 to 3e-1LR sensitivity / training stabilityHelped
add z-loss regularization (coefficient 1e-4) (ablation)small Transformers with output logit divergence · LR vs loss curvesinstability from output logit divergenceHelped
use independent weight decay (decoupled from LR) (ablation)small Transformers · LR sweepLR sensitivityHelped
longer warm-up (ablation)small Transformers with qk-layernorm · LR sweep, model sizesLR sensitivityHelped
scale depth instead of width (ablation)small Transformers · LR sensitivity scalingLR sensitivityHurt
muParam (simple) (ablation)Transformers with qk-layernorm · LR sweepLR sensitivity and lossNo clear effect
decrease AdamW epsilon from 1e-8 to 1e-15 (ablation)4.8B Transformer at LR 0.3 · training losslossHelped
increase AdamW epsilon from 1e-8 to 1e-6 (ablation)4.8B Transformer at LR 0.3 · training lossdivergenceHurt
increase weight decay from 1e-4 (ablation)small Transformers · LR sweepoptimal LR locationNo clear effect
change attention scaling from 1/sqrt(d_h) to 1/d_h (muParam full change ii) (ablation)small Transformers · LR sweeplossMixed
increase batch size from 256 to 512 or 1024 (ablation)small Transformers · LR sensitivityLR sensitivityNo clear effect
change number of training steps from 1e5 to 5e4 or 2e5 (ablation)small Transformers · LR sweepLR sensitivityNo clear effect

Surprising findings

Experimental setup

Datasets: C4

Metrics: validation loss LR sensitivity max attention logit gradient RMS update RMS

Baselines: baseline Transformer without qk-layernorm muParam

Builds on: qk-layernorm z-loss muParam AdamW GPT-2

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy