[Paper Review] Energy Efficient Hadamard Neural Networks
This paper proposes Binary Weight and Hadamard-transformed Image Networks (BWHIN), an energy-efficient deep learning framework combining Binary Weight Networks (BWN) and Hadamard-transformed Image Networks (HIN). By binarizing convolutional layer weights and applying fast Walsh-Hadamard transforms to input images—both relying only on addition/subtraction—it eliminates expensive multiplications, achieving significant energy savings with only a minor drop in classification accuracy, especially on MNIST and CIFAR-10 datasets.
Deep learning has made significant improvements at many image processing tasks in recent years, such as image classification, object recognition and object detection. Convolutional neural networks (CNN), which is a popular deep learning architecture designed to process data in multiple array form, show great success to almost all detection \& recognition problems and computer vision tasks. However, the number of parameters in a CNN is too high such that the computers require more energy and larger memory size. In order to solve this problem, we propose a novel energy efficient model Binary Weight and Hadamard-transformed Image Network (BWHIN), which is a combination of Binary Weight Network (BWN) and Hadamard-transformed Image Network (HIN). It is observed that energy efficiency is achieved with a slight sacrifice at classification accuracy. Among all energy efficient networks, our novel ensemble model outperforms other energy efficient models.
Motivation & Objective
- Address the high energy consumption and memory usage of standard convolutional neural networks (CNNs) in mobile and embedded systems.
- Reduce computational cost by replacing floating-point multiplications with addition/subtraction operations in both weights and input data.
- Develop a novel hybrid architecture that combines Binary Weight Networks (BWN) and Hadamard-transformed Image Networks (HIN) to enhance energy efficiency and robustness.
- Evaluate the proposed model on standard benchmarks (MNIST and CIFAR-10) to assess trade-offs between energy efficiency and classification accuracy.
- Investigate the impact of network architecture (e.g., pooling vs. strided convolutions) and averaging strategies on performance in energy-constrained settings.
Proposed method
- Adopt Binary Weight Networks (BWN) to approximate convolutional layer filters with binary values (+1 or -1), enabling convolution operations via only addition and subtraction.
- Apply Fast Walsh-Hadamard Transform (FWHT) to input images before feeding them into the network, leveraging the fact that FWHT uses only additions and subtractions.
- Integrate BWN and HIN into a unified ensemble model called BWHIN, combining their outputs using two averaging techniques: normal averaging and random averaging.
- Use two CNN architectures for evaluation: ConvoPool-CNN (with max-pooling layers) and All-CNN (using strided convolutions instead of pooling) to compare energy efficiency and accuracy trade-offs.
- Implement two variants of BWHIN: BWHIN-NormalAvg and BWHIN-RandomAvg, where the latter uses random averaging to improve robustness and performance.
- Train and fine-tune the models on MNIST and CIFAR-10, analyzing the effect of hyperparameters such as learning rate and network depth on classification accuracy.
Experimental results
Research questions
- RQ1Can combining binary weights and Hadamard-transformed inputs significantly reduce energy consumption in CNN inference without sacrificing classification accuracy?
- RQ2How does the performance of the hybrid BWHIN model compare to its individual components (BWN and HIN) in terms of accuracy and energy efficiency?
- RQ3What is the impact of different network architectures—specifically pooling-based vs. strided-convolution-based—on the energy-accuracy trade-off in energy-efficient networks?
- RQ4Does random averaging of BWHIN outputs consistently outperform normal averaging and individual sub-networks in terms of robustness and accuracy?
- RQ5To what extent can increasing network capacity (depth or width) close the accuracy gap between BWHIN and state-of-the-art models on more complex datasets like CIFAR-10?
Key findings
- The BWHIN model with random averaging (BWHIN-RandomAvg) achieved 98.96% test accuracy on the MNIST dataset, outperforming both BWN and HIN individually.
- On CIFAR-10, BWHIN-RandomAvg reached 72.65% test accuracy, showing a notable improvement over HIN (67.30%) and BWN (67.70%) when combined with random averaging.
- The All-CNN architecture with strided convolutions was found to be more energy-efficient than the ConvoPool-CNN with pooling layers, due to reduced computational waste.
- Despite the energy savings, the proposed models incurred only a minor accuracy drop compared to full-precision networks, with BWHIN achieving near-state-of-the-art performance on MNIST.
- The BWHIN ensemble model demonstrated robustness: when one sub-network (e.g., HIN) failed to train, the other (BWN) compensated, maintaining higher overall accuracy.
- Hyperparameter tuning showed that BWN was highly robust to changes, while HIN’s performance was slightly degraded due to image size expansion during Hadamard transformation when dimensions were not powers of two.
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.