Towards Out-of-core Neural Networks on Microcontrollers
Authors:
- 1 December 2022
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-13
Abstract
To run neural networks (NNs) on microcontroller units (MCUs), memory size is the major constraint. While algorithm-level techniques exist to reduce NN memory footprints, the resultant losses in NN accuracy and generality disqualify MCUs for many important use cases. To address the constraint, we investigate out-of-core execution of NNs on MCUs: dynam-ically swapping NN data tiles between an MCU's small SRAM and its large, low-cost external flash. Accordingly, we present a scheduler design that automatically schedules compute tasks and swapping IO tasks in order to minimize the IO overhead in swapping. Out-of-core NNs on MCUs raise multiple concerns: execution slowdown, storage wear out, energy consumption, and data security. Our empirical study shows that none of these concerns is a showstopper; the key benefit - MCUs being able to run large NNs with full accuracy/generality - trumps the overheads. Our findings suggest that MCUs can play a much greater role in edge intelligence.Keywords
Funding Information
- NSF (2128725,1919197,2106893)
This publication has 14 references indexed in Scilit:
- Split-CNN2019
- DeepTypeProceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies, 2018
- Memory Requirements for Convolutional Neural Network Hardware Accelerators2018
- Dynamic control flow in large-scale machine learning2018
- All the AES You Need on Cortex-M3 and M42017
- BMXNet2017
- Fast Video Classification via Adaptive Cascading of Deep Models2017
- vDNN: Virtualized deep neural networks for scalable, memory-efficient neural network design2016
- Fused-layer CNN accelerators2016
- Deep Residual Learning for Image Recognition2016