LightNorm: Area and Energy-Efficient Batch Normalization Hardware for On-Device DNN Training

Seock-Hwan Noh, Junsang Park, Dahoon Park, Jahyun Koo, Jeik Choi, Jaeha Kung · DOI

Abstract

When training early-stage deep neural networks (DNNs), generating intermediate features via convolution or linear layers occupied most of the execution time. Accordingly, extensive research has been done to reduce the computational burden of the convolution or linear layers. In recent mobile-friendly DNNs, however, the relative number of operations involved in processing these layers has significantly reduced. As a result, the proportion of the execution time of other layers, such as batch normalization layers, has increased. Thus, in this work, we conduct a detailed analysis of the batch normalization layer to efficiently reduce the runtime overhead in the batch normalization process. Backed up by the thorough analysis, we present an extremely efficient batch normalization, named LightNorm, and its associated hardware module. In more detail, we fuse three approximation techniques that are i) low bit-precision, ii) range batch normalization, and iii) block floating point. All these approximate techniques are carefully utilized not only to maintain the statistics of intermediate feature maps, but also to minimize the off-chip memory accesses. By using the proposed LightNorm hardware, we can achieve significant area and energy savings during the DNN training without hurting the training accuracy. This makes the proposed hardware a great candidate for the on-device training.

The Rising Bottleneck of Batch Normalization

In the early development of Deep Neural Networks (DNNs), convolutional and fully-connected layers were the primary computational bottlenecks. However, as "mobile-friendly" architectures like MobileNetV2 have become more efficient, the relative overhead of non-computational layers has skyrocketed.

Relative runtime of Batch Normalization (BN) across different DNN architectures.

As shown in the runtime analysis above, Batch Normalization (BN) can consume over 60% of the total training runtime in models like MobileNetV2. Standard BN is hardware-heavy because it requires complex arithmetic like square roots and divisions. Furthermore, training typically requires high-precision formats (FP32) to remain stable, which leads to massive memory traffic between the processor and off-chip DRAM—a "memory wall" that significantly drains battery life on edge devices.

The LightNorm Approach

To address these challenges, the authors propose LightNorm, a hardware-efficient BN scheme that integrates three key approximation techniques:

  1. Low Bit-Precision (FP10): Instead of using 32-bit or 16-bit floats, LightNorm utilizes 10-bit formats. Crucially, it employs an asymmetric approach: FP10-A (more mantissa bits) for the forward pass to maintain statistical accuracy, and FP10-B (more exponent bits) for the backward pass to capture the wider dynamic range of gradients.
  2. Range Batch Normalization (RN): Standard BN calculates the standard deviation, which involves square root and division operations. RN replaces this with a simple range calculation ($max - min$) multiplied by a pre-computed constant. This eliminates the need for power-hungry square root and division units.
  3. Block Floating Point (BFP): To minimize expensive DRAM accesses, LightNorm groups numbers into blocks that share a single exponent. This reduces the memory footprint of feature maps by up to 37.5%, significantly lowering data movement energy.

Hardware Implementation and Efficiency

The researchers designed a custom hardware accelerator featuring parallel forward (FW) and backward (BW) modules, a scalar unit for pre-computing constants, and a Lookup Table (LUT) to handle batch-size-dependent parameters. The impact of the low-precision FP10 format on individual arithmetic units is profound.

Hardware implementation results (Area, Power, and Frequency) for various arithmetic units and data formats.

As illustrated in the hardware metrics, moving from FP32 to FP10-B drastically reduces the area and power consumption of critical units like the Divider and Square Root Unit. For instance, the area of a Divider unit drops from 3186 $\mu m^2$ in FP32 to just 163 $\mu m^2$ in FP10-B, while its power consumption falls from 2.81 mW to 0.05 mW.

Key Results and Accuracy

  • Hardware Efficiency: Compared to a conventional FP32 BN implementation, the complete LightNorm hardware module is 16.2× smaller in area and consumes 15.4× less power.
  • System-Level Energy: When integrated into a full DNN training accelerator, LightNorm-equipped designs achieved 1.3× to 5.0× lower energy consumption per training epoch compared to various baseline accelerators.
  • Accuracy Preservation: On the CIFAR-100 dataset, LightNorm achieved a test accuracy of 67.82% for MobileNetV1, which is remarkably close to (and in some cases slightly better than) the FP32 baseline of 66.21%, proving that these approximations do not compromise the model's ability to learn.

Conclusion

LightNorm demonstrates that by carefully tailoring numerical representations and approximating complex mathematical functions, it is possible to significantly reduce the hardware overhead of Batch Normalization. This makes on-device training much more feasible for energy-constrained edge devices. Future work may explore the applicability of these techniques to other normalization layers, such as LayerNorm, which is prevalent in Transformer-based models.

Summary updated

BibTeX
@inproceedings{noh2022lightnorm,
  author = {Seock-Hwan Noh and Junsang Park and Dahoon Park and Jahyun Koo and Jeik Choi and Jaeha Kung},
  title = {{LightNorm: Area and Energy-Efficient Batch Normalization Hardware for On-Device DNN Training}},
  booktitle = {2022},
  year = {2022},
  doi = {10.1109/iccd56317.2022.00072},
}
Figure