paper-with-me

홈 › Papers

Pex: Memory-efficient Microcontroller Deep Learning through Partial Execution

2022-11-30 · Edgar Liberis, Nicholas D. Lane

Embedded and IoT devices, largely powered by microcontroller units (MCUs), could be made more intelligent by leveraging on-device deep learning. One of the main challenges of neural network inference on an MCU is the extremely limited amount of read-write on-chip memory (SRAM, < 512 kB). SRAM is consumed by the neural network layer (operator) input and output buffers, which, traditionally, must be in memory (materialised) for an operator to execute. We discuss a novel execution paradigm for microcontroller deep learning, which modifies the execution of neural networks to avoid materialising full buffers in memory, drastically reducing SRAM usage with no computation overhead. This is achieved by exploiting the properties of operators, which can consume/produce a fraction of their input/output at a time. We describe a partial execution compiler, Pex, which produces memory-efficient execution schedules automatically by identifying subgraphs of operators whose execution can be split along the feature ("channel") dimension. Memory usage is reduced further by targeting memory bottlenecks with structured pruning, leading to the co-design of the network architecture and its execution schedule. Our evaluation of image and audio classification models: (a) establishes state-of-the-art performance in low SRAM usage regimes for considered tasks with up to +2.9% accuracy increase; (b) finds that a 4x memory reduction is possible by applying partial execution alone, or up to 10.5x when using the compiler-pruning co-design, while maintaining the classification accuracy compared to prior work; (c) uses the recovered SRAM to process higher resolution inputs instead, increasing accuracy by up to +3.9% on Visual Wake Words.

📄 PDF Abstract BibTeX arXiv:2211.17246

Code (0)

등록된 구현이 없습니다.

Tasks

Audio ClassificationDeep Learning

Similar Papers 제목 키워드 기반

On-Device Training of Fully Quantized Deep Neural Networks on Cortex-M Microcontrollers

2024-07-15 · Mark Deutel, Frank Hannig, Christopher Mutschler, Jürgen Teich

On-device training of DNNs allows models to adapt and fine-tune to newly collected data or changing domains while deployed on microcontroller units (MCUs). However, DNN training is a resource-intensive task, making the i…

Time Series

MCUBERT: Memory-Efficient BERT Inference on Commodity Microcontrollers

2024-10-23 · Zebin Yang, Renze Chen, Taiqiang Wu, Ngai Wong 외

In this paper, we propose MCUBERT to enable language models like BERT on tiny microcontroller units (MCUs) through network and scheduling co-optimization. We observe the embedding table contributes to the major storage b…

Neural Architecture SearchScheduling

Quantization and Deployment of Deep Neural Networks on Microcontrollers

2021-05-27 · Pierre-Emmanuel Novac, Ghouthi Boukli Hacene, Alain Pegatoquet, Benoît Miramond 외

Embedding Artificial Intelligence onto low-power devices is a challenging task that has been partly overcome with recent advances in machine learning and hardware design. Presently, deep neural networks can be deployed o…

Activity RecognitionHuman Activity Recognitionobject-detectionObject Detection+3

Neural networks on microcontrollers: saving memory at inference via operator reordering

2019-10-02 · Edgar Liberis, Nicholas D. Lane

Designing deep learning models for highly-constrained hardware would allow imbuing many edge devices with intelligence. Microcontrollers (MCUs) are an attractive platform for building smart devices due to their low cost,…

MicroNAS: Memory and Latency Constrained Hardware-Aware Neural Architecture Search for Time Series Classification on Microcontrollers

2023-10-27 · Tobias King, Yexu Zhou, Tobias Röddiger, Michael Beigl

Designing domain specific neural networks is a time-consuming, error-prone, and expensive task. Neural Architecture Search (NAS) exists to simplify domain-specific model development but there is a gap in the literature f…

Hardware Aware Neural Architecture SearchNeural Architecture SearchTime SeriesTime Series Classification