Adaptive Edge Offloading for Image Classification Under Rate Limit

Jiaming Qiu, Ruiqi Wang, Ayan Chakrabarti, Roch Guérin, Chenyang Lu

Introduction

In the era of the Artificial Intelligence of Things (AIoT), embedded devices such as smart cameras and environmental sensors are increasingly tasked with complex image classification. However, these devices often lack the computational resources to run high-accuracy deep learning models locally. While offloading tasks to a powerful edge server is a common solution, it is frequently constrained by network bandwidth. To prevent congestion, network providers often implement a token bucket mechanism to enforce long-term average transmission rates while permitting short-term bursts. This paper introduces a lightweight Deep Q-Network (DQN) policy designed to optimize offloading decisions under these rate-limiting constraints, specifically accounting for the temporal correlations found in real-world data.

The Offloading Challenge

Traditional offloading strategies often operate under the assumption that image arrivals and classification difficulty are independent and identically distributed (i.i.d.). In practice, data is highly correlated: a motion sensor may trigger a burst of images in quick succession, or environmental factors like poor lighting may render an entire sequence of images difficult for a "weak" local model to classify.

The core challenge lies in determining which images are most deserving of a "token" for edge transmission. A naive policy might exhaust its token budget on easy images during a burst, leaving no capacity for difficult images that actually require the high-accuracy edge model.

Proposed Methodology

Model Hierarchy and Metrics

The system utilizes a two-tier model hierarchy:

  1. Local Model: A "weak," computationally efficient model residing on the embedded device.
  2. Edge Model: A "strong," high-accuracy model residing on the server.

To decide whether to offload, the device calculates the entropy of the local model's output. High entropy indicates that the local model is uncertain about its prediction, suggesting a significant potential accuracy gain if the image is processed by the edge model.

DQN Policy Design

The authors propose an adaptive policy based on a Deep Q-Network (DQN). The DQN observes the current state—including the history of image arrivals, local confidence scores, and the current token bucket level—to decide whether to offload the current image.

To ensure the system remains viable for resource-constrained hardware, the DQN is designed as a lightweight Multi-Layer Perceptron (MLP) with only five layers. By processing scalar metrics rather than raw image data, the DQN maintains a minimal computational footprint.

Training and Temporal Awareness

The policy is trained using experience replay and a target network to address the non-stationary nature of real-world data. This allows the DQN to develop "temporal awareness." For instance, if the policy detects the start of a high-intensity arrival period, it becomes more conservative with its tokens. Conversely, during lulls, it can afford to be more aggressive, preventing tokens from being wasted as the bucket reaches capacity.

Experimental Setup

The study utilizes the ImageNet (ILSVRC) dataset. To simulate real-world temporal correlations not present in standard datasets, the authors generated synthetic traces:

  • Markov-Modulated Process: Simulates alternating periods of high and low image arrival rates.
  • Rank-Ordered Sampling: Simulates bursts of varying difficulty by sampling from specific regions of the ImageNet distribution based on classification difficulty.

Key Results

Performance and Accuracy

The DQN policy consistently outperformed both a fixed-threshold baseline and a standard Markov Decision Process (MDP) policy. Its superiority was most pronounced in scenarios with high data correlation, where its ability to manage the token budget over time provided a significant accuracy advantage.

Computational Overhead

Testing on a Raspberry Pi 4 confirmed the system's efficiency. The DQN inference averaged only 0.25ms, which is approximately 1.2% of the time required by the local weak classifier (~20ms) and a negligible fraction of the total end-to-end offloading latency (~73ms). Furthermore, the system demonstrated robustness to hyper-parameters, such as the history window length ($T$), indicating ease of deployment across different hardware configurations.

Conclusion and Future Work

This research demonstrates that a lightweight reinforcement learning policy can significantly improve the efficiency of edge offloading by accounting for network constraints and data correlations. While the current MLP-based approach is highly effective, future work may explore Recurrent Neural Networks (RNNs) or LSTMs to capture even more complex temporal dependencies. Additionally, extending the framework to multi-agent scenarios—where multiple devices compete for shared bandwidth—remains a promising area for further investigation.

Summary updated

BibTeX
@article{qiu2022adaptive,
  author = {Jiaming Qiu and Ruiqi Wang and Ayan Chakrabarti and Roch Guérin and Chenyang Lu},
  title = {{Adaptive Edge Offloading for Image Classification Under Rate Limit}},
  journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
  year = {2022},
  url = {https://openreview.net/forum?id=P-50EyJH8n},
}
Figure