[Paper Review] Enabling Embedded Inference Engine with ARM Compute Library: A Case Study
This paper presents a case study on building an embedded deep learning inference engine from scratch using the ARM Compute Library (ACL), demonstrating that for simple models on low-cost SoCs, this approach reduces development time and improves performance—achieving a 25% speedup over TensorFlow—challenging the assumption that porting existing frameworks is more efficient.
When you need to enable deep learning on low-cost embedded SoCs, is it better to port an existing deep learning framework or should you build one from scratch? In this paper, we share our practical experiences of building an embedded inference engine using ARM Compute Library (ACL). The results show that, contradictory to conventional wisdoms, for simple models, it takes much less development time to build an inference engine from scratch compared to porting existing frameworks. In addition, by utilizing ACL, we managed to build an inference engine that outperforms TensorFlow by 25%. Our conclusion is that, on embedded devices, we most likely will use very simple deep learning models for inference, and with well-developed building blocks such as ACL, it may be better in both performance and development time to build the engine from scratch.
Motivation & Objective
- To evaluate the feasibility and efficiency of building a custom embedded inference engine using ARM Compute Library (ACL) instead of porting existing deep learning frameworks.
- To compare development time and inference performance between building from scratch and porting established frameworks like TensorFlow on low-cost embedded SoCs.
- To assess whether well-optimized, low-level building blocks like ACL can enable faster and more efficient inference for simple deep learning models in resource-constrained environments.
- To challenge the conventional wisdom that porting existing frameworks is the preferred path for embedded inference deployment.
Proposed method
- The authors implemented a custom inference engine from scratch using the ARM Compute Library (ACL), leveraging its optimized kernels for common deep learning operations such as convolutions and activation functions.
- The engine was designed specifically for inference on low-cost ARM-based embedded systems, focusing on minimal memory footprint and high computational efficiency.
- The implementation reused ACL's highly optimized, hand-tuned kernels for neural network layers, avoiding the overhead of full framework integration.
- Performance was benchmarked against TensorFlow Lite running on the same hardware, using standard convolutional models with minimal complexity.
- The development process emphasized modular design and direct integration with ACL's API to maximize performance and minimize code bloat.
- The inference engine was evaluated on real embedded hardware, measuring inference latency and throughput under identical model and hardware conditions.
Experimental results
Research questions
- RQ1Is building a custom inference engine from scratch more efficient in terms of development time than porting an existing deep learning framework for simple models on embedded systems?
- RQ2Can a custom engine built with ARM Compute Library outperform established frameworks like TensorFlow in inference speed on low-cost SoCs?
- RQ3To what extent do optimized low-level libraries like ACL reduce the complexity and overhead of deploying deep learning models on embedded devices?
- RQ4Does the performance gain from a minimal, hand-optimized engine outweigh the maintenance and portability trade-offs compared to using full frameworks?
Key findings
- For simple deep learning models, building an inference engine from scratch using ARM Compute Library required significantly less development time than porting existing frameworks.
- The custom inference engine achieved a 25% performance improvement in inference speed compared to TensorFlow when running on the same low-cost embedded SoC.
- The use of ACL's optimized kernels enabled high performance without the complexity and resource overhead of full deep learning frameworks.
- The results challenge the prevailing assumption that porting existing frameworks is the most efficient path for embedded inference deployment.
- The study demonstrates that for embedded systems with constrained resources, a minimal, ACL-powered inference engine can be both faster and faster to develop than framework-based alternatives.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.