Skip to main content
QUICK REVIEW

[Paper Review] Switchable Normalization for Learning-to-Normalize Deep Representation

Ping Luo, Ruimao Zhang|arXiv (Cornell University)|Jul 22, 2019
Domain Adaptation and Few-Shot LearningComputer Science8 citations
TL;DR

This paper proposes Switchable Normalization (SN), a learnable normalization technique that dynamically selects between batch, layer, and instance normalization statistics per layer via learnable weights. SN improves performance across diverse tasks—image classification, object detection, semantic segmentation, face verification, and style transfer—by adapting normalization strategy per layer, outperforming BN, GN, and IN, especially under small batch sizes, and eliminating hyperparameter sensitivity.

ABSTRACT

We address a learning-to-normalize problem by proposing Switchable Normalization (SN), which learns to select different normalizers for different normalization layers of a deep neural network. SN employs three distinct scopes to compute statistics (means and variances) including a channel, a layer, and a minibatch. SN switches between them by learning their importance weights in an end-to-end manner. It has several good properties. First, it adapts to various network architectures and tasks. Second, it is robust to a wide range of batch sizes, maintaining high performance even when small minibatch is presented (e.g. 2 images/GPU). Third, SN does not have sensitive hyper-parameter, unlike group normalization that searches the number of groups as a hyper-parameter. Without bells and whistles, SN outperforms its counterparts on various challenging benchmarks, such as ImageNet, COCO, CityScapes, ADE20K, MegaFace, and Kinetics. Analyses of SN are also presented to answer the following three questions: (a) Is it useful to allow each normalization layer to select its own normalizer? (b) What impacts the choices of normalizers? (c) Do different tasks and datasets prefer different normalizers? We hope SN will help ease the usage and understand the normalization techniques in deep learning. The code of SN has been released at https://github.com/switchablenorms.

Motivation & Objective

  • To address the suboptimal performance of using a single normalization type across all layers in deep networks.
  • To eliminate the need for manual hyperparameter tuning, such as group count in Group Normalization.
  • To enable adaptive normalization selection per layer, improving generalization and performance across diverse architectures and tasks.
  • To analyze whether layer-specific normalization choice improves performance and what factors influence such choices.

Proposed method

  • SN combines statistics from three normalization types: batch (BN), layer (LN), and instance (IN), computing means and variances across minibatch, channel, and spatial dimensions respectively.
  • It learns importance weights for each normalization type using a differentiable gating mechanism, allowing end-to-end training of the selection process.
  • The final normalized output is a weighted sum of the three normalized features, with the weights shared across channels but learned per layer.
  • The method is applicable to both CNNs and RNNs, including LSTMs, and supports both training and inference with minimal computational overhead.
  • Hard routing (e.g., selecting only one normalizer per layer) is explored to reduce inference cost, with 50% of layers in sparse SN choosing BN, enabling conversion to linear layers.
  • Synchronized batch normalization is applied in SN to further improve generalization, especially in distributed training.

Experimental results

Research questions

  • RQ1Is it beneficial to allow each normalization layer to independently select its own normalizer rather than using a fixed one across the network?
  • RQ2What factors influence the choice of normalizer at each layer—architecture, task, or data distribution?
  • RQ3Do different tasks and datasets prefer different combinations of normalization techniques?
  • RQ4How does SN perform under small batch sizes, where BN typically degrades?
  • RQ5Can SN be used effectively in both CNNs and RNNs, including in architecture search?

Key findings

  • On ImageNet with ResNet50, SN achieved 76.9% top-1 accuracy under a (1,4) batch setting, surpassing BN (76.4%) and GN (75.9%), approaching the ideal BN performance.
  • SN maintained high accuracy even at very small batch sizes (e.g., 2 images/GPU), outperforming BN and GN, which degrade significantly under such conditions.
  • In image stylization with VGG16, SN converged faster than both IN and BN and automatically selected IN as the dominant normalizer, matching the known preference for IN in this task.
  • In neural architecture search using LSTM controllers, SN achieved higher validation accuracy on CIFAR-10 than both LN and GN, demonstrating superior performance in search policy learning.
  • SN reduced overfitting when combined with small dropout (0.1–0.2) after SN layers and improved generalization in ImageNet.
  • Hard routing in SN reduced inference time by 50% in sparse configurations, with 50% of layers selecting BN, enabling efficient deployment via linear transformation.

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.