Normalization Layer Per-Example Gradients are Sufficient to Predict Gradient Noise Scale in Transformers
Not on the map. Why?
Abstract (arXiv)
Per-example gradient norms are a vital ingredient for estimating gradient noise scale (GNS) with minimal variance. Observing the tensor contractions required to compute them, we propose a method with minimal FLOPs in 3D or greater tensor regimes by simultaneously computing the norms while computing the parameter gradients. Using this method we are able to observe the GNS of different layers at higher accuracy than previously possible. We find that the total GNS of contemporary transformer models is predicted well by the GNS of only the normalization layers. As a result, focusing only on the normalization layer, we develop a custom kernel to compute the per-example gradient norms while performing the LayerNorm backward pass with zero throughput overhead. Tracking GNS on only those layers, we are able to guide a practical batch size schedule that reduces training time by 18% on a Chinchilla-optimal language model.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 44 of its 66 references that are in the map. First posted on arXiv 1 Nov 2024.
Builds on
44 of 66 references.
References · 44
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
- 2016Layer Normalizationcited by 5,669
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2018Spectral Normalization for Generative Adversarial Networkscited by 1,636
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,254
- 2016Optimization Methods for Large-Scale Machine Learningcited by 1,150
- 2019On the Convergence of Adam and Beyondcited by 841
32 more
- 2015Dueling Network Architectures for Deep Reinforcement Learningcited by 785
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
- 2021Carbon Emissions and Large Neural Network Trainingcited by 567
- 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 412
- 2023Analyzing and Improving the Training Dynamics of Diffusion Modelscited by 402
- 2021Opacus: User-Friendly Differential Privacy Library in PyTorchcited by 383
- 2023Fine-Tuning Language Models with Just Forward Passescited by 345
- 2018An Empirical Model of Large-Batch Trainingcited by 281
- 2019A Tail-Index Analysis of Stochastic Gradient Noise in Deep Neural Networkscited by 214
- 2018Measuring the Effects of Data Parallelism on Neural Network Trainingcited by 193
- 2023Small-scale proxies for large-scale Transformer training instabilitiescited by 183
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 161
- 2022High-dimensional Asymptotics of Feature Learning: How One Gradient Step Improves the Representationcited by 150
- 2017A Bayesian Perspective on Generalization and Stochastic Gradient Descentcited by 135
- 2024Scalable High-Resolution Pixel-Space Image Synthesis with Hourglass Diffusion Transformerscited by 118
- 2019Which Algorithmic Choices Matter at Which Batch Sizes? Insights From a Noisy Quadratic Modelcited by 117
- 2022Adam Can Converge Without Any Modification On Update Rulescited by 114
- 2023Noise Is Not the Main Factor Behind the Gap Between SGD and Adam on Transformers, but Sign Descent Might Becited by 114
- 2023Cerebras-GPT: Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale Clustercited by 109
- 2020Estimating Example Difficulty Using Variance of Gradientscited by 97
- 2021How to Train BERT with an Academic Budgetcited by 80
- 2024Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language Modelscited by 80
- 2019BackPACK: Packing more into backpropcited by 78
- 2019First Exit Time Analysis of Stochastic Gradient Descent Under Heavy-Tailed Gradient Noisecited by 44
- 2015Efficient Per-Example Gradient Computationscited by 42
- 2021Batch size-invariance for policy optimizationcited by 35
- 2016Coupling Adaptive Batch Sizes with Learning Ratescited by 30
- 2020A Study of Gradient Variance in Deep Learningcited by 28
- 2023CLIPA-v2: Scaling CLIP Training with 81.1% Zero-shot ImageNet Accuracy within a 10,000 Budget; An Extra 4,000 Unlocks 81.8% Accuracycited by 24
- 2019Efficient Per-Example Gradient Computations in Convolutional Neural Networkscited by 17
- 2016Big Batch SGD: Automated Inference using Adaptive Batch Sizescited by 13
- 2018The Effect of Network Width on the Performance of Large-batch Trainingcited by 5
Built on by
Citing papers per year: 2025: 3; 2026: 4.
7 papers.
- 2025Straight to Zero: Why Linearly Decaying the Learning Rate to Zero Works Best for LLMscited by 35
- 2025Critical Batch Size Revisited: A Simple Empirical Approach to Large-Batch Language Model Trainingcited by 23
- 2026Fast Catch-Up, Late Switching: Optimal Batch Size Scheduling via Functional Scaling Lawscited by 6
- 2025Per-example gradients: a new frontier for understanding and improving optimizerscited by 2
- 2026Adaptive Batch Sizes Using Non-Euclidean Gradient Noise Scales for Stochastic Sign and Spectral Descentcited by 2
- 2026Adaptive Forgetting for Nonstationary Optimization: Towards Robust EEG Decodingcited by 0
- 2026How Does Local Landscape Geometry Evolve in Language Model Pre-Training?cited by 0
- 2026How Does Local Landscape Geometry Evolve in Language Model Pre-Training?30 Sep 2026
- 2026Adaptive Forgetting for Nonstationary Optimization: Towards Robust EEG Decoding21 Sep 2026
- 2026Fast Catch-Up, Late Switching: Optimal Batch Size Scheduling via Functional Scaling Laws15 Feb 2026
- 2026Adaptive Batch Sizes Using Non-Euclidean Gradient Noise Scales for Stochastic Sign and Spectral Descent3 Feb 2026
- 2025Per-example gradients: a new frontier for understanding and improving optimizers30 Sep 2025
- 2025Critical Batch Size Revisited: A Simple Empirical Approach to Large-Batch Language Model Training29 May 2025
- 2025Straight to Zero: Why Linearly Decaying the Learning Rate to Zero Works Best for LLMs21 Feb 2025