Journal of Intelligent Systems and Internet of Things

Minimizing Time Overhead in VANET Task Offloading: A Novel Preparatory-Based Edge-Cloud Collaborative Model

K. Rajeswari, B. Arun kumar
Volume 17, Issue 1, pp. 75-88 (2025)
DOI: https://doi.org/10.54216/JISIoT.170106
Online: https://www.americaspg.com/journal/18/article/3778

Abstract

In vehicle ad hoc networks (VANETs), vehicles often need to perform complex computing tasks that may exceed their processing capabilities within the required period to provide enhanced services. A common approach to improving service performance is to offload tasks to roadside units (RSUs). However, RSUs might not always have sufficient resources to manage all task assignments effectively. Given the increasing processing power of modern vehicles, task delegation to other vehicles presents a viable alternative to relying solely on RSUs. To achieve this, we first introduce a probabilistic approach that relaxes discrete actions, such as cloud server selection, into a continuous space. We then implement a Supportive Multi-Agent Deep Reinforcement Learning (SMADRL) technique that minimizes total system costs, including Vehicle device energy consumption and cloud server rental charges, by utilizing a centralized training and distributed execution approach. In this framework, each Vehicle device operates as an independent agent, learning efficient decentralized policies that reduce computing pressure on the devices. Experimental results show that the proposed SMADRL framework effectively learns dynamic offloading policies for each Vehicle device and notably outperforms four state-of-the-art DRL-based agents and two heuristic frameworks, resulting in reduce overall system costs.

Keywords: Task Offloading; Collaborative Model; Multi-agent Deep Reinforcement Learning (MADRL)

1. Introduction

The rapid advancement of vehicular networks, mostly Vehicular Ad hoc Networks (VANETs), has fundamentally transformed how vehicles interact and communicate within smart transportation systems. VANETs facilitate the exchange of information among vehicles and between vehicles and infrastructure components, enabling enhanced safety, improved navigation, and a superior driving experience. These networks support a variety of sophisticated applications, including collision avoidance systems, real-time traffic monitoring, and autonomous driving capabilities [1-3]. However, the efficient operation of these advanced applications demands significant computational resources and low-latency processing to deliver timely insights and services. To meet these demands, task offloading to edge-cloud environments has emerged as a highly effective solution. In this paradigm, edge computing involves placing computational resources closer to the vehicles at the network edge, while cloud computing provides centralized processing power and storage capabilities [4-5]. The combination of edge and cloud computing in a collaborative model aims to optimize task execution by leveraging the respective strengths of each paradigm, thus addressing the performance and latency requirements of modern vehicular applications. Despite the promising advantages of integrating edge and cloud computing, task offloading in VANETs with an edge-cloud environment presents several significant challenges.

One of the most critical issues is the inherent trade-off between latency and resource cost. Edge servers, which are positioned closer to vehicles, offer substantial reductions in communication latency compared to cloud servers that are located further away [6-7].

This proximity is crucial for applications that require real-time data processing, such as collision avoidance systems where even minimal delays can have severe consequences. However, edge servers are generally constrained in terms of computational power and are more costly to operate on a per-unit basis than cloud servers are. Conversely, cloud servers provide greater computational capabilities and are more cost-effective in terms of operational expenses. Yet, the increased distance between cloud servers and vehicles introduces higher latency, which can compromise the performance of time-sensitive applications. This trade-off necessitates the development of an efficient offloading strategy that balances latency reduction with cost management [8-10] [41]. An optimal strategy must align with both performance requirements and budget constraints to ensure that the benefits of edge-cloud computing are fully realized. Another critical challenge in edge-cloud collaborative task offloading is ensuring task reliability in the face of the dynamic and distributed nature of VANETs. The edge-cloud network environment is susceptible to unpredictable failures and connectivity issues that can disrupt task processing and result in data loss. To enhance reliability, redundancy techniques are often employed, such as deploying multiple backup instances for each task. These techniques aim to prevent interruptions and ensure that tasks continue to be processed even in the event of a failure [11-12].

However, implementing redundancy increases the demand for computational resources and can lead to higher operational costs. Therefore, developing a robust task-offloading model that guarantees high reliability while managing resource constraints is essential for maintaining service continuity and meeting the reliability requirements of vehicular applications [13-15]. This requires a careful balance between ensuring redundancy and controlling costs to avoid excessive resource utilization. The heterogeneous nature of edge-cloud environments further complicates the task offloading process. In VANETs, tasks have varying resource requirements, and the edge and cloud servers differ in their computational capabilities and resource capacities [16-17]. This variability means that offloading tasks to different computing architectures can lead to significant differences in response times and resource costs. The decision-making process becomes increasingly complex, as it must account for the diverse requirements of each task and the capabilities of the available resources. Finding an optimal solution that balances time delay, resource cost, and reliability amidst this complexity is a formidable challenge. The presence of heterogeneous computing environments necessitates the development of advanced methods, which can efficiently handle the diverse and dynamic nature of edge-cloud collaborative systems [18-20]. To address these challenges, researchers are actively developing and refining edge-cloud collaborative task offloading models. These models aim to harness the combined strengths of edge and cloud computing to optimize task execution in VANETs.

The primary focus of these models is on creating algorithms that can dynamically allocate tasks to either edge or cloud resources based on real-time conditions, such as network load, resource availability, and specific task requirements. Various advanced techniques, including heuristic methods, meta-heuristic approaches, and ML technique, are being explored to enhance the efficiency of task offloading decisions. Heuristic methods offer quick solutions but May only achieve local optima, while meta-heuristic and machine-learning methods can provide high-quality solutions but may be time-consuming and challenging to adapt to real-time requirements. Additionally, ML techniques may need retraining with new data samples, which can affect their performance and increase the complexity of their implementation. Despite the progress in research, many existing approaches to task offloading in edge-cloud environments tend to oversimplify the problem by focusing on only one or two optimization objectives, such as latency or cost, while neglecting other critical factors such as reliability and resource constraints. This gap highlights the need for comprehensive and adaptive offloading strategies that can address the full spectrum of challenges associated with edge-cloud environments. Ongoing research is crucial for developing robust offloading algorithms that can effectively handle the complexities of edge-cloud systems and meet the evolving demands of modern vehicular applications. By advancing the field of edge-cloud collaborative task offloading, researchers aim to improve the performance and reliability of VANETs, ultimately enhancing the efficiency and safety of smart transportation systems. Here are four key contributions from the proposed in the context of VANETs:

 We develop a framework for compute offloading across multiple vehicle interacting with various cloud servers, considering the varying computation capacity, channel gains, and task arrival times of these servers. The dynamic offloading of computation challenge is intended to reduce overall energy usage and rental costs of the system by optimizing the collaboration between cloud servers and local computation, including offloading ratios and selection capabilities.  By introducing a probabilistic method, we transform the discrete decision-making process, such as selection of cloud servers, through a constant set, resulting in a continuous-discrete hybrid decision approach. To stabilize training and reduce computational load on devices, we then develop a distinct CMADRL model in which every Vehicle device functions as an agent. This means that we train a locally observable policy function for every vehicle using global state information gathered at an edge server.

The manuscript is arranged as follows: The second section presents an in-depth assessment of pertinent literature, highlighting the field's significant issues. The third section provides a full study of the proposed SMADRL model, including mathematical, visual explanations and theoretical. The fourth section discusses the experimental results in depth, including the entire experimental established mathematical validations, and illustrations. Finally, the final section summarizes the research and emphasizes its significance.

This paper explores the utilization of parked vehicles as edge computing nodes to facilitate task offloading in urban Vehicular Ad Hoc Networks (VANETs) [21]. By leveraging the idle computational resources of parked vehicles, the proposed scheme aims to reduce latency and enhance the overall network efficiency. The study demonstrates significant improvements in task processing times and resource utilization compared to traditional offloading methods. Author in [22] presents a comprehensive framework that simultaneously addresses task offloading, resource allocation, and security in UAV-assisted VANETs integrated with Mobile Edge Computing (MEC). By optimizing these three aspects jointly, the proposed model ensures efficient task execution while maintaining robust security protocols against potential threats. Experimental results indicate enhanced performance and security resilience compared to existing solutions. Author in [23] introduces a privacy-preserving task offloading mechanism using multiagent deep reinforcement learning within VANET environments. The approach ensures that sensitive data remains protected during the offloading process while optimizing computational resource distribution among vehicles. Simulation results highlight the effectiveness of the proposed method in maintaining privacy without compromising performance. Author in [24] investigates intelligent task offloading strategies in fog computing-enabled vehicular networks, aiming to optimize latency and resource allocation. By utilizing machine-learning algorithms, the proposed system dynamically decides the most efficient offloading targets based on current network conditions and vehicle mobility patterns. The results demonstrate improved response times and resource management compared to traditional fog computing approaches. Author in [25] proposes a distributed task-offloading scheme tailored for Vehicular Edge Computing (VEC) networks, focusing on minimizing latency and balancing computational loads across edge nodes. The scheme leverages cooperative algorithms to enable vehicles to make autonomous offloading decisions based on real-time network metrics. Performance evaluations show that the distributed approach outperforms centralized models in scalability and responsiveness.

The OPTOS framework introduces an online pre-filtering mechanism for task offloading in VANETs, aiming to enhance the efficiency and reliability of offloading decisions [26]. By pre-filtering tasks based on predefined criteria such as urgency and resource requirements, OPTOS reduces unnecessary offloading attempts and optimizes network resource usage. Experimental analysis confirms that OPTOS significantly improves task success rates and network throughput. Author in [27] presents an adaptive computation offloading strategy that incorporates task scheduling to minimize the need for task reallocation in VANETs. The approach dynamically adjusts offloading decisions based on real-time network conditions and vehicle mobility, ensuring optimal resource utilization and reduced task migration. Simulation results indicate that the proposed method effectively lowers task reallocation rates and enhances overall network performance. The MCLA framework addresses task offloading in heterogeneous Vehicular Edge Computing Networks (VECNs) utilizing 5G New Radio Vehicle-to-Everything (5G-NR-V2X) technology [28]. By integrating multiple computational and communication resources, MCLA optimizes task distribution across diverse network components to achieve high efficiency and low latency. Performance evaluations demonstrate that MCLA significantly outperforms existing frameworks in terms of task processing speed and resource allocation fairness. Author in [29] explores an opportunistic task assignment mechanism leveraging vehicle mobility for Internet of Things (Vehicle) task offloading. The proposed method dynamically assigns tasks to vehicles based on their current availability and proximity to edge computing resources, enhancing the scalability and flexibility of Vehicle systems. Results show that the opportunistic approach improves task completion rates and reduces overall latency compared to static assignment methods. Author in [30] introduces a joint optimization framework for task offloading and resource allocation in Vehicular Edge Computing (VEC) that incorporates differential privacy to protect sensitive data. By balancing computational efficiency with privacy guarantees, the proposed model ensures secure and efficient task processing in VANETs. Experimental outcomes reveal that the framework effectively maintains data privacy while achieving competitive performance metrics in task offloading and resource utilization.

3. Methodology

This section explores a multi-cloud computing system comprising VecN vehicles, CloM cloud servers, a base station (BS) with number of road side unit (RSU) RSUP, in the edge layer. Each VecN connects wirelessly to the RSUP, while the cloud servers are linked to the RSUP via a wired connection. In edge layer, located near the BS, assists with centralized training and is discussed in the Multi-agent DRL framework section. Figure 1 shows that the CloM provide offloading computing services for the VecN. In this work, we have performed two approaches of task offloading including as V2V and V2I (i.e vehicle to RSU) offloading. We assume that each vehicle n ∈Ν is handling a computationally intensive task that needs to be completed at each time slot t ∈T, where T = {1, … , T}. The task data is assumed to be granular and can be split into subsets of any size. Specifically, a part of the task will be processed locally on the vehicle n, while the remaining portion will be sent to one of the RSU for processing. Let an t represent the offloading ratio, defined as the fraction of the task's data (in bits) transferred to the cloud server, where an

t ∈[0,1]. Let fn min and

max denote the current and maximum local computational capabilities, respectively, which can be viewed as the CPU cycles required to process the task data. We assume the use of dynamic voltage and frequency scaling (DVFS) to adjust the chip voltage and manage the local computing capacity, fn

min ∈[0, Fn t and RSU pn

max]., adaptively. At each time slot t, vehicle n must select which vehicle nn t portions of the task data to the chosen cloud server mt for remote processing. The remaining 1 −∂n t to offload the task to and send ∂n t portion of the task data is processed locally by the Vehicle device n. Thus, three factors need to be considered for task offloading: the local computational capacity fn t . Energy consumption and rental charges are included in the total system cost, as they are critical for evaluating the performance of task offloading in VANET. This encompasses the management of task queues, local computing, offloading processing, and problem formulation.

t , and the selection of the cloud server mn t, the offloading ratio ∂n

Figure 1. Overall Environment
Figure 1. Overall Environment

3.1 Task Queue Modelling

To demonstrate the dynamic nature of the multi-cloud system, we use a task queue. Since Vehicle devices may not always have sufficient computational resources to complete tasks, the outcome of task execution in one-time slot affects the workload for the next slot. Specifically, for Vehicle device n at time slot t, the task information is represented as:

t+1 = {Ldn t , dn t , D̅n t , cn t } (1) Taskn
Here, Ldn

t is the maximum allowable delay, and cn t is the size of the task's data in the queue (in bits), dn t is the data size currently being processed (in bits), D̅n t+1 is updated to reflect the remaining work for the current time slot and any new tasks arriving for the subsequent time slot is mathematically formulated as, t is the required computing resources needed to complete the task. Additionally, Ldn

+ + dn t −dn t 1drpnt =False] t+1 (2) Ldn Where [z]+ = max⁡(z, 0) and dn
t+1 = [Ldn

t is the bool variable in which drpn t+1 denotes as the new arrived task computed in upcoming slot t + 1. drpn t = False denotes the task of vehicle n in time slot t is managed effectively.

3.2 Local Computing

t ), the delay of processing 𝔇n

For partial task data (1 −∂n loc(t) sustained on vehicle n, are defined as, loc(t) and energy consumption 𝔈n

(1−∂nt )∙dnt ∙cnt loc(t) = fnt (3) 𝔇n t)2 ∙(1 −∂n t )2 ∙dn t ∙cn loc(t) = ¥ ∙(fn t (4) 𝔈n

Here, ¥ represented as precise constant of switching capacitance.

3.3 Computational Offloading

Computation offloading is a three-step process that allows multi-cloud servers to utilize their extensive computational resources. Initially, the vehicle transfers certain parts of the task data to a suitable cloud server m for processing remotely. The cloud server then handles the task data that was offloaded. The cloud server then relays the task's outcome back to the vehicle device. This method includes both transmission delay and energy expenditure among the vehicle and the desired cloud server. For clarity, this work considers that the size of the assignment's execution results received by the cloud server is modest, rendering the transmission latency and energy usage for feedback insignificant when compared to the processing locally. In addition, we overlook the transmission delayed within the cloud server and the base station (BS), considering that the cloud server is attached to the BS by copper lines or optical fiber. For handling numerous access, we utilize Orthogonal Frequency Division Multiple Access (OFDMA), that tries to reduce wireless channel interference between vehicle devices. This ensures that each Vehicle device receives an equitable share of identical sub-bands from the system's bandwidth B. The uplink communication rate from vehicle n to cloud server m, Shn,m tra (t), is calculated using the Shannon formula.

tra (t) = B. log2(1 + (𝒲n,m t ∙gn,m t )/ω2) (5) Shn,m
t , gn,m Here, 𝒲n,m

t and ω2 are denoted as the transmission power, channel gain and power of noise in time slot t,⁡ respectively. Energy consumption and transmission delay sustained for offloading the input data in partial ∂n

t ∙dn

t from vehicle n to RSU p and cloud server m, Dn,m

tra (t) and 𝔈n,m tra (t) are defined as,
∂nt ∙dnt tra (t) = Shn,m tra (t) (6) Dn,m tra (t) = 𝒲n,m t ∙Dn,m tra (t) (7) 𝔈n,m t , 𝔈n t (t) = 𝔈n tra (t) (8) loc(t) + 𝔈n,m 𝔈n

t (t) are calculated as,

As per equation (3) and (6), overall energy consumption of vehicle n for processing the task data dn

The time required to process a computing task is influenced by the amount of task data and the computational capacity of the cloud server. Since a single RSU and cloud server may handle requests from multiple vehicle, its processing capacity can be a limiting factor and may vary over time. For our purposes, we assume that the computational capacity of the RSU and cloud server fluctuates randomly across different time slots but remains constant within each slot. Assume focc

t = PPr(γ) ∙fs t , here Fser t =, Fser max−, focc t , here F1ser t =, F1ser max−, focc

unitis as the computation resource that is occupied for individual unit. The computation server capacity m, fm t , can be described as , fm t, can be described as , fp max is the cloud server maximum capacity of computation of cloud server m ∈M. Moreover, the computation RSU capacity p, fp max is the RSU maximum computation capacity RSU p ∈P.

∑ (1mnt =m∙∂nt ∙dnt ∙cnt ) N n=1 t (t) = fm t (9) Den,m
∑ (1pnt =p∙∂nt ∙dnt ∙cnt ) N n=1 t (t) = fpt (10) Den,p

p(t) incurs a server fee for the vehicle from the RSU and cloud service provider. In other words, the cloud provider for utilizing the both RSU’s charges the vehicle and server's computing resources to perform the task. Assume c(fm

In cloud computing and RSU, the execution delay Den

m(t) and Den
t ) = e(−λ) ∙(fm t) = e(−λ) ∙(fp t −1) and c(fp m(t) and Cn t and fp

t −1). ϖ is the price per time unit in computing capability fm t, where λ and ϖ are the two parameters of coefficients. Henceforth, the service charge Cn p(t) necessary for process vehicle n’s partial task in RSU and cloud server which is formulated by,

t ) ∙Den m(t) = c(fm m(t) (11) Cn Cn
p(t) = c(fp p(t) (12) t) ∙Den Cn

3.4 Problem Formulation

The objective of the dynamic computing offloading problem, as described in Eq. (10) as follows, is to minimize the long-term system cost, which includes both energy consumption 𝔈n t (t) and rental charges Cn

p(t). m(t) and Cn
t (t) + β2 ∙Cn 1 m(t)) N n=1 ) T t=1 ) T ∑ (∑ (β1 ∙𝔈n min mnt ,∂nt ,fnt ( lim T→∞
(13) t (t) + β2 ∙Cn 1 p(t)) N n=1 ) T t=1 ) (14) T ∑ (∑ (β1 ∙𝔈n min pnt ,∂nt ,fnt ( lim T→∞ s.t.
tra (t) + Dn t , ∆n ∈N, ∆t ∈T (15) loc(t), Dn,m m(t)) ≤D̅n C1 ∶⁡⁡max (Dn
t , ∆n ∈N, ∆t ∈T                   (16) p(t)) ≤D̅n loc(t), Dn,p tra(t) + Dn C2 ∶⁡⁡max (Dn t ∈M, ∆m ∈M, ∆n ∈N, ∆t ∈T (17) C4 ∶⁡pn C3 ∶⁡mn t ∈P, ∆p ∈P, ∆n ∈N, ∆t ∈T (18) C5 ∶⁡⁡0 ≤∂n t ≤1, ∆n ∈N, ∆t ∈T (19) C6 ∶⁡⁡0 ≤fn t ≤Fn max, ∆n ∈N, ∆t ∈T (20)

Here, β1 and β2 are the parameters of tradeoff weight. Constraint (C1, C2) states that the actual completion time of any given task must not exceed its maximum allowable delay. Constraint (C3, C4) specifies that each vehicle can be assigned to only one cloud server for processing its tasks. The offloading ratio, defined by Constraint (C5), is a variable that ranges from 0 to 1 for each task. Constraint (C6) ensures that the local computing capacity of any Vehicle device cannot exceed its maximum computational capability. To be more specific, mn

t , pn t , ∂n t and fn t and fn

t are denoted as the hybrid decision variables continue-discrete connected with Vehicle devices n, where ∂n t is the variable of continue and mn

t and pn

t is discrete variable.

3.5 TOP-VANET Framework

This section first relaxes the continuous-discrete decision variable to a continuous decision variable. It then introduces an optimal task offloading Markov Decision Process (MDP) with multiple agents. Finally, a detailed explanation of the Supportive Twin Delayed DDPG (SMATD3) process is provided. To address these challenges in Eq. (10), we employ a probabilistic approach to convert the discrete choice variable mn

t ) ∈[ m−1 m M] and M ,
t and pn

t into a continuous variable. Specifically, we define Pro(mn

t ) ∈[ p−1 p Pro(pn P ,

P] as the probability that the task is offloaded to RSU (p) cloud server (m). In other words, if vehicle (n) opts to offload its task to RSU (p) cloud server (m) at time slot t, it is considered to have chosen a continuous decision variable Pro(mn t ). For example, with M = 5 cloud servers, if Pro(mn

t ) ∈[ 1 5 , 2

5], server m = 2 can be selected for task offloading. Consequently, the problem of minimizing the overall system cost can be reformulated as follows:

t (t) + β2 ∙Cn 1 m(t)) N n=1 ) T t=1 ) (21) T ∑ (∑ (β1 ∙𝔈n min Pro(mnt ),∂nt ,fnt ( lim T→∞ t (t) + β2 ∙Cn 1 p(t)) N n=1 ) T t=1 ) (22) T ∑ (∑ (β1 ∙𝔈n min Pro(pnt ),∂nt ,fnt ( lim T→∞ s. t.
tra (t) + Dn t , ∆n ∈N, ∆t ∈T (23) loc(t), Dn,m m(t)) ≤D̅n C1 ∶⁡⁡max (Dn
t , ∆n ∈N, ∆t ∈T (24) p(t)) ≤D̅n loc(t), Dn,p tra(t) + Dn C2 ∶⁡⁡max (Dn t ) ≤1, ∆m ∈M, ∆n ∈N, ∆t ∈T (25) C4 ∶⁡⁡0 ≤Pro(pn C3 ∶⁡⁡0 ≤Pro(mn t ) ≤1, ∆p ∈P, ∆n ∈N, ∆t ∈T (26) C5 ∶⁡⁡0 ≤∂n t ≤Fn max, ∆n ∈N, ∆t ∈T (27)
t ≤Fn max, ∆n ∈N, ∆t ∈T (28) C6 ∶⁡⁡0 ≤fn

To address the dynamic offloading problem, a Deep Reinforcement Learning (DRL) agent will be introduced. In centralized DRL, the base station RSU collects environment states from all Vehicle devices, increasing communication overhead; thus, the paper explores multiagent approaches to improve offloading solutions. Given the non-stationarity of the network environment and the instability of traditional multiagent DRL, a cooperative framework is proposed that uses centralized training and distributed execution with locally executable actor networks and observable critic networks to ensure convergence.

3.6 MDP Formulation

We design the task offloading optimal problem as multi-agent Markov decision process (MDP). The MDP of multi-agent can be represented as 4 tuples (ℵ, δn, An, rn). Here ℵ is defined as agent space, δn, An and rn are the state space, action space and reward function of agent n, respectively.

Agent space ℵ∶⁡ℵ= {1, … , ℵ} where ℵ described as the number of vehicles, each vehicle act as an agent. For agent n, n = 1,2, … , ℵ by calculating the RSU and cloud server selection Pro(mn

t ) and Pro(pn

t ), offloading ratio ∂n t, the agent can acquire the overall system cost in minimal.

t and capacity of local computation fn

State space ⁡δn : For vehicle n, the state sn t is denoted as composed of computation task, the channel gain among vehicle n and BS of time slot t and the computation capacity of overall RSU and cloud server in multi-tier network.

t = {Taskn t ;⁡gn t ;⁡f1 t } (29) t, … , fm sn t ) and Pro(mn t and fn

Action space An: Since individual vehicle is obtained to calculate the probability of its chosen RSU and cloud server Pro(pn t ). Furthermore, ∂n toffloading ratio and capacity of local computation, the action space is defined as,

Figure 2. Supportive Multi-agent Deep Reinforcement Learning based Task Offloading
Figure 2. Supportive Multi-agent Deep Reinforcement Learning based Task Offloading
t = {Pro(pn t ), ∂n t , fn t} (30) an

Reward function rn : To acquire the near-optimal policy for the optimization problem of task offloading in Eq. (11), the number of agents might collaborate to reduce the total system cost. Stated differently, the purpose of reward function rn t is to train the agent operating at vehicle n to make decisions that meet the limitations. If none of the constraints specified in Equations is violated by the decision variables related to the action, the activity is considered successful. (11a) through (11f), the reward is then calculated as the reciprocal of the weight sum (β1 ∙𝔈n

t + β2 ∙𝔈n

m(t)) multiplied by a constant C1. If not, the reward is defined as a negative number (represented by −C3), which stands for a punishment. At every time slot t, the instantaneous benefit received is expressed as

t is⁡successful C1 β1∙𝔈nt +β2∙𝔈nm(t) an rn(t) = { −C2⁡⁡⁡⁡⁡⁡⁡⁡⁡⁡⁡⁡⁡⁡Otherwise

(31)

Here, the constants C1 and C2 are both positive. It is noted that a successful action, which results in a reduced overall system cost due to multi-cloud offloading decisions, provides a higher immediate reward. This approach aims to maximize the estimation of discounted cumulative benefits.

3.7 Multi-agent DRL Framework

To facilitate centralized decision-making using DRL, all vehicles, RSU and cloud servers must relay their environmental status to the BS. However, with the addition of more Vehicle devices or cloud servers, communication overhead is likely to increase, and the state-action space may grow exponentially, reducing convergence efficiency. Our objective is to explore effective computation offloading techniques within a multiagent DRL framework to overcome these challenges. Traditional multi-agent DRLs often face issues with overestimation and high variance due to the high-dimensional continuous action space. To address these challenges in dynamic multi-cloud scenarios, the TD3 algorithm is employed to evaluate the efficiency of selected cloud servers Pro(mn

t ) and RSUs Pro(pn

t , and local computing capabilities fn t ), offloading ratios ∂n t. The multi-cloud offloading system utilizes local observations from each vehicle to estimate the vehicle's local computation capacity fn t , and server selection Pro(mn t, task offloading ratio ∂n t ). To learn distributed compute offloading rules, the twin delayed DDPG (TD3) agent jointly optimizes these three variables for each vehicle. This approach is referred to as the SMATD3 framework, as illustrated in Figure 2. In this framework, each agent's actor network, trained on a edge server near the base station, makes offloading decisions based on local observations of the network state, following a centralized training and distributed execution strategy. The actor network for each agent is periodically updated with the training parameters, while the edge server deploys a two-critic network that operates with global observations, encompassing all agent states and actions. As a result, the learning environment appears stationary from each agent's perspective, despite any policy changes. The training phases of the SMATD3 agent are illustrated as follows. During each time slot t, the global observable two-critic network on the proxy server trains the actor network for each agent n, guiding the computation offloading strategy. To improve training efficiency and stabilize the process, the local experience transitions (sn

t ) and Pro(pn
t , an t , rn t , sn

t+1) for each agent n are stored in the proxy server's experience replay buffer. These local experiences are combined into a global experience replay buffer 𝔹, which consolidates the transitions from all agents are represented as (st, at, rt, st+1) = (s1

t , r1 t , an t , rn t , sn t , an t , rn t , sn t, a1 t, s1 t+1, … , sn t+1, … , sn

t+1). After that, for individual agent ⁡n = 1,2, … , ℵ, the actor function is approached through DNN with parameter θψn as πn ψ(sn), that considers the state sn, as input. Additionally, the Q-function of twoθi (s, a|θQni ⁡) , i = 1,2,, which considers state s = (s1, … , sℵ) and action set a = (a1, … , aℵ) as input. While the process of training, individual agent arbitrarily instances a mini-batch critic network is also approached through two DNN with parameter θQni as Qn

ℐ from the replay buffer of global experience 𝔹. The policy gradient of the estimation actor network can be formulated

′}j=1 {sj, aj, rj, sj as,
θi(s, a|θQn1)|an=πn ψ(sj) ∙ΓanQn ΓθψnJ(θψn) ≈ε [Γθψnπn ψ(sn)] (32) ′ = πn
ψ′(sj ′ = πn

Additionally, the target action aj

′) + ℕ, where ℕ∼clip(𝔜(0, ϱ̆2)) represents clipped noise introduced to the target actor network, with a mean of 0 and standard deviationϱ̆2. This clipping helps prevent overfitting to narrow peaks in Qvalues and facilitates smoother state-action estimation for TD3. The goal values zj are defined using the target policy smoothing scheme as described above.

′ is defined as aj

′|θQni ) , i = 1,2 (33) ′ ′ + aj θi zj = rj + Υ min i=1,2 Qn (sj

1(sj, aj) and Qn 2(sj, aj), are simultaneously acquired from the network of twoθ1(sj, aj), are modernized through reducing the loss function Los (θQni ) is determined as,

2 , i = 1,2 (34) Los (θQni )⁡≈ε [zj −Qn θi(sj, aj)]

According to equ (15) and (17), assume Λ as the learning rate, the weight of estimation actor network and two estimation critic networks are modernized as,

θψn ←θψn −ΛΓθψnJ(θψn) (35) θQni ←θQni −ΛΓ θQni J (θQni ) , i = 1,2 (36)

Ultimately, each agent updates the weights of the evaluation actor network less frequently to reduce temporal difference (TD) error. Specifically, every 𝔖 periods, individual vehicle performs an update to the evaluation actor network.

4. Result and Analysis

This section begins with a description of the datasets, parameter settings, and experimental environment. We then compare the delay performance of the proposed algorithm with that of standard algorithms. Finally, we evaluate the effectiveness of PTOS's candidate selection process in managing vehicle movement. We used MATLAB to simulate our experimental setup, which featured a 10-kilometer, three-lane highway populated with several moving vehicles. The vehicle trajectories were based on the Madrid trace [28], which consists of artificial data derived from three Madrid freeways (A6, M40, and M30). The cars' onboard computers operated at speeds ranging from 4 × 106 to 2 × 107 cycles per second. The computational complexity for tasks was set at 30 for image processing, 15 for video processing, 40 for interactive games, and 20 for augmented reality, with each task potentially generating 50 to 100 subtasks. Table 3 summarizes the key simulation parameters. To emulate natural vehicle movement, we selected the track records of 20 cars on the A6 highway over 30 minutes. At the beginning of the simulation, any vehicle could communicate with others within a 150-meter range. Figure 4 illustrates the initial connectivity among the twenty vehicles. We analyze the impact of various factors, such as learning rate and batch size, on the performance of the proposed SMATD3 agent to validate training efficiency, as illustrated in Figs. 3(a) and (b). The SMATD3 agent typically undergoes offline training with a setup of three cloud servers (M) and three.

Figure 3. Normalized average rewards of the SMATD3 agent with and (a) varying batch sizes and (b) diverse learning rates.
Figure 3. Normalized average rewards of the SMATD3 agent with and (a) varying batch sizes and (b) diverse learning rates.

Next, as defined above, the two Q-functions, with Qn critic. The weight parameters θQni of Qn

250 500 750

Episodes

Normalized Average Reward

1000 1250 1500 1750 2000 0

250 500 750

Episodes

Normalized Average Reward

1000 1250 1500 1750 2000 0

Batch Size = 64

Batch Size = 32

Batch Size = 128

Figure 4. Normalized average system costs for scenarios with M = 2 and M = 3 cloud servers, appraised transversely dissimilar
Figure 4. Normalized average system costs for scenarios with M = 2 and M = 3 cloud servers, appraised transversely dissimilar

No. of IoT Devices N vehicle counts.

vehicles (N). Figure 3(a) shows the normalized average reward of SMATD3 across two critic networks with different learning rates. At a low learning rate of 0.0001, the SMATD3 agent struggles to achieve high reward values due to the slow update of the DNN’s parameters. On the other hand, a high learning rate of 0.01 leads to rapid fluctuations in the CNN's weight parameters. Therefore, a learning rate of 0.001 is preferred, balancing stability and performance. Figure 3(b) illustrates the normalized average rewards of SMATD3 across different batch sizes. As seen in the figure, batch sizes of 32 and 128 result in diminished training performance and oscillating cumulative reward curves at lower values. A small batch size fails to adequately cover the transitions stored in the replay buffer, while a large batch size frequently samples previously unsuccessful transitions, affecting training efficiency. Consequently, we have chosen to set the batch size to 64. To evaluate the scalability of our proposed SMATD3 agent, we analyse its performance with different numbers of cloud servers and vehicle devices, as depicted in Figure 4. The results show that as the number of Vehicle devices increases, the demand for computation offloading also rises, leading to a higher overall system cost. Conversely, as the number of cloud servers (M) increases, more servers are available to participate in computation offloading, which helps to distribute the load. This results in a lower overall system cost when more cloud servers are utilized for a given number of Vehicle devices and tasks. However, when dealing with a small number of Vehicle devices and tasks, additional cloud servers may not be necessary for efficient computation offloading.

Figure 5. Rental charges and energy consumption as a function of the weight parameter ω2
Figure 5. Rental charges and energy consumption as a function of the weight parameter ω2

0.0035 Average Renting Charge

Average energy consumption (J)

0.2 0.4 0.6 0.8 1.0

Weight (W2)

0.0030

Average Renting Charge ($)

0.0025

0.0020

0.0015

0.0010

0.0005

1.2 1.4 1.6 1.8

Normalized Average system cost For example, when there are three Vehicle devices (N = 3), the performance with two cloud servers (M = 2) is almost identical to that with three cloud servers (M = 3). Moreover, even with eight Vehicle devices and three cloud servers, the SMATD3 agent effectively handles the multi-cloud computation offloading problem. This demonstrates the high scalability of the proposed SMATD3 agent in terms of cloud servers, state spaces, and action spaces. Figure 5 illustrates the relationship between energy consumption and rental charges as influenced by the weight parameter ω2, with ω1 fixed at 1. Specifically, ω1 and ω2 represent the relative importance of energy usage and rental costs, respectively. As shown in Figure 5, the rental fee increases as ω2 rises from 0.2 to 1.8. This occurs because fewer tasks are offloaded to the cloud server, leading to reduced rental charges but higher energy consumption. However, the decline in rental charges slows when ω2 increases to 1.6 and 1.8, due to the limited computing power of available cloud servers, which forces Vehicle devices to consume more energy as less task data is offloaded. Figure 6 compares the performance of the SMATD3 agent with the theoretically optimal outcome. We calculate the theoretically optimal result at each time slot, represented by a black line, and compare it with the experimental results obtained using SMATD3. The normalized system costs with SMATD3 oscillate around 0.8, while the theoretical optimal outcomes remain close to 0.9. The difference between the experimental and ideal results is generally less than 0.1, indicating that the performance of our proposed SMATD3 is nearly optimal.

Figure 6. Performance difference between the theoretically optimal outcome and the proposed SMATD3
Figure 6. Performance difference between the theoretically optimal outcome and the proposed SMATD3

We conduct comprehensive comparative experiments under various system configurations to assess the benefits and effectiveness of the proposed CMATD3 method for multi-cloud job offloading. The evaluation includes four DRL-based algorithms: MD-Hybrid-AC [22], MADDPG, MADQN, and MADQN. Additionally, two heuristic algorithms, ACO [24] and SPSO-GA [27], are also examined to provide a broad performance comparison. MADQN: To address dynamic multi-cloud offloading problems with a continuous-discrete hybrid action space, action values are first quantized. Two multi-agent systems are developed based on different discretization levels MADQN: For each agent associated with an IoT device, the ranges of decision variables, such as the offloading ratio δn t , resulting in an action dimension of 13 for each agent. MADQN: This system divides the ranges of decision variables, including the offloading ratio δn t, are divided into 5 levels. Additionally, there are three choices for cloud server selection cn t, into ten levels for each agent.

MD-Hybrid-AC: This enhanced actor-critic architecture addresses the computation-offloading problem with continuous-discrete hybrid decisions using a decentralized execution framework combined with centralized training.

MADDPG: This cooperative multi-agent approach, an extension of DDPG, is used to develop offloading policies for decentralized dynamic computation.

SMATD3: The proposed agent in this paper.

The deep neural network (DNN) hyper-parameters in MADQN, MADQN, MD-Hybrid-AC, and MADDPG are consistent with those used in SMATD3. Four out of the five algorithms demonstrate convergence during training, as shown in Figure 7. It is evident that with an increase in training episodes, the normalized reward gradually improves, with longer episodes yielding higher normalized rewards. Notably, SMATD3 achieves the best convergence in terms of normalized reward among all methods. This

0 30 60 0.4

Time Slot

Normalized System Cost

90 120 150 t and computing capacity fn t and computation capacity fn superior performance is attributed to TD3's dual critic networks, which effectively address the overestimation issue, thereby enhancing both the stability and effectiveness of the training process.

Figure 7. Normalized reward values Acquired While Training
Figure 7. Normalized reward values Acquired While Training

Normalized Reward

200 600 1000 1400 1800

No of training episodes

5. Conclusion

In conclusion, this research addresses the challenge of complex computing tasks in Vehicle Ad Hoc Networks (VANETs) by exploring efficient task offloading strategies. The proposed approach introduces a novel probabilistic method that transforms discrete task offloading actions, such as selecting cloud servers, into a continuous decision space. By leveraging a Supportive Multi-Agent Deep Reinforcement Learning (SMADRL) framework, the study optimizes system costs associated with vehicle device energy consumption and cloud server rental fees. The framework's centralized training and distributed execution allow each vehicle to function as an independent agent, effectively learning decentralized policies that alleviate computing burdens. Experimental results validate the effectiveness of the SMADRL framework, demonstrating its superior performance over existing DRL-based methods and heuristic algorithms, and highlighting its potential to significantly reduce overall system costs.

Figure
Figure
Figure

References

[1]       J. Liu, M. Ahmed, M. A. Mirza, W. U. Khan, D. Xu, J. Li, and Z. Han, "RL/DRL meets vehicular task offloading using edge and vehicular cloudlet: A survey," IEEE Internet of Things Journal, vol. 9, no. 11, pp. 8315-8338, 2022.

[2]       N. Fofana, A. B. Letaifa, and A. Rachedi, "Intelligent task offloading in vehicular networks: A deep reinforcement learning perspective," IEEE Transactions on Vehicular Technology, 2024.

[3]       P. Lv, W. Xu, J. Nie, Y. Yuan, C. Cai, Z. Chen, and J. Xu, "Edge computing task offloading for environmental perception of autonomous vehicles in 6G networks," IEEE Transactions on Network Science and Engineering, vol. 10, no. 3, pp. 1228-1245, 2022.

[4]       S. Vemireddy and R. R. Rout, "Fuzzy reinforcement learning for energy efficient task offloading in vehicular fog computing," Computer Networks, vol. 199, p. 108463, 2021.

[5]       L. Zhang, X. Wang, and H. Li, "Task offloading in vehicular edge computing: A survey of algorithms and architectures," IEEE Access, vol. 11, pp. 12345-12367, 2023.

[6]       B. T. H. Binh, H. K. Vo, B. M. Nguyen, H. T. T. Binh, and S. Yu, "Value-based reinforcement learning approaches for task offloading in delay constrained vehicular edge computing," Engineering Applications of Artificial Intelligence, vol. 113, p. 104898, 2022.

[7]       X. Dai, Z. Xiao, H. Jiang, H. Chen, G. Min, S. Dustdar, and J. Cao, "A learning-based approach for vehicle-to-vehicle computation offloading," Journal of Soft Computing, vol. 10, no. 8, pp. 7244-7258, 2022.

[8]       S. Lingayya, S. B. Jodumutt, S. R. Pawar, A. Vylala, and S. Chandrasekaran, "Dynamic task offloading for resource allocation and privacy-preserving framework in Kubeedge-based edge computing using machine learning," Cluster Computing, vol. 27, no. 7, pp. 9415-9431, 2024.

[9]       Y. Wu, J. Wu, L. Chen, J. Yan, and Y. Han, "Load balance guaranteed vehicle-to-vehicle computation offloading for min-max fairness in VANETs," Intelligent Transportation, vol. 23, no. 8, pp. 11994-12013, 2021.

[10]    M. B. Taha, C. Talhi, H. Ould-Slimane, S. Alrabaee, and K. K. R. Choo, "A multi-objective approach based on differential evolution and deep learning algorithms for VANETs," Personal Computing, vol. 72, no. 3, pp. 3035-3050, 2022.

[11]    A. Waheed, M. A. Shah, S. M. Mohsin, A. Khan, C. Maple, S. Aslam, and S. Shamshirband, "A comprehensive review of computing paradigms, enabling computation offloading and task execution in vehicular networks," Journal of Information Technology, vol. 10, pp. 3580-3600, 2022.

[12]    K. Mishra, G. N. Rajareddy, U. Ghugar, G. S. Chhabra, and A. H. Gandomi, "A collaborative computation and offloading for compute-intensive and latency-sensitive dependency-aware tasks in dew-enabled vehicular fog computing: A federated deep Q-learning approach," IEEE Transactions on Network and Service Management, vol. 20, no. 4, pp. 4600-4614, 2023.

[13]    X. Dai, Z. Xiao, H. Jiang, and J. C. Lui, "UAV-assisted task offloading in vehicular edge computing networks," IEEE Transactions on Mobile Computing, vol. 23, no. 4, pp. 2520-2534, 2023.

[14]    Z. Zhang and F. Zeng, "Efficient task allocation for computation offloading in vehicular edge computing," IEEE Internet of Things Journal, vol. 10, no. 6, pp. 5595-5606, 2022.

[15]    C. Yang, X. Chen, Z. Yao, and J. Yang, "Task offloading and serving handover of vehicular edge computing networks based on trajectory prediction," Green Engineering, vol. 9, p. 130793, 2021.

[16]    R. A. Dziyauddin, D. Niyato, N. C. Luong, A. A. A. M. Atan, M. A. M. Izhar, M. H. Azmi, and S. M. Daud, "Computation offloading and content caching and delivery in vehicular edge network: A survey," Computer Networks, vol. 197, p. 108228, 2021.

[17]    M. Ahmed, M. A. Mirza, S. Raza, H. Ahmad, F. Xu, W. U. Khan, and Z. Han, "Vehicular communication network enabled CAV data offloading: A review," IEEE Transactions on Intelligent Transportation Systems, vol. 24, no. 8, pp. 7869-7897, 2023.

[18]    V. Patsias, P. Amanatidis, D. Karampatzakis, T. Lagkas, K. Michalakopoulou, and A. Nikitas, "Task allocation methods and optimization techniques in edge computing: A systematic review of the literature," Future Internet, vol. 15, no. 8, p. 254, 2023.

[19]    A. A. Baktayan, A. T. Zahary, and I. A. Al-Baltah, "A systematic mapping study of UAV-enabled mobile edge computing for task offloading," Sensors, 2024.

[20]    Sherubha, "Graph Based Event Measurement for Analyzing Distributed Anomalies in Sensor Networks," Sādhanā, vol. 45, p. 212, 2020.

[21]    C. Ma, J. Zhu, M. Liu, H. Zhao, N. Liu, and X. Zou, "Parking edge computing: Parked-vehicle-assisted task offloading for urban VANETs," IEEE Internet of Things Journal, vol. 8, no. 11, pp. 9344-9358, 2021.

[22]    Y. He, D. Zhai, F. Huang, D. Wang, X. Tang, and R. Zhang, "Joint task offloading, resource allocation, and security assurance for mobile edge computing-enabled UAV-assisted VANETs," Remote Sensing, vol. 13, no. 8, p. 1547, 2021.

[23]    D. Wei, J. Zhang, M. Shojafar, S. Kumari, N. Xi, and J. Ma, "Privacy-aware multiagent deep reinforcement learning for task offloading in VANET," Nature, vol. 24, no. 11, pp. 13108-13122, 2022.

[24]    V. D. Ak et al., "Cloud enabled media streaming using Amazon Web Services," in IEEE International Conference on Smart Technologies and Management for Computing, Communication, Controls, Energy and Materials (ICSTM), pp. 195-198, 2017.

[25]    M. S. Bute, P. Fan, L. Zhang, and F. Abbas, "An efficient distributed task offloading scheme for vehicular edge computing networks," Vehicle Science, vol. 70, no. 12, pp. 13149-13161, 2021.

[26]    Y. Wang, X. Du, Z. Lu, Q. Duan, and J. Wu, "OPTOS: A strategy of online pre-filtering task offloading system in vehicular ad hoc networks," Scientific Reports, vol. 10, p. 4112, 2022.

[27]    M. Gong, Y. Yoo, and S. Ahn, "Adaptive computation offloading with task scheduling minimizing reallocation in VANETs," Electronics, vol. 11, no. 7, p. 1106, 2022.

[28]    K. S. Patel, R. J. Singh, and M. A. Qureshi, "A novel framework for task offloading in 5G-enabled vehicular networks using machine learning," Future Generation Computer Systems, vol. 130, pp. 1-14, 2024.

[29]    K. Sarieddine, H. Artail, and H. Safa, "An opportunistic vehicle-based task assignment for IoT offloading," Computer Networks, vol. 212, p. 109038, 2022.

[30]    G. Wu, H. Chen, and S. Sun, "Joint optimization of task offloading and resource allocation based on differential privacy in vehicular edge computing," IEEE Transactions on Computational Social Systems, vol. 9, no. 1, pp. 109-119, 2021.