paper-with-me

Papers

Normalization Layer Per-Example Gradients are Sufficient to Predict Gradient Noise Scale in Transformers

2024-11-01 · Gavia Gray, Aman Tiwari, Shane Bergsma, Joel Hestness

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.

📄 PDF Abstract BibTeX arXiv:2411.00999

Code (1)

cerebrasresearch/nanogns 공식 구현 pytorch

Tasks

Language ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

GNS Graph Network-Based Simulators is a type of graph neural network that represents the state of a physical system with particles, expressed as nodes in a graph, and computes…

Similar Papers 제목 키워드 기반

Channel Normalization in Convolutional Neural Network avoids Vanishing Gradients

2019-07-22 · Zhenwei Dai, Reinhard Heckel

Normalization layers are widely used in deep neural networks to stabilize training. In this paper, we consider the training of convolutional neural networks with gradient descent on a single training example. This optimi…

Decoder

Channel Normalization in Convolutional Neural Network avoids Vanishing Gradients

2019-05-17 · ICML Workshop Deep_Phenomen 2019 6 · Zhenwei Dai and Reinhard Heckel

Normalization layers are widely used in deep neural networks to stabilize training. In this paper, we consider the training of convolutional neural networks with gradient descent on a single training example. This optim…

Decoder

Towards Training Without Depth Limits: Batch Normalization Without Gradient Explosion

2023-10-03 · Alexandru Meterez, Amir Joudaki, Francesco Orabona, Alexander Immer 외

Normalization layers are one of the key building blocks for deep neural networks. Several theoretical studies have shown that batch normalization improves the signal propagation, by avoiding the representations from beco…

Understanding and Improving Layer Normalization

2019-11-16 · NeurIPS 2019 12 · Jingjing Xu, Xu sun, Zhiyuan Zhang, Guangxiang Zhao 외

Layer normalization (LayerNorm) is a technique to normalize the distributions of intermediate layers. It enables smoother gradients, faster training, and better generalization accuracy. However, it is still unclear where…

Machine TranslationTranslation

NormFormer: Improved Transformer Pretraining with Extra Normalization

2021-10-18 · Sam Shleifer, Jason Weston, Myle Ott

During pretraining, the Pre-LayerNorm transformer suffers from a gradient magnitude mismatch: gradients at early layers are much larger than at later layers. These issues can be alleviated by our proposed NormFormer arch…

Language ModelingLanguage ModellingMasked Language Modeling