Abstract
Device-edge co-inference is a promising paradigm for deploying deep neural networks (DNNs) on resource-constrained mobile devices by splitting the model between the device and an edge server. However, the "data amplification" effect in early DNN layers often results in intermediate features being larger than the original input, complicating the trade-off between local computation and communication overhead. This paper introduces an Automated Machine Learning (AutoML) framework based on Deep Reinforcement Learning (DRL) to jointly optimize on-device model sparsification and intermediate feature compression. By treating the hyper-parameter search as a sequential decision-making problem, the framework achieves significant reductions in both communication (up to 87.5%) and computation (up to 70.4%) with negligible accuracy loss.
Introduction
The proliferation of deep learning applications on mobile devices is hindered by the high computational and energy demands of modern DNNs. While offloading inference to edge servers is a common solution, transmitting raw high-dimensional data (e.g., high-resolution images or video) can saturate network bandwidth. Device-edge co-inference addresses this by splitting the DNN: the mobile device executes the initial layers, and the resulting intermediate features are transmitted to the server for the remaining computation.
A critical challenge in this approach is the "data amplification" problem, where the size of intermediate feature maps in early layers exceeds that of the raw input. To mitigate this, researchers employ model pruning to reduce on-device FLOPs and feature compression to minimize transmission data. However, these two techniques are deeply coupled; pruning affects feature distributions, which in turn influences compression efficiency. Manually tuning these parameters across numerous layers is impractical.
Methodology: The AutoML Framework
The proposed solution is a 3-step AutoML framework that leverages the Deep Deterministic Policy Gradient (DDPG) algorithm to navigate the complex search space of pruning and compression ratios.
Step 1: Network Splitting and Autoencoder Insertion
A pre-trained DNN is split at a designated layer. To facilitate feature compression, a lightweight, trainable autoencoder—comprising an encoder on the device and a decoder on the server—is inserted at the split point.
Step 2: Automated Compression via DRL
The core of the framework is a DRL agent that acts as a controller. For each on-device layer, the agent determines the optimal sparsity level using $l_1$-norm filter pruning. Simultaneously, it selects the compression ratio for the autoencoder. The agent is trained using a reward function that balances three objectives: maximizing inference accuracy while minimizing on-device FLOPs and transmitted data size. This joint optimization ensures that the interplay between model architecture and feature representation is fully exploited.
Step 3: Fine-Tuning and Deployment
After the DRL agent identifies the optimal configuration, the entire pruned and compressed network is fine-tuned. This step is crucial for recovering accuracy lost during the aggressive compression and pruning phases before the model is deployed for real-time co-inference.
Experimental Results
The framework was evaluated using a ResNet-50 backbone on the CIFAR-10 dataset. Hardware testing involved a Raspberry Pi 3B+ and an Honor 8 Lite smartphone as edge devices, communicating with a GTX 1080Ti server.
Performance Trade-offs
As shown in the trade-off analysis, the AutoML framework significantly outperforms existing baselines like BottleNet++ and 2-step pruning. It successfully identifies configurations that reside on the lower-left frontier of the communication-computation graph. Specifically, the framework reduces communication overhead by up to 87.5% compared to traditional server-based inference and cuts on-device computation by 70.4% compared to simple model partitioning.
Accuracy and Latency
Remarkably, these efficiency gains are achieved with less than 1% loss in top-1 accuracy. Furthermore, the framework demonstrates superior end-to-end latency across various network bandwidths. By reducing the volume of data transmitted, it remains viable even in low-bandwidth environments where standard offloading would fail.
Conclusion
This paper demonstrates that joint optimization of model sparsification and feature compression via DRL is essential for efficient device-edge co-inference. The proposed AutoML framework automates the tedious process of hardware-aware tuning, providing a scalable solution for deploying complex DNNs on mobile platforms. Future work will focus on incorporating energy consumption directly into the DRL reward function to further optimize for battery-constrained environments.
Summary updated