[Paper Review] Training Binary Multilayer Neural Networks for Image Classification using Expectation Backpropagation
This paper proposes using Expectation Backpropagation (EBP) to train Binary Multilayer Neural Networks (BMNNs) for image classification, enabling efficient hardware deployment. On the MNIST dataset, EBP achieves 2.12% test error with binary weights and 1.66% with real weights, demonstrating competitive performance comparable to standard backpropagation on real-valued networks.
Compared to Multilayer Neural Networks with real weights, Binary Multilayer Neural Networks (BMNNs) can be implemented more efficiently on dedicated hardware. BMNNs have been demonstrated to be effective on binary classification tasks with Expectation BackPropagation (EBP) algorithm on high dimensional text datasets. In this paper, we investigate the capability of BMNNs using the EBP algorithm on multiclass image classification tasks. The performances of binary neural networks with multiple hidden layers and different numbers of hidden units are examined on MNIST. We also explore the effectiveness of image spatial filters and the dropout technique in BMNNs. Experimental results on MNIST dataset show that EBP can obtain 2.12% test error with binary weights and 1.66% test error with real weights, which is comparable to the results of standard BackPropagation algorithm on fully connected MNNs.
Motivation & Objective
- To investigate the feasibility of training Binary Multilayer Neural Networks (BMNNs) using the Expectation Backpropagation (EBP) algorithm for multiclass image classification.
- To evaluate the performance of BMNNs with EBP on the MNIST dataset under varying network architectures, including depth and width.
- To examine the impact of regularization techniques like dropout and spatial filtering on BMNN performance with EBP.
- To compare the performance of BMNNs with binary weights to real-valued MNNs trained via EBP, assessing the trade-off between efficiency and accuracy.
Proposed method
- EBP is applied within a Bayesian framework to perform online learning, updating the posterior distribution of weights using mean-field approximation.
- The algorithm uses a mean-field approximation to factorize the posterior over weights, enabling tractable online updates: $\hat{P}(\mathcal{W}|D_n) \propto \hat{P}(\mathbf{y}^{(n)}|\mathbf{x}^{(n)}, W_{ij,l}, D_{n-1}) \hat{P}(W_{ij,l}|D_{n-1})$.
- Binary weights are enforced via a sign activation function: $\mathbf{v}_l = \text{sign}(\mathbf{W}_l \mathbf{v}_{l-1})$, ensuring all weights are ±1 during inference.
- Dropout is applied during training by randomly masking hidden units with a fixed probability, improving generalization in BMNNs with EBP.
- Spatial filtering is explored by reshaping 1D input vectors into 2D image grids (e.g., 28×28), allowing local receptive fields to model spatial structure.
- Networks are trained using EBP with both binary (B-EBP) and real-valued (R-EBP) weights, with and without dropout (denoted -D), and evaluated on test error.
Experimental results
Research questions
- RQ1Can EBP effectively train BMNNs for multiclass image classification on the MNIST dataset?
- RQ2How does network depth (one vs. two hidden layers) affect the performance of BMNNs trained with EBP?
- RQ3To what extent does dropout improve generalization in BMNNs trained with EBP?
- RQ4Does incorporating spatial structure (via 2D input reshaping) enhance classification accuracy in BMNNs with EBP?
- RQ5How does the performance of BMNNs with EBP compare to real-valued MNNs trained with EBP on the same task?
Key findings
- EBP achieves 2.12% test error on MNIST using binary weights, demonstrating that BMNNs can achieve strong performance with minimal computational cost.
- With real-valued weights, EBP achieves 1.66% test error, which is comparable to standard backpropagation on fully connected MNNs.
- Two-hidden-layer BMNNs outperform one-hidden-layer networks, indicating that deeper architectures benefit from EBP in binary settings.
- Dropout significantly improves generalization: for example, in the [400,400] configuration, B-EBP-D reduces error from 2.39% to 2.12% compared to B-EBP-P.
- Spatial filtering improves performance for real-valued networks (e.g., R-EBP-P achieves 2.03% with 225 units), but harms binary-weighted networks (best B-EBP-P is 3.56%).
- The performance gap between binary and real-weighted networks is reduced when dropout is applied, suggesting that regularization helps mitigate the representational limitations of binary weights.
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.