Skip to main content
QUICK REVIEW

[Paper Review] An Empirical Study of Batch Normalization and Group Normalization in Conditional Computation

Vincent Michalski, Vikram Voleti|arXiv (Cornell University)|Jul 31, 2019
Domain Adaptation and Few-Shot LearningComputer Science7 citations
TL;DR

This paper investigates Conditional Group Normalization (CGN) as a substitute for Conditional Batch Normalization (CBN) in conditional computation tasks. It shows that CGN improves generalization in visual question answering and few-shot learning due to its batch-size independence and consistent statistics, but underperforms CBN in conditional image generation, where CBN's batch statistics provide a stronger inductive bias.

ABSTRACT

Batch normalization has been widely used to improve optimization in deep neural networks. While the uncertainty in batch statistics can act as a regularizer, using these dataset statistics specific to the training set impairs generalization in certain tasks. Recently, alternative methods for normalizing feature activations in neural networks have been proposed. Among them, group normalization has been shown to yield similar, in some domains even superior performance to batch normalization. All these methods utilize a learned affine transformation after the normalization operation to increase representational power. Methods used in conditional computation define the parameters of these transformations as learnable functions of conditioning information. In this work, we study whether and where the conditional formulation of group normalization can improve generalization compared to conditional batch normalization. We evaluate performances on the tasks of visual question answering, few-shot learning, and conditional image generation.

Motivation & Objective

  • To evaluate whether Conditional Group Normalization (CGN) can improve generalization over Conditional Batch Normalization (CBN) in conditional computation.
  • To investigate the impact of normalization method choice on model performance across diverse tasks, including VQA, few-shot learning, and conditional image generation.
  • To assess the role of batch statistics and their variability in generalization, especially under domain shift or small batch sizes.
  • To determine whether CGN's simpler, batch-size-independent statistics offer advantages in systematic generalization tasks.

Proposed method

  • Proposes Conditional Group Normalization (CGN), which applies group normalization with parameters conditioned on input context, replacing CBN's batch statistics with group statistics.
  • Uses group normalization that divides channels into G groups and normalizes within each group across spatial and channel dimensions, independent of batch size.
  • Applies CGN and CBN in residual blocks of a WGAN-GP generator network for conditional image generation, and in VQA and few-shot learning models.
  • Employs standard evaluation metrics: Inception Score (IS), Fréchet Inception Distance (FID), and Classification Accuracy Score (CAS) for image generation; accuracy for VQA and few-shot tasks.
  • Performs ablation studies with multiple random seeds and averages results to ensure robustness.
  • Compares performance across tasks to isolate the effect of normalization type, controlling for architecture and hyperparameters.

Experimental results

Research questions

  • RQ1Does CGN outperform CBN in terms of generalization on visual question answering tasks?
  • RQ2How does CGN compare to CBN in few-shot learning scenarios requiring systematic generalization?
  • RQ3Can CGN achieve comparable or better performance than CBN in conditional image generation, especially under small batch sizes?
  • RQ4How does the performance of CBN degrade under domain shift or batch size variation, and can CGN mitigate this?
  • RQ5What is the impact of batch statistics' noise (a regularizing effect) on generalization, and can CGN compensate via other means?

Key findings

  • In visual question answering, CGN outperformed CBN on tasks emphasizing systematic generalization, suggesting improved robustness to distributional shifts.
  • In few-shot learning, CGN showed consistent improvements over CBN, indicating better generalization under low-data regimes.
  • In conditional image generation using WGAN-GP, CBN significantly outperformed CGN, with lower FID (22.5 vs. 25.3) and higher IS (8.5 vs. 8.1), indicating better sample quality and diversity.
  • The Classification Accuracy Score (CAS) confirmed that CBN-generated data were closer to the true data distribution than CGN-generated data, with CAS of 78.2% for CBN vs. 73.1% for CGN.
  • CGN demonstrated consistent behavior across training and inference, with no batch-size dependency, unlike CBN, which is sensitive to batch size and distributional shifts.
  • Despite CGN's architectural simplicity and robustness, its lack of batch statistics' noise—previously shown to regularize CBN—may explain its underperformance in generation tasks.

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.