Communication-Computation Trade-off in Resource-Constrained Edge Inference

Jiawei Shao, Jun Zhang

Abstract

This paper presents a three-step framework for optimizing device-edge co-inference of Deep Neural Networks (DNNs). By integrating strategic model splitting, communication-aware pruning, and task-oriented feature encoding, the proposed approach mitigates the "data amplification" bottleneck common in early neural network layers. Experimental results on CIFAR-10 with ResNet18 demonstrate significant reductions in latency and communication overhead, maintaining high accuracy even in bandwidth-constrained and noisy wireless environments.

Introduction

Deploying powerful AI models on resource-constrained edge devices, such as smartphones or IoT sensors, typically involves a choice between local execution and full offloading to a server. While on-device inference preserves privacy, it is often limited by hardware speed. Conversely, server-based inference requires transmitting raw data, which consumes significant bandwidth.

Co-inference offers a middle ground where a device processes initial layers and transmits intermediate features to a server. However, this approach often suffers from data amplification, where intermediate feature maps are larger than the original input. This paper addresses this bottleneck by optimizing the trade-off between local computation and transmission costs.

Proposed Framework

The authors propose a general three-step framework to navigate the communication-computation trade-off:

  1. Model Split Point Selection: Identifying the optimal layer to divide the DNN so that the device workload is manageable and the resulting feature size is minimized.
  2. Communication-Aware Model Compression: Utilizing incremental network pruning to specifically target the output neurons of the on-device portion, directly shrinking the data volume for transmission.
  3. Task-Oriented Feature Encoding: Implementing a lightweight, trainable encoder-decoder pair. This includes dimension reduction via convolutional layers and learning-driven coding. Notably, Joint Source-Channel Coding (JSCC) is employed to make feature transmission robust against wireless noise without heavy error-correction codes.
The three-step framework: model splitting, incremental pruning for compression, and task-oriented encoding for feature transmission.

Experimental Evaluation

The framework was evaluated using the CIFAR-10 dataset and a ResNet18 model. The hardware setup consisted of a Raspberry Pi 3 as the edge device and a server equipped with an NVIDIA RTX 2080 Ti.

Key Results

  • Latency Stability: In bandwidth-constrained environments (below 40KBps), the proposed method maintained a stable end-to-end latency of approximately 0.1 seconds. In contrast, baseline methods experienced exponential latency spikes as bandwidth decreased.
  • Efficiency and Accuracy: The framework achieved significant reductions in on-device FLOPs and transmitted bits compared to standard ResNet18 and other state-of-the-art pruning methods. Crucially, it maintained a target accuracy of 93%, representing only a 2% drop from the uncompressed model.
  • Noise Robustness: By using JSCC, the system becomes fault-tolerant. The server-side DNN can often reach correct conclusions even when wireless signal quality is poor and bits are flipped during transmission.
Comparison of end-to-end latency across different communication rates, showing the stability of the proposed method in low-bandwidth scenarios.

Conclusion

This research demonstrates that task-oriented compression and joint source-channel coding are superior to traditional reconstruction-oriented methods (like JPEG) for edge inference. By focusing on preserving only the features necessary for the specific task, the framework enables efficient AI deployment in challenging network conditions. Future work may involve using Neural Architecture Search (NAS) to automate the selection of split points and compression ratios in real-time.

Summary updated

BibTeX
@article{shao2020communication,
  author = {Jiawei Shao and Jun Zhang},
  title = {{Communication-Computation Trade-off in Resource-Constrained Edge Inference}},
  journal = {IEEE Communications Magazine},
  year = {2020},
  doi = {10.1109/mcom.001.2000373},
}
Figure