# Diffusion-based Reinforcement Learning for Edge-enabled AI-Generated Content Services

엣지 기반 AI 생성 콘텐츠 서비스를 위한 확산 기반 강화학습

Hongyang Du, Zonghang Li, Dusit Niyato, Jiawen Kang, Zehui Xiong, Huawei Huang 외 1명 · arXiv · 2023년 3월 23일

- **연구 문제** 엣지 AIGC 서비스에서 사용자 과제를 ASP에 배정하는 문제는 효용이 사전에 알려지지 않고 과제가 실시간으로 도착하며 자원 제약이 있어 까다롭습니다.
- **연구 방법** 확산 모델의 역과정으로 행동 확률을 생성하는 AGOD를 SAC 구조의 정책으로 결합한 D2SAC를 제안합니다.
- **주요 결과** 시뮬레이션 ASP 선택 실험에서 저자들이 보고한 D2SAC의 테스트 보상은 537로, 비교한 DRL 및 휴리스틱 기준보다 높게 제시됩니다.

## ASP 선택 문제와 AaaS 배경

엣지 네트워크에서 AIGC 모델을 배포하는 AaaS 구조에서는 사용자 과제를 여러 AIGC 서비스 제공자(ASP) 중 하나에 배정해야 합니다. 과제는 실시간으로 순차 도착하고, 각 ASP의 자원 용량 Ti는 제한되어 있습니다. 목표는 전체 사용자 효용 U를 최대화하는 배정을 찾는 것이며, 이를 정수 계획 문제로 쓰면 최대화 대상은 U = Σj ui(Tj)이고 제약은 Tj + Σ Tj′ ≤ Ti입니다. 여기서 Tj′는 해당 ASP에서 이미 실행 중인 과제들의 자원 요구량입니다.

![Figure 1: The architecture of AIGC-as-a-Service in wireless edge networks. Part A is demo of AIGC service based on Stable Diffusion v1.5 as an example of deplo…](https://refivu.com/papers/1f3360a8-f142-465a-88d4-2944cf4943bd/figures/figure-e742907b05dce0d3989807813f98852d.png?thumb=512)

**Fig. 1** . The architecture of AIGC-as-a-Service in wireless edge networks. Part A is demo of AIGC service based on Stable Diffusion v1.5 as an example of deployable AIGC model for edge servers; Part B is network architecture of ASPs employing edge servers to deploy AIGC models for providing AaaS to users; Part C shows variation in user experience demonstrated by different outputs from the same text prompt on various AIGC models, highlighting the importance of ASP selection.

[원문](https://arxiv.org/abs/2303.13052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hongyang Du, Zonghang Li, Dusit Niyato, Jiawen Kang, Zehui Xiong, Huawei Huang, Shiwen Mao · Diffusion-based Reinforcement Learning for Edge-enabled AI-Generated Content Services · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

효용 ui(Tj)는 AIGC 모델의 순방향 함수 Fi(Tj)와 사람 인지 기반 품질 평가 함수 G를 합성한 값으로 정의됩니다. 논문은 이미지 생성 예시에서 G로 BRISQUE를 들고, 과제 자원 요구량 Tj를 확산 모델의 디노이징 단계 수로 둡니다. 이 효용 함수는 사전에 알려지지 않으며 수학적 표현으로 정리하기 어렵다고 설명됩니다. 저자들은 이 문제가 NP-완전 문제에 해당한다고 언급하며, 기존의 탐욕 알고리즘이나 메타휴리스틱은 모든 과제와 효용을 미리 안다고 가정하는 경우가 많아 실시간 ASP 선택에 맞지 않는다고 봅니다.

따라서 이 논문이 다루는 질문은 확산 모델로 이산 결정 분포를 생성하는 방식이 이런 온라인 이산 배정 문제에서 DRL 정책을 대체하거나 보완할 수 있는지입니다.

## AGOD: 확산 역과정으로 행동 확률 생성하기

AGOD는 확산 모델의 역과정을 이산 의사결정을 생성하는 정책으로 바꾼 방법입니다. 입력은 현재 환경 상태 s이며, 출력은 각 ASP를 선택할 확률 πθ(s)입니다. 역과정은 표준 가우시안 잡음 xT에서 시작해 t = T에서 1까지 잡음을 제거하며 x0를 만듭니다. 각 단계에서 잡음 예측 네트워크 ϵθ(xt, t, s)를 사용하고, 이를 tanh로 작게 조정한 뒤 평균 µθ(xt, t, s)를 계산합니다.

![Figure 3: Illustration of the AGOD algorithm with the conditioned diffusion process](https://refivu.com/papers/1f3360a8-f142-465a-88d4-2944cf4943bd/figures/figure-a3b9d775d251c425c7b2b76a28631ede.png?thumb=512)

**Fig. 3** . Illustration of the AGOD algorithm with the conditioned diffusion process.

[원문](https://arxiv.org/abs/2303.13052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hongyang Du, Zonghang Li, Dusit Niyato, Jiawen Kang, Zehui Xiong, Huawei Huang, Shiwen Mao · Diffusion-based Reinforcement Learning for Edge-enabled AI-Generated Content Services · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

여기서 중요한 점은 평균 계산에서 예측된 잡음 항을 쓰되 그 값이 과도하게 커지지 않도록 tanh로 제한한다는 것입니다. 저자들은 큰 잡음이 x0를 불안정하게 만들어 실제 행동 확률을 식별하기 어렵게 할 수 있다고 설명합니다. 샘플링은 재매개변수화 방식으로 xt−1 = µθ + (β̃t/2)⊙ϵ 형태의 갱신을 거치며, 이렇게 얻은 x0에 소프트맥스를 적용해 행동 확률을 얻습니다.

한편 DDPM에서 쓰는 순방향 과정은 AGOD에서 실행하지 않습니다. 최적 결정 해의 데이터셋이 주어지지 않기 때문입니다. 대신 학습 목표는 정답 레이블과의 MSE 최소화가 아니라 결정의 가치를 최대화하는 방향으로 바뀝니다. 즉 AGOD는 정답 행동을 복원하는 모델이 아니라, 누적 보상을 높이는 행동 분포를 확산 역과정으로 샘플링하는 정책 네트워크로 이해해야 합니다.

## D2SAC: SAC 구조에 AGOD 정책 결합하기

D2SAC는 SAC의 정책 네트워크를 AGOD로 바꾼 확산 기반 강화학습 알고리즘입니다. 액터 네트워크 πθ(sl)의 핵심이 AGOD이며, 관찰 sl을 조건으로 입력합니다. 확산 단계 정보는 Sinusoidal 위치 임베딩으로 액터에 제공됩니다. 크리틱은 SAC와 같이 두 개의 Q 네트워크를 사용해 Q값 추정의 과대추정을 줄이며, 정책 개선에서는 두 추정 중 최솟값을 사용합니다.

![Figure 4: The overall architecture of the D2SAC algorithm](https://refivu.com/papers/1f3360a8-f142-465a-88d4-2944cf4943bd/figures/figure-982d5975272c0bc8c9662c66541ed662.png?thumb=512)

**Fig. 4** . The overall architecture of the D2SAC algorithm.

[원문](https://arxiv.org/abs/2303.13052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hongyang Du, Zonghang Li, Dusit Niyato, Jiawen Kang, Zehui Xiong, Huawei Huang, Shiwen Mao · Diffusion-based Reinforcement Learning for Edge-enabled AI-Generated Content Services · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

학습 과정은 경험 수집과 갱신으로 나뉩니다. 에이전트는 현재 정책으로 행동을 샘플링해 전이 (sl, al, sl+1, rl)를 경험 재생 메모리에 저장합니다. 보상 피드백이 지연되더라도 메모리에서 미니배치를 뽑아 오프폴리시 방식으로 갱신합니다. Q함수는 목표 Q값 yˆe와 온라인 Q값 ye 사이의 TD 오차를 최소화하며, 목표 액터와 목표 크리틱은 소프트 업데이트 비율 τ = 0.005로 천천히 갱신됩니다.

액터의 목적은 SAC식 엔트로피 정규화를 포함합니다. 저자들은 최대화 목표 대신 최소화 형태로 바꾸어 GPU 병렬 계산에 맞춘다고 설명합니다. 이 논문에서 D2SAC의 최적화 목표는 정책 손실과 행동 엔트로피 손실로 구성되며, DQL에서 쓰는 행동 복제 손실은 사용하지 않습니다. 이유는 온라인 통신 스케줄링에서 정답 행동 데이터셋을 얻기 어렵기 때문입니다.

## ASP 선택 실험과 주요 비교 결과

ASP 선택 실험은 20개 ASP를 가진 시뮬레이션 환경에서 수행되었습니다. 각 ASP의 자원 용량 T는 400에서 1000 사이에서 정해지고, 사용자 과제의 요구량 T는 100에서 250 사이의 무작위 값입니다. 과제는 λ = 0.001인 포아송 과정으로 도착하며, 총 J = 1000개 과제가 1×10^6초 구간에 도착하도록 설정되었습니다. 이미지 생성에는 RePaint를, 품질 평가에는 PIQ를 사용했습니다. 이 설정은 이 ASP 선택 시뮬레이션에 해당하며, 다른 데이터셋이나 실환경에 그대로 확대되지 않습니다.

비교 대상은 DQN, DRQN, Prioritized-DQN, Rainbow, REINFORCE, PPO, SAC 등 7개 DRL 알고리즘과 Random, Round Robin, Crash Avoid, Prophet 같은 휴리스틱 정책입니다. Table 3에서 저자들이 보고한 D2SAC의 테스트 보상은 537이며, 학습 보상은 528입니다. 같은 표에서 Crash Avoid 기준선에 도달하는 시간은 1.3시간, 단계 수는 190으로 보고됩니다. 이 값들은 저자 보고이며, 이 논문은 D2SAC가 제시된 DRL 알고리즘보다 높은 보상을 얻었다고 주장합니다.

또한 Gym 제어 과제에서도 D2SAC를 비교했지만, 이 결과는 ASP 선택 실험과 다른 과제 설정입니다. 따라서 Table 3의 시뮬레이션 결과와 Gym 결과를 하나의 공통 프로토콜로 묶어 해석하지 않는 것이 맞습니다.

## 확산 단계 수 T와 탐색 균형

확산 단계 수 T는 D2SAC에서 보상과 학습 시간을 함께 바꾸는 설계 변수입니다. 저자들은 T를 1, 2, 3, 4, 5, 10, 15로 바꾸어 정규화된 보상과 학습 시간을 비교했습니다. 보고된 곡선에서 보상은 처음 증가하다가 T가 커지면서 감소했고, 학습 시간은 T가 증가함에 따라 계속 늘었습니다. 이 관찰을 바탕으로 저자들은 보상 곡선의 변곡점이 T = 5 근처에 있다고 해석하며, 이 값을 본 실험 설정의 최적 디노이징 단계로 제시합니다.

![Figure 7: Denoising step impact on reward and training time, normalized to their maximum value](https://refivu.com/papers/1f3360a8-f142-465a-88d4-2944cf4943bd/figures/figure-920fea09f969c940ca00edca6fd5cf86.png?thumb=512)

**Fig. 7** . Denoising step impact on reward and training time, normalized to their maximum value.

[원문](https://arxiv.org/abs/2303.13052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hongyang Du, Zonghang Li, Dusit Niyato, Jiawen Kang, Zehui Xiong, Huawei Huang, Shiwen Mao · Diffusion-based Reinforcement Learning for Edge-enabled AI-Generated Content Services · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.

이 해석은 저자들의 해석이며, 다른 과제나 다른 모델 크기에서 같은 최적값이 나타난다는 증명은 아닙니다. 또한 저자들은 확산 단계가 커질수록 행동 분포가 더 뾰족해져 탐색 능력이 줄고, 그 결과 준최적 해에 머무를 수 있다고 설명합니다. 이 설명은 Fig. 8의 행동 확률 변화에 대한 해석이며, 확산 단계별 탐색 저하를 직접 측정한 것으로 단정하지 않습니다.

## 적용 범위와 남은 질문

첫째, 주요 실험은 시뮬레이션 환경에서 수행되었습니다. 저자들은 향후 연구에서 엣지 기반 ASP 선택에 관한 실세계 데이터셋을 수집하고 활용해 알고리즘을 검증하겠다고 밝힙니다. 따라서 현재 결과는 설정된 가정의 범위에서 해석해야 합니다.

둘째, DQL과 \[25\]의 확산 기반 방법은 연속 행동 공간을 위해 설계되어 이산 행동 공간 환경에는 적용할 수 없다고 명시됩니다. D2SAC는 이 한계를 이산 ASP 선택에 맞추어 다루지만, 연속 제어 과제에서의 성능은 같은 방식으로 일반화되지 않습니다.

셋째, 이 논문은 Gym의 표준 제어 과제에서도 비교를 제시하지만, 그 결과는 ASP 선택 시뮬레이션과 별도로 읽어야 합니다. 또한 Table 3의 학습 시간과 수렴 지표는 특정 실험 플랫폼과 설정에서 측정된 값입니다.

## 논문 정보

- **저자**: Hongyang Du, Zonghang Li, Dusit Niyato, Jiawen Kang, Zehui Xiong, Huawei Huang, Shiwen Mao
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2023년 3월 23일
- **등록일**: 2026년 11월 6일
- **수정일**: 2023년 11월 21일
- **버전**: v3
- **arXiv**: 2303.13052
- **분류**: cs.NI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

As Metaverse emerges as the next-generation Internet paradigm, the ability to efficiently generate content is paramount. AIGenerated Content (AIGC) emerges as a key solution, yet the resource intensive nature of large Generative AI (GAI) models presents challenges. To address this issue, we introduce an AIGC-as-a-Service (AaaS) architecture, which deploys AIGC models in wireless edge networks to ensure broad AIGC services accessibility for Metaverse users. Nonetheless, an important aspect of providing personalized user experiences requires carefully selecting AIGC Service Providers (ASPs) capable of effectively executing user tasks, which is complicated by environmental uncertainty and variability. Addressing this gap in current research, we introduce the AI-Generated Optimal Decision (AGOD) algorithm, a diffusion model-based approach for generating the optimal ASP selection decisions. Integrating AGOD with Deep Reinforcement Learning (DRL), we develop the Deep Diffusion Soft Actor-Critic (D2SAC) algorithm, enhancing the efficiency and effectiveness of ASP selection. Our comprehensive experiments demonstrate that D2SAC outperforms seven leading DRL algorithms. Furthermore, the proposed AGOD algorithm has the potential for extension to various optimization problems in wireless networks, positioning it as a promising approach for future research on AIGC-driven services. The implementation of our proposed method is available at: https://github.com/Lizonghang/AGOD.

## 원문 인용

Hongyang Du, Zonghang Li, Dusit Niyato, Jiawen Kang, Zehui Xiong, Huawei Huang, Shiwen Mao (2023). Diffusion-based Reinforcement Learning for Edge-enabled AI-Generated Content Services. arXiv:2303.13052v3. https://arxiv.org/abs/2303.13052v3

**BibTeX**

```
@misc{du2023diffusion,
  title = {{Diffusion-based Reinforcement Learning for Edge-enabled AI-Generated Content Services}},
  author = {Hongyang Du and Zonghang Li and Dusit Niyato and Jiawen Kang and Zehui Xiong and Huawei Huang and Shiwen Mao},
  year = {2023},
  eprint = {2303.13052},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.13052v3}
}
```

## 이 논문의 용어

- [DQN](https://refivu.com/terms/6263174655b5-dqn)
- [SAC](https://refivu.com/terms/5cba7ce8115f-sac)
- [CelebA-HQ](https://refivu.com/terms/55be90c6f5a7-celeba-hq)
- [MDP](https://refivu.com/terms/3811d2261871-mdp)
- [target networks](https://refivu.com/terms/3b40580ebe98-target-networks)
- [experience replay memory](https://refivu.com/terms/67b6e5503585-experience-replay-memory)
- [temporal difference (TD) error](https://refivu.com/terms/5afb5858e2cf-temporal-difference-td-error)
- [BRISQUE](https://refivu.com/terms/557e4fff0aa8-brisque)
- [Sinusoidal Position Embeddings](https://refivu.com/terms/d800f864b747-sinusoidal-position-embeddings)

## 다른 논문 해설

- [Deep Multiagent Reinforcement Learning: Challenges and Directions](https://refivu.com/papers/4e3f1d3b-94ab-4d97-b560-149d99954193-deep-multiagent-reinforcement-learning-challenges-and.md)
- [Deep Q-Learning based Reinforcement Learning Approach for Network Intrusion Detection](https://refivu.com/papers/0e0fba9c-de99-433f-a5f5-56cc10aa2ef8-deep-q-learning-based-reinforcement-learning-approach-for.md)
- [Online Model-Free Reinforcement Learning for the Automatic Control of a Flexible Wing Aircraft](https://refivu.com/papers/ba36d890-9284-4305-a476-e058d78348ca-online-model-free-reinforcement-learning-for-the-automatic.md)
- [Variational Quantum Circuits for Deep Reinforcement Learning](https://refivu.com/papers/f6af79b4-b092-4c2a-8589-70b19b37fcc5-variational-quantum-circuits-for-deep-reinforcement-learning.md)
- [DRPC: Distributed Reinforcement Learning Approach for Scalable Resource Provisioning in Container-based Clusters](https://refivu.com/papers/1d580a2a-e026-414c-88f7-6b9c39939552-drpc-distributed-reinforcement-learning-approach-for.md)
- [Deep differentiable reinforcement learning and optimal trading](https://refivu.com/papers/e0299137-4fbd-401a-8e88-9c973b9454ff-deep-differentiable-reinforcement-learning-and-optimal.md)
- [Real-World Humanoid Locomotion with Reinforcement Learning](https://refivu.com/papers/8e42e14f-83b7-4879-ab8c-1bd8a7bcea8a-real-world-humanoid-locomotion-with-reinforcement-learning.md)
- [Automatic acoustic detection of birds through deep learning: the first Bird Audio Detection challenge](https://refivu.com/papers/ffc7e794-5a19-4eef-a9d9-5a912594e0d1-automatic-acoustic-detection-of-birds-through-deep-learning.md)
- [Taxon and trait recognition from digitized herbarium specimens using deep convolutional neural networks](https://refivu.com/papers/e5ba6ec9-008d-4521-9364-6dca94651f8e-taxon-and-trait-recognition-from-digitized-herbarium.md)
- [Hiding Data in Images Using Cryptography and Deep Neural Network](https://refivu.com/papers/5f176b74-deef-4194-9cc9-ff65d30db05b-hiding-data-in-images-using-cryptography-and-deep.md)
- [A Perspective on Explainable Artificial Intelligence Methods: SHAP and LIME](https://refivu.com/papers/419ea828-55f0-4840-8bb1-a99a036efbe5-a-perspective-on-explainable-artificial-intelligence-methods.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/1f3360a8-f142-465a-88d4-2944cf4943bd-diffusion-based-reinforcement-learning-for-edge-enabled-ai)
