[Paper Review] JointDNN: An Efficient Training and Inference Engine for Intelligent Mobile Cloud Computing Services
JointDNN proposes a runtime, adaptive framework that partitions deep neural network (DNN) inference and training across mobile and cloud platforms at the layer level to minimize latency and energy consumption. By modeling DNN computation as a shortest path problem in a directed acyclic graph (DAG) and using mixed-integer linear programming (MILP) to optimize for battery, cloud load, and QoS constraints, JointDNN achieves up to 32× reduction in mobile energy and 18× reduction in latency compared to cloud-only or mobile-only approaches.
Deep learning models are being deployed in many mobile intelligent applications. End-side services, such as intelligent personal assistants, autonomous cars, and smart home services often employ either simple local models on the mobile or complex remote models on the cloud. However, recent studies have shown that partitioning the DNN computations between the mobile and cloud can increase the latency and energy efficiencies. In this paper, we propose an efficient, adaptive, and practical engine, JointDNN, for collaborative computation between a mobile device and cloud for DNNs in both inference and training phase. JointDNN not only provides an energy and performance efficient method of querying DNNs for the mobile side but also benefits the cloud server by reducing the amount of its workload and communications compared to the cloud-only approach. Given the DNN architecture, we investigate the efficiency of processing some layers on the mobile device and some layers on the cloud server. We provide optimization formulations at layer granularity for forward- and backward-propagations in DNNs, which can adapt to mobile battery limitations and cloud server load constraints and quality of service. JointDNN achieves up to 18 and 32 times reductions on the latency and mobile energy consumption of querying DNNs compared to the status-quo approaches, respectively.
Motivation & Objective
- To address the inefficiencies of mobile-only and cloud-only DNN inference and training, which suffer from high latency, energy consumption, or communication overhead.
- To enable adaptive, runtime computation partitioning of DNN layers between mobile and cloud based on real-time constraints like battery level, network conditions, and cloud server load.
- To reduce communication costs and workload on both mobile and cloud by compressing intermediate layer outputs using PNG-based tiling and compression.
- To support diverse DNN architectures—including CNNs, RNNs, and autoencoders—beyond the limitations of prior tools like Neurosurgeon.
- To provide a unified optimization framework that balances latency, energy, and quality of service (QoS) using mixed-integer linear programming (MILP).
Proposed method
- JointDNN models the DNN as a Directed Acyclic Graph (DAG), where each node represents a layer and edges represent data flow, enabling layer-level computation partitioning between mobile and cloud.
- It formulates the optimal partitioning problem as a shortest path problem in the DAG, with constraints for mobile battery, cloud congestion, and QoS, making it NP-complete and solvable via MILP.
- The framework uses a graph-based approach to handle complex architectures like ResNet and RNNs, supporting multi-hop execution patterns (e.g., mobile-cloud-mobile) beyond single-switch models.
- Intermediate layer outputs are compressed using PNG-based tiling, where multiple feature map channels are arranged side-by-side into a 2D matrix to improve compression efficiency.
- Compression ratio (CR) is computed as the ratio of original layer size (8-bit) to compressed PNG size, achieving up to 5.8× and 3.5× average gains for AlexNet and VGG16, respectively.
- The MILP formulation integrates compression cost and communication overhead, enabling end-to-end optimization of latency and energy across both inference and training phases.
Experimental results
Research questions
- RQ1Can dynamic, layer-level partitioning of DNN inference between mobile and cloud reduce latency and energy consumption compared to fixed mobile-only or cloud-only strategies?
- RQ2How does the inclusion of intermediate layer compression affect communication cost and overall system efficiency in mobile-cloud DNN execution?
- RQ3What are the optimal execution patterns (e.g., mobile-cloud, cloud-mobile, or multi-hop) for different DNN architectures such as CNNs, RNNs, and autoencoders?
- RQ4To what extent can MILP-based optimization under real-time constraints (battery, cloud load, QoS) improve system performance across diverse DNN workloads?
- RQ5How does JointDNN’s approach scale across complex architectures like ResNet and generative models, where prior tools like Neurosurgeon fail due to rigid execution assumptions?
Key findings
- JointDNN reduces mobile energy consumption by up to 32× compared to cloud-only inference, significantly extending battery life in mobile applications.
- Latency is reduced by up to 18× compared to the status-quo cloud-only approach, improving responsiveness in real-time services.
- PNG-based tiling and compression reduce intermediate layer communication by up to 5.8× (AlexNet) and 3.5× (VGG16), with an additional 4.9× improvement in energy efficiency when compression is integrated into the optimization.
- The framework supports diverse execution patterns, including mobile-cloud-mobile and cloud-mobile sequences, which are common in online training and generative models, unlike prior tools that assume single-switch execution.
- The MILP-based optimization framework successfully balances multiple constraints—battery, cloud load, and QoS—demonstrating adaptability across different deployment scenarios.
- JointDNN outperforms Neurosurgeon in both scope and adaptability, supporting complex architectures like RNNs and autoencoders, while handling inter-layer optimizations and multi-point data transfers.
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.