Skip to main content
QUICK REVIEW

[Paper Review] Parameter Norm Growth During Training of Transformers.

William Merrill, Vivek Ramanujan|arXiv (Cornell University)|Oct 19, 2020
Topic ModelingComputer Science20 references5 citations
TL;DR

This paper investigates how gradient descent (GD) causes the L2 norm of transformer parameters to grow during training, showing that higher training accuracy enables greater norm growth. It reveals that this norm growth leads to network saturation, reducing model capacity and revealing a previously unrecognized inductive bias in GD that is especially relevant for NLP models like T5.

ABSTRACT

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 some variant of gradient descent (GD). To better understand this bias, we study the tendency of transformer parameters to grow in magnitude during training. We find, both theoretically and empirically, that, in certain contexts, GD increases the parameter $L_2$ norm up to a threshold that itself increases with training-set accuracy. This means increasing training accuracy over time enables the norm to increase. Empirically, we show that the norm grows continuously over pretraining for T5 (Raffel et al., 2019). We show that pretrained T5 approximates a semi-discretized network with activation functions. Such saturated networks are known to have a reduced capacity compared to the original network family that can be described in automata-theoretic terms. This suggests saturation is a new characterization of an inductive bias implicit in GD that is of particular interest for NLP. While our experiments focus on transformers, our theoretical analysis extends to other architectures with similar formal properties, such as feedforward ReLU networks.

Motivation & Objective

  • Understand the inductive bias introduced by gradient descent in transformer training, particularly through parameter norm dynamics.
  • Investigate why transformers generalize well despite high capacity, focusing on how training dynamics shape model behavior.
  • Explain the connection between increasing training accuracy and the growth of parameter norms in self-attention and feedforward layers.
  • Characterize the effect of norm growth on model capacity by linking it to saturation in activation functions.
  • Extend theoretical insights to other architectures with similar formal properties, such as ReLU feedforward networks.

Proposed method

  • Theoretical analysis of gradient descent dynamics to derive conditions under which L2 norm of transformer parameters increases during training.
  • Empirical measurement of L2 norm growth across layers during pretraining of T5, tracking changes over training steps and accuracy levels.
  • Modeling the pretrained T5 as a semi-discretized network with piecewise-constant activation functions to study saturation effects.
  • Using automata-theoretic formalism to compare the capacity of saturated networks to the original continuous network family.
  • Analyzing the relationship between training accuracy and the threshold of norm growth, showing that higher accuracy permits larger norms.
  • Extending theoretical findings to feedforward ReLU networks to demonstrate broader applicability beyond transformers.

Experimental results

Research questions

  • RQ1How does gradient descent influence the L2 norm of transformer parameters during training?
  • RQ2What is the relationship between training accuracy and the maximum achievable parameter norm during optimization?
  • RQ3To what extent does parameter norm growth lead to network saturation and reduced model capacity?
  • RQ4Can the behavior of pretrained transformers be modeled as a semi-discretized network with saturated activations?
  • RQ5Does this norm growth phenomenon generalize to other architectures with similar structural properties, such as ReLU feedforward networks?

Key findings

  • The L2 norm of transformer parameters grows continuously during pretraining of T5, with the rate and extent of growth correlated to training accuracy.
  • Higher training accuracy allows the parameter norm to grow toward a higher threshold, indicating that improved generalization enables larger norm values.
  • Pretrained T5 behaves like a semi-discretized network with piecewise-constant activation functions, implying saturation due to norm growth.
  • Saturated networks have reduced capacity compared to their original continuous counterparts, suggesting that norm growth induces a structural inductive bias.
  • Theoretical analysis shows that this norm growth and saturation effect is not unique to transformers but also applies to feedforward ReLU networks with similar formal properties.
  • The findings suggest that gradient descent implicitly biases models toward saturated, lower-capacity representations, which may explain generalization despite high model capacity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.