TensorFlow Lite Micro: Embedded Machine Learning on TinyML Systems
Authors:
- Robert DavidRDRobert David
- Jared DukeJDJared Duke
- Advait JainAJAdvait Jain
- Vijay Janapa ReddiVRVijay Janapa Reddi
- Nat JeffriesNJNat Jeffries
- Jian LiJLJian Li
- Nick KreegerNKNick Kreeger
- Ian NappierINIan Nappier
- Meghna NatrajMNMeghna Natraj
- Shlomi RegevSRShlomi Regev
- Rocky RhodesRRRocky Rhodes
- Tiezhen WangTWTiezhen Wang
Preprint
Abstract
Deep learning inference on embedded devices is a burgeoning field with myriad applications because tiny embedded devices are omnipresent. But we must overcome major challenges before we can benefit from this opportunity. Embedded processors are severely resource constrained. Their nearest mobile counterparts exhibit at least a 100 -- 1,000x difference in compute capability, memory availability, and power consumption. As a result, the machine-learning (ML) models and associated ML inference framework must not only execute efficiently but also operate in a few kilobytes of memory. Also, the embedded devices' ecosystem is heavily fragmented. To maximize efficiency, system vendors often omit many features that commonly appear in mainstream systems, including dynamic memory allocation and virtual memory, that allow for cross-platform interoperability. The hardware comes in many flavors (e.g., instruction-set architecture and FPU support, or lack thereof). We introduce TensorFlow Lite Micro (TF Micro), an open-source ML inference framework for running deep-learning models on embedded systems. TF Micro tackles the efficiency requirements imposed by embedded-system resource constraints and the fragmentation challenges that make cross-platform interoperability nearly impossible. The framework adopts a unique interpreter-based approach that provides flexibility while overcoming these challenges. This paper explains the design decisions behind TF Micro and describes its implementation details. Also, we present an evaluation to demonstrate its low resource requirement and minimal run-time performance overhead.Keywords
All Related Versions
This publication has 4 references indexed in Scilit:
- MLPerf: An Industry Standard Benchmark Suite for Machine Learning PerformanceIEEE Micro, 2020
- Machine Learning for Predictive Maintenance: A Multiple Classifier ApproachIEEE Transactions on Industrial Informatics, 2014
- Microsoft COCO: Common Objects in Context2014
- The Opportunity challenge: A benchmark database for on-body sensor-based activity recognitionPattern Recognition Letters, 2013