Accuracy-Guaranteed Collaborative DNN Inference in Industrial IoT via Deep Reinforcement Learning

Wen Wu, Peng Yang, Weiting Zhang, Conghao Zhou, Xuemin, Shen Shen · DOI

Abstract: Collaboration among industrial Internet of Things (IoT) devices and edge networks is essential to support computation-intensive deep neural network (DNN) inference services which require low delay and high accuracy. Sampling rate adaption which dynamically configures the sampling rates of industrial IoT devices according to network conditions, is the key in minimizing the service delay. In this paper, we investigate the collaborative DNN inference problem in industrial IoT networks. To capture the channel variation and task arrival randomness, we formulate the problem as a constrained Markov decision process (CMDP). Specifically, sampling rate adaption, inference task offloading and edge computing resource allocation are jointly considered to minimize the average service delay while guaranteeing the long-term accuracy requirements of different inference services. Since CMDP cannot be directly solved by general reinforcement learning (RL) algorithms due to the intractable long-term constraints, we first transform the CMDP into an MDP by leveraging the Lyapunov optimization technique. Then, a deep RL-based algorithm is proposed to solve the MDP. To expedite the training process, an optimization subroutine is embedded in the proposed algorithm to directly obtain the optimal edge computing resource allocation. Extensive simulation results are provided to demonstrate that the proposed RL-based algorithm can significantly reduce the average service delay while preserving long-term inference accuracy with a high probability.

TL;DR

This paper introduces a collaborative framework for Deep Neural Network (DNN) inference in Industrial IoT (IIoT) that dynamically balances the scales between low latency and high accuracy. By combining Deep Reinforcement Learning (DRL) with Lyapunov optimization, the authors jointly optimize sampling rates, task offloading, and edge resources to reduce service delay by up to 25% while strictly guaranteeing long-term inference accuracy.

What Problem Does This Paper Address?

In the world of the Industrial Internet of Things (IIoT), deep learning is the go-to for tasks like fault diagnosis and facility monitoring. However, running these "heavy" DNNs presents a classic engineering trade-off. If you run the inference locally on a sensor, you hit a wall of limited battery and processing power. If you offload everything to the edge (like an Access Point), you become a slave to unpredictable wireless channel conditions.

The authors identify a critical, often overlooked "knob" in this system: the sampling rate. A higher sampling rate provides more data, leading to higher inference accuracy, but it also creates a massive data volume that clogs the network and slows down processing. Conversely, downsampling speeds things up but risks missing critical faults.

Inference accuracy of AlexNet as a function of sampling rate, highlighting the trade-off between data quality and processing load.

The challenge is to dynamically adjust sampling rates, offloading decisions, and edge resource allocation in real-time as network conditions and task arrivals fluctuate.

Methods

The authors frame this as a Constrained Markov Decision Process (CMDP). The goal is to minimize average service delay while satisfying a "hard" long-term constraint: maintaining a minimum average inference accuracy.

The proposed collaborative DNN inference architecture, showing the interaction between IIoT devices, the Access Point, and the Edge Server.

To solve this, they employ a three-pronged approach:

  1. Lyapunov Optimization: Since standard Reinforcement Learning (RL) struggles with long-term constraints, the authors use Lyapunov techniques to transform the CMDP into a standard MDP. They introduce "accuracy deficit queues" that track how much "accuracy debt" the system has accumulated. If the debt is high, the system prioritizes accuracy; if the debt is low, it focuses on reducing delay.
  2. Deep Reinforcement Learning (DDPG): They use a Deep Deterministic Policy Gradient (DDPG) algorithm to handle the continuous and high-dimensional action space of the IIoT network.
  3. Optimization Subroutine: In a clever move to speed up training, the authors don't make the RL agent learn everything from scratch. They prove that edge resource allocation is a convex optimization problem. They embed a mathematical subroutine directly into the RL loop to analytically calculate the optimal resource split, allowing the RL agent to focus solely on sampling and offloading.

Datasets

The study utilizes the Case Western Reserve University (CWRU) bearing vibration dataset, an open-source benchmark for industrial fault diagnosis.

  • Application: They implemented AlexNet to perform fault diagnosis (identifying 10 types of bearing faults).
  • Mapping: They used the dataset to empirically map the relationship between sampling rates (ranging from 6 KHz to 24 KHz) and inference accuracy, providing the "ground truth" for their simulation models.

Key Insights and Ideas

  • Sampling Rate as a Control Variable: Most offloading research treats the data size as a fixed given. This paper treats data generation (sampling) as a controllable parameter, allowing the system to "compress" tasks at the source when the network is congested.
  • The "Accuracy Debt" Concept: By using accuracy deficit queues, the agent learns a sophisticated policy that can "borrow" speed from the future by temporarily lowering accuracy, provided it "pays it back" later to meet the long-term average requirement.
  • Hybrid Intelligence: The combination of DRL (for stochastic, hard-to-model network dynamics) and convex optimization (for well-understood resource allocation) significantly reduces the training complexity and improves the stability of the algorithm.

Key Results

The proposed RL-based algorithm was tested against "Static Configuration" and "Delay Myopic" (short-term focus) benchmarks:

  • Latency Reduction: The algorithm reduced average service delay by 19% compared to the myopic scheme and 25% compared to static configurations.
  • Accuracy Guarantees: The system successfully maintained long-term accuracy requirements (e.g., 0.8 or 0.9) with a maximum error probability of less than 0.5%.
  • Resource Efficiency: The gains were most pronounced in "resource-scarce" scenarios. For instance, with a narrow 5 MHz bandwidth, the algorithm intelligently decided to execute 47.5% of tasks locally to avoid network bottlenecks, whereas simpler benchmarks failed to adapt.

Limitations and Future Work

While the paper provides a robust framework for stationary IIoT environments, it acknowledges a few areas for expansion:

  • Device Mobility: The current model assumes sensors are relatively static. In environments with mobile robots or AGVs (Automated Guided Vehicles), the channel dynamics would become significantly more complex.
  • Multi-Access Point Coordination: The study focuses on a single AP. Future work could explore how multiple edge nodes might collaborate to further distribute the inference load.
  • Energy Constraints: While the paper mentions energy as a motivator, the primary objective function is delay. Explicitly incorporating energy harvesting or battery life constraints into the CMDP would be a natural next step for IIoT applications.

Summary updated

BibTeX
@misc{wu2022accuracy,
  author = {Wen Wu and Peng Yang and Weiting Zhang and Conghao Zhou and Xuemin and Shen Shen},
  title = {{Accuracy-Guaranteed Collaborative DNN Inference in Industrial IoT via Deep Reinforcement Learning}},
  year = {2022},
  eprint = {2301.00130},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.00130},
}
Figure