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

Edgar Liberis, Nicholas D. Lane
10/2/2019
cs.LGeess.SPstat.ML

Official code: ew1057/tflite-tools (137 stars, Python, MIT, last commit 2024-01-23).

Abstract

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, wide availability, and modest power usage.

Show full abstract

However, they lack the computational resources to run neural networks as straightforwardly as mobile or server platforms, which necessitates changes to the network architecture and the inference software. In this work, we discuss the deployment and memory concerns of neural networks on MCUs and present a way of saving memory by changing the execution order of the network's operators, which is orthogonal to other compression methods. We publish a tool for reordering operators of TensorFlow Lite models and demonstrate its utility by sufficiently reducing the memory footprint of a CNN to deploy it on an MCU with 512KB SRAM.

View on arXivView PDF

Code Implementations(1)

MIT

TFLite model analyzer & memory optimizer

13721PythonSep 9, 20192 years agoMIT

Similar Papers

Cite this paper

@article{liberis2019neural,
  title  = {Neural networks on microcontrollers: saving memory at inference via operator reordering},
  author = {Edgar Liberis and Nicholas D. Lane},
  year   = {2019},
  eprint = {1910.05110},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.05110}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1910.05110.svg)](https://codeofpaper.com/paper/1910.05110)

Discussion