Dynamic Compression Ratio Selection for Edge Inference Systems With Hard Deadlines

Xiufeng Huang, Sheng Zhou

Abstract

Edge computing systems often offload AI inference tasks from resource-constrained IoT devices to edge servers. However, strict latency deadlines and fluctuating network conditions create a significant challenge: balancing transmission speed with inference accuracy. This paper proposes a dynamic compression ratio selection strategy using Markov Decision Processes (MDP) to optimize this trade-off. By incorporating queue-awareness and uncertainty-based retransmission (Information Augmentation), the system maximizes the rate of successful, timely inferences. Experimental results on MNIST and CIFAR-10 datasets demonstrate that the proposed online MDP algorithm achieves near-optimal performance, significantly outperforming fixed-resolution baselines and maintaining robustness under network congestion and packet loss.

Introduction

The proliferation of AI at the edge, in applications such as autonomous driving and industrial automation, necessitates offloading complex inference tasks to edge servers. These tasks often have "hard deadlines"—strict time limits after which the results are no longer useful. Wireless network congestion frequently leads to missed deadlines when high-resolution raw data is transmitted. While lossy compression can reduce latency, it inherently degrades model accuracy. This paper addresses the critical accuracy-latency trade-off by dynamically selecting compression ratios based on real-time system states.

System Architecture

The system consists of edge devices generating task streams and an edge server equipped with a task queue and a pre-trained AI model. The core challenge is deciding exactly how much to compress each task based on how many other tasks are waiting in the queue.

System architecture of the edge inference offloading process.

Methodology

The authors propose a suite of algorithms to manage the accuracy-latency trade-off:

  • Online Markov Decision Process (MDP): A practical algorithm for real-time use. It maps the state of the task queue (remaining time for each queued task) to a binary representation, allowing the system to select the optimal compression ratio for the "head-of-line" task to maximize expected long-term successful inferences.
  • Information Augmentation: A multi-stage approach where the device first sends a highly compressed version of the data. If the server is "uncertain" about the result, it requests a retransmission with less compression (more detail).
  • Uncertainty-Based Decision Making: Since the server cannot know if an inference is correct in real-time, the authors use the Shannon Entropy of the model's output to estimate confidence. High entropy suggests the model is guessing, triggering a request for more data.
  • Packet Loss-Aware Retransmission: The MDP is extended to account for unreliable wireless channels, factoring in Packet Error Rate (PER) to decide when to retransmit lost packets versus moving to the next task.

Uncertainty Analysis

A key technical insight is the reliability of entropy as a proxy for truth. As shown in the frequency density plots below, correct inferences (True) tend to cluster at low uncertainty values, while incorrect ones (False) are spread across higher uncertainty ranges. This allows the system to make intelligent retransmission decisions without human verification.

Frequency density of uncertainty (entropy) for different input resolutions (4x4 and 7x7).

Key Results

  • Superiority over Fixed Resolution: In MNIST tests, the dynamic adaptive resolution scheme achieved a 97.5% success rate, a 4.5% improvement over the best fixed-resolution baseline at high task arrival rates.
  • Augmentation Gains: For the complex CIFAR-10 dataset, the Information Augmentation scheme provided a 5% performance boost compared to standard online algorithms.
  • Robustness to Noise: The packet-loss-aware scheme proved highly resilient; even with a 10% packet loss probability, the performance drop was kept under 2%.
  • Near-Optimal Performance: The online MDP algorithm performed almost as well as the offline Dynamic Programming (DP) upper bound, proving its efficiency for real-world deployment.

Conclusion

Dynamic, queue-aware compression selection is vital for meeting hard deadlines in edge AI systems. By using entropy as a proxy for accuracy and employing MDPs for scheduling, systems can maintain high performance even under network stress. Future work will explore multi-server environments and joint optimization of scheduling and model training.

Summary updated

BibTeX
@article{huang2020dynamic,
  author = {Xiufeng Huang and Sheng Zhou},
  title = {{Dynamic Compression Ratio Selection for Edge Inference Systems With Hard Deadlines}},
  journal = {IEEE Internet of Things Journal},
  year = {2020},
  doi = {10.1109/jiot.2020.2997128},
}
Figure