Single-Bit-per-Weight Deep Convolutional Neural Networks without Batch-Normalization Layers for Embedded Systems

Mark D. McDonnell, Hesham Mostafa, Runchun Wang, André van Schaik

Abstract

Batch Normalization (BN) is a cornerstone of modern deep learning, yet its reliance on batch statistics poses significant challenges for resource-constrained embedded hardware. This paper investigates the removal of BN in deep Convolutional Neural Networks (CNNs), specifically focusing on models with 1-bit-per-weight quantization. We propose replacing BN with a "shifted-ReLU" (sReLU) activation function and employing a constant scaling "temperature trick" during training to maintain stability. Our results on CIFAR and ImageNet benchmarks show that these BN-free, 1-bit networks achieve near-state-of-the-art accuracy, offering a high-efficiency alternative for low-power edge devices.

Introduction: The Batch Normalization Bottleneck

Batch Normalization (BN) has become ubiquitous in computer vision for its ability to stabilize training, enable higher learning rates, and provide regularization. However, BN is often a "hardware nightmare" for embedded systems such as drones, IoT devices, and robotics. The complexity of calculating means and variances across batches requires significant computational resources and high-precision multipliers. Furthermore, BN increases memory overhead during training and is poorly suited for pipelined hardware that processes single samples at a time. This research explores whether BN can be entirely eliminated without sacrificing performance, particularly in the context of ultra-low-power 1-bit-per-weight quantization.

Proposed Methodology

The authors utilize Wide Residual Networks (WRNs) as a baseline and introduce several key modifications to facilitate the removal of BN.

Shifted-ReLU (sReLU)

To compensate for the centering effect of BN, the standard ReLU is replaced with a shifted version: $sReLU(x) = \max(-1, x)$. This allows for negative activations, similar to the Exponential Linear Unit (ELU), which helps center data distributions. Crucially, sReLU avoids the expensive exponential calculations required by ELU, making it ideal for silicon implementation.

Comparison of ReLU, sReLU, and ELU activation functions.

The Temperature Scaling Trick

Training deep networks without BN often leads to gradient instability. The authors address this by adding a constant scaling layer (temperature scaling) before the final softmax. This "temperature trick" stabilizes gradients during the early stages of training, allowing the model to converge even with the high learning rates typically reserved for BN-enabled networks.

1-Bit Quantization and Synergy

The study applies a 1-bit-per-weight scheme where weights are constrained to binary values during inference. A key finding is the synergy between quantization and BN removal: the accuracy gap caused by removing BN is significantly smaller in 1-bit networks than in full-precision (32-bit) models, suggesting that quantized models are inherently more robust to the absence of normalization.

Experimental Results

The proposed methods were evaluated on CIFAR-10, CIFAR-100, and ImageNet benchmarks.

Performance Benchmarks

On CIFAR-10, a 1-bit ResNet 20-10 using only sReLU achieved an error rate of 3.74%, nearly matching the 3.65% achieved by the BN-based baseline. On the more challenging ImageNet dataset, the gap for a 1-bit ResNet 18-2.5 model was a mere 0.3%.

Error rates on CIFAR-10 for various network configurations comparing 32-bit and 1-bit weights.

Hardware Efficiency

By removing BN and adopting 1-bit weights, the architecture allows for the replacement of complex multipliers with simple multiplexers. This shift could potentially improve power efficiency by orders of magnitude, reaching up to 230 1b-TOPS/W in specialized hardware.

Conclusion and Future Directions

This work demonstrates that BN is not strictly necessary for high-performance deep learning, especially when using wide, quantized networks. While a small accuracy gap remains on more complex datasets like CIFAR-100 and ImageNet, the hardware benefits of sReLU and BN-free architectures are compelling for embedded applications. Future research will focus on narrowing this gap through improved initialization strategies and alternative non-linearities that maintain hardware simplicity.

Summary updated

BibTeX
@inproceedings{mcdonnell2019single,
  author = {Mark D. McDonnell and Hesham Mostafa and Runchun Wang and André van Schaik},
  title = {{Single-Bit-per-Weight Deep Convolutional Neural Networks without Batch-Normalization Layers for Embedded Systems}},
  booktitle = {ACIRS},
  year = {2019},
  url = {https://openreview.net/forum?id=5PBWGNqp2yT},
}
Figure