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

심층 강화학습을 통한 산업용 IoT에서의 정확도 보장 협력형 DNN 추론

Wen Wu, Peng Yang, Weiting Zhang, Conghao Zhou, Xuemin, Shen · arXiv · 2022년 12월 31일

- **연구 문제** 산업용 IoT 협업 DNN 추론에서 샘플링 속도, 오프로딩, 에지 자원 할당을 함께 조정해 평균 서비스 지연을 줄이면서 장기 정확도 요구를 보장하는 문제를 다룹니다.
- **연구 방법** 장기 정확도 제약을 가진 CMDP를 정확도 deficit 큐와 Lyapunov drift-plus-cost로 MDP로 바꾸고, DDPG를 확장한 학습 알고리즘으로 풉니다. 에지 자원 할당은 닫힌 형태의 최적화 subroutine으로 계산합니다.
- **주요 결과** 시뮬레이션에서 제안 방법은 작업 도착률 변화에서 delay myopic 대비 지연을 19%, static configuration 대비 25% 줄였고, 두 서비스의 장기 정확도 요구를 높은 확률로 만족했습니다.

## 산업용 IoT의 DNN 추론과 샘플링 속도 적응의 필요성

산업용 IoT 장치는 진동 센서 등으로 설비 상태를 감지하고, 그 데이터를 DNN으로 처리해 고장을 진단합니다. DNN 추론은 전통적인 방법보다 높은 정확도를 내지만 많은 곱셈·누적 연산을 요구합니다. 장치에서만 추론하면 에너지 소비와 지연이 커지고, 모든 데이터를 AP로 보내면 무선 채널 변동에 따라 지연이 예측하기 어려워집니다. 따라서 장치와 엣지가 협력하는 추론이 필요합니다.

이 논문은 여기에 샘플링 속도 적응을 더합니다. 원문 실험에서 AlexNet을 베어링 진동 데이터셋에 적용했을 때 샘플링 속도가 18 KHz에서 24 KHz로 늘면 정확도는 95%에서 98.7%로 올라갔습니다. 채널이 나쁘거나 엣지 부하가 크면 샘플링 속도를 낮춰 전송량과 연산량을 줄일 수 있고, 그 대가로 정확도가 제한됩니다. 즉 샘플링 속도는 지연과 정확도를 함께 바꾸는 조작 변수입니다.

문제의 어려움은 두 가지입니다. 첫째, 채널과 작업 도착이 시간에 따라 변하므로 지연을 장기적으로 줄이려면 네트워크의 확률적 동역학을 고려해야 합니다. 둘째, 각 추론 서비스의 장기 정확도 요구를 만족해야 하며, 이 정확도는 여러 시간 슬롯의 결정이 누적된 결과입니다.

## CMDP 정식화와 Lyapunov 기반 MDP 변환

논문은 샘플링 속도 선택, 작업 오프로딩, 에지 자원 할당을 함께 결정하는 문제를 CMDP로 정식화합니다. 목표는 평균 서비스 지연을 최소화하는 것이며, 각 서비스 m의 시간 평균 정확도가 장기 요구 값 이상이어야 한다는 제약을 둡니다. 정확도는 샘플링 속도별 정확도 함수 g와 DNN 유형별 정확도 h\_{m,c}, h\_{m,u}의 곱으로 계산되며, 압축 DNN은 장치에서, 비압축 DNN은 AP에서 실행됩니다.

![Figure 2: The collaborative DNN inference framework for industrial IoT devices](https://refivu.com/papers/98596cf6-61c4-4599-8e7b-49aa48dbcd75/figures/figure-13d6942c5c60b266fad69433235d41dd.png?thumb=512)

**Fig. 2** . The collaborative DNN inference framework for industrial IoT devices.

[원문](https://arxiv.org/abs/2301.00130v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Wen Wu, Peng Yang, Weiting Zhang, Conghao Zhou, Xuemin, Shen · Accuracy-Guaranteed Collaborative DNN Inference in Industrial IoT via Deep Reinforcement Learning · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

장기 제약을 직접 다루기 어려우므로 정확도 deficit 큐 Z\_m을 둡니다. 큐는 요구 정확도와 실제 정확도의 차이를 누적한 값이며, Lyapunov 함수 L(Z)=Z^2/2의 drift를 상한으로 묶어 drift-plus-cost를 최소화합니다. 원문은 V가 지연 최소화와 정확도 충족 사이의 균형을 조정하는 양의 파라미터라고 설명합니다. 제약이 위반되어 Z\>0이면 지연 감소보다 순간 정확도 개선이 더 긴급해진다는 것이 저자들의 해석입니다.

변환 후 보상은 -V·D 에서 Z\_m(A\_m^th - A\_m)의 합을 뺀 값으로 바뀌고, 상태에는 Z\_m이 추가됩니다. 이렇게 얻은 MDP에서 학습 알고리즘은 장기 제약을 보상 구조 안에서 다룹니다.

## 최적화 subroutine과 DDPG 기반 학습

알고리즘은 DDPG를 확장하되, 에지 자원 할당을 신경망으로 학습하지 않고 최적화 subroutine으로 직접 계산합니다. 원문에 따르면 자원 할당은 정확도 성능과 무관하며 한 시간 슬롯의 지연 성능에만 영향을 줍니다. 오프로딩과 샘플링 속도 선택이 정해지면, 서비스별 지연 항의 합을 최소화하는 자원 할당 c\_m은 Λ\_m을 이용한 닫힌 형태로 주어집니다. 여기서 c\_m^⋆ = sqrt(Λ\_m) / Σ sqrt(Λ\_m)이며, Λ\_m은 오프로딩 결정, 작업량, 큐 backlog, 계산 강도로 구성됩니다.

학습에서 actor 네트워크는 현재 상태로부터 샘플링 속도 선택 X\_t와 오프로딩 o\_t를 결정하고, critic 네트워크는 보상 피드백으로 그 행동을 평가합니다. 행동에는 가우시안 탐색 잡음이 더해지며, 실행 후 얻은 전이 (s\_t, a\_t, r\_t, s\_{t+1})는 경험 재생 메모리에 저장되고 미니배치로 무작위 추출되어 학습에 사용됩니다. critic은 목표값 y\_i를 이용한 제곱 손실로 학습되고, actor는 정책 기울기로 갱신되며, 목표 네트워크는 소프트 업데이트됩니다.

이 subroutine의 역할은 학습 복잡도를 줄이는 것입니다. 자원 할당을 신경망의 출력으로 두지 않으므로 학습해야 할 결정 차원이 줄어듭니다.

## 훈련 수렴과 작업 도착률에 따른 비교

훈련 단계에서는 평균 서비스 지연이 에피소드가 늘수록 줄어드는 것이 확인되며, 두 서비스의 정확도도 1,000 에피소드 후 요구 수준에 수렴한다고 보고됩니다. 이 실험의 설정은 에피소드당 200 시간 슬롯과 1,000 에피소드입니다.

온라인 평가에서는 작업 도착률을 0.6부터 1.0 request/sec까지 바꾸며 제안 방법을 delay myopic 및 static configuration과 비교합니다. 대역폭은 W = 20 MHz로 고정되며, 각 점은 95% 신뢰구간으로 표시됩니다. 작업 도착률이 커질수록 지연은 증가합니다. 제안 방법은 두 비교 방식보다 지연이 낮으며, 원문은 평균 서비스 지연을 delay myopic 대비 19%, static configuration 대비 25% 줄였다고 보고합니다. 이 차이는 제안 방법이 채널과 도착 패턴의 변화를 학습해 장기 성능을 목표로 결정하기 때문이라고 저자들은 해석합니다.

![Figure 4: Service delay performance with respect to task arrival rates](https://refivu.com/papers/98596cf6-61c4-4599-8e7b-49aa48dbcd75/figures/figure-dd209ccd555c16bd70f527481fbc7edd.png?thumb=512)

**Fig. 4** . Service delay performance with respect to task arrival rates.

[원문](https://arxiv.org/abs/2301.00130v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Wen Wu, Peng Yang, Weiting Zhang, Conghao Zhou, Xuemin, Shen · Accuracy-Guaranteed Collaborative DNN Inference in Industrial IoT via Deep Reinforcement Learning · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

![Figure 5: Inference accuracy performance with respect to task arrival rates](https://refivu.com/papers/98596cf6-61c4-4599-8e7b-49aa48dbcd75/figures/figure-7b42560dd8e4ca528416c3e5b317d6a6.png?thumb=512)

**Fig. 5** . Inference accuracy performance with respect to task arrival rates.

[원문](https://arxiv.org/abs/2301.00130v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Wen Wu, Peng Yang, Weiting Zhang, Conghao Zhou, Xuemin, Shen · Accuracy-Guaranteed Collaborative DNN Inference in Industrial IoT via Deep Reinforcement Learning · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

정확도는 두 서비스의 요구치 0.8과 0.9에 대해 상자그림으로 제시됩니다. 원문은 최대 오류 확률이 0.5% 미만이라고 보고합니다. 이 결과는 본 실험의 두 서비스와 데이터셋 설정에서 얻은 것입니다.

## 대역폭과 에지 자원 조건에서의 효과

대역폭을 5 MHz에서 25 MHz까지 바꾼 실험에서 평균 서비스 지연은 대역폭이 커질수록 줄어듭니다. 제안 방법은 대역폭이 부족할 때 더 큰 효과를 보입니다. 5 MHz에서 제안 방법은 delay myopic 대비 1.20배, static configuration 대비 1.42배의 지연 감소를 달성하며, 25 MHz에서는 각각 1.15배와 1.31배입니다. 원문은 5 MHz에서 제안 방법이 장치의 국소 연산을 더 많이 활용해 작업의 47.5%를 로컬에서 처리하고, delay myopic은 17%만 로컬에서 처리한다고 보고합니다.

에지 자원에 대한 subroutine 효과는 고정 자원 할당(proposed-fixed)과 비교됩니다. 고정 할당은 두 서비스의 평균 계산 요구에 따라 자원을 나눕니다. 에지 CPU 주파수가 1 GHz일 때 제안 방법의 지연 개선은 1.98배이고, 1.2 GHz에서는 1.02배로 줄어듭니다. 이는 자원이 제한된 상황에서 효율적인 할당이 더 중요하다는 해석과 연결됩니다.

이 결과는 지연 지표를 중심으로 한 비교이며, 학습 복잡도 감소는 subroutine의 또 다른 장점으로 제시됩니다. 다른 하드웨어나 다른 DNN 구성에서 같은 수치가 나온다고 일반화할 근거는 본문에 없습니다.

## 적용 범위와 남은 질문

이 결과는 시뮬레이션에서 얻은 것입니다. 샘플링 속도 후보는 원시 샘플링 속도의 25%, 50%, 75%, 100%의 네 가지이고, 채널 상태는 Good, Normal, Bad의 세 상태를 가진 전이 행렬로 모델링됩니다. 두 서비스의 장기 정확도 요구는 0.8과 0.9로 설정되었습니다.

정확도 함수와 DNN 정확도도 특정 데이터셋과 실험에서 측정된 값입니다. 예를 들어 샘플링 속도별 정확도 0.59, 0.884, 0.950, 0.987은 베어링 진동 데이터셋 실험에서 얻었습니다. 원문은 이 모델이 다른 추론 방법으로도 확장될 수 있다고 밝히지만, 이 논문이 그 확장을 실험으로 확인했다고 주장하지는 않습니다.

![Figure 1: Inference accuracy with respect to sampling rates on the bearing vibration dataset \[8\]](https://refivu.com/papers/98596cf6-61c4-4599-8e7b-49aa48dbcd75/figures/figure-d12456f8631c7eb318934027ea813d15.png?thumb=512)

**Fig. 1** . Inference accuracy with respect to sampling rates on the bearing vibration dataset \[8\].

[원문](https://arxiv.org/abs/2301.00130v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Wen Wu, Peng Yang, Weiting Zhang, Conghao Zhou, Xuemin, Shen · Accuracy-Guaranteed Collaborative DNN Inference in Industrial IoT via Deep Reinforcement Learning · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

원문은 향후 과제로 기기 이동성이 추론 성능에 미치는 영향을 조사하겠다고 밝힙니다. 따라서 이동성이 있는 환경의 성능은 이 논문에서 다루지 않은 질문입니다.

## 논문 정보

- **저자**: Wen Wu, Peng Yang, Weiting Zhang, Conghao Zhou, Xuemin, Shen
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2022년 12월 31일
- **등록일**: 2026년 11월 6일
- **수정일**: 2022년 12월 31일
- **버전**: v1
- **arXiv**: 2301.00130
- **분류**: eess.SY · cs.AI · cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2301.00130v1) · [원문 PDF ↗](https://arxiv.org/pdf/2301.00130v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

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.

## 원문 인용

Wen Wu, Peng Yang, Weiting Zhang, Conghao Zhou, Xuemin, Shen (2022). Accuracy-Guaranteed Collaborative DNN Inference in Industrial IoT via Deep Reinforcement Learning. arXiv:2301.00130v1. https://arxiv.org/abs/2301.00130v1

**BibTeX**

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

## 이 논문의 용어

- [AlexNet](https://refivu.com/terms/e5142ede4de4-alexnet)
- [Deep Deterministic Policy Gradient](https://refivu.com/terms/9de3b312f82e-deep-deterministic-policy-gradient)
- [critic network](https://refivu.com/terms/7825fea5a130-critic-network)
- [Lyapunov function](https://refivu.com/terms/5699a7f62460-lyapunov-function)
- [actor network](https://refivu.com/terms/5e871d0b6cef-actor-network)
- [constrained Markov decision process](https://refivu.com/terms/5bf9a0e1f005-constrained-markov-decision-process)
- [experience replay memory](https://refivu.com/terms/67b6e5503585-experience-replay-memory)
- [CMDP](https://refivu.com/terms/86d87e2cb80b-cmdp)
- [Lyapunov optimization](https://refivu.com/terms/596bc43d290a-lyapunov-optimization)

## 다른 논문 해설

- [3D UAV Trajectory and Data Collection Optimisation via Deep Reinforcement Learning](https://refivu.com/papers/f554af22-352f-4193-8877-e0e17558c489-3d-uav-trajectory-and-data-collection-optimisation-via.md)
- [Mobility-Aware Cooperative Caching in Vehicular Edge Computing Based on Asynchronous Federated and Deep Reinforcement Learning](https://refivu.com/papers/6caacc0f-9eb4-41c3-8962-34625c647f4e-mobility-aware-cooperative-caching-in-vehicular-edge.md)
- [Deep Reinforcement Learning-based Scheduling for Optimizing System Load and Response Time in Edge and Fog Computing Environments](https://refivu.com/papers/3091fc9c-0d18-40ca-8934-a5e35dcea955-deep-reinforcement-learning-based-scheduling-for-optimizing.md)
- [Quantum agents in the Gym: a variational quantum algorithm for deep Q-learning](https://refivu.com/papers/61131563-04fb-4585-b080-efba1e8d4a85-quantum-agents-in-the-gym-a-variational-quantum.md)
- [Diffusion-based Reinforcement Learning for Edge-enabled AI-Generated Content Services](https://refivu.com/papers/1f3360a8-f142-465a-88d4-2944cf4943bd-diffusion-based-reinforcement-learning-for-edge-enabled-ai.md)
- [Deep Multiagent Reinforcement Learning: Challenges and Directions](https://refivu.com/papers/4e3f1d3b-94ab-4d97-b560-149d99954193-deep-multiagent-reinforcement-learning-challenges-and.md)
- [Scientific multi-agent reinforcement learning for wall-models of turbulent flows](https://refivu.com/papers/3c11ac24-7249-4feb-b3d5-60b00a138213-scientific-multi-agent-reinforcement-learning-for-wall.md)
- [Challenges and Opportunities in Deep Reinforcement Learning with Graph Neural Networks: A Comprehensive review of Algorithms and Applications](https://refivu.com/papers/fbcd0f94-4c97-409e-8dab-d3350288ed10-challenges-and-opportunities-in-deep-reinforcement-learning.md)
- [Learning Agile Soccer Skills for a Bipedal Robot with Deep Reinforcement Learning](https://refivu.com/papers/3ef41329-5e9b-477a-9ece-c7d4b12b603d-learning-agile-soccer-skills-for-a-bipedal-robot.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/98596cf6-61c4-4599-8e7b-49aa48dbcd75-accuracy-guaranteed-collaborative-dnn-inference-in)
