MEMA Runtime Framework: Minimizing External Memory Accesses for TinyML on Microcontrollers

Andrew Sabot, Vikas Natesh, H. T. Kung, Wei-Te Ting
4/12/2023
cs.LGcs.ARcs.PF

No confident code implementation found for this paper.

Abstract

We present the MEMA framework for the easy and quick derivation of efficient inference runtimes that minimize external memory accesses for matrix multiplication on TinyML systems. The framework accounts for hardware resource constraints and problem sizes in analytically determining optimized schedules and kernels that minimize memory accesses. MEMA provides a solution to a well-known problem in the current practice, that is, optimal schedules tend to be found only through a time consuming and heuristic search of a large scheduling space. We compare the performance of runtimes derived from MEMA to existing state-of-the-art libraries on ARM-based TinyML systems. For example, for neural network benchmarks on the ARM Cortex-M4, we achieve up to a 1.8x speedup and 44% energy reduction over CMSIS-NN.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sabot2023mema,
  title  = {MEMA Runtime Framework: Minimizing External Memory Accesses for TinyML on Microcontrollers},
  author = {Andrew Sabot and Vikas Natesh and H. T. Kung and Wei-Te Ting},
  year   = {2023},
  eprint = {2304.05544},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.05544v1}
}

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/2304.05544.svg)](https://codeofpaper.com/paper/2304.05544)

Discussion