LGApr 21, 2021

Measuring what Really Matters: Optimizing Neural Networks for TinyML

arXiv:2104.10645v133 citations
AI Analysis

This work addresses the problem of efficient machine learning deployment on tiny devices for applications requiring cost-efficiency and data privacy, though it is incremental as it builds on existing frameworks like TensorFlow Lite Micro.

The paper tackles the challenge of deploying neural networks on resource-constrained microcontrollers (MCUs), specifically ARM Cortex-M, by studying the effects of optimization methods, software frameworks, and hardware on inference latency and energy consumption, and demonstrates improvements through systematic optimization using a developed toolchain.

With the surge of inexpensive computational and memory resources, neural networks (NNs) have experienced an unprecedented growth in architectural and computational complexity. Introducing NNs to resource-constrained devices enables cost-efficient deployments, widespread availability, and the preservation of sensitive data. This work addresses the challenges of bringing Machine Learning to MCUs, where we focus on the ubiquitous ARM Cortex-M architecture. The detailed effects and trade-offs that optimization methods, software frameworks, and MCU hardware architecture have on key performance metrics such as inference latency and energy consumption have not been previously studied in depth for state-of-the-art frameworks such as TensorFlow Lite Micro. We find that empirical investigations which measure the perceptible metrics - performance as experienced by the user - are indispensable, as the impact of specialized instructions and layer types can be subtle. To this end, we propose an implementation-aware design as a cost-effective method for verification and benchmarking. Employing our developed toolchain, we demonstrate how existing NN deployments on resource-constrained devices can be improved by systematically optimizing NNs to their targeted application scenario.

Code Implementations2 repos
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes