Introduction
Binary Neural Networks (BNNs) represent a promising frontier for edge computing, offering the potential for up to 32x memory compression by restricting weights and activations to the set $\{-1, +1\}$. Despite their efficiency, BNNs are notoriously difficult to train, often suffering from significant accuracy degradation compared to full-precision models. A common observation among practitioners is that BNNs fail to converge without Batch Normalization (BN). This study investigates the theoretical and empirical reasons why BN is indispensable for binary training, revealing its role as a gradient stabilizer.
Theoretical Framework: Gradient Variance in BNNs
The primary challenge in training BNNs is the non-differentiable nature of the sign function. To overcome this, the clipped straight-through estimator (STE) is typically employed during backpropagation. The authors analyze how gradient variance propagates through a BNN using this estimator.
Their theoretical analysis demonstrates that in the absence of BN, the gradient variance in a BNN explodes proportionally to the product of the layer widths. Specifically, BN acts as a normalization mechanism that effectively cancels out these layer-width factors during the backward pass, preventing the gradients from vanishing or exploding.
Initialization and Scale Invariance
In standard full-precision networks, initialization techniques like Glorot or He are critical for maintaining stable signal variance. However, the sign function used in BNNs is scale-invariant: $\text{sign}(kx) = \text{sign}(x)$ for any $k > 0$. This implies that the specific scale of the initial weights has little impact on the forward pass.
As shown in the experimental results across VGG, ResNet-56, and MobileNet-v1, BNNs are remarkably insensitive to the initial variance of weights. For instance, VGG on CIFAR-10 achieves nearly identical accuracy (approx. 90.6%) whether initialized with Glorot or with a constant variance as low as $10^{-4}$.
The Role of Batch Normalization Components
To pinpoint why BN is essential, the authors decomposed the operation into its two primary components: centering (mean subtraction) and scaling (division by standard deviation).
The ablation study on ResNet-56 reveals that scaling is a critical factor for convergence. While centering is important for the thresholding logic at inference, the scaling factor is what stabilizes the backward pass. Without scaling, the model fails to converge, resulting in a baseline accuracy of 31.7%. Interestingly, replacing the learnable scaling factor with a fixed theoretical constant ($1/\sqrt{K_{l-1}}$) yields competitive results (87.9% vs 88.8%), suggesting a path toward more efficient BNN training on resource-constrained hardware.
Conclusion and Future Directions
This research clarifies that the primary value of Batch Normalization in BNNs is gradient stabilization rather than reducing internal covariate shift. By understanding that BNNs are scale-invariant in the forward pass but sensitive to gradient variance in the backward pass, researchers can design more efficient training regimes.
While these findings are robust across several architectures on CIFAR-10, further validation on larger datasets like ImageNet is necessary. Future work should also explore if these principles extend to other low-bit quantization schemes (e.g., 2-bit or 4-bit), where the scale-invariance of the activation function is less absolute.
Summary updated