[Paper Review] Restructuring Batch Normalization to Accelerate CNN Training
The paper proposes BN Fission-n-Fusion (BNFF) to restructure Batch Normalization layers, reducing memory accesses and boosting training speed of modern CNNs like DenseNet-121 and ResNet-50; on Skylake CPUs it yields up to 25.7% training speedup for DenseNet-121 and 16.1% for ResNet-50.
Batch Normalization (BN) has become a core design block of modern Convolutional Neural Networks (CNNs). A typical modern CNN has a large number of BN layers in its lean and deep architecture. BN requires mean and variance calculations over each mini-batch during training. Therefore, the existing memory access reduction techniques, such as fusing multiple CONV layers, are not effective for accelerating BN due to their inability to optimize mini-batch related calculations during training. To address this increasingly important problem, we propose to restructure BN layers by first splitting a BN layer into two sub-layers (fission) and then combining the first sub-layer with its preceding CONV layer and the second sub-layer with the following activation and CONV layers (fusion). The proposed solution can significantly reduce main-memory accesses while training the latest CNN models, and the experiments on a chip multiprocessor show that the proposed BN restructuring can improve the performance of DenseNet-121 by 25.7%.
Motivation & Objective
- Motivate the rising importance of non-CONV layers, particularly Batch Normalization, in training modern deep CNNs.
- Analyze memory bandwidth bottlenecks in BN layers during training of deep models like DenseNet-121.
- Develop BN restructuring (fission and fusion) to minimize main-memory accesses.
- Demonstrate performance improvements on CPU (Skylake) and GPU platforms across DenseNet-121 and ResNet-50.
Proposed method
- Split a BN layer into two sub-layers (fission).
- Fuse the first sub-layer with the preceding CONV layer (CONV1-(sub-BN1)).
- Fuse the second sub-layer with the following ReLU and CONV layer (sub-BN2-ReLU-CONV2).
- Use mean/variance fusion to merge BN mean and variance computations into a single memory sweep (MVF).
- Optionally extend BNFF with Inter-Composite-Layer Fusion (ICF) to fuse BN across CPL boundaries in DenseNet.
Experimental results
Research questions
- RQ1How much memory traffic and bandwidth bottlenecks are caused by BN during training of deep CNNs?
- RQ2Can BN layers be restructured via fission and fusion to reduce off-chip memory accesses without compromising accuracy?
- RQ3What performance gains are achievable on CPU and GPU platforms when applying BNFF to DenseNet-121 and ResNet-50?
- RQ4Does mean/variance fusion affect numerical accuracy sufficiently to justify its use in BN restructuring?
Key findings
- BNFF achieves substantial memory-access reductions and speedups during training of DenseNet-121 and ResNet-50.
- On Intel Skylake CPUs, BNFF yields 25.7% overall training speedup for DenseNet-121 and 16.1% for ResNet-50.
- Forward pass gains reach 47.9% for DenseNet-121 with BNFF, while backward pass gains reach 15.4% (DenseNet-121).
- Mean/Variance Fusion (MVF) and ReLU-Convolution Fusion (RCF) contribute additive gains on top of BNFF (e.g., MVF adds 1.7% overall on Skylake).
- Inter-Composite-Layer Fusion (ICF) could provide an additional ~18% improvement over BNFF for DenseNet by further eliminating BN-related memory accesses at CPL boundaries.
- BNFF reduces memory accesses by up to ~19% and also improves cache behavior and reduces overhead from subroutine calls.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.