A BatchNorm layer is applied to an activation tensor of shape (N, C) during training, where N is the batch dimension and C is the feature dimension. Which statistics does the layer compute in order to standardize this tensor?
- aOne global mean and one global variance over all N x C entries, so the whole tensor is standardized by a single pair of numbers
- bOne mean and one variance per feature, each estimated across the N samples in the batch✓
- cOne mean and one variance per sample, each estimated across the C features of that row
- dA full C x C covariance matrix, so correlated features are whitened together
Explanation:BatchNorm keeps one statistic pair per feature channel and estimates it by reducing over the batch dimension. The option that reduces over features within a row describes LayerNorm instead, and the single global pair would erase per-feature scale differences. Whitening with a covariance matrix is a different, far more expensive operation that BatchNorm does not perform.