Abstract
Due to the popularity of deep neural networks (DNNs) and considerations over network overhead, data privacy, and inference latency, there is a growing interest in deploying DNNs to edge devices in recent years. However, the limited memory becomes a major bottleneck for on-device DNN deployment, making it crucial to reduce the memory footprint of DNN. The mainstream model customization solutions require intensive deployment efforts and may lead to severe accuracy degradation, and existing deep learning (DL) frameworks don’t take memory as a priority. Besides, recent works to enhance the memory management scheme cannot be directly applied because of several challenges, including the unbalanced memory footprint across layers, the inevitable overhead of memory management, and the memory budget dynamicity. To tackle these challenges, we introduce FlexNN, an efficient and adaptive memory management framework for DNN inference on memory-constrained devices. FlexNN uses a slicing-loading-computing joint planning approach, to achieve optimal memory utilization and minimal memory management overhead. We implemented FlexNN atop NCNN, and conducted comprehensive evaluations with common model architectures on various devices. The results have shown that our approach is able to adapt to different memory constraints with optimal latency-memory trade-offs. For example, FlexNN can reduce the memory consumption by 93.81% with only a 3.64% increase in latency, as compared with the original NCNN on smartphones.
Author supplied keywords
Cite
CITATION STYLE
Li, X., Li, Y., Li, Y., Cao, T., & Liu, Y. (2024). FlexNN: Efficient and Adaptive DNN Inference on Memory-Constrained Edge Devices. In ACM MobiCom 2024 - Proceedings of the 30th International Conference on Mobile Computing and Networking (pp. 709–723). Association for Computing Machinery, Inc. https://doi.org/10.1145/3636534.3649391
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.