February 26, 2020
Conference Paper

Enabling Highly Efficient Capsule Networks Processing Through A PIM-Based Architecture Design

Abstract

In recent years, the CNNs have achieved great successes in the image processing tasks, e.g., image recognition and object detection. Unfortunately, traditional CNN's classication is found to be easily misled by increasingly complex image features due to the usage of pooling operations, hence unable to preserve accurate position and pose information of the objects. To address this challenge, a novel neural network structure called Capsule Network has been proposed, which introduces equivariance through capsules to signicantly enhance the learning ability for image segmentation and object detection. Due to its requirement of performing a high volume of matrix operations, CapsNets have been generally accelerated on modern GPU platforms that provide highly optimized software library for common deep learning tasks. However, based on our performance characterization on modern GPUs, CapsNets exhibit low effciency due to the special program and execution features of their routing procedure, including massive unshareable intermediate variables and intensive syn- chronizations, which are very dicult to optimize at software level. To address these challenges, we propose a hybrid computing architecture design named PIM-CapsNet. It preserves GPU's on-chip computing capability for accelerating CNN types of layers in CapsNet, while pipelining with an off-chip in-memory acceleration solution that effectively tackles routing procedure's ineffciency by leveraging the processing-in-memory capability of today's 3D stacked memory. Using routing procedure's inherent parallellization feature, our design enables hierarchical improvements on CapsNet inference effciency through minimizing data movement and maximizing parallel processing in memory. Evaluation results demonstrate that our proposed design can achieve substantial improvement on both performance and energy savings for CapsNet inference, with almost zero accuracy loss. The results also suggest good performance scalability in optimizing the routing procedure with increasing network size.

Revised: June 25, 2020 | Published: February 26, 2020

Citation

Zhang X., S. Song, C. Xie, X. Fu, J. Wang, and W. Zhang. 2020. Enabling Highly Efficient Capsule Networks Processing Through A PIM-Based Architecture Design. In Proceedings of the 26th IEEE International Symposium on High-Performance Computer Architecture (HPCA), February 22-26, 2020, San Diego, CA, 542-555. Los Alamitos, California:IEEE Computer Society. PNNL-SA-149995. doi:10.1109/HPCA47549.2020.00051