Choosing an Axis for Normalization

Normalization estimates a center and scale over a selected set of positions. The axis choice changes which values share those statistics.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace two examples
  2. Test unequal shape and values

Trace two examples

With rows \((1,3)\) and \((5,7)\), a mean over features is two for the first row and six for the second. A mean across examples is three for the first feature and five for the second. See tensor axis roles.

Test unequal shape and values

A fixture with deliberately unequal row means and column means reveals a swapped axis. Normalization layers give common choices and contracts.[1]

References

  1. Ian Goodfellow, Yoshua Bengio and Aaron Courville, Deep Learning ↩