AdaKnife: Flexible DNN Offloading for Inference Acceleration on Heterogeneous Mobile Devices
Sicong Liu,Hao Luo,XiaoChen Li,Yao Li,Bin Guo,Zhiwen Yu,YuZhan Wang,Ke Ma,YaSan Ding,Yuan Yao
DOI: https://doi.org/10.1109/tmc.2024.3466931
IF: 6.075
2024-01-01
IEEE Transactions on Mobile Computing
Abstract:The integration of deep neural network (DNN) intelligence into embedded mobile devices is expanding rapidly, supporting a wide range of applications. DNN compression techniques, which adapt models to resource-constrained mobile environments, often force a trade-off between efficiency and accuracy. Distributed DNN inference, leveraging multiple mobile devices, emerges as a promising alternative to enhance inference efficiency without compromising accuracy. However, effectively decoupling DNN models into fine-grained components for optimal parallel acceleration presents significant challenges. Current partitioning methods, including layer-level and operator or channel-level partitioning, provide only partial solutions and struggle with the heterogeneous nature of DNN compilation frameworks, complicating direct model offloading. In response, we introduce AdaKnife, an adaptive framework for accelerated inference across heterogeneous mobile devices. AdaKnife enables on-demand mixed-granularity DNN partitioning via computational graph analysis, facilitates efficient cross-framework model transitions with operator optimization for offloading, and improves the feasibility of parallel partitioning using a greedy operator parallelism algorithm. Our empirical studies show that AdaKnife achieves a 66.5% reduction in latency compared to baselines.