As unmanned aerial vehicle (UAV) capabilities progress, multi-unit cooperative missions have become the fundamental model for boosting operational performance. Yet, expansive UAV swarms encounter hurdles such as shifting security vulnerabilities, difficulties in merging disparate data sources, and decision delays driven by constrained resources. Traditional single-unit intelligent designs exhibit weaknesses when confronting novel dangers, notably a lack of immediate response proficiency. To resolve these problems, this work puts forward an LLM-layered collaborative security architecture (LLM-LCSA) for multi-unit cooperative protection. The design refines the spatiotemporal integration efficiency of multisource asynchronous information through cloud–edge–end cooperative distribution, blending a lightweight LLM on the terminal, a medium-scale LLM at the edge, and a foundational LLM in the cloud. Moreover, a Mixture of Experts (MoE) intelligent algorithm that selectively triggers the most suitable expert modules by tapping into a threat–expert correlation matrix is introduced, improving the precision of intricate threat detection while maintaining dynamic flexibility. A resource-cognizant multi-objective optimization formulation is also built to derive optimal choices within resource boundaries. Simulation findings reveal that, compared with conventional techniques, LLM-LCSA yields a mean 7.92% gain in threat identification accuracy, slashes the system’s overall response interval by 44.52%, and facilitates resource allocation during low-demand windows. This framework provides a streamlined, intelligent, and expandable solution for secure collaboration across UAV collectives. Subsequent investigations should delve deeper into its applicability within 6G network convergence and extensive swarm conditions.
Given the widespread adoption of unmanned aerial vehicle (UAV) technology across critical fields, including disaster response [1], agricultural plant protection [2], power inspection [3], and logistics and distribution [4], coordinating multiple UAVs has become a central tactic for improving mission outcomes. As networked communication systems steadily mature, the number of UAVs that can be managed within a swarm is likewise growing. Compared with smaller-scale formations, large UAV swarms can carry heavier payloads, substantially widening their operational reach.
While swarming improves scalability, it also introduces systemic challenges such as proliferating dynamic security risks, inefficient cross-platform teamwork, and decision delays rooted in resource scarcity [5]. Traditional single-unit intelligent structures hit limits when exposed to emerging threats, for instance, GPS spoofing [6], cooperative network assaults [7], and sensor jamming blends, alongside struggles with merging multisource streams, poor real-time reaction speed [8], and sluggish adaptive defense, all of which gravely undermine the safety and dependability of UAV swarms within complex environments. When a UAV swarm experiences a cyber intrusion, the coordinated motion of the entire collective is disrupted, severely endangering safety. Lately, a growing number of researchers have focused on ensuring secure, synchronized flight among swarming craft under cyberattack scenarios.
Cooperative regulation of UAV swarms can be classified into centralized, decentralized, and distributed control paradigms [9]. Centralized methods can achieve globally optimal control, yet drawbacks such as high communication overhead and fragile formation stability limit the expandability of drone swarms. Distributed strategies rely solely on local information sharing to harmonize the group, reducing communication bandwidth requirements while preserving robust fault tolerance and growth potential. Decentralized strategies forgo a central coordinator and can achieve only local optimality; nevertheless, they offer benefits such as modular design and swarm extensibility. Beyond these overarching frameworks, investigators have delved into swarm protection.
Raja et al. [10] introduced an innovative multilayer blockchain-aided 6G Internet of Drones (MLB-IoD) ecosystem that enhances system resilience against attacks while enabling efficient route planning through safeguards and compliance protocols. Karmakar et al. [11] engineered a blockchain-based distributed authentication scheme for drone swarms. Blockchain enables drone identity data to reside in tamper-proof storage, while companion smart contracts provide a convenient access governance model. Jangsher et al. [12] advanced an efficient group secret key (GSK) protocol for protected communication inside distributed drone swarms. The suggested protocol harnesses network coding to craft cooperative signals sent through the channel, signals that stand apart from the derived keys. This presented a remedy to uphold secure authentication for drone collectives. Viana et al. [13] developed a deep learning framework to detect attack patterns in UAV communications under 5G conditions. The framework can reliably flag attack behaviors in both line-of-sight (LoS) and non-line-of-sight (NLoS) settings, as well as in random mixes of both, thereby enhancing the protection and reliability of UAV swarms amid interference and complex communication landscapes. Lopez et al. [14] proposed a security design for wireless mesh networks in UAV swarm exchanges, deeply analyzed weaknesses and threats spanning the physical tier to the application tier, and outlined corresponding defense measures.
Because legacy UAV safety governance systems ordinarily rely on fixed rules and heuristics, these approaches stumble in fluid environments and exhibit limited safety decision flexibility and coordination efficacy due to the difficulty of detecting complex and shifting threats [15, 16]. The integration of large language models (LLMs) into UAV swarm safety addresses gaps left by older methods in areas such as adaptation to changing settings [17], coordinated intelligent decision-making [18], resource allocation [19], and overall system robustness. Figure 1 portrays a UAV swarm within an intelligent control cooperation setting. Tiered backing from terminal-, edge-, and cloud-level LLMs amplifies the swarm’s autonomous sensing, comprehension, and decision-making, equipping it to adapt more nimbly to varied application contexts.

Figure 1. Intelligent collaboration of UAV clusters.
Prior work has demonstrated real-world viability. Aikins et al. [20] presented a case study demonstrating LLM support for up to 1000 drones flying in concert, highlighting the potential of LLMs to steer large-scale swarm operations. Li et al. [21] proposed refining UAV positioning and power regulation using LLMs to enhance swarm anti-jamming capabilities in crisis communication contexts and preserve link stability and integrity. Han et al. [22] unveiled CoLLM, a distributed LLM cooperative inference framework designed for infrastructure-free settings to prevent the spillage of smart decisions if a single node is compromised. Zhu et al. [23] described a Transformer-based UAV path-planning routine that rapidly crafts optimal routes, mitigates data transfer and processing lag, and reduces the risk of data corruption or staleness, offering an effective solution for safe data harvesting by UAV swarms in complex terrain [23]. Yang et al. [17] conducted an extensive survey of LLM deployments for UAV safety. They observed that LLMs can meaningfully sharpen threat sensing and reaction capabilities within UAV swarms under complex conditions via multimodal data fusion and on-the-fly decision-making, thereby considerably boosting swarm security. Emami et al. [24] proposed an In-Context Learning (ICL) data-gathering orchestration framework based on LLMs, which shines in trials against jailbreak attacks, thus preserving communication safety.
Additionally, certain scholars have combined LLMs with other technologies to enable more productive and secure cooperative command of UAV swarms. Golam et al. [25] wove LLMs into a blockchain fabric to enable online detection of emerging and intricate threats in UAV traffic without additional training cycles. Drawing on the context-grasping capabilities of LLMs, they performed semantic-tier anomaly detection on immutable UAV traffic logs stored on the blockchain, sharply reducing both false alarm and miss rates. Piggott et al. [26] advanced an adversarial chatbot anchored in LLMs that interprets network protocols and stages man-in-the-middle strikes on links between UAVs and ground control stations (GCSs), auto-crafting fake network packets. This route can be further mined to harden UAV swarm robustness against intrusions. Sezgin [27] also significantly improved the security decision-making capabilities of UAV swarms in harsh environments by combining LLMs with RAG technology. Javaid et al. [18] dissected the protective use cases of LLMs in UAV swarms; spelled out their pivotal function in menace spotting, order verification, and crisis handling; and laid out an LLM-propelled spectrum sensing and sharing technique able to locate jamming sources on the fly and fluidly hop channels to shield swarm links from suppression or trickery. Zhou et al. [28] combined large language models with Q-learning to effectively address safety concerns in UAV swarm decision-making, orchestration, and fine-tuning in uncharted spaces.
Table 1 summarizes investigative approaches for UAV swarm protection. Even so, present-day LLM frameworks for UAV swarm security still run into a host of obstacles in multi-craft cooperative safety contexts, as summarized in Table 2. Thus, a void persists for an adaptive, resource-attentive collaborative safeguarding scaffold capable of juggling multisource inputs, fluid threat postures, and resource-strapped circumstances within large UAV swarms. Current answers tend to focus on separate components such as authentication, breach detection, or path design, without knitting them into an integrated, tiered decision-making architecture that bridges the cloud, edge, and terminal nodes.
Table 1. Categorized summary of research methods in UAV cluster security.
Field | Technical category | Ref. | Year | Technical approach | Key innovation/Strength |
Traditional method | Cryptography | 2022 | Introduced a lightweight challenge–response authentication scheme utilizing elliptic curve cryptography. | It is well-suited for SDN-enabled UAV systems because of its low computational complexity. | |
2023 | Presented an efficient GSK protocol called the sequential secret group key algorithm for distributed UAV networks. | Achieved dependable GSK generation while balancing transmission overhead and communication reliability. | |||
Multilayer Model | 2023 | Developed a multilayer graph network model for consensus control in large-scale UAV swarms. | Enhanced the scalability and resilience of extensive UAV cluster topologies. | ||
2025 | Proposed a multilayer blockchain-supported 6G drone internet framework (MLB-IoD). | Delivered strong protection against attacks through authentication and encryption mechanisms. | |||
Blockchain | 2024 | Designed a blockchain-enabled distributed identity authentication mechanism for UAV swarms. | Improved drone swarm network efficiency while ensuring reliable communication. | ||
Threat Identification | 2021 | Proposed a wireless mesh network security framework and evaluated vulnerabilities from the physical layer through the application layer. | Offered end-to-end security protection for UAV swarm communications. | ||
2024 | Built a UAV swarm intrusion detection framework based on time probability automata (TPA). | Capable of adapting to emerging attack behaviors and detecting zero-day threats. | |||
2024 | Developed a deep learning-based architecture to detect attack activities in 5G-enabled UAV communications. | Achieved precise detection performance under both LoS and NLoS environments. | |||
LLM | Decision Optimization | 2023 | Proposed a transformer-driven UAV trajectory planning method. | Reduced AoI and latency while mitigating the risk of data tampering. | |
2024 | Applied LLMs for optimizing UAV deployment and transmission power management. | Improved anti-jamming performance in emergency communication settings. | |||
Reasoning Enhancement | 2023 | Introduced an LLM-driven attack bot capable of simulating hijacking attacks on communication sessions between GCS and UAV swarms. | Improved understanding of UAV-related threats and supported stronger anti-attack strategies for UAV clusters. | ||
2024 | Leveraged the contextual reasoning ability of LLMs to conduct semantic-level anomaly detection on blockchain-based UAV traffic data. | Enabled real-time detection of previously unseen threats without requiring retraining. | |||
2025 | Proposed CoLLM, a distributed collaborative reasoning framework using LLMs for environments lacking a centralized ground-truth entity. | Eliminated single-point failure risks and protected against complete intelligence leakage. | |||
Comprehensive Analysis | 2025 | Conducted a comprehensive review of LLM applications in UAV security. | Emphasized the strengths of LLMs in multimodal data integration and real-time decision support. | ||
Proposed method | LLM-Layered Collaborative Security Architecture | Ours | 2025 | Proposed LLM-LCSA, a cloud–edge–end hierarchical framework incorporating MoE-based intelligent agents and resource-aware optimization. | Combined multi-tier LLM collaboration, adaptive expert activation, and constrained decision-making to support efficient and secure UAV swarm operations. |
Table 2. Summary of existing challenges in UAV cluster security.
Problem domain | Specific challenges | Existing deficiencies |
Specialized design and collaborative mechanisms | • Designing specialized security architectures tailored for UAV swarm environments • Enabling real-time state synchronization, heterogeneous data integration, and collaborative decision-making across multiple UAVs | • Current large language models are primarily designed for general-purpose natural language processing applications. • Existing approaches mainly concentrate on single-agent intelligence and lack effective multi-agent collaboration capabilities |
Dynamic threat response and knowledge utilization | • Detecting sophisticated and continuously evolving threats • Dynamically incorporating expert domain knowledge into real-time decision-making processes | • Existing systems provide limited threat detection and identification performance • Insufficient support for the real-time and adaptive integration of expert knowledge |
Decision optimization under resource constraints | • Enabling resource-aware intelligent decision-making in environments with constrained resources • Maintaining a balance between decision speed, accuracy, and communication resource usage | • Difficulty in achieving an effective trade-off between decision performance and multidimensional resource consumption • Limited capability to operate efficiently under restricted resource conditions |
To address these obstacles, an LLM framework better aligned with UAV swarm settings is needed to detect threats and make decisions during multi-unit cooperative missions. Factoring edge collaboration use cases into the forward path for 6G networks is a significant step. This shift has already materialized across numerous domains, including vehicle-to-everything (V2X), industrial automation, and smart cities, yet concrete deployments involving UAVs remain scarce.
Hence, this work presents a security-centric, multi-unit, LLM-layered collaborative security architecture (LCSA). The design draws on a distributed data storage paradigm and resource-cognizant intelligent decision-making algorithms. Within the LLM-LCSA blueprint, the MoEs approach is housed in edge servers, a threat–expert dynamic correlation matrix is applied, and an optimization model that weighs expert recommendation costs against multidimensional resource consumption is established. Beyond that, we introduce slack variables to mediate resource conflicts, develop a multidimensional confidence scoring procedure, and embed a feedback-correction unit to enable resource-aware intelligent decision-making.
1. We advance LLM-LCSA for safeguarded multi-UAV teamwork. Through a cloud–edge–terminal cooperative computing scheme, LLM-LCSA weaves together distributed data storage, sliding-window fusion, and data validity scoring to enable multilevel model cooperative inference. In holistic performance benchmarks, every component reached top ratings.
2. An intelligent agent routine based on MoEs was formulated, implemented, and embedded in edge servers. Via the crafted threat–expert dynamic correlation matrix alongside an expert weight dynamic tuning policy, the system’s accuracy in pinpointing intricate dynamic threats, together with its dynamic versatility, notably increased. Simulation tests reveal that, alongside conventional approaches, the average detection accuracy over diverse threat categories grew by 7.92%.
3. A multi-objective optimization formulation under resource constraints was developed to enable resource-aware intelligent decision-making. The formulation thoroughly accounts for expert recommendation overhead and multidimensional resource usage limits, and shapes a solution approach that introduces slack variables. Simulation outcomes show that, relative to traditional routes, the system reduces total response duration by 44.52%, thereby meaningfully improving resource efficiency.
We evaluated LLM-LCSA alongside pertinent studies, as outlined in Table 3. This paper makes three core contributions and addresses the current obstacles noted.
Table 3. Comparison of different methods and their features.
Methods | Ref. | Year | Dynamic | Features | ||||||
HDF | MTD | DO | RO | RL | RM | ED | ||||
Traditional method | 2022 | Medium | ✓ | ✓ | ✓ | ✓ | ||||
2023 | Low | ✓ | ✓ | ✓ | ✓ | |||||
2023 | Medium | ✓ | ✓ | ✓ | ||||||
2023 | Low | ✓ | ✓ | ✓ | ||||||
2024 | Low | ✓ | ✓ | ✓ | ✓ | |||||
LLM | 2024 | High | ✓ | ✓ | ||||||
2025 | High | ✓ | ✓ | ✓ | ✓ | |||||
2025 | High | ✓ | ✓ | ✓ | ✓ | |||||
2025 | Low | ✓ | ✓ | ✓ | ||||||
2025 | Medium | ✓ | ✓ | ✓ | ||||||
2025 | High | ✓ | ✓ | ✓ | ✓ | |||||
Proposed method | Ours | 2025 | High | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Note: HDF = heterogeneous data fusion; MTD = multi-threat detection; DO = decision optimization; RO = resource optimization; RL = reduce latency; RM = rating mechanism; ED = easy to deploy.
• We put forward a tiered cooperative security design that remedies the shortfalls of conventional single-layer deployment patterns when merging multisource asynchronous spatiotemporal data streams. This sharply improves data processing efficiency, with simulation evidence supporting the design’s validity.
• We surmount the precision and rigidity barriers of standard hybrid expert models when facing unprecedented complex threats by introducing an online adaptive matrix. This enables on-the-fly expert triggering and continual self-refinement.
• We construct a resource-aware multi-objective optimization model to untangle the tension between decision quality and multidimensional resource drain within resource-constrained edge landscapes. By adopting slack variables and a multidimensional confidence framework, we secure the system’s trustworthy behavior and rollout capacity under tight resource conditions.
The remaining sections of this paper proceed as follows: Section 2 outlines the full architecture of LLM-LCSA, a tiered cooperative security framework. Section 3 establishes the conceptual base, system formulation, and a layered cooperative threat detection algorithm. Building on the proposed system, a resource-aware intelligent decision-optimization algorithm is presented in Section 4. Section 5 unpacks the simulation findings, demonstrating the potency of the proposed architecture and algorithms. The study’s conclusions and prospective research paths are laid out in Section 6.
To address the delay constraints and rigid threat-handling gaps in centralized LLM setups, this paper presents a tiered cooperative architecture, LLM-LCSA. Through the joint operation of a cloud–edge–end layered model and a built-in intelligent-agent decision apparatus, this design enables efficient multi-unit teamwork in protection-critical contexts. As shown in Figure 2, compact models reside on end units, mid-sized models sit on edge servers, and sizable models run in the cloud. This arrangement supports data collection, real-time processing, long-term prediction, and safety pattern evaluation.

Figure 2. Architecture of LLM-LCSA.
The bedrock of LLM-LCSA lies in the cooperative siting of tiered models to fully unlock the benefits of diverse computing pools, enabling swift data manipulation and decision support. The compact model on the end unit handles live data intake and early anomaly flagging, poised to react to variations in local sensor feeds quickly, generate anomaly detection scores 𝜙, and forward them to the edge node. The mid-sized model positioned on the edge nodes fuses anomaly detection scores from multiple UAVs with near-term historical data traits S to run sharper binary anomaly screening and derive performance indicator vectors M. The sizable model located in the cloud focuses on long-range sequence projection and expansive security pattern mining, producing long-term sequence prediction outputs T and broad security analysis outputs K. LLM-LCSA also manages offline training and tuning of the model, disseminating revised model weights to edge and end nodes.
Through this tiered model of cooperative placement, LLM-LCSA can fully capitalize on the near-instant reflexes of the end, the number-crunching heft of the edge, and the synoptic analytical scope of the cloud to refine the entire chain from data capture to decision aid. The compact model on the end side can nimbly handle local data shifts, the mid-sized model on the edge side can handle local data and render early judgments, and the sizable model in the cloud can provide a panoramic lens and deep interpretation. The three models operate in tandem to ensure streamlined coordination and intelligent decision-making for UAV swarms operating in tangled environments.
To process the large, rapid, mixed data torrents generated by UAV swarms, LLM-LCSA was engineered with an original distributed data storage architecture. Short-range and long-range historical databases act as repositories for fresh data slices and overarching trend and pattern records, respectively.
The short-range history database is hosted on edge servers and stores data from the previous few minutes to several tens of minutes, capturing statistical descriptors such as anomaly rate, mean, and dispersion. These records provide instant situational context to edge medium models, enabling rapid anomaly detection and decision support. The long-range history database is housed in the cloud, retaining data for hours, days, or longer, covering cyclic tendencies and statistical summaries of prior anomaly footprints. These records equip large-scale cloud models with a global perspective, enabling long-range sequence projection and wide-angle security pattern analysis.
To better handle multisource asynchronous data, LLM-LCSA employs time-window sliding fusion and data validity scoring protocols at the edge layer. Time window sliding fusion uses an exponentially weighted moving average to give newer data greater weight, preserving data freshness. Data validity scoring measures the freshness of data from each feed through a timeliness function. When a feed becomes intermittently unavailable, historical data imputation is performed at the edge layer to fill gaps, or a degraded mode is triggered to preserve data integrity and trustworthiness. Additionally, quality yardsticks for data fusion are set for the system. Whenever those yardsticks fall below predetermined thresholds, supplementary data calls are made, or the decision confidence floor is raised to further polish the data processing pipeline.
This distributed data storage blueprint not only addresses the challenge of time-aligning and unifying asynchronous multisource data but also captures the live-data edge at the end, alleviating the bottlenecks inherent in conventional centralized data-handling modes in UAV swarm settings and establishing a robust data foundation for the secure orchestration of UAV swarms.
A further linchpin of LLM-LCSA is the intelligent decision-making algorithm baked into the edge server. This agent routine rests on the MoEs paradigm; folds in task splitting, delegation, and decision merging capabilities; and weaves in domain specialist insight. The routine can shrewdly summon the most fitting expert knowledge for decision-making guided by live threat postures.
The primary modules of the agent routine encompass data fusion, weight delegation and steering, expert inference, decision synthesis, feedback and incremental tuning, and cooperative augmentation units. The data fusion unit blends data from separate tiers using methods such as timestamp synchronization and sliding-window fusion to form a consolidated feature vector. The weight delegation and steering unit elastically modulates the influence of each expert, conditioned on the input features, to ensure that the most on-point expert judgments are accentuated across varying threat scenes. The expert inference unit allows each expert to emit a recommended decision vector grounded in their domain mastery, accommodating the live expansion and refresh of the expert pool. The decision synthesis unit polishes decision vectors by specifying cost functions and resource-drain models to ensure task needs are met while squeezing out peak resource efficiency. The feedback and incremental tuning unit employs a multidimensional confidence scoring apparatus to gauge decision quality in real time and self-corrects, informed by feedback, to sustain system resilience and pliancy. The cooperative augmentation unit also supports stratified governance and conflict arbitration for large swarms, thereby increasing the system’s overall cooperative throughput.
Thanks to the embedded intelligent agent routine, LLM-LCSA not only performs efficient multi-unit orchestration and smart decision-making but also fluidly shifts decision strategies in step with live threat dynamics, markedly bolstering the system’s ability to counter intricate and emerging threats and delivering potent intelligent reinforcement for the safe coordination of UAV swarms.
We measured the overall capability of LLM-LCSA using a broad set of indicators covering threat identification accuracy, response time, resource consumption, and system growth potential. The framework sets tailored assessment benchmarks matched to the primary duties of each piece. Every heterogeneous indicator is standardized, then weighted and pooled based on its relative contribution to the system’s total performance. The figures are mapped to a unified score range of 0 to 1, enabling even-handed cross-module comparisons. The fine-grained experimental setup, evaluation standards, and comparative outputs appear in Section 5. As shown in Figure 3, all indicators exceed 0.82, indicating strong performance. LLM inference quality emerges as its most outstanding trait, with no obvious weak points, even though resource thrift could still be boosted.

Figure 3. Comprehensive performance dashboard of LLM-LCSA.
LLM-LCSA adeptly fills gaps in current UAV frameworks, including multi-platform cooperation protocols, data handling and warehousing, shifting threat countermeasures, resource-limited decision calibration, and system scalability and versatility. LLM-LCSA delivers a lean, intelligent, and growth-ready system solution for the secure, harmonized operation of UAV collectives.
The LLM-LCSA strategy investigated in this paper is designed for a swarm of N UAVs that jointly tackle missions in complex landscapes rife with potential fluid security hazards.
The swarm employs a spread-out communication scheme. Nearby signals shuttle among UAV nodes through wireless links. Let 𝐺=(𝑉, 𝐸) denote the communication graph, with 𝑉={UAV1, UAV2, …, UAV𝑁} as the node assembly and 𝐸 as the edge assembly, meaning that direct exchange can happen between nodes. The normalized communication span parameter appears as (0 < 𝑑𝑐𝑜𝑚𝑚 ≤ 1), and an edge (𝑖, 𝑗)∈𝐸 exists between nodes only when their Euclidean separation meets (𝑖, 𝑗) ≤ 𝑑𝑐𝑜𝑚𝑚. Edge servers are located at designated coordinates or onboard certain UAVs and handle data fusion and processing within local areas. The cloud contributes worldwide computation and warehousing support.
The system faces M potential threat classes 𝑇𝑡ℎ𝑟𝑒𝑎𝑡 = {𝑇1, 𝑇2, …, 𝑇𝑀}. Threats can surface alone or in combination and possess a fluid, surreptitious quality. The reach of threat effects may cover a single airframe, a regional subcluster, or the whole assembly.
End: Every UAV carries a lightweight LLM tasked with live gathering, preprocessing, and initial anomaly spotting of local sensor feeds, churning out preliminary anomaly scores (𝑡)∈ℝ.
Edge: Medium-scale LLMs together with intelligent agents execute on edge servers. Edge servers receive (𝑡) plus local data dispatched by UAVs inside their zone, merge them with near-term statistical descriptors 𝑆(𝑡)∈ kept in a short-duration historical repository, conduct threat classification alongside local situational awareness, and generate performance metric vectors 𝑀(𝑡)∈ along with provisional decision proposals.
Cloud: A large-scale LLM operates in the cloud. Pooled inputs stream in from all edge nodes together with global trend and pattern archives stored in the long-duration historical repository (𝑡). Far-horizon projection (𝑡)∈ and a broad security pattern evaluation is carried out to assign security labels 𝐾(𝑡)∈ℕ. Offline model coaching, fine-tuning, and parameter distribution all occur in the cloud.
The setup involves eight sorts of essential resources, with the system resource availability vector given by 𝑅=[𝑅1, 𝑅2, …, 𝑅8] ⊤. 𝑅1 through 𝑅8 map to computing muscle, communication bandwidth, data storage, model storage, energy draw boundaries, RAM size, link quality specifications, and sensor assets, respectively.
Inside the limits of resource accessibility, the system has to craft the best cooperative decision vector 𝑥=[𝑥1, 𝑥2, …, 𝑥𝑛] ⊤ corresponding to diverse control parameters. Putting into effect each decision element 𝑥𝑗 triggers resource draw (𝑥𝑗), capturing the claim on the k-th resource when decision 𝑥𝑗 is realized as follows:
(1)
This reconciles safety, task throughput, resource efficiency, real-time responsiveness, robustness, and flexibility.
End constraints: The end resource availability vector is expressed as
(2)
Edge-side constraints: The edge server must service 𝑁serve UAVs, subject to the following:
(3)
Expert system MoEs constraint:
(4)
Where 𝛼MoE∈(0, 1) stands for the slice of computational resources earmarked for the expert system.
Global resource balancing constraint:
(5)
Load balancing constraint:
(6)
Time coupling constraint: The time-bound character of resource usage is factored in as:
(7)
Where 𝜙𝑘 ≤ 1 marks the upper bound of resource utilization.
To maintain data currency, an agent relies on the most recent records within a designated time frame when fusing streams from multiple sources. Let (𝑡) be the fused feature vector at moment t, assembled from the following ingredients:
(8)
Where 𝜙(𝑡)∈ℝ is the end anomaly detection score, 𝑀(𝑡)∈ℝ4 is the edge model performance vector, 𝑆(𝑡)∈ captures short-duration historical traits, 𝐿(𝑡)∈ captures long-duration historical traits, 𝑇(𝑡)∈ represents cloud-based time series forecasting, and 𝐾(𝑡)∈ℕ marks safety analysis labels.
The validity score for data u at moment t is determined as:
(9)
Where 𝜆 governs the decay steepness, and 𝑇half signifies the half-life of the data.
For short-duration time series data (𝑡), the exponential weighted moving average prescription is used:
(10)
Where W denotes the sliding window breadth, tuned adaptively by the data sampling pace, and 𝜑 stands for the data retention ratio:
(11)
3.3. Threat–expert association matrix
The threat type space 𝒯={1, …, 𝑀}, the expert pool ℰ={1, …, 𝑁expert}, and the association matrix 𝑅∈ℝ𝑀×𝑁expert obey:
(12)
Where M tallies the conceivable threat types, 𝑁expert tallies the experts, and 𝑅𝑖𝑗 captures the bond strength between threat type i and expert j.
Extracting the threat features (𝑡) yields:
(13)
Where (·) is the ReLU activation function, 𝑊ext∈ℝ𝑀×dim(𝑣) is the weight matrix, and 𝑏ext is the bias term adjusting the decision frontier.
The significance weights 𝑤𝑖 for every expert are derived via the control module as:
(14)
Where (𝑣) gives the base relevance score of expert i, indicating the fit between input feature v and expert i.
On the foundation of threat-informed expert weight tuning, the threat likelihood gets multiplied by the correlation matrix to reshape the control module output:
(15)
Where p_j^threat =softmax(𝑊thℎthreat) yields the probability of each threat type, 𝑊th is the threat space transformation matrix, and 𝛽∈[0, 1] is the dial governing the force of threat sensitivity. At 𝛽=0, only bare gate control is in play; at 𝛽=1, the setup leans entirely on threat sensitivity. 𝑅𝑗𝑖 marks the correlation matrix, capturing the linkage between threat type j and expert i.
The closing expert weight is computed as:
(16)
Steered by decision result feedback, the association matrix gets refreshed at intervals:
(17)
Where 𝜂 represents the learning rate, and 𝑓score denotes the quantitative measure of decision potency.
The decision quantity takes the shape of a vector 𝑥=[𝑥1, 𝑥2, …, 𝑥𝑛] ⊤, with each slot linked to a separate control lever (e.g., evacuation magnitude 𝑥1, connection handover 𝑥2, or interference suppression 𝑥3). Grounded in the input v, every expert 𝑥𝑖 puts forth a proposed decision vector 𝑑𝑖=[𝑑𝑖1, 𝑑𝑖2, …, 𝑑𝑖𝑛]. Relying on their niche know-how, experts can contribute nonzero proposal values across one or multiple decision slots.
The aptitude rating rule for newly inducted experts is set out as:
(18)
Within which 𝐷test signifies the test case collection, 𝑑reference represents the gold-standard decision vector mirroring the system’s acknowledged optimal pick under a particular input feature context, and 𝑓score gauges the likeness score between the expert proposal and the gold-standard decision. Upon a fresh expert’s enrollment, the setup follows a guarded path to amplify the expert’s clout progressively:
(19)
Where 𝛾 > 1 acts as the expansion multiplier and 𝑤𝑖,max designates the upper cap on expert weight, which climbs stepwise in step with the aptitude score.
Among experts bearing overlapping remits, resource division is adaptively rebalanced against historical track records:
(20)
Where 𝑟𝑖 stands for the share of computing assets secured by expert i, indicates their historical performance yardstick, and 𝜆 moderates the strength of competition.
Algorithm 1 spells out a stratified cooperative threat identification procedure that pulls off three-echelon cooperative identification at the end (live), edge (consolidation), and cloud (planetary) echelons. At the end echelon, a lightweight LLM turns out anomaly scores 𝜙 in real time. At the edge echelon, a medium LLM consolidates short-horizon historical records and undertakes anomaly categorization. At the cloud echelon, a large-scale temporal LLM scrutinizes long-horizon patterns and allocates security labels. Time-window sliding consolidation and data-freshness fade functions maintain the data’s live relevance.

Algorithm 1. Layered collaborative threat detection algorithm.
N denotes the tally of UAVs making up the swarm, and the complexity of end processing breaks down as: 𝑂(𝑁·𝑑); data reception 𝑂(𝑁); time window sliding consolidation 𝑂(𝑊·𝑑); data freshness calculation 𝑂(𝑛); feature vector construction 𝑂(𝑑); edge-side medium model inference O(𝑑2); and cloud-side large-scale model manipulation 𝑂(𝑑3+𝐻) (time-series projection: 𝑂(𝑑3), large-scale model security inspection: 𝑂(𝑑3), and database updating: 𝑂(log𝐻)).
For
The threat identification procedure described in Section 3 supplies indispensable input for the decision stages that follow. Still, fashioning ideal response tactics must account for the stringent resource ceilings native to both the UAV’s end and edge computing milieus. We cast the decision optimization challenge as a bounded-cost reduction exercise and establish a closed-loop refinement cycle. Concretely, the situational awareness feature vectors (𝑡) created by each LLM stratum operate as the shared input for downstream optimization. They not only elastically retune expert weights via the threat–expert matrix but also serve as pivotal parameters in the resource-attentive multi-objective optimization formulation to yield the optimal decision 𝑥∗. The real-world impact of the decision is monitored in real time and translated into a feedback token. These tokens are drawn upon to renew the expert ensemble and to target the LLM’s honing, thereby sculpting an unbroken loop of “sense–resolve–feedback–absorb” that fuels the system’s unceasing advancement.
The expense function of expert i is laid out as:
(21)
Inside which
The system-wide resource availability vector is written as 𝑅=[𝑅1, 𝑅2, …, 𝑅𝐾], where 𝑅𝐾 signifies the ready supply of the k-th resource, and the resource bound function is composed as:
(22)
The all-in expense function is put together as:
(23)
Where 𝜆𝑟 is the trade-off factor for resource parsimony, modifiable on the go per the system’s ongoing burden.
The resource parsimony targets are woven into optimization problems and recast as a multi-objective optimization function:
(24)
When resource limits collide, slack quantities 𝜖𝑘 are introduced:
(25)
The KKT conditions deliver a closed-form expression:
(26)
Where 𝜇𝑘 corresponds to the Lagrange multiplier, the computational footprint hinges primarily on n and K, neither of which swells notably as the UAV swarm size increases within the system, preserving the algorithm’s real-time responsiveness under large-scale conditions.
The concord metric on expert opinion appraisal reads:
(27)
Where 𝑤𝑖 is the weight of the i-th expert, the tighter the alignment, the nearer the indicator sits to 1.
The decision results of akin historical circumstances are juxtaposed:
(28)
Where H denotes the historical decision archive encompassing feature vectors 𝑣ℎ, decisions 𝑥ℎ, and results 𝑒ℎ; 𝑓sim estimates the resemblance between the current feature vector and the archive; and 𝑓success evaluates the triumph of historical decisions.
The decision punch inside a nimble simulation testbed is rapidly corroborated:
(29)
Where Sim_KPI(𝑥∗) is the ith KPI reading stemming from decision 𝑥∗ within the testbed, and Best_KPI𝑖 along with Worst_KPI𝑖 denote the preset ceiling and floor values, respectively.
The fuzziness of the incoming data stream is appraised:
(30)
Where stands for the approximated spread of the ith input vector v and 𝜆unc is the scalar multiplier.
A multidimensional weighted synthesis is executed:
(31)
Where the 𝛼𝑚 weights can be elastically shifted via routes such as reinforcement learning to hone long-haul decision caliber.
Cutoffs are actively shifted in response to situation criticality:
(32)
Where 𝜏base marks the foundational cutoff, 𝛽 governs the extent to which the cutoff sinks in emergencies, and 𝑓Urgency is the live gauge of situational urgency.
When the setup involves a large number of UAVs, a cooperative augmentation element is engaged to enable sharper decision-making and operationalization. UAVs are sectioned into multiple clusters 𝒢={𝐺1, 𝐺2, …, 𝐺𝑘}, with edge servers and agents positioned within each cluster 𝐺𝑖=UAV𝑖,1, UAV𝑖,2, …}. The clusters relay condensed packets through a top-tier orchestration routine:
(33)
Where captures a digest of information circulated by cluster i, covering critical status, decision inclination, and uncertainty estimate. Whenever a friction surfaces between neighboring cluster decisions, a bargaining procedure is set in motion:
(34)
The agent transmits the terminal optimal decision vector 𝑥∗ to each concerned UAV, which subsequently executes the corresponding action (evacuation, comms swap, interference suppression, etc.) in accordance with 𝑥∗ and reports the operational outcomes back to the system.
Algorithm 2 details the multi-expert cooperative adaptive security decision-making workflow. The workflow extracts threat signatures, derives threat likelihood distributions, and then adaptively recalibrates expert weights informed by threat probabilities and resource matrices. Following this, it refines and produces the optimal decision vector under resource boundaries and fuses four facets—consensus strength, historical alignment, simulation validation, and uncertainty—into a holistic confidence appraisal. The workflow elastically modifies the execution threshold in response to resource scarcity to enable adaptive decision rollout.

Algorithm 2. Dynamic expert decision algorithm.
K denotes the number of resource classes, H the count of stored historical decision entries, n the dimensionality of the decision vector, and d the dimensionality of the input feature vector. The complexity of threat signature matrix multiplication stands at (𝑀·𝑑); threat-sensitivity weight correction runs at (𝑁expert·𝑀); expert decision generation runs at (𝑁expert·𝑑); resource-bound decision optimization runs at (𝑁expert·𝑛2+𝐾·𝑛); and multidimensional confidence appraisal runs at (𝑁2expert·𝑛)+𝑂(𝐻·𝑑). The total complexity therefore amounts to 𝑁expert, 𝑀, 𝑛, 𝑑, 𝐾, 𝐻)=𝑂(𝑀·𝑑+𝑁expert·𝑀+𝑁expert·𝑑+𝑁expert·𝑛2+𝐾·𝑛+𝑁2expert·𝑛+𝐻·𝑑). Since the expert pool size and decision dimensionality are each far smaller than the store of historical entries, this expression simplifies to 𝑇=(𝑀·𝑑). Accordingly, the algorithm’s complexity hinges predominantly on the volume of stored historical records, a factor that can be dialed to suit practical circumstances.
Further reflection must address obstacles that arise during field deployment, including the system’s inherent robustness and transmission lag, the hardware constraints of the UAV airframe, and data confidentiality. Such elements can affect the system’s real-time responsiveness and trustworthiness. To counter these obstacles and uphold system security in genuine operational theaters, LLM-LCSA handles terminal data using sliding-window merging and data freshness scoring. Feature vectors encapsulate purely statistical summaries in place of raw feeds, thereby reducing exposure of confidential information. The resource-cognizant decision engine supports counter-jamming measures such as agile channel switching and spread-spectrum techniques. Via live threat spotting enabled by end–edge–cloud cooperation, along with the on-the-fly invocation of expert models via the MoEs mechanism, ideal response choices are quickly formulated and enacted. In addition, slack quantities introduced into the multi-objective optimization model effectively mitigate security weaknesses that might otherwise arise from resource contention. The feedback assembly, grounded in multidimensional confidence appraisal, continually hones decision-making policies, collectively ensuring the system’s security and privacy safeguards in complex operational settings.
To evaluate practical rollout readiness, we sized the computational resources required for agents at each tier: lightweight LLMs can be hosted on embedded hardware such as the NVIDIA Jetson Orin. In contrast, mid-sized LLMs and hybrid expert ensembles at the edge can leverage edge computing units such as the NVIDIA A100. In contrast, foundation cloud LLMs can rest on standard AI server farms. Assessment indicates that, with the current 5G/6G infrastructure and commercially available hardware, the LLM-LCSA design demonstrates considerable engineering viability, laying the groundwork for subsequent fielding and use in real UAV swarms.
The simulation experiments were carried out using PyCharm 2022.1, with the algorithms coded in Python 3.8.5. The routines were executed on a server running Windows 11 with 8.00 GB of RAM and a 13th Gen Intel(R) Core(TM) i9-13900H processor (Intel Corporation; Santa Clara, California, USA) running at 2.60 GHz. The platform supports the identification of eight threat categories (GPS spoofing, network intrusion, sensor jamming, physical sabotage, spectrum jamming, malware, data exfiltration, and DoS attack) in addition to the nominal state. Table 4 presents the LLM-LCSA parameter settings. Table 5 presents the experimental parameter settings.
Table 4. LLM-LCSA parameter configuration.
Category | Name | Value |
Lightweight LLM | Model size | 7 B parameters |
Architecture type | Lightweight inference architecture based on the Transformer model | |
Inference latency | Below 15 ms | |
Memory usage | Less than 2 GB | |
Attention weight | GPS weighting: 0.25; communication weighting: 0.20 | |
Sensor weight | 0.15 | |
Latency weight | 0.10 | |
Spectrum weight | 0.15 | |
CPU weight | 0.10 | |
Memory weight | 0.05 | |
Detection threshold | 0.4 | |
Medium LLM | Model size | 13 B parameters |
Number of Transformer layers | 24 layers | |
Inference latency | Below 45 ms | |
Memory usage | Less than 8 GB | |
Input dimensions | 12-dimensional feature representations | |
Output dimensions | 9 output classes (8 threat categories + normal state) | |
Number of self-attention heads | 16 attention heads | |
Feedforward network dimensions | 4096 | |
Large LLM | Model size | 70 B parameters |
Transformer layers | 80 Transformer layers | |
Inference latency | Below 180 ms | |
Memory usage | Less than 40 GB | |
Sequential prediction window | 240 historical data points | |
Context length | 2048 tokens | |
Pattern memory capacity | Storage capacity for 2000 threat patterns |
Table 5. Simulation parameter configuration.
Category | Name | Value |
UAV cluster | Number of UAVs | 15 UAVs |
Flight altitude | 80∼150 m altitude range | |
Cruising speed | 6∼10 m/s | |
Maximum speed | Up to 12 m/s | |
Flight area | 3 km × 3 km operational area | |
Communication system | Communication frequency | 2.4 GHz/5.8 GHz dual-band operation |
Transmit power | 100 mW | |
Antenna gain | 2.15 dBi | |
Communication range | 500–1000 m | |
Data transmission rate | 1–10 Mbps | |
Path loss index | 2.2 | |
Shadowing attenuation standard deviation | 3 dB | |
Network topology | Topology type | Random geometric graph structure |
Normalized connection distance | 0.35 | |
Average node degree | 4–6 connections per node | |
Network diameter | ≤ 5 hops | |
Connectivity probability | > 95% |
A performance dissection of the LLM-LCSA constituents, spanning the end LLM, edge LLM, cloud LLM, expert ensemble, resource optimization pipeline, and decision fusion pipeline, is given in Figure 4. The performance ratings of each LLM constituent appear in Figure 4a, and the response durations of each constituent appear in Figure 4b. The cloud-based large LLM receives the highest rating, 0.89; however, this constituent incurs the greatest delay, 195 units. The end lightweight LLM exhibits the shortest delay, curtailing reliance on the cloud and preserving system real-time properties. The three-tier architecture achieves an equilibrium between peak capability and real-time agility.

Figure 4. Component performance analysis of LLM-LCSA.
The variation in expert weights amplified by the LLM is depicted in Figure 5. The dynamic progression, wherein expert weights are elastically shifted in accordance with threat categories, is shown in Figure 5a. All expert weights oscillate within the 0-0.5 range, indicating that the system employs a balanced scheme that prevents any single expert from monopolizing the decision stream. During the initial learning window, weight distribution stays comparatively uniform. In the middle window, differentiation begins: the GPS defense expert’s weight climbs markedly under GPS assault conditions, and the overarching coordination expert’s weight rises amid composite threats. This intelligent cooperation scheme enables real-time weight retuning per threat category, along with knowledge exchange and renewal across the expert pool. A statistical breakdown of the weights is shown in Figure 5b, with an average near 0.125, consistent with the anticipated even split across the eight experts. The modest oscillations suggest the system can effect subtle calibrations shaped by threat conditions; the standard deviation envelope of roughly ±0.05∼0.08 reveals that expert weight dispersion rests at a moderate level, enabling differentiation (to address diverse threats) while avoiding excessive scatter; the peak weight crest touches approximately 0.45∼0.5, surfacing at T = 4∼5 min, matching major threat episodes, suggesting the system can marshal decision weights at critical instants. The trough weight remains in the 0.02-0.05 range, ensuring that even the lowest-priority experts retain foundational influence, reflecting a fault-tolerant design philosophy.

Figure 5. Changes in expert weights.
The spread of threats within a UAV network and the counteraction orchestrated by the LLMs are illustrated in Figure 6. A distance-based geometric representation was constructed atop 15 UAVs. For principal spread pathways, merely 1∼2 hops are required from the high-altitude node to the adjacent subgroup, 3∼4 hops for cross-subgroup links, and 4∼5 hops for the network periphery node. The LLM operates as an orchestration nexus at nodes 0, 5, 10, and 14, shouldering threat information fusion and response orchestration, executing a shielding strategy that features early intervention under mild-threat states, communication quarantine of severe-threat nodes, and joint shielding of neighboring nodes.

Figure 6. UAV network threat propagation and LLM-coordinated response.
Figure 7 offers a comparative view of the learning velocity and effectiveness of multiple algorithms. The LLM-LCSA trajectory exhibits the steepest ascent, denoting rapid accommodation to novel threat patterns. Conventional approaches gain proficiency more gradually and encounter learning ceilings later. Given the heterogeneous nature of threats, a single algorithm cannot reliably pinpoint them. LLM-LCSA incorporates a hybrid expert system in which several LLM components work in concert to enhance decision-making and recognition capabilities across diverse threats.

Figure 7. Learning curve and performance comparison.
As shown in Figure 8, LLM-LCSA consistently outperforms all baseline competitors, underscoring its resilience and broad applicability. The architecture demonstrates strong performance in detecting intricate threats, achieving 15.2% gains over GNN baselines in malware identification and 18.7% gains against GPT spoofing. This is credited to its potent fusion of multisource feeds and expert insight. Furthermore, LLM-LCSA achieves an average margin of 5.4% in flagging simpler threats, such as sensor and spectrum jamming, domains typically handled by CNN-centric approaches. Across varied attack scenarios, LLM-LCSA outperforms the leading algorithm in the comparison ensemble by an average of 7.92%, substantiating the efficacy of our hierarchical cooperative design.

Figure 8. Threat type detection accuracy.
The consumption of eight vital resources (computational capacity, communication bandwidth, data and model storage, energy budget, RAM footprint, connection quality and delay, dedicated processing units, and sensor assets) is portrayed in Figure 9. Because the model requires data refreshes and interaction with external systems, its reliance on communication assets exceeds that on other vital resources. Nonetheless, this surge occurs solely around the 1.7 min mark, enabling staggered orchestration with other vital resources. At this point, no other resource experiences peak consumption, thereby realizing load distribution and averting single-point resource bottlenecks.

Figure 9. Resource consumption analysis.
To foreground the superiority of this architecture in cooperative response at the system tier, we additionally performed weighted blending on alternative techniques, selecting enterprise rule-based frameworks, widely adopted academic ML stacks, and distributed systems, assigning them weights of 0.4, 0.35, and 0.25, respectively, to generate a cooperative architecture emblematic of conventional approaches.
The response delay comparison is presented in Figure 10. The five critical response phases are: from threat emergence to detection confirmation; from detection to decision output; resource allocation and execution interval; multinode cooperative response interval; and from attack to system restoration. Measured against conventional approaches, LLM-LCSA achieves a threat detection delay of 18 ms vs. 35 ms (a 49% reduction), a decision formulation interval of 52 ms vs. 85 ms, a resource orchestration speed of 68 ms vs. 120 ms, a cooperative response interval of 95 ms vs. 180 ms, a 47% efficiency boost, a 46% cut in system restoration interval, and a 44.52% reduction in total interval. Consequently, LLM-LCSA realizes multilayer parallel computation, facilitates trend-driven proactive readiness, and compresses the response interval.

Figure 10. Response latency comparison.
The evaluation outcomes for scalability and adaptability are presented in Figure 11. The behavior of conventional approaches is juxtaposed with that of our framework as the UAV count rises. The performance curve of LLM-LCSA tapers off gradually, whereas that of conventional approaches falls off sharply. Once the UAV count reaches 30, the performance gap widens markedly. Across distinct adaptation contexts, LLM-LCSA secures superior ratings. Owing to its knack for perpetually internalizing fresh threat signatures, it achieves better outcomes during strategy renewal episodes.

Figure 11. Scalability and adaptability analysis.
The results of the threat response timing assessment are displayed in Figure 12. The experiment encompassed 120 time increments, spanning roughly 13 min, each approximately 6.5 s. The examination indicates that the threat surfaced at 130 s, and by 143 s, LLM-LCSA had initiated its upgraded countermove, with the countermove’s peak magnitude reaching 105.5% of the threat’s peak magnitude. The countermove extended across the full duration from threat onset to dissipation, closely tracking the threat’s evolution contour. Conventional approaches did not begin reacting until 97.5 time increments after threat surfacing (about 1.4 min behind LLM-LCSA), resulting in delays and insufficient countermove magnitude. Accordingly, LLM-LCSA is endowed with threat early-warning capacity, delivers more precise countermeasure magnitude, and can fully satisfy threat management requirements throughout the lifecycle.

Figure 12. Threat response time series analysis.
To thoroughly evaluate the dependability of LLM-LCSA, we additionally examined its false alarm rate and miss rate. The false alarm rate captures the frequency with which the system incorrectly labels benign activity as a threat, whereas the miss rate captures the fraction of genuine threats the system neglects to flag. As illustrated in Figure 13, the LLM-LCSA framework recorded substantially lower false alarm and miss rates than conventional approaches across all eight threat categories. Concretely, LLM-LCSA attains a mean false alarm rate of 3.2% and a mean miss rate of 2.1%. Placed alongside conventional approaches (false alarm rate: 8.7%, miss rate: 6.5%), these numbers translate into relative declines of 63.2% and 67.7%, respectively. This result thus amply attests to the equilibrium LLM-LCSA strikes between precision and recall in threat identification.

Figure 13. False positive rate and false negative rate analysis.
To corroborate LLM-LCSA’s scalability, we incrementally increased the UAV count to 30, 45, and 60. Figure 14 illustrates the response durations of each constituent. As the UAV scale broadens, the response time of cloud-based models grows most rapidly, yet it remains within a tolerable performance band. The lightweight LLM module, expert system module, and decision fusion module stayed nearly unaffected, registering response duration growth of under 2 ms. This confirms that, even as the UAV fleet swells, the system maintains real-time responsiveness with minimal additional latency.

Figure 14. System response times at different UAV scales.
Figure 15 depicts the accuracy of varied algorithms against different threats when the UAV tally reaches 60. One can observe that as the UAV scale increases, the LLM-LCSA’s threat identification accuracy remains relatively unchanged. In contrast, the baseline technique shows a discernible deterioration in performance.

Figure 15. Threat type detection accuracy (UAV = 16).
We selected GNN, which exhibited standout results among the comparator algorithms, for contrastive scrutiny. We analyzed the accuracy trajectories alongside LLM-LCSA across varying UAV counts, as shown in Figure 16. Physical strikes usually carry severe repercussions, are comparatively easy to detect, and their accuracy remains largely indifferent to UAV scale variation. For network strikes, attack sources can branch out through numerous channels. Even a single strike readily detectable in compact networks may transmute into a hard-to-trace “multi-point synchronized assault” in vast networks. Consequently, as the UAV node count increases, the accuracy of network strike-detection algorithms tends to erode. Nonetheless, LLM-LCSA maintains an accuracy exceeding 80%, demonstrating pronounced robustness. Although GNN techniques are theoretically suited to networked configurations, their performance likewise falters when grappling with large-scale, high-density graph architectures due to computational complexity strains. Notably, despite this performance erosion, LLM-LCSA retains the highest absolute accuracy among all techniques across scales. Its performance erosion is comparatively subdued, far less drastic than that observed in baseline techniques.

Figure 16. Threat detection accuracy of LLM-LCSA and GNN.
To situate this inquiry within the broader realm of large-scale parallel and clustered systems, we place it alongside pioneering work in the field of cluster robotics to establish its position there. Yasser et al. [40] maximized task distribution efficiency by optimizing the communication topology within the cluster (CDTA-CL/DL), focusing on streamlining information flow pathways. The present study grapples with the unique security challenges of UAV clusters by advancing the LLM-LCSA architecture, shifting its emphasis to streamlining cognitive and decision-making pipelines. We deploy LLMs and MoEs mechanisms via a cloud–edge–end tiered structure, elastically marshaling expert knowledge to fend off complex threats while explicitly encoding resource bounds into the decision process. Hence, for tasks with well-defined contours, communication refinement stands as the method of choice; whereas for high-uncertainty challenges such as security, augmenting the system’s cognitive intelligence becomes essential. Despite disparate paths, both reinforce a core axiom: efficient parallel systems depend on deliberate trade-offs between performance and resources inside decentralized coordination frameworks. Our work shows that this axiom extends from communication strata to AI decision strata, further validating the merit of LLM-LCSA within generalized parallel intelligent systems.
To address the difficulties conventional techniques face in multi-unit cooperative protection for UAV swarms—including dynamic threat proliferation, heterogeneous data integration challenges, and resource-constrained decision-making lag—this paper proposes LLM-LCSA. Through cloud–edge–end cooperative placement and intelligent agent decision-making, the proposed framework provides an effective countermeasure against threats. The core contributions of this investigation are outlined below.
We propose the LLM-LCSA model, which interlinks short- and long-range historical databases via a sliding-window integration scheme to boost the throughput of multisource asynchronous data merging. Every constituent garners robust performance scores. In addition, we introduce hybrid expert-based intelligent agents and engineer a tiered cooperative threat identification algorithm, achieving a mean gain of 7.92% in threat identification accuracy over conventional techniques. In resource-constrained settings, we formulate a multi-objective optimization model that balances resource consumption and performance, effectively reducing communication burden and decision lag. The simulation results show a 44.52% reduction in total decision time compared to conventional techniques. The load distribution tactic successfully circumvents single-resource chokepoints, significantly elevating resource efficiency.
This paper provides a novel solution to the cooperative protection of UAV swarms. Future explorations will build on this foundation to strengthen the practicality and scalability of LLM-LCSA. Key directions include investigating lightweight models for physical-layer strike identification, designing a cross-swarm federated learning framework for privacy-protective cooperative training, and verifying the system’s real-time behavior within converged 6G network settings, such as highly secure smart factories, low-latency smart cities, and data-sharing smart logistics.
The following abbreviations are used in this manuscript:
|
None
None
This work was supported by the National Key Research and Development Program of China under Grant 2024YFE0200300, the National Natural Science Foundation of China (No. 92367201 and No. 62371039), and BIT Research and Innovation Promoting Project (Grant No. 2024YCXY027).
None
Open Access The author(s) retain copyright. This article is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. It may be shared and adapted for non-commercial purposes with appropriate attribution, an indication of changes, and distribution of adaptations under the same license. Third-party material may be subject to separate terms identified in its credit line. View the license at https://creativecommons.org/licenses/by-nc-sa/4.0/.