liveBook · Manning

Group normalization

As explained in Grokking AI Algorithms, Second Edition

Group normalization normalizes neural-network activations by dividing channels into groups and standardizing values within each group.

Group normalization stabilizes neural-network activations by dividing feature maps into predefined groups, then recentering and rescaling values within each group before activation. section 12.17

The process works like small teams receiving separate brightness and contrast adjustments:

  • Divide the output feature maps into groups. section 12.17
  • Calculate one mean and standard deviation for each group. section 12.17
  • Normalize values using the statistics from their own group. section 12.17

Eight feature maps, one group

A convolution produces an 8×8×8 tensor: eight feature maps, each with an 8×8 grid. Using one group for all eight maps, examine the first pixel in every map, calculate their combined mean and standard deviation, and normalize those eight values together before sending them to the activation function. section 12.17

Figure 12.30 The first pixel of all feature maps produced by the first convolutional layer
12_30

View the first pixel across the feature maps before normalization, then compare the resulting normalized values in the companion calculation. section 12.17

How Grokking AI Algorithms, Second Edition covers it

How deep it goes
Explains grouping, per-group statistics, and first-pixel normalization, but stops short of a complete implementation.
Examples
Works through eight feature maps, one group, and the first pixel of each map.
What it assumes
Assumes convolution has produced feature maps; teaches grouping and standardization in plain language.
What you can do after
Apply group normalization to grouped feature maps before an activation function.
How it connects
Connects convolutional layers, feature maps, activation functions, and internal covariate shift.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking AI Algorithms, Second Edition. The section links point to the parts of the book it draws on.