Abstract
1. Introduction
We equip AD-RLTS with Prioritized Experience Replay (PER) such that the convergence rate of the neural networks would largely be improved by prioritized exploration and training upon the transition states having high TD errors. Through intensive simulations, we claim that AD-RLTS achieves significant improvement over baseline neural models and conventional heuristics under different IoT traffic load, along with analysis on its time complexity of the algorithm.
II. SYSTEM ARCHITECTURE
The proposed AD-RLTS framework is
implemented based on three-tier architecture, making it suitable to cope with
thousands of scale IoT Applications.
1.
Device Layer (IoT Nodes): End-devices in a large scale and heterogeneous
population, including smart vehicles, AR glasses, industrial sensors, can
perform computations, but with scarce computing power and low battery life. The
nodes generate tasks that require temporal computing resources.
2.
Edge Layer (MEC Servers): It is deployed in a location that is close to the
end devices (e.g. Next to 5Gmacro-cell basestation) and is composed of MEC
servers (with heterogenous computation capability). Compared to IoT nodes, the
computational resources are significantly stronger but limited as compared to
cloud. These servers will perform and complete offloaded computational tasks that
are time sensitive, so as to achieve ultra low communication delay.
3. Cloud Layer: The centralized global cloud is able to provide essentially infinite computing capacity, however, it suffers from a huge WAN communication delay and large routing delay. We propose to offload massive computation workloads and any computationally intensive task that tolerate delay at the cloud. The AD-RLTS agent is as a centralizes SDN Controller (logically centralized) in which the agent dynamically gather telemetry information(e.g. Channels states,CPU utilization, queue length) and make scheduling decisions on a millisecond level, and disseminate corresponding routing policies to the edge gateway.
III. MATHEMATICAL FORMULATION AND SYSTEM MODEL
We model
an edge computing environment with a set of N IoT devices denoted as D = {d1,
d2, ..., dN} and a set of M edge servers E = {e1, e2, ..., eM}. A centralized
cloud server is denoted by ecloud. The total set of computation nodes available
for task execution is K = {di} U E U {ecloud}.
Tasks
are generated stochastically by IoT devices following a Poisson process. A task
ti from device di is explicitly characterized by the 4-tuple:
ti =
< Di, Ci, Tmaxi, Pi >
Where Di
represents the input data payload size (in Megabytes), Ci is the computational
workload required to execute the task (measured in CPU cycles), Tmaxi is the
strict time deadline (in seconds) beyond which the task is considered failed,
and Pi is the relative priority weight of the task.
We model
the rate of wireless transmission between device d; and edge node ei for an
uplink transmission by using Shannon-Hartley theorem. Under the OFDMA
assumptions, and taking into account of additive white Gaussian noises, and
path loss fading models characterized of a typical 5G network, the achievable
rate R {i, j} can be formulated as:
R{i, j}
= B{i, j} * log2( 1 + (Ptx * |h{i, j}|2) / (N0 + I) )
In which
B{i, j} is the assigned channel bandwidth for the pair of IoT device i and AP
j, P tx is the transmission power of the IoT device, h{i, j} is the complex
value channel gain considering the path loss and small-scale Rayligth fading of
the channel connecting the IoT device i and the AP j. N0 denotes the value of
AWGN power while I is the inter-cell interference.
The total
latency experienced by task ti, denoted as Ltotal, depends heavily on the
scheduling decision.
1. Local
Execution: If it is executed locally (in the device), there is no transfer
latency. There is only computation latency + local queuing delay: Llocal = (Ci
/ flocal) + Qlocal(t), where flocal is the local CPU frequency.
2. Edge
Execution In an offloading to edge server we have three temporal parts:
transmission delay, edge queuing delay, and edge execution time. Ledge = (Di /
R{i, j}) + Qj(t) + (Ci / fedgej).
3. Cloud
Execution: Offloading to the cloud incurs additional WAN transmission and
propagation delays (Lwan).
Based on
the dynamic power dissipation model of CMOS circuits, the energy consumed for
local computation is Elocal = k * Ci * (flocal)^2, where k is the effective
switched capacitance. When offloading, transmission energy is
Etx =
Ptx * (Di / R{i, j}).
The
system aims to minimize a multi-objective cost function encompassing latency,
energy, and a severe penalty for exceeding the task deadline. The objective
function J is defined as minimizing the sum of costs C_i for all tasks:
C_i =
(wL * Ltotal / Tmax) + (wE * Etotal / Emax) + (wP * Indicator(Ltotal > Tmax))
Here, the weighting factors wL , wE and w P add up to 1 and huge penalties apply to deadline exceedances via indicator function I (e>d) , defining them to failures
IV. PROPOSED AD-RLTS FRAMEWORK
This equation has
been proven to be NP-hard for traditional optimization solvers like
mixed-integer non-linear programming (MINLP) to solve it, especially under
tight latency requirements of edge systems. Herein, we propose to formulate it
into a Markov Decision Process (MDP) and then solve it using deep Reinforcement
Learning.
1.
State Space (S): At time step t, state st of system, characterized by
arriving task's parameters, current channel status, status of load for every
compute node. st=[Di, Ci, Tmax, Rvector, Qvector, Uvector], where U stands for
CPU usage of each edge server. High-level state enables neural network can
learn overall equilibrium.
2.
Action Space (A): The action at corresponds to selecting the target
execution node for the task. at ranges from 0 (local execution) to M (edge
servers) to M+1 (cloud).
3.
Reward Function (R): 3. Learning Our Cost DRL aims to maximize the
total reward. We formulate the reward rt as the negation of our cost function,
augmented with a sparse bonus for reaching the completion goals early, to speed
up learning in the early phase. Strong negative penalties are directly tied to
the wP deadline penalty.
Standard Q-learning updates values using a max operator, which is proven to lead to overestimation bias in stochastic environments. AD-RLTS uses Double Q-learning, deploying two neural networks: an Evaluation Network (weights theta) and a Target Network (weights theta_minus). The action selection is performed by theta, while the value evaluation is performed by theta_minus, mathematically decoupling the processes and preventing upward bias explosions.
Additionally, to
further improve the learning stability, we employ Prioritized Experience
Replay(PER) [11]. Instead of randomly sampling from the replay buffer
uniformly, PER associates a priority p_k with each transition, which is
proportional to its magnitude of the temporal difference error. More frequent
experiences are chosen for sampling if an event causes significant loss of estimation
as measured by larger td error, such as overflowing queues or unexpected drops
in bandwidth. Since our PER sampling is non-uniform, we use weights from
importance sampling (IS) to adjust the bias induced by the PER sampling
strategy and let the network fix its most egregious errors more quickly without
catastrophic forgetting of previously learned behaviors.
Algorithm 1:
AD-RLTS Training Algorithm
1. Initialize
Evaluation Network Q and Target Network Q'
2. Initialize
Prioritized Replay Buffer D
3. FOR episode = 1
to E_max DO
4. Observe initial system state s_1
5. FOR step t = 1 to T_max DO
6. With probability Epsilon select random
action a_t
7. Otherwise select a_t = argmax_a Q(s_t,
a; theta)
8. Execute a_t, observe reward r_t and
next state s_{t+1}
9. Calculate initial TD error delta_t and
priority p_t
10. Store transition (s_t, a_t, r_t,
s_{t+1}, p_t) in D
11. IF size(D) > BatchSize THEN
12. Sample mini-batch according to
probabilities P(k)
13. Compute Importance Sampling (IS)
weights
14. Update theta by minimizing Huber
Loss
15. Update priorities p_k of sampled
transitions
16. END IF
17. Every C steps, synchronize Target
Network: theta' <- theta
18. END FOR
19. END FOR
V. PERFORMANCE METRICS
Water-use performance is measured as total irrigation volume Vw. Water saving relative to baseline b is:
WS(%)=(Vw,b−Vw,p)/Vw,b
×100. (7)
Water-use
efficiency is WUE=Y/Vw. Because this work is simulation-based and has no
measured yield, a normalized yield index is used only for comparative modeling.
Decision quality is evaluated using precision, recall, and F1:
Precision=TP/(TP+FP);
Recall=TP/(TP+FN);
F1=2·Precision·Recall/(Precision+Recall).
(8)
Network performance is evaluated using packet-delivery ratio PDR=Nrx/Ntx×100 and mean end-to-end latency L̄=(1/N)Σ(Lrx−Ltx). Energy consumption is estimated from radio-on time, processing time, and actuator activity.
VI. SIMULATION SETUP AND METHODOLOGY
|
Simulation
Parameter |
Value |
|
IoT Devices /
Edge Nodes |
100 / 6 |
|
IoT CPU / Edge
CPU Freq |
1.2 GHz / 4.5
GHz |
|
Wireless
Bandwidth |
20 MHz |
|
Background Noise
(N_0) |
-100 dBm |
|
Replay Buffer
Size |
50,000 |
|
Learning Rate /
Discount |
1e-4 / 0.99 |
VII. PERFORMANCE EVALUATION AND RESULTS
A.
Convergence Analysis
Fig. 1 showing training curves of standard DQN versus AD-RLTS. With standard DQN we see large variances and unstable behavior due to entering bad policies because of over estimation of Q-values, in initial stages (exploration). AD-RLTS converge in a considerably faster pace-settle down around episode 400, where the policy is reinforced since we were repeatedly learning from vital queue-overflow states thanks to use of PER.
Fig. 1. Training progression
of AD-RLTS compared to standard DQN
B. End-to-End Latency Evaluation
Fig. 2 Latency vs Workload variations
The major objective of MEC is latency reduction. In figure 2, with the lowest arrival rates, all algorithms perform well. With increasing load, static algorithms such as Round-Robin perform poorly by simply dumping tasks into edge queues even though it is overloaded. AD-RLTS provides the average latency reduction of 28.4% compared to Standard DQN. This is because agent learns to route tasks into the cloud or schedule into the edge node by itself whenever it predicts edge node congestion based on state vector U.
C. Energy Consumption Analysis
Fig.3. Total system energy
dissipation
Heuristic-based PSO algorithms try to conserve energy but the overhead to execute thousands of iterations per node in the local search component consumes a large amount of node energy that usually isn’t calculated as the total energy spent. On the other hand AD-RLTS just needs one pass through a very shallow neural network. A single inference takes around 0.91 ms.
Fig. 4. Evaluates reliability
In safety-critical systems, dropping any single deadline means the whole system failed (Fig 4). In this, AD-RLTS proves itself best at the extreme workload (120 tasks/s), as conventional approach broke the deadline by more than 50%, whereas AD-RLTS reduced it to only 18% in peak Congestion, with negligible deviation below 4.1% for Normal Traffic. AD-RLTS also reduces unnecessary computation overload by dropping low-priority tasks or even transferring heavier computation tasks back to cloud as soon as detection to make place available for time-critical ones
Conclusion
In this paper, we tackle the crucial issue of dynamic task scheduling in heterogeneous Multi-Access Edge Computing Environments and propose AD-RLTS, a new framework based on a Double Deep Q-Network with Prioritized Experience Replay. Modeling the scheduling as a constrained MDP, our proposal optimally leverages latency, energy dissipation, and deadline guarantees dynamically without apriori knowledge about network characteristics. Extensive simulations with actual 5G/6G channel models show the superiority of AD-RLTS in terms of lower end-to-end latency (-28.4%), less energy consumed by the system (-21.7%), and the absence of deadline failures under normal working conditions. Significantly, the inference time of the network trained is just under 1ms which implies its feasibility for URLLC applications, the paper can then pave the way for a MARL variant where nodes take decisions collaboratively without supervision to achieve optimal QoS, and can potentially be equipped with models for vehicle mobility
References
[1] Y. Mao, C. You, J. Zhang,
K. Huang, and K. B. Letaief, "A survey on mobile edge computing: The
communication and computing perspective," IEEE Communications Surveys
& Tutorials, vol. 19, no. 4, pp. 2322-2358, 2017.
[2] H. Van Hasselt, A. Guez,
and D. Silver, "Deep reinforcement learning with double Q-learning,"
in Proc. AAAI Conf. on Artificial Intelligence, 2016.
[3] T. Schaul, J. Quan, I.
Antonoglou, and D. Silver, "Prioritized experience replay," ICLR,
2016.
[4] X. Chen, L. Jiao, W. Li,
and X. Fu, "Efficient multi-user computation offloading for mobile-edge
cloud computing," IEEE/ACM Transactions on Networking, 2016.
[5] J. Wang, L. Zhao, J. Liu,
and N. Kato, "Smart resource allocation in mobile edge computing: A deep
reinforcement learning approach," IEEE Transactions on Emerging Topics in
Computing, 2021.
[6] P. Mach and Z. Becvar,
"Mobile edge computing: A survey on architecture and computation
offloading," IEEE Communications Surveys & Tutorials, vol. 19, no. 3,
pp. 1628-1656, 2017.
[7] V. Mnih et al.,
"Human-level control through deep reinforcement learning," Nature,
vol. 518, no. 7540, pp. 529-533, 2015.
[8] K. Zhang, Y. Mao, S. Leng,
Y. Qian, and Y. Zhang, "Energy-efficient offloading for mobile edge
computing in 5G heterogeneous networks," IEEE Access, vol. 4, pp.
5896-5907, 2016.
[9] T. Q. Dinh, J. Tang, Q. D.
La, and T. Q. S. Quek, "Offloading in mobile edge computing: Task
allocation and computational frequency scaling," IEEE Transactions on
Communications, vol. 65, no. 8, pp. 3571-3584, 2017.
[10] X. Wang et al.,
"Convergence of edge computing and deep learning: A comprehensive
survey," IEEE Communications Surveys & Tutorials, vol. 22, no. 2, pp.
869-904, 2020.
[11] Z. Zhao et al., "A
deep reinforcement learning method for computation offloading and resource
allocation in MEC," IEEE Transactions on Wireless Communications, vol. 18,
no. 12, pp. 5904-5918, 2019.
[12] L. Liu, Z. Chang, X. Guo,
S. Mao, and T. Ristaniemi, "Multiobjective optimization for computation
offloading in fog computing," IEEE Internet of Things Journal, vol. 5, no.
1, pp. 283-294, 2018.
[13] Z. Ning, P. Dong, X. Kong,
and F. Xia, "A cooperative partial computation offloading scheme for
mobile edge computing by using deep reinforcement learning," IEEE Internet
of Things Journal, vol. 6, no. 3, pp. 4804-4814, 2019.
[14] S. Wang et al., "Deep
reinforcement learning for dynamic computation offloading in MEC
networks," IEEE Internet of Things Journal, vol. 6, no. 4, pp. 7306-7317,
2019.
[15] Y. He, J. Ren, G. Yu, and
Y. Cai, "Trust-centric computation offloading in MEC via reinforcement
learning," IEEE Transactions on Wireless Communications, vol. 19, no. 11,
pp. 7453-7467, 2020.
[16] C. Qiu, Y. Hu, Y. Chen,
and B. Zeng, "Deep deterministic policy gradient for edge scheduling in
multi-user environments," IEEE Access, vol. 7, pp. 11843-11854, 2019.
[17] M. Tang and V. W. S. Wong,
"Deep reinforcement learning for task offloading in mobile edge computing
systems," IEEE Transactions on Mobile Computing, vol. 20, no. 11, pp.
3151-3164, 2021.
[18] H. Guo, J. Liu, and J.
Zhang, "Energy-aware mobile edge computing via deep reinforcement
learning," IEEE Wireless Communications Letters, vol. 10, no. 6, pp.
1251-1255, 2021.
[19] W. Zhan, C. Luo, J. Wang,
and C. Wang, "Deep learning-based resource allocation in 6G computing
networks," IEEE Network, vol. 28, no. 1, pp. 45-51, 2022.
[20] R. Li, Y. Liu, and S. Gao,
"Multi-agent reinforcement learning for vehicular edge computing: A
tutorial," IEEE Vehicular Technology Magazine, vol. 16, no. 4, pp.
110-119, 2021.
[21]
F. Wang, J. Xu, and S. Cui, "Joint offloading and
resource allocation in multi-tier edge networks via deep reinforcement
learning," IEEE Transactions on Communications, vol. 69, no. 1, pp.
433-448, 2021.