Shifting Capsule Networks from the Cloud to the Deep Edge
Miguel Costa, Diogo Costa, Tiago Gomes, Sandro Pinto

TL;DR
This paper introduces a quantized implementation of capsule networks optimized for resource-constrained microcontrollers, significantly reducing memory usage while maintaining high accuracy and enabling real-time processing at the edge.
Contribution
It presents an API and framework for running quantized CapsNets on Arm Cortex-M and RISC-V MCUs, extending existing neural network libraries to support capsule operations with minimal accuracy loss.
Findings
75% reduction in memory footprint
CapsNet inference latency under 40 ms on target MCUs
Minimal accuracy loss of 0.07% to 0.18%
Abstract
Capsule networks (CapsNets) are an emerging trend in image processing. In contrast to a convolutional neural network, CapsNets are not vulnerable to object deformation, as the relative spatial information of the objects is preserved across the network. However, their complexity is mainly related to the capsule structure and the dynamic routing mechanism, which makes it almost unreasonable to deploy a CapsNet, in its original form, in a resource-constrained device powered by a small microcontroller (MCU). In an era where intelligence is rapidly shifting from the cloud to the edge, this high complexity imposes serious challenges to the adoption of CapsNets at the very edge. To tackle this issue, we present an API for the execution of quantized CapsNets in Arm Cortex-M and RISC-V MCUs. Our software kernels extend the Arm CMSIS-NN and RISC-V PULP-NN to support capsule operations with 8-bit…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Neural Network Applications · Brain Tumor Detection and Classification · Advanced Image and Video Retrieval Techniques
