NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SSN: Learning Sparse Switchable Normalization via SparsestMax.

Wenqi Shao, Tianjian Meng, Jingyu Li, Ruimao Zhang, Yudian Li, Xiaogang Wang, Ping Luo

Abstract

Normalization methods improve both optimization and generalization of ConvNets. To further boost performance, the recently-proposed switchable normalization (SN) provides a new perspective for deep learning: it learns to select different normalizers for different convolution layers of a ConvNet. However, SN uses softmax function to learn importance ratios to combine normalizers, leading to redundant computations compared to a single normalizer. This work addresses this issue by presenting Sparse Switchable Normalization (SSN) where the importance ratios are constrained to be sparse. Unlike $l_1$ and $l_0$ constraints that impose difficulties in optimization, we turn this constrained optimization problem into feed-forward computation by proposing SparsestMax, which is a sparse version of softmax. SSN has several appealing properties. (1) It inherits all benefits from SN such as applicability in various tasks and robustness to a wide range of batch sizes. (2) It is guaranteed to select only one normalizer for each normalization layer, avoiding redundant computations. (3) SSN can be transferred to various tasks in an end-to-end manner. Extensive experiments show that SSN outperforms its counterparts on various challenging benchmarks such as ImageNet, Cityscapes, ADE20K, and Kinetics.

Introduction

Normalization is a fundamental component in modern deep neural networks. Various techniques like Batch Normalization (BN), Layer Normalization (LN), and Instance Normalization (IN) have been developed to address specific challenges, such as large batch training, recurrent stability, or style invariance. While Switchable Normalization (SN) successfully learned to combine these methods using a softmax-weighted average, it introduced a significant "inference tax." At test time, SN requires computing statistics for all combined normalizers, which is computationally expensive and redundant.

Sparse Switchable Normalization (SSN) addresses this by evolving the network to select exactly one normalization method per layer. This transition from a mixture during training to a single winner at inference time ensures efficiency without sacrificing the performance gains of adaptive normalization.

The SSN framework enables end-to-end learning of sparse importance ratios for different normalizers.

Methods

The core of SSN lies in its ability to learn sparse importance ratios for a set of normalizers $\Omega = \{IN, BN, LN\}$. This is achieved through the SparsestMax function.

The SparsestMax Function

Standard Softmax produces dense outputs, while Sparsemax can produce zeros but doesn't guarantee a one-hot selection. SparsestMax introduces a circular constraint on the probability simplex to enforce sparsity.

Geometrically, the probability simplex for three normalizers is a triangle. SparsestMax defines a circle with radius $r$ centered at the uniform distribution $u$. During training, $r$ is gradually increased. As the circle expands, it pushes the valid solution space toward the vertices of the triangle. By the end of training, the radius is large enough that only the vertices—representing 100% selection of a single normalizer—remain valid.

Geometric interpretation of SparsestMax: as the radius $r$ increases, the solution is pushed toward the vertices of the simplex.

Because SparsestMax is derived from Karush-Kuhn-Tucker (KKT) conditions, it is differentiable, allowing the network to learn discrete-like switches via standard backpropagation. Furthermore, it possesses a "wake-up" property: even if a weight hits zero, its gradient remains stable, preventing optimization jitter in late training stages.

Experiments and Results

SSN was evaluated across multiple benchmarks, demonstrating its versatility and efficiency.

ImageNet Classification

On ResNet-50, SSN achieved 77.2% top-1 accuracy, surpassing both pure BN (76.4%) and the original SN (76.9%). Crucially, SSN maintained high performance (75.9%) even with a batch size of 2, where BN typically fails (65.3%).

Inference Efficiency

SSN significantly improves inference speed compared to SN. On a GTX 1080, SSN reached 216 images/second, outperforming SN and GN (both 183 images/sec). This speedup is possible because the sparse selection allows BN to be fused into preceding convolution layers, an optimization not feasible with weighted mixtures.

Generalization to Other Tasks

  • Semantic Segmentation: On ADE20K and Cityscapes, SSN outperformed Synchronized BN and GN, showing robustness to high-resolution inputs.
  • Action Recognition: In the Kinetics dataset using I3D architectures, SSN demonstrated superior performance, proving its effectiveness in video-based tasks.

Conclusion

SSN provides a robust and efficient framework for learning layer-specific normalization. By utilizing the SparsestMax function, it achieves the performance of adaptive mixtures while maintaining the inference speed of single-normalizer architectures. Future work may explore applying SparsestMax to broader Neural Architecture Search (NAS) problems, such as selecting between different convolution kernels or activation functions.

Summary updated

BibTeX
@inproceedings{shao2019ssn,
  author = {Wenqi Shao and Tianjian Meng and Jingyu Li and Ruimao Zhang and Yudian Li and Xiaogang Wang and Ping Luo},
  title = {{SSN: Learning Sparse Switchable Normalization via SparsestMax.}},
  booktitle = {CVPR},
  year = {2019},
  url = {https://openreview.net/forum?id=HsUWmb7l_6S},
}
Figure