CapsAcc: An Efficient Hardware Accelerator for CapsuleNets with Data Reuse
arXiv:1811.08932 · doi:10.23919/DATE.2019.8714922
Abstract
Deep Neural Networks (DNNs) have been widely deployed for many Machine Learning applications. Recently, CapsuleNets have overtaken traditional DNNs, because of their improved generalization ability due to the multi-dimensional capsules, in contrast to the single-dimensional neurons. Consequently, CapsuleNets also require extremely intense matrix computations, making it a gigantic challenge to achieve high performance. In this paper, we propose CapsAcc, the first specialized CMOS-based hardware architecture to perform CapsuleNets inference with high performance and energy efficiency. State-of-the-art convolutional DNN accelerators would not work efficiently for CapsuleNets, as their designs do not account for key operations involved in CapsuleNets, like squashing and dynamic routing, as well as multi-dimensional matrix processing. Our CapsAcc architecture targets this problem and achieves significant improvements, when compared to an optimized GPU implementation. Our architecture exploits the massive parallelism by flexibly feeding the data to a specialized systolic array according to the operations required in different layers. It also avoids extensive load and store operations on the on-chip memory, by reusing the data when possible. We further optimize the routing algorithm to reduce the computations needed at this stage. We synthesized the complete CapsAcc architecture in a 32nm CMOS technology using Synopsys design tools, and evaluated it for the MNIST benchmark (as also done by the original CapsuleNet paper) to ensure consistent and fair comparisons. This work enables highly-efficient CapsuleNets inference on embedded platforms.
arXiv commentAccepted for publication at Design, Automation and Test in Europe (DATE 2019). Florence, Italy
References in corpus (3)
Cited by in corpus (10)
- Hardware and Software Optimizations for Accelerating Deep Neural Networks: Survey of Current Trends, Challenges, and the Road Ahead
- NASCaps: A Framework for Neural Architecture Search to Optimize the Accuracy and Hardware Efficiency of Convolutional Capsule Networks
- CapsAcc: An Efficient Hardware Accelerator for CapsuleNets with Data Reuse
- Q-CapsNets: A Specialized Framework for Quantizing Capsule Networks
- DESCNet: Developing Efficient Scratchpad Memories for Capsule Network Hardware
- ReD-CaNe: A Systematic Methodology for Resilience Analysis and Design of Capsule Networks under Approximations
- RoHNAS: A Neural Architecture Search Framework with Conjoint Optimization for Adversarial Robustness and Hardware Efficiency of Convolutional and Capsule Networks
- FasTrCaps: An Integrated Framework for Fast yet Accurate Training of Capsule Networks
- CapStore: Energy-Efficient Design and Management of the On-Chip Memory for CapsuleNet Inference Accelerators
- A Neural-Symbolic Framework for Mental Simulation