Post

A Federated Reinforcement Learning Framework via a Committee Mechanism for Resource Management in 5G Networks

- Published in MDPI Sensors (Vol.24, No.21, 7031)

A Federated Reinforcement Learning Framework via a Committee Mechanism for Resource Management in 5G Networks

Abstract

  • 5G/6G 네트워크에서는 MEC 환경의 네트워크 자원을 동적으로 조절해야 하며, 특히 5G Core의 UPF (User Plane Function) instance 수를 traffic demand에 맞게 조절하는 autoscaling이 핵심
    • UPF pod가 너무 적으면 PDU session 요청 처리 실패로 blocking rate 증가
    • UPF pod가 너무 많으면 idle resource 증가에 따른 운영 비용 증가
  • 기존 DRL 기반 autoscaling은 변화하는 workload에 적응할 수 있다는 장점이 있지만 대부분 중앙집중식 학습에 의존
    • 여러 MEC의 상태 정보를 중앙 서버에 모아야 하므로 data privacy 문제 발생
    • 데이터와 연산의 중앙 집중에 따른 networking/computing bottleneck 발생 가능성
  • 이 논문에서는 DRL과 Decentralized Federated Learning (DFL) 을 결합한 Decentralized Federated Reinforcement Learning (DFRL) framework를 제안
    • 각 MEC의 DRL agent는 local data 기반 학습
    • raw data 대신 model parameter만 다른 MEC와 공유
    • 중앙 aggregation server 없이 collaborative training 수행
  • DFL은 Byzantine client나 malicious server에 취약할 수 있으므로 committee mechanism을 추가수행
    • 일부 MEC를 committee member로 선정수행
    • committee가 local gradient를 평가하고 신뢰 가능한 gradient만 aggregation에 참여
  • 실험 결과, 다양한 traffic distribution에서 cost-effective scaling과 낮은 blocking rate를 동시에 달성했고, malicious MEC가 존재하는 상황에서도 non-committee 구조보다 높은 robustness 확인

I. Introduction

  • 5G와 향후 6G 네트워크는 일반 사용자뿐 아니라 다양한 산업 서비스를 동시에 수용하는 intelligent network를 목표
    • 이를 위해 5G Core의 network function은 hardware 중심에서 VM/container 기반 VNF (Virtualized Network Function) 형태로 변화
    • virtualization을 통해 traffic demand에 따른 network function instance 수의 동적 조절 가능
  • 5G Core의 autoscaling
    • peak time에는 instance 증가를 통한 service demand 처리 필요
    • off-peak time에는 instance 감소를 통한 resource cost 절감 필요
    • 결국 QoS와 resource efficiency 사이의 균형이 핵심
  • Kubernetes의 대표적인 scaling 방식
    • VPA : container에 할당되는 resource를 직접 변경
    • HPA : 같은 pod의 replica 개수를 조절
    • 하지만 default HPA는 CPU utilization과 같은 threshold를 사람이 사전에 정해야 하므로 변화하는 workload에 충분히 adaptive하지 못하다
  • 이러한 이유로 DRL (Deep Reinforcement Learning) 기반 autoscaling이 주목
    • 복잡하고 동적인 environment에서 data-driven 방식의 scaling policy 학습 가능
    • near-optimal analytical solution 도출이 어려운 문제에서도 유용
  • 3GPP의 NWDAF (Network Data Analytics Function) 는 network performance, state, user experience 관련 데이터를 수집·분석 가능
    • 따라서 DRL agent의 state를 NWDAF에서 수집하도록 구성하여 3GPP architecture와 자연스러운 결합 가능
  • 기존 중앙집중형 DRL 구조의 한계
    • 여러 MEC의 state-related information을 중앙 서버로 모아야 하므로 privacy concern이 존재
    • MEC가 서로 다른 operator/service provider에 의해 관리되는 multi-tenant 환경에서는 privacy concern이 더욱 심화
    • 반대로 각 MEC가 자신의 local data만 이용하면 서로 다른 지역의 traffic distribution에 대한 generalization 성능 저하 가능성
  • 이를 해결하기 위해 이 논문은 DFL + DRL 구조를 제안
    • 각 MEC가 local agent를 개별 학습
    • raw data는 공유하지 않는다
    • local model parameter 교환을 통한 global model 생성
  • 그러나 DFL 역시 malicious MEC가 잘못된 gradient를 보내는 Byzantine attack에 취약
    • 이를 방어하기 위해 committee mechanism을 도입
    • committee가 training MEC의 gradient를 검증한 뒤 aggregation 대상 선택
  • Contribution
    • NWDAF를 이용한 DRL scaling용 network state 수집 구조 제안
    • DRL과 DFL을 결합한 DFRL 기반 UPF autoscaling framework 제안
    • Byzantine attack 대응을 위한 committee-based defense mechanism 적용
    • 다양한 arrival rate와 malicious MEC 비율에서 framework의 adaptability와 robustness 평가

A. Non-Reinforcement Learning Based Scaling Methods

  • 논문에서는 non-RL 기반 autoscaling을 세 가지 방식으로 구분

Threshold-based Autoscaling

  • CPU, memory, network usage 등에 threshold를 두고 이를 기준으로 scale-out/scale-in을 수행
  • 구현이 단순하고 cloud 환경에서 널리 사용
  • 단점
    • 고정 threshold는 workload가 변하면 최적이 불일치 가능성
    • performance degradation을 피하기 위한 보수적 threshold 설정은 over-provisioning 유발
    • 복잡한 workload 변화에 대한 유연한 대응의 한계

Queueing Theory-based Autoscaling

  • queueing model을 통해 resource demand나 response latency를 추정수행
  • 예상 traffic 기반 resource 조절 가능
  • 단점
    • 실제 traffic과 queueing model 가정 사이의 불일치 가능성
    • 복잡한 system에서 정확한 queueing model 구성의 어려움
    • system 규모 증가에 따른 model maintenance 부담 증가

Time Series Analysis-based Autoscaling

  • historical data를 사용해 미래 workload를 예측하고 proactive scaling을 수행
  • workload 증가 이전의 선제적 resource 확보 가능
  • 단점
    • 충분한 historical data 필요
    • sudden workload 변화에 대한 대응 지연 가능성
    • 지속적인 data collection과 prediction에 따른 computational overhead 발생

B. Reinforcement Learning-Based Scaling Methods

  • RL/DRL 기반 autoscaling은 environment와 상호작용하며 reward를 최대화하는 scaling policy를 학습
  • 기존 연구에서는 VM configuration, cloud resource allocation, serverless autoscaling, microservice autoscaling, 5G network slicing 등에 RL/DRL이 적용

  • 장점
    • static threshold 없이 workload 변화에 적응 가능
    • 복잡한 environment에서 adaptive decision 가능
  • 단점
    • training cost와 convergence 시간이 크다
    • 부적절한 hyperparameter 설정 시 unstable scaling 발생 가능성
    • centralized DRL은 여러 network function의 sensitive data를 중앙에 모아야 수행
  • 이 논문은 이러한 문제를 완화하기 위해 MEC 간 DFL을 사용
    • raw data 공유 없이 agent model 공동 학습
    • Byzantine attack에 대한 robustness 확보를 위해 committee mechanism 결합수행

III. Proposed Scaling Method

  • 여러 MEC가 서로 다른 traffic 상태를 가지는 상황에서 UPF instance의 adaptive scaling이 목표구성
  • NWDAF를 통한 state collection과 RL process 지원수행
  • 여러 MEC의 RL agent는 decentralized FL 기반 collaborative training 수행
  • malicious MEC의 영향은 committee mechanism을 통해 제한

A. Overall Architecture

figure1

  • Figure 1은 제안 architecture 전체 구조를 제시
    • UE는 RAN의 gNB를 통해 5G Core에 접속하고, PDU session을 통해 Data Network에 연결
    • 5G Core의 주요 network function
      • AMF : authentication / access control
      • SMF : PDU session 관리
      • UPF : user-plane data forwarding과 QoS 처리
  • 논문에서는 UPF instance를 UPF pod라고 명칭
    • pod가 너무 적으면 incoming PDU session 처리 실패로 blocking rate 증가
    • pod가 너무 많으면 resource waste 발생
  • scaling의 목적은 traffic demand에 따라 pod 수를 조절해 QoS와 cost를 동시에 관리가 목적

  • 제약
    • pod 수에는 minimum/maximum bound가 존재
    • 하나의 pod가 동시에 처리할 수 있는 session 수에도 제한이 존재
    • 논문에서는 pod booting time을 0으로 가정
  • NWDAF 내부 구성
    • DMF : UE communication data 수집
    • AnLF : state/action/reward 형태로 분석
    • PMF : RL agent의 scaling decision을 실제 policy로 반영
  • FL process
    • 각 MEC가 local RL agent를 학습
    • model parameter 교환을 통한 global model 형성
    • committee mechanism을 통한 aggregation 참여 MEC 평가

B. Decentralized Federated Reinforcement Learning (DFRL) Framework

  • $K$개의 MEC server 집합
\[\mathsf{M}=\{m_1,m_2,\cdots,m_K\}\]
  • MEC $k$의 active pod 수
\[D^{\min}\le d_{k,t}^{on}\le D^{\max}\]
  • 하나의 pod가 동시에 처리할 수 있는 최대 PDU session 수를 $L^{sess}$라고 하면 system capacity는
\[D^{\max}L^{sess}\]
  • 현재 session 수
\[0\le l_{k,t}^{sess}\le D^{\max}L^{sess}\]

1. Initialization

  • 각 MEC의 DRL agent와 environment 초기화수행
  • 일부 MEC를 committee set $\mathsf{S}_0^c$로 선택하고, 나머지는 training set $\mathsf{S}_0^b$로 구성

  • MDP 구성
    • state space : $\mathcal{S}$
    • action space : $\mathcal{A}$
    • reward : $r$
    • transition probability : $p$
    • discount factor : $\gamma$
  • state
\[s_{k,t} = \{d_{k,t}^{on},\,l_{k,t}^{sess},\,\hat{\lambda}_{k,t}\}\]
  • $d_{k,t}^{on}$ : active pod 수
  • $l_{k,t}^{sess}$ : active PDU session 수
  • $\hat{\lambda}_{k,t}$ : measured arrival rate

  • action
\[a_{k,t}\in \{\text{pod start},\text{pod terminate},\text{no action}\}\]
  • stochastic policy
\[a_{k,t}\sim \pi_{k,t}(a_{k,t}\mid s_{k,t})\]
  • reward
\[r_{k,t} = \begin{cases} -\kappa \hat{b}_{k,t}, & \hat{b}_{k,t}>b^{th}\\ -d_{k,t-1}^{on}, & \hat{b}_{k,t}\le b^{th} \end{cases}\]
  • 의미
    • blocking rate가 threshold보다 크면 QoS 위반으로 판단하여 blocking rate에 큰 penalty 부여
    • blocking rate가 threshold 이하이면 active pod 수에 penalty를 부여하여 resource waste 감소
  • 따라서 agent는
    • QoS가 나쁠 때는 blocking rate 감소
    • QoS가 충분하면 pod 수 감소 방향으로 학습
  • 논문에서는 $\kappa=15$ 사용

2. Local RL Agent Training and Update

  • long-term cumulative reward
\[V^\pi(s) = \mathbb{E}_{\pi} \left[ \sum_{i=0}^{\infty}\gamma^i r_{t+i}\mid s_t=s \right]\]
  • DRL algorithm으로 PPO 사용
    • actor : policy $\pi(s,\theta)$
    • critic : value function $V(s,\omega)$
    • GAE 기반 advantage 계산
    • clipping을 통한 과도한 policy update 방지

figure2

  • Figure 2의 network
    • input : $d^{on}$, $l^{sess}$, $\hat{\lambda}$
    • hidden layer : 1개, 50 nodes
    • output : no action / pod start / pod terminate 확률
ParameterValue
neural network hidden layers1
node count in each hidden layer50
learning rate0.0001
epochs5
batch size32
PPO clipping parameter0.1
GAE parameter0.9
activation functionReLU
  • local objective
\[F_k(w_k) = \frac{1}{N_k} \sum_{i=1}^{N_k} f(w_k;\xi_{k,i})\]
  • $w_k=(\theta,\omega)$는 actor와 critic의 parameter tuple구성

3. Local Agent Scoring and Selection

  • training MEC의 local gradient를 committee MEC에 전달
  • committee의 predefined scoring rule 기반 gradient 평가
  • selection 기준을 만족한 gradient만 aggregation에 참여수행
  • 세부 방식은 Section 3.3의 committee mechanism에서 정의수행

4. Aggregation

  • 선택된 MEC 집합을 $\mathsf{S}_t^a$라고 수행
  • FedAvg 기반 global model
\[\min_{\bar{w}} F(\bar{w}) = \frac{1}{N} \sum_{k=1}^{K} N_kF_k(w_k)\]
  • aggregation 이후 global parameter $\bar{w}$를 MEC에 broadcast수행

5. Iteration

  • local training → scoring/selection → aggregation 과정 반복
  • 충분한 학습 또는 maximum communication round $T$ 도달 시 종료
  • 과도한 training에 따른 overfitting 방지를 위해 적절한 $T$ 설정 필요
Algorithm 1 DFRL training loop

1| for m1,2,...,k ∈ M do
2|   initialize local RL agent and environment
3| end for

4| for t = 0 to T do
5|   for m1,2,...,k ∈ M do
6|     download global model parameter w̄_(t-1)
7|     ak,t ← Sample πk,t(sk,t, w̄_(t-1))
8|     execute action ak,t
9|     observe sk,t+1 and performance measures
10|    compute reward rk,t
11|    update local RL agent using PPO
12|  end for

13|  get new aggregation set Sta with Algorithm 2
14|  aggregate models in Sta using FedAvg
15|  t ← t + 1
16| end for

C. Committee-Based Architecture

figure3

  • FL에서는 malicious worker의 gradient 조작으로 global model 성능 저하 가능
  • 제안 committee mechanism은
    • scoring system
    • election strategy
    • selection strategy
    • committee consensus 로 구성

Global model download

  • training MEC set $\mathsf{S}_t^b$의 MEC가 global model $\bar{w}_t$를 다운로드

Local training

\[\hat{g}_{k,t} = \frac{1}{|\mathcal{B}_{k,t}|} \sum_{\xi\in\mathcal{B}_{k,t}} \nabla f(w_{k,t},\xi)\]
  • 각 MEC의 mini-batch 기반 local gradient 계산

Scoring model

  • honest gradient끼리는 방향이 비슷해 Euclidean distance가 상대적으로 작다는 가정
  • committee MEC $c$가 training MEC $k$에 주는 score
\[p_k^c = \frac{1} {\|\hat{g}_{k,t}-\hat{g}_{c,t}\|_2^2}\]
  • distance가 작을수록 score가 크다
  • 최종 score는 여러 committee member의 평가를 종합수행
\[P_k = \frac{1} {\frac{1}{|\mathsf{S}^c|} \sum_{c\in\mathsf{S}_t^c} \|\hat{g}_{k,t}-\hat{g}_{c,t}\|_2^2}\]

Aggregate model

  • score 순으로 gradient를 정렬한 뒤 상위 $\alpha\%$를 aggregation에 사용
  • committee gradient와 유사한 update를 선택하여 malicious gradient 영향 감소

Committee voting

  • committee가 malicious MEC로 채워지는 것을 방지해야 수행
  • 낮은 score MEC는 malicious일 가능성이 높으므로 피수행
  • 다만 최고 score MEC만 반복적으로 committee가 될 경우 특정 learning direction에 고착될 가능성
  • 따라서 score 정렬 후 middle $\beta\%$ position의 MEC를 다음 committee로 선택
Algorithm 2 Committee mechanism

Input: t, wt from all MECs m ∈ M
Output: new aggregation set Sta+1, new committee set Sct+1

1| for c ∈ Sct do
2|   for k ∈ Sbt do
3|     committee c broadcasts score pck
4|   end for
5| end for

6| for c ∈ Sct do
7|   for k ∈ Sbt do
8|     committee c calculates total score Pk
9|   end for
10| end for

11| choose aggregation MECs in top α% of score
12| choose committee MECs in middle β% of score
13| return Sta+1
  • 전체 time complexity
\[O(TK+K^2)\]

IV. Evaluation

  • simulation 기반 평가 항목
    • convergence
    • 다양한 arrival distribution에 대한 generalization
    • malicious MEC에 대한 defense performance 를 평가

A. Environment Setting

  • Python 3.9.7
  • PyTorch 2.1.1
  • Gymnasium 0.29.1
  • $K=50$ MEC

  • training arrival rate
\[\lambda_{k,t}^{train} = A_k+B_k\sin\left(\frac{1}{C_k}\pi t\right)\]
  • parameter
    • $0\le B_k\le A_k\le250$
    • $1\le C_k\le10$
ParameterValue
number of MECs $K$50
minimum pods $D^{min}$2
maximum pods $D^{max}$100
PDU session service rate1/s
blocking rate threshold $b^{th}$0.01
scaling decision interval $\Delta t$1s

B. Convergence Analysis

figure4

  • 초기에는 exploration과 부족한 training data 때문에 평균 reward fluctuation이 크다
  • training 진행에 따라 reward 증가 및 fluctuation 감소
  • 이후 stable reward 수렴을 통해 적절한 scaling action 학습 확인

  • evaluation arrival rate
\[\lambda_t^{eval} = 330.07620 + 171.10476\sin\left(\frac{1}{12}\pi t+3.08\right) + 100.19048\sin\left(\frac{1}{6}\pi t+2.08\right) + 31.77143\sin\left(\frac{1}{4}\pi t+1.14\right)\]

figure5

  • Figure 5에서 시간에 따른 큰 traffic variation 확인수행

figure6

  • Figure 6(a)
    • traffic 증가에 따라 pod 수 증가
    • traffic 감소에 따라 pod 수 감소
  • Figure 6(b)
    • 대부분의 시간에서 blocking rate를 $b^{th}=0.01$ 이하로 유지
    • 즉, QoS 유지와 resource cost 절감을 동시에 고려한 scaling 수행

C. Different Distribution of Arrival Rate

  • 실제 traffic의 비주기성을 고려하여 새로운 distribution에 대한 sensitivity analysis 수행
  • 비교 distribution
    • $\lambda_t^{eval}$
    • Gamma(shape=3)
    • Gamma(shape=5)
    • Uniform($\lambda=250/s$)
  • 비교 방식
    • DRL (1 MEC) : 하나의 MEC data만 이용
    • DRL (K MECs) : 모든 MEC data를 중앙에서 사용
    • DFRL (K MECs) : 제안 방식

figure7

DistributionDRL (1 MEC)DRL (K MECs)DFRL (K MECs)
$\lambda_t^{eval}$-11.58974-1.32819-2.30002
Gamma, shape 3-10.02404-1.12015-2.07609
Gamma, shape 5-9.99494-1.02000-1.90180
Uniform, $\lambda=250/s$-9.65637-0.88085-1.75417
  • DRL (1 MEC)
    • training data가 부족해 모든 distribution에서 reward가 매우 낮다
    • blocking 또는 over-provisioning 발생
  • DRL (K MECs)
    • 모든 MEC data를 이용하므로 가장 높은 reward 기록
    • 그러나 centralized data collection에 따른 privacy 및 bottleneck 문제
  • DFRL
    • centralized DRL보다 reward는 다소 낮지만 local DRL 대비 큰 성능 향상하다
    • raw data 중앙 수집 없이 다양한 MEC의 경험을 model에 반영
  • 따라서 DFRL은 privacy/scalability 측면의 현실적인 대안이면서 centralized learning에 가까운 scaling performance 제공수행

D. Simulation with Malicious MEC Servers

  • malicious MEC는 local parameter에 큰 Gaussian noise를 추가하는 back-gradient attack 수행

  • hyperparameter
    • $\alpha$ : aggregator MEC ratio
    • $\beta$ : committee MEC ratio
    • $\epsilon$ : malicious MEC ratio
  • 실험 1
\[\beta=\{10,20,30,40,50\},\quad \alpha=40,\quad\epsilon=10\]
  • 실험 2
\[\alpha=\{10,20,30,40,50\},\quad \beta=40,\quad\epsilon=10\]
  • 실험 3
\[\epsilon=\{10,20,30,40,50\},\quad \alpha=40,\quad\beta=40\]

figure8

  • committee ratio 증가에 따라 특정 malicious member의 decision 지배 가능성이 낮아지며 global performance 향상가능
  • aggregator ratio의 적절한 증가로 honest MEC의 aggregation 참여 가능성 및 robustness 향상가능

figure9

  • no-committee DFRL은 malicious ratio가 20% 수준에서도 성능을 제대로 보호하지 못수행
  • committee-based DFRL은 malicious ratio 30% 초과 상황에서도 상대적으로 안정적인 성능 유지
  • 그러나 malicious ratio 40% 이상에서는 committee 오염 가능성 증가와 함께 global performance 급격히 저하가능
  • 따라서 committee mechanism은 Byzantine attack 완화에 효과적이지만, malicious participant가 전체의 상당수를 차지하는 경우 완전한 방어에는 한계

V. Conclusions

  • 이 논문은 5G Core MEC 환경의 UPF autoscaling을 위한 DFRL + committee mechanism 제안수행
  • 핵심 구성
    • DRL agent의 traffic 변화 기반 adaptive pod scaling
    • 여러 MEC의 DFL 기반 collaborative model learning
    • raw data 비공유를 통한 privacy 유지
    • committee의 local gradient 검증을 통한 malicious MEC 영향 완화
  • 실험 결과
    • 다양한 traffic condition에서 blocking rate를 낮게 유지하면서 resource usage를 줄상태
    • local DRL보다 새로운 traffic distribution에 대한 generalization 성능이 높았다
    • centralized DRL에 가까운 scaling performance를 보이면서 centralized data collection의 privacy/bottleneck 문제를 줄상태
    • committee mechanism은 Byzantine attack 상황에서 non-committee 구조보다 높은 robustness 확인
  • 한계
    • malicious MEC 비율이 지나치게 높아질 경우 committee 자체의 오염 가능성
    • DRL의 stochastic policy 특성상 undesirable action의 완전 제거에는 한계
  • 향후 DRL의 probabilistic behavior 안정화와 adversarial environment에서의 robustness 강화 방향으로 확장 가능
This post is licensed under CC BY 4.0 by the author.