Abstract
Training deep binary neural networks (BNNs) is notoriously difficult due to vanishing gradients and poor initialization. This paper introduces a method to "warm-start" Stochastic Binary Networks (SBNs) by incrementally transferring features from pre-trained, real-valued ReLU networks. By using ternary weights and a novel "next-layer" loss function ($D_{MSE+}$), the authors achieve state-of-the-art accuracy on CIFAR-10 for non-residual architectures while significantly reducing model size.
Introduction
Binary Neural Networks (BNNs) represent a significant opportunity for edge computing, offering drastic reductions in memory usage and computational latency through 1-bit weights and activations. However, their training is hampered by the non-differentiable nature of the sign function. While stochastic relaxation (SBNs) provides a path to differentiability, it introduces noise and bias.
A critical challenge remains: initialization. Without residual (skip) connections, deep binary networks often suffer from vanishing gradients. This work proposes a robust initialization scheme that allows SBNs to inherit the feature-learning capabilities of high-precision ReLU networks, effectively "transferring" wisdom from a teacher to a student model.
Methodology
The proposed framework transforms a real-valued "teacher" network into a binary "student" through a layer-by-layer transfer process involving three key components.
Ternary Weights and Sparsity
A key innovation is the use of ternary weights $\{-1, 0, 1\}$, implemented as the difference between two binary kernels ($W^+ - W^-$). This allows the student network to represent "zero" weights, which is essential for mimicking the sparse activations characteristic of ReLU networks. This ternary representation acts as a bridge between continuous and strictly binary values.
Statistical Alignment and $D_{MSE+}$ Loss
Before optimization, blocks are initialized by matching activation means and variances. The authors then employ a novel "look-ahead" loss function, $D_{MSE+}$, which minimizes the Mean Squared Error of the next layer's input rather than the current layer's output. This ensures that the student captures features most relevant to subsequent network stages, leading to significantly better convergence and final accuracy.
Experimental Results
The method was evaluated on the CIFAR-10 dataset using the AllCNN architecture. The researchers used two teacher models: AllCNN89 (89% accuracy) and AllCNN94 (94.8% accuracy).
Key findings include:
- State-of-the-Art Accuracy: The ternary SBN (AllCNN-T) achieved an accuracy of 92.6%, outperforming previous non-residual models like VGGSmall (89.8%) and Net 5 (91.5%).
- Extreme Compression: The AllCNN-T model requires only 0.3 Mb for weights, compared to 1.7 Mb for VGGSmall and 5 Mb for Net 5.
- Initialization Impact: A better teacher (94% vs 89%) consistently led to a higher final accuracy ceiling for the student, proving that initialization quality is paramount.
Conclusion
This work demonstrates that intelligent initialization and a "look-ahead" loss function can overcome the traditional training hurdles of deep binary networks. By bridging the gap between continuous and discrete representations with ternary weights, high-performance BNNs can be realized even in non-residual architectures, paving the way for more efficient edge AI deployments.
Summary updated