paper-with-me

홈 › Papers

Effects of Parameter Norm Growth During Transformer Training: Inductive Bias from Gradient Descent

2020-10-19 · EMNLP 2021 11 · William Merrill, Vivek Ramanujan, Yoav Goldberg, Roy Schwartz, Noah Smith

The capacity of neural networks like the widely adopted transformer is known to be very high. Evidence is emerging that they learn successfully due to inductive bias in the training routine, typically a variant of gradient descent (GD). To better understand this bias, we study the tendency for transformer parameters to grow in magnitude ($\ell_2$ norm) during training, and its implications for the emergent representations within self attention layers. Empirically, we document norm growth in the training of transformer language models, including T5 during its pretraining. As the parameters grow in magnitude, we prove that the network approximates a discretized network with saturated activation functions. Such "saturated" networks are known to have a reduced capacity compared to the full network family that can be described in terms of formal languages and automata. Our results suggest saturation is a new characterization of an inductive bias implicit in GD of particular interest for NLP. We leverage the emergent discrete structure in a saturated transformer to analyze the role of different attention heads, finding that some focus locally on a small number of positions, while other heads compute global averages, allowing counting. We believe understanding the interplay between these two capabilities may shed further light on the structure of computation within large transformers.

📄 PDF Abstract BibTeX arXiv:2010.09697

Code (1)

viking-sudo-rm/norm-growth 공식 구현 pytorch

Tasks

Inductive Bias

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Gated Linear Unit A Gated Linear Unit, or GLU computes: $$ \mathrm{GLU}(a, b) = a \otimes \sigma(b) $$ It is used in natural language processing architectures, for example the Gated CNN,…
Attention 설명 없음
Inverse Square Root Schedule Inverse Square Root is a learning rate schedule 1 / $\sqrt{\max\left(n, k\right)}$ where $n$ is the current training iteration and $k$ is the number of warm-up steps. This…
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…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Adafactor Adafactor is a stochastic optimization method based on Adam that reduces memory usage while retaining the empirical benefits of…

Similar Papers 제목 키워드 기반

Deep Transformer Model with Pre-Layer Normalization for COVID-19 Growth Prediction

2022-07-10 · Rizki Ramadhan Fitra, Novanto Yudistira, Wayan Firdaus Mahmudy

Coronavirus disease or COVID-19 is an infectious disease caused by the SARS-CoV-2 virus. The first confirmed case caused by this virus was found at the end of December 2019 in Wuhan City, China. This case then spread thr…

Time SeriesTime Series Analysis

Leveraging Batch Normalization for Vision Transformers

2021-01-01 · ICCVW 2021 1 · Zhuliang Yao, Yue Cao, Yutong Lin, Ze Liu 외

Transformer-based vision architectures have attracted great attention because of the strong performance over the convolutional neural networks (CNNs). Inherited from the NLP tasks, the architectures take Layer Normalizat…

Peri-LN: Revisiting Layer Normalization in the Transformer Architecture

2025-02-04 · Jeonghoon Kim, Byeongchan Lee, Cheonbok Park, Yeontaek Oh 외

Designing Transformer architectures with the optimal layer normalization (LN) strategy that ensures large-scale training stability and expedite convergence has remained elusive, even in this era of large language models …

Grokking or Glitching? How Low-Precision Drives Slingshot Loss Spikes

2026-05-07 · Liu Hanqing, Jianjun Cao, Yuanze Li, Zijian Zhou arxiv

Deep neural networks exhibit periodic loss spikes during unregularized long-term training, a phenomenon known as the "Slingshot Mechanism." Existing work usually attributes this to intrinsic optimization dynamics, but it…

Subcritical Signal Propagation at Initialization in Normalization-Free Transformers

2026-04-13 · Sergey Alekseev arxiv

We study signal propagation at initialization in transformers through the averaged partial Jacobian norm (APJN), a measure of gradient amplification across layers. We extend APJN analysis to transformers with bidirection…