Conceptio › Archive › arXiv CS
arXiv CSopen access

Joint Optimization of Trajectory Control, Resource Allocation, and Task Offloading for Multi-UAV-Assisted IoV

2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
distributed-systemsinternetnetworkingprotocols
networking, internet, protocols, distributed systems

1

Joint Optimization of Trajectory Control, Resource Allocation, and Task Offloading for Multi-UAV-Assisted IoV

arXiv:2605.04436v1 [cs.NI] 6 May 2026

Maoxin Ji, Qiong Wu, Senior Member, IEEE, Pingyi Fan, Senior Member, IEEE, Cui Zhang, Nan Cheng, Senior Member, IEEE, Wen Chen, Senior Member, IEEE, and Khaled B. Letaief, Fellow, IEEE

Abstract—This paper investigates a multi-Unmanned Aerial Vehicle (UAV) joint base station-assisted Internet of Vehicles (IoV) task offloading system in dense urban environments. To minimize system delay and energy consumption under strict coupling constraints, the complex non-convex optimization problem is decoupled into a hierarchical execution framework. First, a sequential distributed optimization algorithm based on SecondOrder Cone Programming (SOCP) is proposed to optimize the 3D flight trajectory of each UAV, ensuring adaptive network coverage. Second, a novel hybrid resource scheduling paradigm synergizing Deep Reinforcement Learning (DRL) and Large Language Models (LLMs) is developed. Within this framework, the DRL agent dictates the initial resource allocation, while the LLM acts as a semantic macro-scheduler to rectify long-tail allocation imbalances for failed and surplus tasks. Crucially, a reward decoupling mechanism is introduced to isolate DRL training from external LLM interventions, thereby ensuring policy convergence. Finally, the task offloading ratios are precisely determined via Linear Programming (LP) within an alternating optimization loop. Simulation results demonstrate that the proposed method significantly outperforms traditional multi-agent reinforcement learning baselines in terms of task success rate and system efficiency. Index Terms—UAV, IoV, Trajectory Control, Resource Allocation, Task Offloading. This work was supported in part by Jiangxi Province Science and Technology Development Programme under Grant No. 20242BCC32016, in part by the National Natural Science Foundation of China under Grant No. 61701197, 62531015, and U25A20399, in part by the Basic Research Program of Jiangsu under Grant No. BK20252084, in part by the National Key Research and Development Program of China under Grant No. 2021YFA1000500(4), in part by the Shanghai Kewei under Grant No. 24DP1500500, in part by the Hong Kong Research Grant Council under the Areas of Excellence (AoE) Scheme Grant No. AoE/E-601/22-R and in part by the 111 Project under Grant No. B23008. (Corresponding author: Qiong Wu.) Maoxin Ji and Qiong Wu are with the School of Internet of Things Engineering, Jiangnan University, Wuxi 214122, China, and also with the School of Information Engineering, Jiangxi Provincial Key Laboratory of Advanced Signal Processing and Intelligent Communications, Nanchang University, Nanchang 330031, China (e-mail: [email protected], [email protected]). Pingyi Fan is with the Department of Electronic Engineering, State Key laboratory of Space Network and Communications, Beijing National Research Center for Information Science and Technology, Tsinghua University, Beijing 100084, China (e-mail: [email protected]). Cui Zhang is with the School of Internet of Things Engineering, Wuxi Institute of Technology, Wuxi, 214121, China (e-mail: [email protected]). Nan Cheng is with the State Key Lab. of ISN and School of Telecommunications Engineering, Xidian University, Xi’an 710071, China (e-mail: [email protected]). Wen Chen is with the Department of Electronic Engineering, Shanghai Jiao Tong University, Shanghai 200240, China (e-mail: [email protected]). Khaled B. Letaief is with the Department of Electrical and Computer Engineering, the Hong Kong University of Science and Technology, Hong Kong (email: [email protected]).

I. I NTRODUCTION

E

STABLISHING intelligent transportation systems as a critical infrastructure of smart cities heavily relies on advances in Internet of Vehicles (IoV) technologies [1]–[8]. In IoV scenarios, vehicles acquire information services from roadside units (RSUs) or base stations (BSs) through vehicleto-infrastructure (V2I) communication, and share real-time traffic data via vehicle-to-vehicle (V2V) communication [9]– [16]. However, the explosive growth in data volume and the stringent real-time and reliability requirements of vehicular tasks impose severe challenges on the vehicles’ limited onboard computing capabilities [17], [18]. Mobile Edge Computing (MEC) technology, by offloading computational tasks to edge nodes with more powerful processing capabilities such as RSUs or BSs, emerges as an effective solution to alleviate the computational burden on vehicles [19]. Nonetheless, MEC relying on ground fixed infrastructure faces significant limitations in coping with high-density and highly dynamic IoV environments [20]–[29]. On one hand, complex urban layouts with dense buildings frequently block communication links between base stations and vehicles, causing severe signal attenuation [30], [31]. On the other hand, during peak traffic periods, limited computational and wireless communication resources at ground base stations struggle to satisfy the surge of concurrent offloading requests from numerous vehicles, resulting in increased task processing delay and degraded service quality [32]. Moreover, the high mobility of vehicles and the stochastic nature of task arrivals hinder static or semi-static resource allocation and offloading strategies from adapting to the rapidly changing environment. Recently, rapid development in Unmanned Aerial Vehicle (UAV) technology, especially improvements in payload capacity and endurance, has opened up new possibilities for MEC offloading in IoV. UAVs offer flexible deployment and high maneuverability, enabling them to fly in low-altitude airspace and establish line-of-sight (LoS) communication links with vehicles, effectively overcoming ground obstacles to provide highly reliable communication [33], [34]. More importantly, UAVs can dynamically adjust their flight trajectories according to real-time vehicle distribution and task load conditions, actively approaching vehicle-dense or high-load areas to provide MEC services. This capability effectively offloads ground base station burden and enhances overall system service capacity. In the literature, many works have addressed UAV-assisted

2

task offloading and trajectory planning problems in IoV. Existing studies typically focus on specific scenarios. Yan et al. [35] employed deep reinforcement learning (DRL) to optimize task offloading assisted by a single UAV in areas without base stations, aiming to minimize delay via joint trajectory and offloading design. However, assuming fixedaltitude full coverage limits the applicability of their approach to complex IoV scenarios. Liu et al. [36] maximized throughput in resource-constrained scenarios by optimizing UAV trajectories and power allocation under Time Division Multiple Access (TDMA), but the restriction of serving only one vehicle per time slot is too restrictive. Wu et al. [37] proposed a traffic-aware trajectory optimization algorithm using DRL to minimize UAV energy consumption, overlooking communication details. Wang et al. [38] developed a multiUAV scheduling algorithm to maximize request coverage, simplifying communication and focusing on horizontal trajectories. Chen et al. [39] optimized a multi-UAV MEC system with convex optimization and federated DRL, emphasizing privacy and resource utilization. Liu et al. [40] considered vehicle mobility with a Multi-Agent Deep Deterministic Policy Gradient-based (MADDPG) offloading and migration scheme, optimizing delay and deployment. Nevertheless, none fully considers the critical impact of UAV three-dimensional (3D) flight trajectories, especially altitude variations, on communication coverage quality. In particular, existing works do not consider variations in communication links caused by relative positional changes between UAVs and vehicles. Research on UAV-assisted MEC for static or low-mobility Internet of Things (IoT) devices provides an important reference foundation for vehicular networks. Reference [41], [42] focused on multifunctional UAV designs enabling UAVs to act as both MEC servers and relay nodes to improve connectivity. Reference [43] innovatively proposed a dual-UAV cooperative framework where one UAV handled computation offloading and the other served as a jammer to enhance system security. Reference [44]–[46] dedicated efforts to multi-UAV collaboration optimization, while reference [47], [48] concentrated on single-UAV systems, jointly optimizing task allocation, bandwidth allocation, computing resource allocation, and UAV trajectory to improve service quality. However, these studies commonly assumed relatively low mobility or fixed user locations (e.g., Reference [49] assumed fixed user positions and UAV altitude. Reference [47] assumed full coverage and neglected altitude impact on LoS links. Reference [48] adopted random walk models. Reference [42] constrained fixed altitude), which causes its trajectory optimization algorithm to focus primarily on planning the shortest path through all target users, which is difficult to apply in IoV where altitude varies dynamically, randomness is strong, and coverage requirements continuously change, which requires drones to track vehicle positions in real time and rapidly adjust their trajectories to maintain optimal coverage, which directly affects the proportion of vehicles served and system performance, imposing far more stringent demands on the real-time responsiveness and adaptability of trajectory optimization algorithms than in static IoT scenarios. On the other hand, many existing studies are based on multi-

agent deep reinforcement learning (MADRL). However, the policies obtained through MADRL training heavily depend on specific simulation environments, resulting in limited generalization capability [50], [51]. More importantly, MADRL methods are often regarded as “black boxes” and lack interpretability. In contrast, traditional mathematical optimization methods based on convex optimization have explicit mathematical models and strong interpretability. Nevertheless, in vehicular networks, the joint optimization of UAV flight trajectories, communication resource scheduling, and task offloading usually involves highly non-convex and tightly coupled problems. Such problems are NP-hard and difficult to efficiently solve to global optimality using classical optimization techniques. In recent years, large language models (LLMs) pretrained on massive datasets have demonstrated powerful general tasksolving capabilities and emerging “physical intuition.” LLMs such as Deepseek-R1, ChatGPT, and Gemini can simulate human-like reasoning through chain-of-thought prompting, producing explainable decision rationales that outperform DRL in interpretability. Emerging studies reveal that LLMs can leverage latent physical laws learned from data to solve specific subproblems in communication networks (e.g., power control [52]) without additional training, achieving performance comparable with specialized DRL algorithms. This opens a novel avenue and framework for tackling complex joint optimization problems in IoV. In summary, current research exhibits clear limitations in addressing multi-UAV collaborative task offloading problems under high-density and highly dynamic IoV environments: 1) most existing works focus on specific aspects (e.g., trajectory or resource optimization only), lacking comprehensive joint optimization of UAV 3D trajectories, fine-grained communication resource scheduling (power, spectrum), and flexible task offloading strategies (allowing arbitrary proportions of local, UAV, or BS computing); 2) optimization methods confront bottlenecks in interpretability (DRL) or computational complexity (traditional optimization); 3) many studies rely on restrictive assumptions (e.g., fixed altitude, full coverage) and overlook the dynamic changes in communication links caused by UAV trajectory variations. When a vehicle moves out of the UAV’s effective coverage area, it will no longer be able to receive services from the UAV, which significantly impacts the overall system performance. Designing trajectory optimization methods that can accurately and effectively ensure coverage of as many vehicles as possible remains a critical challenge. Furthermore, the characteristic of vehicles simultaneously connecting UAVs and BSs further increases the complexity of communication resource management and task scheduling. To this end, this paper investigates the joint optimization of multi-UAV and BS collaborative task offloading in highdensity vehicular networks, aiming to minimize the system’s total delay and weighted total energy consumption1 . The main contributions are summarized as follows: 1) Development of the first comprehensive 3D joint optimization model for highly dynamic vehicular networks: 1 The source code and LLM prompt have been released https://github.com/qiongwu86/Joint-Optimization-of-Trajectory-ControlRA-and-Task-Offloading-for-Multi-UAV-Assisted-IoV

at:

3

This model integrates continuous 3D UAV trajectory planning (including dynamic altitude), joint scheduling of power and spectrum resources, and flexible task offloading among vehicles, UAVs, and base stations. It rigorously incorporates kinematic, communication, processing, and queue stability constraints, addressing the modeling gaps in previous studies. 2) We propose a convex optimization-based distributed algorithm for fast UAV 3D trajectory planning. By designing load-aware sub-objective functions (combining linear relaxation and penalty functions) and cleverly transforming non-convex motion feasible regions into convex sets, we decouple the complex multi-UAV joint trajectory optimization problem into efficiently solvable subproblems, enabling effective tracking and coverage optimization of vehicle dynamics. 3) We propose a novel hybrid resource scheduling paradigm that synergizes DRL and LLMs. Within an alternating optimization framework, a DRL agent first dictates the initial joint allocation of resource blocks and transmit power. Subsequently, an LLM acts as a semantic macro-scheduler to resolve long-tail allocation imbalances. By systematically reallocating resources for failed and surplus tasks, the LLM effectively harmonizes system-wide completion times. Driven by few-shot prompting and historical feedback, the LLM iteratively refines its reasoning policy. To ensure edge deployment feasibility, Key-Value (KV) caching is leveraged to bypass redundant computations for highly structured prompts, drastically reducing inference latency. Finally, a deterministic constraint-checking module is integrated to eliminate invalid actions, ensuring strict physical compliance and robust system reliability. 4) We propose a linear programming (LP)-based method to determine task offloading proportions. Considering the uncertainty of UAV/BS queue delays at decision epochs, we utilize historical average queue delay data for effective estimation. After fixing UAV trajectories and resource scheduling, the original problem reduces to a deterministic LP with respect to offloading proportions, enabling rapid optimal resolution. The remainder of this paper is organized as follows. Section II introduces the system model and problem formulation in detail. Section III elaborates on the solution algorithms for the three key subproblems: trajectory planning, resource scheduling, and task offloading. Section IV describes the simulation settings, benchmark schemes, and comprehensive performance evaluation results. Section V concludes the paper and discusses future research directions. II. S YSTEM M ODEL As illustrated in Fig. 1, this paper considers a complex road scenario of size 300m × 300m, which includes vehicles and UAVs. We denote the set of vehicles in the environment as M = {1, 2, 3, . . . , M }, and the set of UAVs as U = {1, 2, 3, . . . , U }. The UAVs, equipped with edge computing servers, fly at low altitude to provide offloading services to

vehicles within their coverage area. A ground BS is located at the center of the environment and serves all vehicles. Both the UAVs and the BS execute computational tasks following a first-in-first-out (FIFO) scheduling policy, each maintaining its own computation queue. Vehicles are initially generated randomly and uniformly distributed across multiple roads within the scenario, moving at a constant speed along the direction of the road. The speeds of different vehicles follow a truncated Gaussian (normal) distribution. When a vehicle reaches an intersection, it randomly selects a feasible direction to turn. To maintain a constant number of vehicles within the simulation, vehicles exiting the boundary re-enter the scenario following traffic regulations.

A. Mobility Model Many existing studies discretize the space into grids to control the flight of UAVs [53]. Considering the continuity of the three-dimensional space and the realism of the environment, we assume that UAVs can move freely within a limited airspace and spatial range. Let the total simulation time be T , which is divided into multiple discrete time slots {t1 , t2 , . . . , tK }. When each time slot is sufficiently small, it can be approximated that the positions of vehicles and UAVs remain fixed within each time slot, while position changes are considered between adjacent time slots [54]. At any time slot tk , the three-dimensional position coordinates of an arbitrary vehicle and UAV can be respectively represented as (xm (tk ), ym (tk ), zm (tk )) and (xu (tk ), yu (tk ), zu (tk )). Considering that the UAVs’ flight range must be restricted within the simulation scenario, the following constraints apply:  max min  xu ≤ xu (tk ) ≤ xu , max min (1) yu ≤ yu (tk ) ≤ yu ,   min max zu ≤ zu (tk ) ≤ zu , max , yumin , yumax , zumin , and zumax denote the where xmin u , xu boundaries of the UAVs’ allowed flight area.

According to [55], the flight altitude of a UAV is related to its coverage (effective line-of-sight transmission) range. Suppose the maximum elevation angle of the UAV is θmax , then the horizontal coverage radius of UAV u at time slot tk can be expressed as: Ru (tk ) = zu (tk ) tan(θmax ),

(2)

where zu (tk ) is the altitude of UAV u at time slot tk . To avoid collisions, multiple UAVs must maintain a certain spatial separation, which should satisfy the following constraint: ∥pu (tk ) − pv (tk )∥ ≥ dmin ,

∀u ̸= v,

(3)

where pu (tk ) = (xu (tk ), yu (tk )) denotes the horizontal position of UAV u at time slot tk , and dmin is the minimum horizontal distance between UAVs. Due to the limitations of the propulsion system, the changes in horizontal position and altitude of a UAV between adjacent time slots need to satisfy

4

1

2

3

4

5

m

Local Computing Ratio Base Station Offloading Ratio UAV Offloading Ratio

V2U Links V2I Links

1

2

3

4

5

m 1

2

1

3

4

5

1

2

2

3

1

m

3

4

4

5

5

2

3

4

5

m

n

m

Fig. 1 System Model

slot tk is calculated as:

the following constraints: ( h , lu (tk ) = vu (tk ) · cos(φu (tk )) · ∆t ≤ lmax v , zu (tk+1 ) − zu (tk ) = vu (tk ) · sin(φu (tk )) · ∆t ≤ lmax

E u (tk ) ≈ (Ph (vxy,tk ) + Pv (vz , tk ) + Panc ) · ∆t.

(4) where lu (tk ) denotes the horizontal displacement of UAV u during time slot tk , vu (tk ) is the UAV’s speed at time slot tk , φu (tk ) is the elevation angle (flight pitch angle) at time slot v h and lmax tk , ∆t is the duration of each time slot, and lmax are the maximum allowed displacements in the horizontal and vertical directions, respectively. To accurately evaluate the operational endurance, this work adopts a power consumption model consistent with rotarywing aerodynamics [56]. Instead of a simplified linear assumption, the model explicitly describes the non-linear relationship between flight speed and propulsion power. The horizontal propulsion power Ph follows a characteristic U-shaped profile [57], modeled as a function of the horizontal speed vxy :    Ph (vxy ) = Phover 

1+

1 

vxy vref

 3 2  + cd · vxy ,

(5)

where Phover denotes the baseline hovering power, vref represents the induced power decay factor, and cd is the aerodynamic drag coefficient.

B. Communication Model This paper considers a complex urban environment, where all vehicles are assumed to be within the coverage area of the BS. The BS establishes communication with vehicles through V2I links. The three-dimensional coordinates of the base station are denoted as b = (xI , yI , zI ). According to 5G NR-V2X technology, vehicles communicate with the BS via V2I links, and with UAVs via groundto-air (G2A) links. It is assumed that the V2I and G2A communication links share the same frequency bandwidth B, which is divided into different resource blocks in both frequency and time slots. Therefore, each V2I and G2A link transmits data over orthogonal frequency bands corresponding to their allocated u I (tk ), respectively, within their cor(tk ) and Bm bandwidths Bm responding time slots. These satisfy the following constraint: M X

I Bm (tk ) +

m=1

U X M X

where vz is the vertical velocity (positive upwards) and α ∈ (0, 1) is the energy reduction coefficient during descent. Consequently, combining the ancillary power Panc of onboard electronics, the total energy consumption E u (tk ) over a time

u u αm (tk )Bm (tk ) ≤ B,

(8)

u=1 m=1

where (

For vertical maneuvering, the asymmetry of gravity work dictates that ascent requires overcoming gravitational potential while descent allows for limited energy recovery. The vertical power Pv (vz ) is defined as: ( mgvz + cv vz2 , vz > 0, Pv (vz ) = (6) α · mgvz , vz ≤ 0,

(7)

u αm (tk ) =

1, dh,u m (tk ) ≤ Ru (tk ), h,u 0, dm (tk ) > Ru (tk ),

(9)

where dh,u m (tk ) denotes the horizontal distance between UAV u u and vehicle m at time slot tk , and αm (tk ) indicates whether vehicle m is within the coverage range Ru (tk ) of UAV u at time slot tk . Due to the wireless signal of V2I communication experiencing free-space path loss, shadow fading, and fast fading, taking into account the transmit antenna gain of the vehicle and the receive antenna gain of the base station, the received power at the base station from vehicle m at time slot tk can be described as:

5

expressed as:

I I Prx,m (tk ) = Ptx,m (tk ) − LIm (tk ) + Sm (tk ) I + Fm,r (tk ) + Gtm + GrI ,

(10)

∀k

I where Ptx,m (tk ) denotes the transmit power of vehicle m communicating with the base station at time slot tk , dI (tk ) represents the LIm (tk ) = 128.1 + 37.6 × log10 m 1000 path loss. Here, the distance is calculated as dIm (tk ) = p 2 2 (xm (tk ) − xI ) + (ym (tk ) − yI ) + (zm − zI )2 , where zm denotes the common antenna height of all vehicles. m − ∆d tk Dc S m (tk−1 )+ qThe shadow fading is modeled as Sm = e 2∆dm

1 − e− Dc N (0, σs ), where ∆dm represents the moving distance of vehicle m within a single time slot, Dc denotes the decorrelation distance, and σs is the standard deviation I of shadow fading. The fast fading is expressed as Fm,r (tk ) = 20 log10 |hm,r (tk )|, where hm,r (tk ) is the Rayleigh distributed random variable representing the fast fading of vehicle m on the allocated resource block r. Gtm denotes the transmit power gain of vehicle m, and GrI represents the receive power gain of the base station. Based on this, the data rate of V2I communication can be expressed as: I Ptotal,m (tk ) 1+ I Nm (tk )

I I Rm (tk ) = Bm (tk ) log2

! ,

∀tk

(11)

I where Ptotal,m (tk ) = 10 denotes the linear-scale transmission power of vehicle m communicating with the base I (tk ) represents the linearstation at time slot tk , where Nm scale noise power at time slot tk . The UAV provides task offloading services to vehicles in the air. Since the UAV operates in an open-sky environment, G2A communication has relatively high LoS connectivity [58]. Based on the path loss model [55], at time slot tk , the probability that vehicle m has LoS transmission with UAV u can be calculated as follows:

1 



zu (tk ) 1 + ωa exp −ωb arcsin dm,u (tk ) − ωa

 , (12)

where q dm,u (tk ) =

2

2

2

(∆x(tk )) + (∆y(tk )) + (∆z(tk )) ,

(13)

where ∆x(tk ) = xm (tk ) − xu (tk ) denotes the difference in the x-coordinates between UAV u and vehicle m. The terms ∆y(tk ) and ∆z(tk ) are defined similarly for the y and z axes, respectively. ωa and ωb are constants describing the propagation environment characteristics. It can be seen that the LoS probability between the vehicle and UAV depends on their relative positions and heights. The LoS probability depends on the elevation angle between the vehicle and the UAV. Correspondingly, the probability of non-line-of-sight (NLoS) propagation can be expressed as: NLoS LoS Pm,u (tk ) = 1 − Pm,u (tk ).

(15)

NLoS FS Cm,u (tk ) = Cm,u (tk ) + ηNLoS ,

(16)

4πdu m,u (tk )fv

FS ), and ηLoS denotes where Cm,u (tk ) = 20 log10 ( Vc the excess path loss associated with LoS conditions, ηN LoS denotes the excess path loss for NLoS, and fv represents the carrier frequency for G2A communication. Therefore, the average G2A path loss can be represented as: u FS LoS N LoS Cm (tk ) = Cm,u (tk ) + Pm,u (tk )ηLoS + Pm,u (tk )ηN LoS . (17) N LoS LoS Substituting Pm,u (tk ) = 1 − Pm,u (tk ) into the above expression, it can be simplified as:  u FS LoS Cm (tk ) = Cm,u (tk ) + Pm,u (tk ) ηLoS − ηN LoS + ηN LoS . (18) Since the vehicle is in high-speed motion, according to the Lais fall model, the channel shadowing of vehicle m at time slot tk and as:Fm,r (tk ) = q q be calculated qresource block r can  K 1 1 jθm,r (tk ) (0,1) + K+1 2 N + jN (0,1) . 20 log10 K+1 e Therefore, the received power can be expressed as: u u u Pr,m (tk ) = Ptx,m (tk )−Cm (tk )−Fm,r (tk )+Gtm +Gru , (19)

I (tk ) Prx,m 10

LoS Pm,u (tk ) =

LoS FS Cm,u (tk ) = Cm,u (tk ) + ηLoS ,

(14)

The path loss during LoS and NLoS transmission can be

u where Ptx,m (tk ) denotes the transmit power of vehicle m to UAV u, and Gru represents the UAV u’s receiving antenna gain. Based on this, the transmission rate between vehicle m and UAV u within the coverage area can be expressed as:   u (tk ) Pm u u Rm,r (tk ) = Bm (tk ) log2 1 + u , (20) Nm,r (tk ) 

u Ptx,m (tk ) 10



u u (tk ) = 10 (tk ) denotes the transwhere Pm , Bm u mission bandwidth, and Nm,r (tk ) represents the noise power linear value.

C. Task Offloading Strategy In the considered environment, the total task volume each vehicle needs to offload at time tk is given by D(tk ) = {D1 (tk ), D2 (tk ), . . . , DM (tk )}. All vehicles are equipped with on-board units (OBUs) that have identical computing frequency fm . All UAVs carry lightweight aerial servers with computing frequency fu . The base station hosts highperformance servers with computing frequency fI . Each vehicle can request service from only one UAV. When covered by multiple UAVs at time tk , instead of relying solely on the computational load, vehicle m intelligently selects the target UAV by evaluating a joint channel-aware and load-aware cost metric. Specifically, the selection criterion is formulated to minimize the weighted cost Ψm,u (tk ) = u λ1 Du (tk ) + λ2 Cm (tk ), where Du (tk ) denotes the total task load of all vehicles within the coverage area of UAV u, u Cm (tk ) is the real-time average G2A path loss derived in Eq. (17), and λ1 , λ2 are normalized importance weights. Vehicle m associates with the UAV u∗ that yields the minimum Ψm,u (tk ). Task proportions are independent over time slots,

6

allowing vehicles to offload any portion of their tasks to edge servers. Thus, the offloading strategy for vehicle m at time tk can be expressed as: o u u I γm (tk ) + αm (tk )γm (tk ) + γm (tk ) = 1,

(21)

o l where, γm (tk ) and γm (tk ) denote the proportions of tasks computed locally and offloaded to the base station, respecu tively; γm (tk ) is the proportion offloaded to the UAV. The u indicator αm (tk ) equals 1 if vehicle m is covered by at least u one UAV, and 0 otherwise. When αm (tk ) = 0, vehicle m is outside UAV coverage and cannot offload tasks to UAVs; otherwise, at least one UAV can serve vehicle m. Based on the above task partitioning, the computation delay of task offloading can be calculated as follows:  o γm (tk )Dm (tk )c o   , T (t ) = k m   fm   u γ (tk )Dm (tk )c u Tm (tk ) = m , (22)  fu   I  γ (tk )Dm (tk )c  I Tm , (tk ) = m fI

where c represents the number of CPU cycles required to process one bit of data. The transmission delay for vehicle offloading task can be calculated as:  γ I (tk )Dm (tk )  V 2I  Tm (tk ) = m l , Rm (tk ) (23) u γ (tk )Dm (tk )  G2A  (tk ) = m u . Tm Rm (tk ) Since each UAV serves multiple vehicles, task execution is assumed to follow a FIFO discipline. Consequently, the queuing delay for vehicle m’s task is calculated as: que ar ar Tm,u (tk ) = max{Tm,u (tk ), Tulast (tk )} − Tm,u (tk ),

(24)

ar where Tm,u (tk ) represents the time when vehicle m’s data arrives at UAV u, and Tulast (tk ) represents the current last task

processing time in the UAV queue u. Similarly, the waiting delay at the base station can be expressed as:  ar que ar Tm (tk ) = max Tm,I (tk ), TIlast (tk ) − Tm,I (tk ), (25) ar where Tm,I (tk ) represents the time when data from vehicle m arrives at the base station, and TIlast (tk ) is the completion

time of the last task in the current queue at the base station. Due to the limited computing capacity of UAVs and limited queue size, the amount of data offloaded to UAV u at each time slot cannot exceed its computational capacity, i.e., 0≤

M X

u u αm (tk )γm (tk )Dm (tk ) ≤

m=1

fu ∆t , c

(26)

where ∆t denotes the length of one time slot. Similarly, the base station must also impose an upper limit on the offloaded task amount at each time slot: 0≤

M X m=1

o γm (tk )Dm (tk ) ≤

fI ∆t . c

(27)

Note that since the queue constraints are imposed within each individual time slot and tasks not completed within the slot are

considered failed, the system does not involve queue dynamics across multiple slots. Therefore, there is no need to apply Lyapunov optimization methods, which are typically used to ensure long-term queue stability. D. Optimization Problem The optimization objective is to minimize both energy consumption and system delay. Given the parallel execution of computation and transmission tasks, the total delay is formulated as: K X M X T = Tm (tk ), (28) tk =1 m=1

where:  U X o u G2A que Tm (tk ) = max Tm (tk ), αm (tk ) Tm,u (tk ) + Tm,u (tk ) u=1 u + Tm (tk ) ,



V 2I que I Tm (tk ) + Tm (tk ) + Tm (tk )

 .

(29) Under ideal conditions, all vehicle computation tasks should be completed within the task deadline, thus the following constraint holds: max Tm (tk ) ≤ Tm (tk ).

(30)

Considering the resource constraints in practical environments, it is difficult for all vehicles to satisfy this constraint. To ensure fairness in resource competition among vehicles and to avoid that vehicles with loose time requirements occupy resources at the expense of vehicles with tight deadlines, we introduce a delay exceeding penalty ξm . Then the delay constraint becomes: max Tm (tk ) ≤ Tm (tk ) + ξm (tk ).

(31)

Considering the different delay scales of various vehicle tasks, we transform the optimization objective into normalized delay based on task time constraints. Eq. (28) can be rewritten as: T =

K X M X Tm (tk ) . T max (tk ) t =1 m=1 m

(32)

k

Considering the energy consumption during communication between vehicles, UAVs, and BS, as well as the energy consumed by vehicles, UAVs, and base stations for computation, the transmission energy consumed by vehicles for offloading tasks to the base station and UAV can be expressed as: ( V 2I I V 2I Em (tk ) = Pm Tm (tk ), (33) G2A u G2A Em (tk ) = Pm Tm (tk ). The energy consumed by vehicles, UAVs, and base stations for data processing can be calculated by the following formulas:  o 3 o  Em (tk ) = κfm Tm (tk ), u u (34) Em (tk ) = κfu3 Tm (tk ),   I 3 I Em (tk ) = κfI Tm (tk ), where κ ≥ 0 denotes the effective switched capacitance. The flight energy consumption of the UAVs can be calculated

7

three subproblems to find an approximate optimal solution. dmin

dmin

dmin

(x2, y2)

(x2, y2)

(x1, y1) 300m

III. P ROBLEM D ECOMPOSITION AND S OLUTION In this section, we decompose the optimization problem into three subproblems: UAV trajectory planning, resource allocation, and task proportion assignment. By integrating DRL, LLMs, convex optimization, and linear programming methods, approximate optimal solutions are obtained.

(x1, y1) 300m

Lm,k

dmin

dmin

Lm,k

dmin

dmin

dmin

300m

300m

Fig. 2 Collision Avoidance Constraint Illustration according to Eq. (7). Therefore, the total system energy consumption can be expressed as: K X M  X o V 2I I E= Em (tk ) + Em (tk ) + Em (tk ) tk =1 m=1

+

U X

u G2A u αm (tk ) Em (tk ) + Em (tk )

u=1



 +

K X U X

E u (tk ).

tk =1 u=1

(35) Therefore, by jointly optimizing the UAV’s 3D coordinates  Cu = xu (tk ), yu (tk ), zu (tk ) , the vehicle’s transmission o I u (tk ), (tk ), the allocation ratios γm (tk ) and Pm power Pm I u γm (tk ), γm (tk ) for vehicle tasks, and the resource block allocation R, the objective function can be minimized. The final optimization problem can be expressed as: min

Cu ,P γ,R

s.t.

ω1 T + ω2 E + ω3

M X

ξm

(36a)

m=1 o 0 ≤ γm (tk ) ≤ 1,

∀m,

(36b)

u 0 ≤ γm (tk ) ≤ 1, ∀m, ∀u, I 0 ≤ γm (tk ) ≤ 1, ∀m, o u u I γm (tk ) + αm (tk )γm (tk ) + γm (tk ) = 1,

(36c) (36d) ∀m, ∀u, (36e)

vu (tk ) ≤ vmax , u max 0 ≤ Pm (tk ) ≤ Pm ,

(36f) ∀m,

(36g)

I max 0 ≤ Pm (tk ) ≤ Pm , ∀m, u αm (tk ) ∈ {0, 1}, ∀m, ∀u,

(36h)

ξm ≥ 0,

(36j)

∀m

Constraints (1), (3), (4), (8), (26), (27), (31).

(36i) (36k)

where ω1 , ω2 and ω3 represent the weights of system delay, energy consumption and delay exceeding penalty, respectively. Constraints (36b)–(36e) limit the offloading ratios of vehicle tasks; constraints (36g)–(36h) limit the transmission power range of vehicles; constraint (36i) indicates whether vehicle m is covered by UAV u. Eq. (1) restricts the UAV’s motion space, and constraint (36f) restricts the UAV’s max speed. Eq.(3) constrains the minimum distance between any two UAVs. Eq.(4) describes the maximum displacement limit of UAVs between consecutive time slots. Eq. (8) limits the system bandwidth allocation. Eq. (26)–(27) constrain the maximum data amount offloaded to the base station and UAV. Eq. (31) restricts the delay upper bound for each vehicle task. Due to strong coupling among variables and integer constraints, this is a highly complex optimization problem. We decompose it into

A. UAV Trajectory Planning Problem 1) Convexification and Constraint Transformation: To formulate a computationally tractable convex optimization problem, both the non-convex energy consumption model and the collision avoidance constraints must be appropriately transformed. First, the theoretical propulsion power model presented in the system model is fundamentally non-convex. Specifically, the horizontal flight power Ph (v) consists of profile power, induced power, and parasitic power. To incorporate energy awareness into the convex planning framework, we mathematically approximate the non-convex model by applying a second-order Taylor expansion around the hovering state v2 (v = 0). For the complex induced power term, let δ = 2v 2, 0 where v0 is the mean induced velocity in hover. In the lowto-medium speed regime (δ ≪ 1), the induced power can be expanded and approximated as: p 1/2 1/2 Pind (v) = Pi 1 + δ2 − δ ≈ Pi (1 − δ)   (37) 1 v2 ≈ Pi 1 − δ = Pi − Pi 2 . 2 4v0 This derivation explicitly reveals the translational lift effect, where the induced power decreases quadratically with air2 ) and speed. Combining this with the profile power P0 (1 + 3v U2 tip

bounding the cubic parasitic drag cd v 3 , the total horizontal power Ph (v) is convexified by constructing a quadratic upper bound: ! 3P0 Pi Ph (v) ≈ (P0 + Pi ) + v 2 + cd v 3 2 − 4v 2 Utip (38) 0 ≤ Phover + µv 2 , where Phover = P0 + Pi is the baseline hovering power, and µ ≥ 0 is a fitted regularization coefficient ensuring the convexity. In a discrete-time framework with time step ∆t, the horizontal energy cost for UAV i is proportional to its squared Euclidean displacement, i.e., Eh,i ∝ ∥pi − pprev ∥22 , i which is strictly convex. For vertical maneuvering, the energy consumption exhibits asymmetry: overcoming gravity requires significant power, whereas descending consumes less energy. To capture this physical behavior within a convex formulation, we model the vertical energy cost using a piecewise linear function of the altitude change ∆zi = zi − ziprev : Ev,i = wup [∆zi ]+ + wdown [−∆zi ]+ ,

(39)

where [x]+ = max(x, 0) is the standard convex rectification function, and wup > wdown are weight coefficients penalizing

8

altitude gain more heavily than altitude loss. The total convexified energy cost is the sum of the horizontal and vertical terms. Regarding the UAV’s motion space, according to the original optimization problem, the UAV flight must satisfy the constraints (1) (3) (4). Except for the collision avoidance constraint, all others are linear or second-order cone constraints. The collision avoidance constraint ensures that the horizontal distance between UAVs remains at least dmin . The feasible region for a UAV in a single time slot is the intersection of the maximum horizontal flight distance circle, the environment boundary, and the exterior of circles centered at other UAVs with radius dmin . This region may be non-convex due to nonempty intersections between the flight distance circle and collision avoidance circles, as shown in the left part of Fig. 2, where the green region represents the feasible domain. To simplify the problem, a stricter tangent constraint is introduced to guarantee the minimum safety distance. As shown in the right subfigure of Fig. 2, by drawing a tangent line at the intersection point between the line connecting the UAVs and the collision avoidance circle, the non-convex feasible region is transformed into a convex feasible region formed by the intersection of the red tangent line and the green circle. Since the primary concern is the horizontal safety distance, the collision avoidance constraint ignores altitude, making the constraint conservative, while altitude control is still incorporated in the motion planning. In a two-dimensional Cartesian coordinate system, let the current UAV be at (x1 , y1 ) and another UAV at (x2 , y2 ), with (x2 , y2 ) located above and to the left. The equation of the line segment between them is:

For all other UAVs, each tangent constraint line is obtained, resulting in a total of U − 1 tangent constraints. The feasible movement region for the UAV within a time slot thus forms a convex set.

2) Sub-Optimization Objectives and Problem Formulation: Considering the consistency between the sub-objectives and the overall optimization objective, the UAV’s flight trajectory must balance coverage quality, communication path loss, and energy consumption. Since poor coverage reduces the available UAV computing resources and flying at excessively high altitudes increases the path loss, the sub-objectives need to jointly consider both coverage and the UAV’s flight altitude. Furthermore, the UAVs’ continuous movement requires significant energy, making energy minimization a crucial component of trajectory planning. Based on the above analysis, for a single UAV i, the initial theoretical optimization objective can be constructed as balancing coverage and altitude: m X

−slj + ωh hi ,

(44)

j=1

where: (

where a, b, and c represent the coefficients of the tangent line. For this constraint, the following inequality holds:

p (x − xi )2 + (yj − yi )2 ≤ zi tan(θmax ) 1, p j , (xj − xi )2 + (yj − yi )2 > zi tan(θmax ) 0, (45) where xj , yj denote the position coordinates of vehicle j, and xi , yi , zi denote the 3D coordinates of UAV i. θmax is the maximum beam angle, and thus zi tan(θmax ) represents the effective coverage radius. slj is an integer variable indicating whether vehicle j is within the UAV’s coverage area. Due to the integer variables, this constitutes an integer programming problem. By applying linear relaxation, slj can be relaxed into a continuous variable sj ∈ [0, 1]. To formulate a tractable convex problem and directly optimize the altitude zi , we convert the coverage condition into a Second-Order Cone (SOC) constraint: q (xj − xi )2 + (yj − yi )2 ≤ zi tan(θmax )+M (1−sj ), (46)

ax1 + by1 + c ≤ 0,

where 0 ≤ sj ≤ 1, and M represents a sufficiently large constant to ensure the constraint holds when sj = 0.

y=

x1 y2 − x2 y1 y1 − y 2 x+ , x1 − x 2 x1 − x 2

x1 ̸= x2

(40)

where x2 ≤ x ≤ x1 and y1 ≤ y ≤ y2 . The tangent constraint line passing through the point (x2 , y2 ) at a distance of dmin from the line segment can be expressed as: ax + by + c ≤ 0,

(41)

(42)

which indicates that the tangent line’s constraint direction is on the side where the current UAV is located, away from the other UAV. Note that if all UAVs are initially deployed such that the minimum horizontal distance constraint is satisfied, and the planned trajectories strictly adhere to the tangent constraints at each time slot, then the current UAV will always remain on the safe side of the tangent line, thus maintaining a safe distance from other UAVs. Under the condition that the UAV remains within the collision avoidance constraint circle, the following inequality must be satisfied simultaneously except inequality (42): ax2 + by2 + c ≥ 0.

(43)

slj =

However, merely relaxing sj cannot precisely reflect the UAV coverage degree, as the solver might indiscriminately assign fractional values to sj . To avoid this, we introduce a soft penalty variable Nj , replace M with a smaller localized bound, and incorporate the vehicle’s instantaneous load Dj as a weight. Moreover, to address the energy consumption, we introduce the energy cost function Jeng,i by incorporating the convexified power models derived in the previous subsection. Specifically, combining the quadratic horizontal energy approximation from (38) and the piecewise linear vertical energy from (39), the

9

energy cost function is defined as:  Jeng,i = weng cxy ∥pi − ppi ∥22 | {z } from Eq. (38)

+ cup [zi − zip ]+ + cdown [−(zi − zip )]+ |

{z



(47) ,

}

from Eq. (39)

where the first term represents the horizontal flight energy cost proportional to the squared displacement, and the subsequent terms capture the asymmetric vertical energy cost. Here, pi = (xi , yi ) and [x]+ = max(x, 0) is the convex rectification function. Considering the difficulty of simultaneously optimizing multiple UAV positions with collision avoidance constraints, we adopt a sequential distributed optimization method. By limiting the sensing range sr , the UAV focuses on the local vehicle distribution. For UAV i, the comprehensive convex optimization problem is expressed as follows: ni,local −1

min x ,y ,z , i

i

i

s,r,N

s.t.

β1

X

ni,local −1

rj + β2

j=0

X

Nj + β3 zi + Jeng,i

B. Resource Scheduling Based on DRL and LLM

j=0

(48a) (48b)

Constraints (3), (42),

∥pj − pi ∥2 ≤ zi tan(θmax ) + Mlinear (1 − sj ) + Nj , (48c) sj (2Dj )2 ≥ −rj ,

(48d)

h ∥pi − ppi ∥22 ≤ (lmax )2 , xmin ≤ xi ≤ xmax , yumin ≤ yi ≤ yumax , u u min max zu ≤ zi ≤ zu , v v zip − lmax ≤ zi ≤ zip + lmax ,

(48e)

0 ≤ sj ≤ 1,

rmin ≤ rj ≤ 0,

3D environment. Eq. (48i) provides the feasible ranges for the auxiliary variables. Since all objective terms are convex and all constraints are linear or SOC forms, this is a standard Second-Order Cone Programming (SOCP) problem. It can be directly and efficiently solved using open-source interior-point solvers. To extend this to multi-UAV coordination without relying on a centralized controller, we propose a distributed sequential optimization framework. Specifically, each UAV independently solves its local SOCP problem in a predefined sequence. Upon determining its optimal trajectory, the UAV broadcasts its updated 3D position and the IDs of its covered vehicles via lightweight inter-UAV communication. To prevent redundant coverage and load imbalance, subsequent UAVs employ a cooperative ”masking” mechanism, deliberately excluding the already-covered vehicles from their local objective functions. This proactive distributed strategy strictly ensures collision avoidance while inherently steering the swarm to maximize the global service area.

(48f) (48g) (48h)

0 ≤ Nj ≤ Nmax , (48i)

where ni,local denotes the number of vehicles within the sensing range of UAV i. The vectors s, r, N represent the sets of auxiliary variables {sj }, {rj }, {Nj } introduced for convex relaxation. The optimization objective (48a) is a weighted linear combination of load-based coverage slack rj , distance penalty Nj , altitude penalty zi , and the energy cost Jeng,i . β1 , β2 , and β3 represent the corresponding weights. Constraints (48b) enforce the minimum separation distance and the tangent-based collision avoidance rules derived in the previous section. Eq. (48c) defines the SOC coverage constraint directly determining the objective values. When a vehicle is inside the UAV’s coverage, its distance to the UAV is less than zi tan(θmax ), which enforces Nj = 0 and sj = 1. According to Eq. (48d), as sj increases, the slack variable rj can take smaller (more negative) values. Reflected in the objective function, smaller values of Nj and rj are preferred. When the distance exceeds the coverage radius, a trade-off must be made: the solver balances whether to move the UAV (incurring energy cost), increase altitude zi (increasing path loss penalty), or increase Nj and decrease sj (abandoning coverage). Constraints (48e) and (48h) limit the UAV’s horizontal and vertical movement distances per time slot. Constraints (48f) and (48g) define the boundaries of the

Given fixed UAV and vehicle positions, communication link states are determined. However, the strong coupling between transmit power and RB occupancy renders the joint resource and task allocation NP-hard. While task allocation is efficiently solvable via Linear Programming, the high-dimensional hybrid discrete-continuous action space of resource scheduling poses significant challenges to traditional DRL, often leading to performance degradation in unexplored scenarios. To address this, we propose a two-stage mechanism: utilizing DRL for global centralized initial scheduling, followed by LLM-based task reallocation based on execution outcomes. 1) DRL-Based Centralized Initial Resource Scheduling: We formulate the joint resource block and power allocation problem as a Markov Decision Process (MDP). Given the continuous nature of the action space, the Deep Deterministic Policy Gradient (DDPG) algorithm is employed. At each time step t, the central agent observes the environment state—incorporating UAV trajectory and task offloading decisions—and outputs scheduling actions. The specific definitions of the MDP tuples are as follows: • State Space: The state captures the network load and channel conditions essential for decision-making. For each vehicle i ∈ {1, . . . , M }, the local normalized observation si consists of the task load Di , V2I/V2U channel qualities (Qiv2i , Qiv2u ), and the UAV connection indicator z1i ∈ {0, 1}. The local state si and the global state vector S are defined as: si = {Di , Qiv2i , Qiv2u , z1i }, S = {s1 , s2 , . . . , sM } (49) •

Action Space: Direct allocation of discrete RBs leads to dimensionality explosion. To mitigate this, we decompose the action into continuous power control and resource priority. For vehicle i, the action is defined as i i ai = [Pnorm , rfi ], where Pnorm ∈ (0, 1) denotes the normalized transmit power and rfi ∈ (0, 1) represents the scheduling priority. The global action vector A maintains

10

USER PROMPT 4 . Prioritize the V2U link rate: Because BS computing resources Task Background Pass are usually fully occupied, while UAV computing resources are Communication Link Description V2I Link: All vehicles can offload tasks to the base station via the V2I abundant. 5 . RB transfer does not require the two tasks to be under the link. V2U Link: Some vehicles can offload tasks to UAVs via the V2U link coverage of the same UAV. Rule 2: Power Adjustment (depending on coverage). 1.Vehicle transmission power can be adjusted to improve channel Resource Allocation RB: Multiple RBs can be allocated to each link. More RBs mean a quality. 2.Constraint: Power range is [9, 23] dBm. higher rate. Power (dBm): Transmission power ranges from [9, 23] dBm. Higher 3 . For tasks with high latency, power can be appropriately increased. power implies better signal quality but higher energy consumption. 4.For source vehicles whose RBs are transferred away, power can Optimization Rules be appropriately increased to compensate for the rate loss. Rule 1: RB Transfer 1 . V2I and V2U share the same resource pool, meaning RBs can be Rule 3: Optimization Priority 1.Prioritize transferring RBs to the target vehicle's V2U link (if the transferred between different link types. 2.RBs can be transferred from any link of a task with surplus resources target has a UAV connection). 2.Secondly, transfer to the V2I link. to any link of a failed task. 3 . Constraint: After the transfer, the source link of the source vehicle 3.Coordinate with power adjustment to improve channel quality. 4.Give priority to helping failed tasks with latency closest to 1.0s. must retain at least 1 RB.

LLM Input Decision Example

Failed Tasks

Surplus tasks

"veh": 20, "veh": 49, "delay": 1.0238, "delay": 1.086, "load": 2.0, "load": 1.0, "total_rbs": 2, "total_rbs": 1, "v2i_rbs": 1, "v2i_rbs": 1, "v2u_rbs": 1, "v2u_rbs": null, "p_v2i_dBm": 9.04, "p_v2i_dBm": 9.0, "p_v2u_dBm": 9.04, "p_v2u_dBm": null, "connected_uav": 1 "connected_uav": null

"veh": 13, "delay": 0.34, "load": 0.5, "total_rbs": 6, "v2i_rbs": 3, "v2u_rbs": 3, "p_v2i_dBm": 9.03, "p_v2u_dBm": 9.03, "connected_uav": 1

"Analysis": "The primary reason for the failures of Veh 20 and Veh 49 is the insufficient allocation of RBs (2 and 1, respectively) and transmission power being at the minimum level. Strategically, for Veh 20, priority is given to utilizing V2U resources (borrowed from Veh 13) with a moderate power increase. For Veh 49 (no UAV connection), aggressive optimization is required by aggregating RBs from Veh 40 and Veh 37 to its V2I link and raising the power to a higher level to ensure successful task completion at the base station." "type": "transfer_rb", "from_v": 40, "from_link": "v2i", "to_v": 49, "to_link": "v2i", "num_rbs": 1, "reason": "Veh 49 has no UAV connection and scarce V2I resources; transfer V2I resources from surplus node Veh 40."

"type": "transfer_rb", "from_v": 37, "from_link": "v2u", "from_uav": 3, "to_v": 49, "to_link": "v2i", "num_rbs": 1, "reason": "Cross-link resource scheduling: transfer surplus V2U RBs from Veh 37 to Veh 49's V2I link to significantly boost bandwidth."

LLM Output

"veh": 40, "veh": 37, "delay": 0.48, "delay": 0.34, "load": 1.0, "load": 0.5, "total_rbs": 6, "total_rbs": 6, "v2i_rbs": 3, "v2i_rbs": 3, "v2u_rbs": 3, "v2u_rbs": 3, "p_v2i_dBm": 9.0, "p_v2i_dBm": 23.0, "p_v2u_dBm": 9.0, "p_v2u_dBm": 23.0, "connected_uav": 3 "connected_uav": 4

"type": "update_power", "veh": 20, "link_type": "v2u", "new_power_dBm": 18, "reason": "Increase Veh 20 V2U transmission power to improve channel quality and ensure delay drops below 1.0s."

"type": "transfer_rb", "from_v": 13, "from_link": "v2u", "from_uav": 1, "to_v": 20, "to_link": "v2u", "to_uav": 1, "num_rbs": 1, "reason": "Veh 20 delay slightly exceeds the threshold; transfer RBs from the resourcesurplus Veh 13 under the same UAV to enhance the V2U link."

"type": "update_power", "veh": 49, "link_type": "v2i", "new_power_dBm": 21, "reason": "Veh 49 relies solely on V2I with a low rate; substantially increase power to compensate for long-distance transmission path loss."

Fig. 3 LLM Prompts and Decision Examples a fixed dimension of M × 2. During execution, the environment calculates the RB quota for each vehicle based on the weighted proportion of priorities rf , followed by a greedy assignment of specific RB indices based on optimal channel gains. • Reward Function: To align the learning objective with system optimization, the reward is derived from the LP solution. Upon action execution and resource mapping, the system calculates the current objective function value. The immediate reward is defined as the negative of this cost to guide the agent toward minimization: ! M X rt = − ω1 T + ω2 E + ω3 ξm . (50) m=1 To handle high-dimensional states and continuous action spaces, we design a DDPG-based Actor-Critic architecture utilizing the following neural network structures: Actor Network: The policy network µ(s|θµ ) employs a Multi-Layer Perceptron (MLP). To prevent gradient vanishing and accelerate feature extraction, Layer Normalization is applied to the hidden layers. A Sigmoid activation function is used at the output layer to strictly bound the power control factors and priority weights within the (0, 1) interval. Q • Critic Network: The value network Q(s, a|θ ) adopts a dual-stream architecture. State features S and action features A are extracted via independent linear layers before being concatenated in deep hidden layers. This fused representation is mapped to a scalar Q-value, estimating the expected long-term return. •

During training, Gaussian noise is added to the Actor’s output to encourage exploration of the action space. Transitions (st , at , rt , st+1 ) are stored in a Replay Buffer. To ensure training stability and break temporal correlations between sequential data, the networks are updated offline using random mini-batches of size Bbatch sampled from the buffer. The update of the Critic network is based on the Bellman optimality equation. For each sampled transition i, the target Q-value yi is composed of the immediate reward from the

environment and the discounted Q-value of the next state predicted by the target network: ′

′

yi = ri + γQ′ (si+1 , µ′ (si+1 |θµ )|θQ )

(51)

where γ is the discount factor, and µ′ and Q′ represent the target Actor and target Critic networks, respectively. The Critic network calculates the loss function by minimizing the Mean Squared Error (MSE) between the online network prediction and the target value: L(θQ ) =

1

BX b atch

Bbatch

i=1

2 yi − Q(si , ai |θQ )

(52)

Subsequently, the parameters θQ of the Critic network are updated using the gradient descent method. The update of the Actor network relies on the Deterministic Policy Gradient theorem. Its optimization objective is to find the policy parameters that maximize the value evaluated by the Critic network. Specifically, the algorithm fixes the parameters of the Critic network, uses the output of the Actor network as the action input to the Critic, and calculates the gradient of the Q-value with respect to the Actor network parameters θµ via the chain rule: M

1 X ∇ J≈ ∇a Q(s, a|θQ )|s=si ,a=µ(si ) · ∇θµ µ(s|θµ )|s=si M i=1 (53) The Actor network is then updated using the gradient ascent method. Finally, to ensure training stability, the target networks do not directly copy the parameters of the online networks but instead employ a Soft Update strategy. After each iteration, the target network parameters slowly track the changes in the online network parameters with a very small learning rate τ : θµ

′

′

′

′

θQ ← τ θQ + (1 − τ )θQ θµ ← τ θµ + (1 − τ )θµ

(54) (55)

Through the aforementioned interaction and alternating up-

11

date process, the DRL agent gradually converges to an approximately optimal resource scheduling policy, thereby providing a high-quality initial allocation baseline for outlier assessment and long-tail task reallocation in the subsequent LLM stage. 2) LLM-Based Macro-Adjustment Method: As discussed, while DRL ensures efficient decision-making in typical scenarios, its limited exploration often causes severe performance degradation in long-tail or unexplored environments due to poor generalization. To overcome this inherent limitation, we integrate LLMs into our framework. Pre-trained on massive datasets, LLMs possess strong logical reasoning and generalization capabilities. Leveraged by In-Context Learning (ICL), LLMs can execute zero-shot or few-shot reasoning, demonstrating robust adaptability to novel tasks without retraining [59]. Furthermore, Chain-of-Thought (CoT) prompting enables transparent, human-like inference, providing strong interpretability for the scheduling decisions. Consequently, we propose an LLM-based macro-adjustment framework to monitor and refine DRL-generated policies, effectively alleviating the generalization bottleneck. Within the alternating optimization framework, given the fixed UAV and vehicle positions, the DRL agent first determines the initial RB and transmit power allocations, followed by the LP-based task offloading scheme. Based on this initial allocation, the system estimates the task completion time for each vehicle to verify compliance with strict latency constraints. This evaluation rapidly identifies two extreme subsets: failed tasks (violating the latency threshold) and surplus tasks (completing well ahead of schedule with abundant redundant resources). Targeting these edge cases, the LLM acts as a centralized macro-scheduler to reallocate communication resources and fine-tune transmit powers. This semantic intervention mitigates resource imbalances and rescues failing tasks, ultimately maximizing the overall task success rate. Despite the massive parameter scale of typical LLMs, deploying quantized lightweight models at the network edge has become increasingly viable. Furthermore, because our scheduling task relies on highly structured prompts, KV caching can be fully leveraged. By caching the attention keys and values of static prompt prefixes, the system eliminates redundant forward-pass computations during continuous invocations, thereby drastically reducing inference latency and computational overhead at the edge. To instantiate this framework, a customized prompt template is designed to encode the specific networking constraints. Additionally, advanced large-scale LLMs are utilized offline to generate high-quality scheduling examples, providing fewshot guidance for the deployed edge model. Consequently, the input sequence is structured into three distinct components: the system prompt (Psys ), the few-shot examples (Peg ), and the dynamic observation data (Pdata ). This structured input is formally expressed as the concatenated token sequence X : X = [Psys ⊕ Peg ⊕ Pdata ]

(56)

where ⊕ denotes the token concatenation operation. The prompt instructions and examples (Psys ⊕ Peg ) typically occupy the vast majority of the context window and remain strictly static. Consequently, their KV cache is pre-computed

and stored. The dynamic data portion Pdata , formatted as serialized JSON arrays detailing the failed and surplus tasks, constitutes only a minimal fraction of the tokens, meaning the LLM only needs to compute the attention weights for this newly injected data. Upon receiving the input sequence X , the LLM conducts contextual analysis and generates a set of adjustment actions alongside a brief reasoning analysis. Based on the system constraints, the LLM is authorized to execute two types of macroactions: RB Transfer and Power Update. For RB transfer, the LLM can intelligently shift resources across different links (e.g., from a surplus V2I link to a failing V2U link), under the hard constraint that the source link must retain at least one RB. For power updates, the transmit power of critically delayed links can be boosted within the feasible bounds [Pmin , Pmax ] to compensate for poor channel qualities. The output generation process is formulated as: ALLM , RCoT ∼ LLM(X )

(57)

where ALLM represents the parsed, strictly JSONformatted list of optimal actions (e.g., transfer_rb, update_power), and RCoT denotes the natural language rationale explaining the underlying optimization logic. Through this LLM-guided macro-adjustment, the system effectively compensates for the heuristic flaws of the DRL agent in edgecase scenarios, achieving a highly reliable and interpretable resource scheduling paradigm. Fig. 3 presents the key prompts provided to the LLM alongside a concrete decision-making example. Given the length of the complete prompt, the figure highlights the core decision rules; detailed definitions of actions, the semantics of input data, and the decision background are available in the code repository linked earlier. As observed in the example, the LLM not only clearly specifies the actions to be executed but also articulates the rationales behind them. This significantly enhances the interpretability of the decision-making process, highlighting a unique advantage of utilizing LLMs. C. LP-Based Task Offloading Method Once the UAV trajectory and initial resource allocation are determined, the communication link states are fixed. Consequently, the optimization variables are reduced to task offloading ratios and queuing delays. However, according to equations (24) and (25), queuing delay depends on the specific data arrival order, which is strictly coupled with offloading decisions. This coupling renders the queuing delay incapable of being expressed in a closed form, making the original problem non-convex. To decouple these variables, we incorporate task offloading into an alternating optimization framework. We introduce an estimated queuing delay parameter Q̂km for vehicle m at node k (where k ∈ {I, u} represents the BS or UAV u). To ensure accurate estimation throughout the optimization process, Q̂km is defined as a piecewise function of the iteration index i: ( Q̄k (Dm ), if i = 0 k (58) Q̂m = Qkm,prev , if i > 0

12

where Qkm,prev denotes the actual queuing delay calculated from the solution of the previous iteration. For the initialization phase (i = 0), we employ a load-aware historical average. Let Qkhist (D) denote the set of historical queuing delays at node k under a specific task load D. The average queuing delay Q̄k (Dm ) corresponds to the current task load Dm of vehicle m, calculated as: X 1 q, (59) Q̄k (Dm ) = k |Qhist (Dm )| k q∈Qhist (Dm )

where | · | denotes the cardinality. During the iterative process (i > 0), since the macroscopic load distribution at edge nodes remains relatively stable during LLM fine-tuning, the queuing delay from the previous LP solution serves as a valid estimate. By fixing the queuing delays to the estimated values Q̂Im and u Q̂m , the overall optimization problem simplifies to a standard LP problem with respect to the offloading ratios γ: min ω1 Tm + ω2 E + ω3 γ

s.t.

M X

ξm ,

(60a)

u u αm γm = 1, ∀m,

(60b)

m=1 o I γm + γm +

U X u=1

M X m=1 M X

u u u αm Dm γm ≤ Dmax , ∀u,

(60c)

I I Dm γm ≤ Dmax ,

(60d)

m=1

Dm c o γm , ∀m, fm  Dm c Dm I + Tm ≥ γm + Q̂Im , ∀m, I Rm fI  U  X Dm c Dm u + γm + Q̂um , ∀m, Tm ≥ u R f u m u=1 Tm ≥

max Tm ≤ Tm + ξm , ∀m, o I u Tm , ξm ≥ 0; γm , γm , γm ∈ [0, 1].

(60e) (60f) (60g) (60h) (60i)

Where constraints (60c)–(60d) define the capacity limits. Constraint (60h) imposes latency thresholds with a slack variable ξm . Crucially, in constraints (60f) and (60g), Q̂Im and Q̂um are constant parameters determined by Eq. (58), transforming the delay calculation into a linear Min-Max framework. Consequently, the problem can be efficiently solved using standard LP algorithms. Algorithm 1 delineates the hierarchical execution flow of the proposed joint optimization framework. In each decision slot, the process commences with distributed trajectory planning, where UAV positions are updated via sequential convex optimization to adapt to the dynamic vehicle topology. Subsequently, the resource scheduling enters a closed-loop “DRL-LP-LLM-LP” sequence. The DRL agent first generates provisional resource and power allocations, serving as the basis for a preliminary LP solution. This step serves a dual purpose: quantifying the intrinsic cost Ψdrl of the DRL policy and identifying long-tail failure tasks via estimated completion times. Consequently, the LLM performs semantic macro-

Algorithm 1: Joint Trajectory Control and Resource Scheduling based on DRL and LLM Input: Network topology, time slots K, vehicles M , UAVs U , LLM prompts Psys and Peg . Output: Sequences of optimal T∗ , R∗ , P∗ , and γ ∗ . µ Q µ′ Q′ 1 Initialize DDPG networks θ , θ , θ , θ , replay buffer D; 2 Pre-compute static LLM KV cache: CKV ← KV Cache(Psys ⊕ Peg ); 3 Initialize historical queuing delay estimates Q̂; 4 for t = 1 to K do 5 // 1. Sequential UAV Optimization 6 For u = 1 to U, sequentially update position (xu (t), yu (t), zu (t)) ∈ Cu ; 7 Update communication link states and channel qualities; 8 // 2. DRL-based Initial Scheduling 9 Observe state st , generate action at = µ(st |θµ ) + N ; 10 Map at to initial resource allocation Rdrl and power Pdrl ; 11 /* Solve 1st LP to estimate times and extract delays for next steps */ 12 Solve LP (60) given (Rdrl , Pdrl , Q̂) to obtain cost Ψdrl , task completion times Tcomp , and updated queuing delays Qnew ; 13 Update Q̂ ← Qnew for the subsequent LP optimization; 14 // 3. LLM-based Macro-Adjustment 15 Identify failed_tasks and surplus_tasks based on Tcomp ; 16 if failed_tasks ̸= ∅ then 17 Construct dynamic data prompt Pdata and full sequence X ← [Psys ⊕ Peg ⊕ Pdata ]; 18 Obtain macro-actions ALLM ∼ LLM(X ) leveraging CKV ; 19 Apply valid actions after constraint checking to obtain Rllm , Pllm ; 20 else 21 Retain initial allocations: Rllm ← Rdrl , Pllm ← Pdrl ; 22 end 23 /* Solve 2nd LP using LLM-adjusted resources and updated delays */ 24 Solve LP (60) given (Rllm , Pllm , Q̂) to obtain final γ ∗t , actual cost Ψ∗t , and final delays Q∗ ; 25 Update Q̂ ← Q∗ for the next time slot t + 1; 26 // 4. DDPG Network Update 27 Store tuple (st , at , rt = −Ψdrl , st+1 ) into D if |D| ≥ Bbatch then 28 Sample mini-batch of size Bbatch from D, compute target yi ; 29 Update Critic θQ by minimizing MSE loss L(θQ ); 30 Update Actor θµ by maximizing policy gradient ∇θµ J; ′ ′ 31 Soft update target networks θQ and θµ ; 32 end 33 end ∗ ∗ ∗ ∗ 34 return Sequence of (T , R , P , γ );

adjustments on the resource allocation, and the refined state drives a second LP solve to derive the final offloading ratios γ ∗ . Crucially, during the network update phase, the reward signal stored in the replay buffer is strictly coupled with the DRL’s original action. This reward decoupling mechanism effectively prevents policy gradient bias caused by external LLM interventions, ensuring the stability and convergence of the reinforcement learning process.

13

TABLE I: System Parameters

D. Convergence and Complexity Analysis The proposed joint optimization framework is decoupled into two sequential stages: Block Coordinate Descent (BCD)based UAV trajectory planning, and a hybrid DRL-LLM-LP closed-loop for resource and task scheduling. In the first stage, the multi-UAV cooperative trajectory problem is solved by sequentially optimizing each UAV’s trajectory while fixing the others, formulating each sub-problem as a SOCP. Since the objective function is lower-bounded within a compact feasible region and each SOCP is strictly convex, standard convex analysis guarantees that this sequential update monotonically converges to a local optimum. Subsequently, with the trajectories fixed, the system minimizes the total cost J , which encompasses latency, energy, and penalties, through the iterative DRL → LP → LLM → LP execution loop. Although DRL and LLMs are fundamentally heuristic, the embedded LP guarantees the globally optimal offloading ratios γ ∗ for any intermediate resource allocation state. Furthermore, the LLM is explicitly prompted to minimize the penalty ξm of long-tail tasks and only intervenes when performance bottlenecks are detected. This conditional semantic intervention probabilistically ensures the monotonic non-increase of J . Given the lower-bounded nature of the physical constraints, the overall algorithm reliably converges to a stable solution within finite iterations. The total computational overhead is decomposed into three components: trajectory planning, neural network inference, and linear programming. Let Ltraj and Lloop denote the number of iterations for the trajectory and resource scheduling stages, respectively. First, solving the trajectory SOCP via the Interior Point Method (IPM) for a single UAV involves O(K) variables and O(KU ) constraints, yielding a complexity of O(K 3.5 ). Accounting for the vehicle-load-based objective construction, the total trajectory planning complexity scales as O(Ltraj U (K 3.5 +M K)). Second, the DRLPActor network incurs a negligible inference overhead of O( nl nl−1 ). For the LLM, adopting a Mixture-of-Experts (MoE) architecture (e.g., Qwen3-235B-A22B) significantly curtails the computational burden by activating only Pact ≈ 22 × 109 parameters per token. Furthermore, by leveraging KV caching to pre-compute static prompt attention, the inference complexity scales linearly only with the dynamic input and output tokens, culminating in O((Sdyn +Sout )Pact ). Finally, solving the 3M -variable task offloading LP via IPM requires O(M 3.5 ) operations. Executed twice per scheduling loop, this contributes O(M 3.5 ) per loop. In summary, the total computational complexity per decision slot is formulated as:  Ctotal ≈ O Ltraj U (K 3.5 + M K)+  (61)   Lloop (Sdyn + Sout )Pact + 2M 3.5 Given that M , U , and K are finite constants and the MoE architecture significantly mitigates the computational burden of the LLM, the proposed algorithm demonstrates feasibility for deployment at the network edge while ensuring superior system performance.

Parameter

Value

Parameter

Value

Number of vehicles Number of UAVs Slot duration UAV max horizontal movement UAV max vertical movement LoS angle

50 5 1s 15 m

Carrier frequency Parameter ωa Parameter ωb BS computation frequency UAV computation frequency OBU frequency

2.4 GHz 9.61 [53] 0.16 [53] 9 GHz

Delay weight ω1 Energy weight ω2 Delay weight ω3 Task deadline Total bandwidth B CPU cycles per bit Vehicle task size

1 0.001/0.02 5 1s 10 MHz 1000 0/0.5/1/2 Mb 30–50 Mb

UAV sensing range Min flight altitude Max flight altitude ηLoS ηNLoS RB bandwidth Vehicle speed Capacitance activation coefficient

10 m 42.44◦ [45] 70 m 50 m 100 m 1 dB 20 dB 180 kHz 10–15 m/s 10−27

Total load per slot

5 GHz 0.5 GHz

IV. S IMULATION R ESULTS In this section, simulation experiments are conducted based on the considered high-density vehicular environment. The simulation platform is implemented in Python, with convex optimization problems solved using the cvxpy and linprog libraries. The LLM employed is the open-source Qwen3-235B-A22B. Numerical and visualization results verify the effectiveness of the proposed method. The main simulation parameters are summarized in Tab. I. In the comparative experiments, UAV flight trajectory control is implemented using Convex Optimization (CVX), a Large Vision Model (LVM), and Multi-Agent Deep QNetworks (MADQN). The resource allocation component compares our collaborative DDPG & LLM approach against a standalone DDPG baseline (ablation study). Task ratio allocation is performed using either the MADDPG algorithm or a LP algorithm. Corresponding to the three subproblems addressed in this paper, the combinations of comparison algorithms are configured as follows: Proposed: CVX (Trajectory) + DDPG & LLM (Resource) + LP (Task) • DRL-Resource (No LLM): CVX + DDPG + LP • MADQN-Traj: MADQN + DDPG + LP • LVM-Traj: LVM + DDPG + LP • Full-MADRL: MADQN + DDPG + MADDPG • MADDPG-Task: CVX + DDPG + MADDPG •

These combinations are utilized to decouple and evaluate the impact of different modules on overall system performance. A. UAV Path Planning Performance To evaluate the performance of UAV path planning, in conjunction with Eq. (44) and comprehensively considering the number of covered vehicles, UAV flight altitude, and flight energy consumption, the performance metric Rt is defined as: Rt =

M X j=1

slj − ωh

U X u=1

hu − ωe Ef light ,

(62)

14

Fig. 4 Comparison between fixed height (50m) and variable height strategies

where ωh and ωe are weights for altitude penalty and energy consumption, respectively. Fig. 4 illustrates the UAV positions and coverage under a single decision instance for both fixed and variable UAV altitude strategies. Roads in different directions are represented by distinct colors, and the optimization order follows the UAV indices sequentially. In the left subfigure, it is observed that with a fixed altitude and dispersed vehicle distribution, each UAV can cover only a small fraction of vehicles. Coverage is noticeably improved in the right subfigure, where UAVs tend to shrink their coverage radii to precisely encompass target vehicles, avoiding unnecessarily large coverage areas—as exemplified by UAV 1 (orange), UAV 2 (purple), and UAV 3 (yellow). Moreover, the flexibility afforded by altitude variation enables the algorithm to better identify vehicles near the coverage boundary, thereby optimizing the objective value Rt through altitude adjustments. Fig. 5 depicts the flight trajectories of five UAVs over 20 consecutive time slots, marking the vehicle positions and UAV coverage at the final slot. It can be seen that UAVs tend to cruise within their respective local regions. This is because, when constructing the observation space for each UAV, we masked vehicles already covered by peers, implicitly promoting cooperative coverage among the swarm. Maintaining such a loosely distributed formation maximizes the total coverage area, allowing each UAV to capture local vehicle distribution changes and adjust its position accordingly. Fig. 6 compares the performance of different trajectory planning algorithms under metric Rt . Due to fixed initial positions, the first optimization round typically involves significant adjustments in altitude and position, resulting in higher energy consumption and lower metric values; subsequent steps tend to stabilize. The CVX-based method significantly outperforms others, as convex optimization guarantees finding the global optimum. In contrast, LVM-based and MADQN-based methods perform worse, as learning-based approaches often converge to local optima. Under fixed altitude constraints, the performance gap between CVX and learning-based methods narrows, indicating that the decision space in the altitude

dimension is critical for performance enhancement. B. Performance Comparison Fig. 7 shows the average system task completion time under different total loads. The Proposed and DRL-Resource (No LLM) methods achieve the best performance. In the Proposed method, the LLM enhances fairness by reallocating communication resources for long-tail tasks, improving the task success rate. However, since this is a multi-objective problem, according to the Pareto principle, such adjustments inevitably lead to a slight increase in average delay compared to the DRL-Resource method. Trajectory planning methods based on LVM and MADQN perform slightly worse; as shown in Fig. 4, their inferior coverage quality compared to CVX leads to higher communication delays. Among the modules, the task offloading scheme has the most significant impact on delay. The LP-based method precisely solves for optimal allocation, resulting in lower delay, whereas DDPGbased methods struggle to find the optimum due to learning bottlenecks, yielding higher task completion latencies. Fig. 8 compares the weighted normalized energy consumption of different methods (Light color: flight; Medium: computation; Dark: communication; Weights: 0.3:1:100). MADQN and LVM methods exhibit lower flight energy consumption because they tend to make conservative altitude adjustments, sacrificing coverage precision for energy savings. The MADDPGbased task allocation method incurs higher computation energy consumption as it tends to offload more tasks to highfrequency base stations. In contrast, the LP-based method balances energy and delay more effectively. Fig. 9 shows the average task success rate, defined as the proportion of tasks completed within the deadline. As the total load per slot increases, the success rate of all methods decreases due to the limited total computing capacity of the environment. When the load approaches the capacity limit, base stations and some UAVs reach saturation, forcing some vehicles to compute locally and resulting in timeouts. Notably, the Proposed method significantly improves the success rate by using the LLM to reallocate resources for failed

15

Fig. 5 UAV historical movement trajectory

Fig. 8 Energy vs. Load

(a) vehicle allocation ratios

Fig. 7 Delay vs. Load

Fig. 6 Average coverage metric comparison

Fig. 9 Success Rate vs. Load

Fig. 10 Total Objective vs. Load

(b) vehicle delay components

(c) load distribution

Fig. 11 Task Allocation Strategy with Emphasis on Delay and surplus tasks, allowing potential failures to be offloaded earlier. Furthermore, the success rates of MADDPG and FullMADRL combinations drop sharply with increasing load. This is because MADDPG-based allocation fails to strictly enforce queue capacity constraints, leading to inevitable task failures upon overflow. Fig. 10 compares different methods in terms of the total objective function value (36a). Given the multi-objective nature of the problem, LP-based methods perform better overall, as mathematical solvers are most effective at minimizing the Min-Max latency of components. The LVM-based method shows a sharp increase in objective value when the load reaches 40 Mb, corresponding to the rise in average task completion time in Fig. 7. The Proposed method achieves a higher success rate, translating to a smaller penalty for delay

violations, and thus a lower total objective value. C. Analysis of Task Allocation Strategies Fig. 11 and Fig. 12 illustrate the strategic differences in a single decision instance under varying weights for delay and energy consumption. Fig. 11 shows the allocation results when focusing solely on delay (energy weight ≈ 0). As seen in Fig. 11(c), the base station load quickly reaches its 9 Mb limit. Most vehicles prioritize allocating tasks to the base station; once full, tasks spill over to UAVs, and finally to local computation. In Fig. 11(b), the completion times for different parts of most vehicle tasks are equal, aligning with the intuition of minimizing the maximum completion time (Make-span) by balancing loads across nodes. Fig. 12 shows the results when energy consumption is heavily weighted. The proportion of tasks assigned to UAVs

16

(a) vehicle allocation ratios

(b) vehicle delay components

(c) load distribution

Fig. 12 Allocation Strategy with Emphasis on Energy Consumption increases significantly (Fig. 12(c)), while the base station load decreases. Fig. 12(a) shows that most vehicles allocate tasks exclusively to UAVs, bypassing the base station. However, Vehicle 3, located outside the UAV coverage area, is forced to offload to the base station, demonstrating the algorithm’s adaptability to topological constraints. It is noteworthy that these experiments were conducted under a moderate load of 30 Mb. When the load increases to 50 Mb, the resulting strategies become identical regardless of weight settings. This is because, as the system approaches its capacity limit, the feasibility of balancing delay and energy is lost; all available computing resources must be fully utilized to avoid task failures. V. C ONCLUSION In this paper, we propose a joint optimization framework for 3D trajectory control, resource allocation, and task offloading in multi-UAV-assisted IoV systems. To address the coupling and non-convexity of the problem, we decompose it into three subproblems and solve them via a hierarchical execution flow. Specifically, a sequential distributed optimization algorithm based on SOCP is developed to optimize UAV trajectories under dynamic vehicle topologies. To overcome the generalization limitations of traditional DRL in longtail scenarios, we introduce an LLM-based macro-scheduler within an alternating optimization loop. This framework synergizes the high-efficiency initial scheduling of DRL with the semantic reasoning capabilities of LLMs, enabling precise resource reallocation for failed and surplus tasks. Crucially, a reward decoupling mechanism is implemented to ensure the training stability of the DRL agent under external interventions. Simulation results demonstrate that the proposed method significantly outperforms baseline algorithms (e.g., MADRL, MADQN) in terms of task success rate, system latency, and energy efficiency. Furthermore, the integration of KV caching and MoE architecture ensures the feasibility of deploying large-scale models at the network edge. Future work will explore the coordination of heterogeneous UAV swarms and the integration of multi-modal LLMs for complex urban semantic environment perception. R EFERENCES [1] A. Zanella, N. Bui, A. Castellani, L. Vangelista, and M. Zorzi, “Internet of Things for smart cities,” IEEE Internet Things J., vol. 1, no. 1, pp. 22–32, 2014.

[2] J. Chu, Q. Wu, P. Fan, W. Chen, K. Wang, N. Cheng, and K. B. Letaief, “V2X-assisted distributed computing and control framework for connected and automated CAVs under ramp merging scenario,” IEEE Trans. Mobile Comput., Early Access, 2026, doi: https://doi.org/10.1109/ TMC.2026.3650774. [3] Q. Wu, H. Liu, C. Zhang, Q. Fan, Z. Li, and K. Wang, “Trajectory protection schemes based on a gravity mobility model in IoT,” Electronics, vol. 8, no. 2, p. 148, 2019. [4] Q. Wu and J. Zheng, “Performance modeling and analysis of the ADHOC MAC protocol for VANETs,” in Proc. IEEE Int. Conf. Commun. (ICC), London, UK, 2015, pp. 3646–3652. [5] Q. Wu, S. Xia, Q. Fan, and Z. Li, “Performance analysis of IEEE 802.11 p for continuous backoff freezing in IoV,” Electronics, vol. 8, no. 12, p. 1404, 2019. [6] Q. Wu, S. Nie, P. Fan, H. Liu, F. Qiang, and Z. Li, “A swarming approach to optimize the one-hop delay in smart driving inter-platoon communications,” Sensors, vol. 18, no. 10, p. 3307, 2018. [7] Q. Wu and J. Zheng, “Performance modeling and analysis of the ADHOC MAC protocol for vehicular networks,” Wireless Netw., vol. 22, no. 3, pp. 799–812, 2016. [8] Q. Wu and J. Zheng, “Performance modeling and analysis of IEEE 802.11 DCF based fair channel access for vehicle-to-roadside communication in a non-saturated state,” Wireless Netw., vol. 21, no. 1, pp. 1–11, 2015. [9] M. H. C. Garcia, A. Molina-Galan, M. Boban, J. Gozalvez, B. CollPerales, T. Şahin, and A. Kousaridas, “A tutorial on 5G NR V2X communications,” IEEE Commun. Surveys Tuts., vol. 23, no. 3, pp. 1972–2026, 2021. [10] K. Abboud, H. A. Omar, and W. Zhuang, “Interworking of DSRC and cellular network technologies for V2X communications: A survey,” IEEE Trans. Veh. Technol., vol. 65, no. 12, pp. 9457–9470, 2016. [11] Q. Wu and J. Zheng, “Performance modeling of the IEEE 802.11 p EDCA mechanism for VANET,” in Proc. IEEE Global Commun. Conf. (GLOBECOM), Austin, TX, USA, 2014, pp. 57–63. [12] Z. Zhang, Q. Wu, P. Fan, N. Cheng, W. Chen, and K. B. Letaief, “DRLbased optimization for AoI and energy consumption in C-V2X enabled IoV,” IEEE Trans. Green Commun. Netw., early access, 2025. [13] J. Fan, S. Yin, Q. Wu, and F. Gao, “Study on refined deployment of wireless mesh sensor network,” in Proc. 6th Int. Conf. Wireless Commun. Netw. Mobile Comput. (WiCOM), Chengdu, China, 2010, pp. 1–5. [14] K. Xiong, P. Fan, Z. Xu, H. C. Yang, and K. B. Letaief, “Optimal cooperative beamforming design for MIMO decode-and-forward relay channels,” IEEE Trans. Signal Process., vol. 62, no. 6, pp. 1476–1489, 2014. [15] Y. Yang and P. Fan, “Doppler frequency offset estimation and diversity reception scheme of high-speed railway with multiple antennas on separated carriage,” J. Mod. Transport., vol. 20, no. 4, pp. 227–233, 2012. [16] H. Zhou, P. Fan, and J. Li, “Global proportional fair scheduling for networks with multiple base stations,” IEEE Trans. Veh. Technol., vol. 60, no. 4, pp. 1867–1879, 2011. [17] Q. Wu, Y. Xie, P. Fan, D. Qin, K. Wang, and K. B. Letaief, “Large language model-based task offloading and resource allocation for digital twin edge computing networks,” IEEE Trans. Mobile Comput., Early Access, 2026, doi: https://doi.org/10.1109/TMC.2026.3664866. [18] Y. Xie, Q. Wu, P. Fan, N. Cheng, W. Chen, J. Wang, and K. B. Letaief, “Resource allocation for twin maintenance and task processing in vehicular edge computing network,” IEEE Internet Things J., vol. 12, no. 15, pp. 32008–32021, Aug. 2025.

17

[19] P. Mach and Z. Becvar, “Mobile edge computing: A survey on architecture and computation offloading,” IEEE Commun. Surveys Tuts., vol. 19, no. 3, pp. 1628–1656, 2017. [20] X. Xu, Q. Wu, P. Fan, K. Wang, N. Cheng, W. Chen, and K. B. Letaief, “Velocity-adaptive access scheme for semantic-aware vehicular networks: Joint fairness and AoI optimization,” IEEE Trans. Mobile Comput., Early Access, 2026, doi: https://doi.org/10.1109/TMC.2026. 3667698. [21] X. Xu, Q. Wu, P. Fan, K. Wang, N. Cheng, W. Chen, and K. B. Letaief, “Enhanced velocity-adaptive scheme: Joint fair access and age of information optimization in vehicular networks,” IEEE Trans. Mobile Comput., vol. 25, no. 3, pp. 3488–3505, Mar. 2026. [22] Q. Wang, D. O. Wu, and P. Fan, “Delay-constrained optimal link scheduling in wireless sensor networks,” IEEE Trans. Veh. Technol., vol. 59, no. 9, pp. 4564–4577, 2010. [23] W. Li, J. Li, and P. Fan, “Network coding for two-way relaying networks over Rayleigh fading channels,” IEEE Trans. Veh. Technol., vol. 59, no. 9, pp. 4476–4488, 2010. [24] J. Zhang, P. Fan, and K. B. Letaief, “Network coding for efficient multicast routing in wireless ad-hoc networks,” IEEE Trans. Commun., vol. 56, no. 4, pp. 598–607, 2008. [25] Z. Yao, J. Jiang, P. Fan, Z. Cao, and V. O. K. Li, “A neighbor-table-based multipath routing in ad hoc networks,” in Proc. 57th IEEE Semiannu. Veh. Technol. Conf. (VTC Spring), Jeju, South Korea, 2003, pp. 1739– 1743. [26] P. Fan, C. Feng, Y. Wang, and N. Ge, “Investigation of the time-offsetbased QoS support with optical burst switching in WDM networks,” in Proc. IEEE Int. Conf. Commun. (ICC), New York, NY, USA, 2002, pp. 2682–2686. [27] P. Fan and X.-G. Xia, “Block coded modulation for the reduction of the peak to average power ratio in OFDM systems,” in Proc. IEEE Wireless Commun. Netw. Conf. (WCNC), New Orleans, LA, USA, 1999, pp. 1095–1099. [28] Q. Wu, X. Wang, Q. Fan, P. Fan, C. Zhang, and Z. Li, “High stable and accurate vehicle selection scheme based on federated edge learning in vehicular networks,” China Commun., vol. 20, no. 3, pp. 1–17, 2023. [29] X. Di, K. Xiong, P. Fan, H. C. Yang, and K. B. Letaief, “Optimal resource allocation in wireless powered communication networks with user cooperation,” IEEE Trans. Wireless Commun., vol. 16, no. 12, pp. 7936–7949, 2017. [30] X. Wang, K. Tao, N. Cheng, Z. Yin, Z. Li, Y. Zhang, and X. Shen, “RadioDiff: An effective generative diffusion model for sampling-free dynamic radio map construction,” IEEE Trans. Cogn. Commun. Netw., vol. 11, no. 2, pp. 738–750, 2025. [31] X. Wang, Q. Zhang, N. Cheng, R. Sun, Z. Li, S. Cui, and X. Shen, “RadioDiff-k2 : Helmholtz equation informed generative diffusion model for multi-path aware radio map construction,” IEEE J. Sel. Areas Commun., vol. 44, pp. 2318–2333, 2026. [32] M. B. Ameur, J. Chebil, J. B. Hadj Tahar, M. H. Habaebi, and H. Zormati, “Path loss prediction for V2I communications systems: A performance analysis of propagation models,” in Proc. Int. Microw. Antenna Symp. (IMAS), Marrakech, Morocco, 2024, pp. 1–5. [33] Y. Zhao, Z. Li, N. Cheng, B. Hao, and X. Shen, “Joint UAV position and power optimization for accurate regional localization in space-air integrated localization network,” IEEE Internet Things J., vol. 8, no. 6, pp. 4841–4854, 2021. [34] Y. Quan, N. Cheng, X. Wang, J. Shen, L. Ma, and Z. Yin, “Interpretable and secure trajectory optimization for UAV-assisted communication,” in Proc. IEEE/CIC Int. Conf. Commun. China (ICCC), Dalian, China, 2023, pp. 1–6. [35] M. Yan, R. Xiong, Y. Wang, and C. Li, “Edge computing task offloading optimization for a UAV-assisted Internet of Vehicles via deep reinforcement learning,” IEEE Trans. Veh. Technol., vol. 73, no. 4, pp. 5647–5658, 2024. [36] X. Liu, B. Lai, B. Lin, and V. C. M. Leung, “Joint communication and trajectory optimization for multi-UAV enabled mobile Internet of Vehicles,” IEEE Trans. Intell. Transp. Syst., vol. 23, no. 9, pp. 15 354– 15 366, 2022. [37] Z. Wu, Z. Yang, C. Yang, J. Lin, Y. Liu, and X. Chen, “Joint deployment and trajectory optimization in UAV-assisted vehicular edge computing networks,” J. Commun. Netw., vol. 24, no. 1, pp. 47–58, 2022. [38] Y. Wang, Z. Tang, A. Huang, H. Zhang, L. Chang, and J. Pan, “Placement of UAV-mounted edge servers for Internet of Vehicles,” IEEE Trans. Veh. Technol., vol. 73, no. 7, pp. 10 587–10 601, 2024. [39] Z. Chen, Z. Huang, J. Zhang, H. Cheng, and J. Li, “Resource allocation and collaborative offloading in multi-UAV-assisted IoV with federated

deep reinforcement learning,” IEEE Internet Things J., vol. 12, no. 5, pp. 4629–4640, 2025. [40] Y. Liu, P. Lin, M. Zhang, Z. Zhang, and F. R. Yu, “Mobile-aware service offloading for UAV-assisted IoV: A multiagent tiny distributed learning approach,” IEEE Internet Things J., vol. 11, no. 12, pp. 21 191–21 201, 2024. [41] F. Song, H. Xing, X. Wang, S. Luo, P. Dai, Z. Xiao, and B. Zhao, “Evolutionary multi-objective reinforcement learning based trajectory control and task offloading in UAV-assisted mobile edge computing,” IEEE Trans. Mobile Comput., vol. 22, no. 12, pp. 7387–7405, 2023. [42] X. Hu, K.-K. Wong, K. Yang, and Z. Zheng, “UAV-assisted relaying and edge computing: Scheduling and trajectory optimization,” IEEE Trans. Wireless Commun., vol. 18, no. 10, pp. 4738–4752, 2019. [43] Y. Xu, T. Zhang, D. Yang, Y. Liu, and M. Tao, “Joint resource and trajectory optimization for security in UAV-assisted MEC systems,” IEEE Trans. Commun., vol. 69, no. 1, pp. 573–588, 2021. [44] P. A. Apostolopoulos, G. Fragkos, E. E. Tsiropoulou, and S. Papavassiliou, “Data offloading in UAV-assisted multi-access edge computing systems under resource uncertainty,” IEEE Trans. Mobile Comput., vol. 22, no. 1, pp. 175–190, 2023. [45] N. Zhao, Z. Ye, Y. Pei, Y.-C. Liang, and D. Niyato, “Multi-agent deep reinforcement learning for task offloading in UAV-assisted mobile edge computing,” IEEE Trans. Wireless Commun., vol. 21, no. 9, pp. 6949– 6960, 2022. [46] R. Zhong, X. Liu, Y. Liu, and Y. Chen, “Multi-agent reinforcement learning in NOMA-aided UAV networks for cellular offloading,” IEEE Trans. Wireless Commun., vol. 21, no. 3, pp. 1498–1512, 2022. [47] Y. Xu, T. Zhang, Y. Liu, D. Yang, L. Xiao, and M. Tao, “UAVassisted MEC networks with aerial and ground cooperation,” IEEE Trans. Wireless Commun., vol. 20, no. 12, pp. 7712–7727, 2021. [48] M. Hui, J. Chen, L. Yang, L. Lv, H. Jiang, and N. Al-Dhahir, “UAVassisted mobile edge computing: Optimal design of UAV altitude and task offloading,” IEEE Trans. Wireless Commun., vol. 23, no. 10, pp. 13 633–13 647, 2024. [49] G. Sun, Y. Wang, Z. Sun, Q. Wu, J. Kang, D. Niyato, and V. C. M. Leung, “Multi-objective optimization for multi-UAV-assisted mobile edge computing,” IEEE Trans. Mobile Comput., vol. 23, no. 12, pp. 14 803–14 820, 2024. [50] Z. Zhang, Q. Wu, P. Fan, N. Cheng, W. Chen, and K. B. Letaief, “DRLbased optimization for AoI and energy consumption in C-V2X enabled IoV,” IEEE Trans. Green Commun. Netw., vol. 9, no. 4, pp. 2144–2159, Dec. 2025, doi: https://doi.org/10.1109/TGCN.2025.3531902. [51] X. Gu, Q. Wu, P. Fan, Q. Fan, N. Cheng, W. Chen, and K. B. Letaief, “DRL-based resource allocation for motion blur resistant federated selfsupervised learning in IoV,” IEEE Internet Things J., vol. 12, no. 6, pp. 7076–7085, Mar. 2025. [52] H. Zhou, C. Hu, D. Yuan, Y. Yuan, D. Wu, X. Liu, and C. Zhang, “Large language model (LLM)-enabled in-context learning for wireless network optimization: A case study of power control,” arXiv preprint arXiv:2408.00214, 2024.[Online]. Available: https://arxiv.org/abs/2408. 00214 [53] N. Lin, H. Tang, L. Zhao, S. Wan, A. Hawbani, and M. Guizani, “A PDDQNLP algorithm for energy efficient computation offloading in UAV-assisted MEC,” IEEE Trans. Wireless Commun., vol. 22, no. 12, pp. 8876–8890, 2023. [54] M. Li, N. Cheng, J. Gao, Y. Wang, L. Zhao, and X. Shen, “Energyefficient UAV-assisted mobile edge computing: Resource allocation and trajectory optimization,” IEEE Trans. Veh. Technol., vol. 69, no. 3, pp. 3424–3438, 2020. [55] A. Al-Hourani, S. Kandeepan, and S. Lardner, “Optimal LAP altitude for maximum coverage,” IEEE Wireless Commun. Lett., vol. 3, no. 6, pp. 569–572, 2014. [56] Y. Zeng, J. Xu, and R. Zhang, “Energy minimization for wireless communication with rotary-wing UAV,” IEEE Trans. Wireless Commun., vol. 18, no. 4, pp. 2329–2345, 2019. [57] J. K. Stolaroff, C. Samaras, E. R. O’Neill, A. Lubers, A. S. Mitchell, and D. Ceperley, “Energy use and life cycle greenhouse gas emissions of drones for commercial package delivery,” Nat. Commun., vol. 9, no. 1, Art. no. 409, 2018. [58] R. I. Bor-Yaliniz, A. El-Keyi, and H. Yanikomeroglu, “Efficient 3-D placement of an aerial base station in next generation cellular networks,” in Proc. IEEE Int. Conf. Commun. (ICC), Kuala Lumpur, Malaysia, 2016, pp. 1–5. [59] Q. Zhang, C. Hu, S. Upasani, B. Ma, F. Hong, V. Kamanuru, J. Rainton, C. Wu, M. Ji, H. Li, U. Thakker, J. Zou, and K. Olukotun, “Agentic context engineering: Evolving contexts for self-improving language

18

models,” arXiv preprint arXiv:2510.04618, 2025. [Online]. Available: https://arxiv.org/abs/2510.04618

Record · ID 168257 · SHA-256 ea1713b249d6404e
Retrieved via Conceptio — every document is proof-bundled with source, license, and retrieval metadata.