Distributed Cooperative Spectrum Sharing in UAV Networks Using Multi-Agent Reinforcement Learning

Alireza Shamsoshoara, Mehrdad Khaledi, Fatemeh Afghah, Abolfazl Razi, Jonathan D. Ashdown

Abstract

This paper investigates a decentralized cooperative spectrum sharing mechanism for Unmanned Aerial Vehicle (UAV) networks. To overcome spectrum scarcity, a swarm of UAVs engages in spectrum leasing by acting as relays for a licensed terrestrial Primary User (PU). We propose a distributed Multi-Agent Reinforcement Learning (MARL) approach based on Q-learning to optimize task allocation between relaying for the PU and performing the UAV network's primary sensing missions. By incorporating Jain’s Fairness Index into the reward function, the system achieves a stable equilibrium that maximizes total utility without centralized control. Simulation results demonstrate convergence to optimal partitions and robustness across different swarm sizes.

Introduction

As Unmanned Aerial Vehicles (UAVs) become ubiquitous in civilian and military roles, they face a major bottleneck: spectrum scarcity. High-bandwidth tasks like low-latency video streaming require significant radio frequency (RF) resources. Traditional methods like "spectrum sensing" (where UAVs look for empty gaps) are energy-intensive and often unreliable in congested environments.

This research addresses the challenge of gaining guaranteed spectrum access through a "cooperative spectrum leasing" framework. In this scenario, a licensed terrestrial Primary User (PU) allows UAVs to use its spectrum, provided that a subset of those UAVs act as relays to assist the PU's data transmission. The core challenge lies in task allocation: determining how an autonomous swarm can decide, in a distributed fashion, which drones should assist the PU and which should focus on the UAV network's primary mission.

Figure 3: Conceptual diagram of the cooperative spectrum sharing environment, showing the UAV swarm partitioned between the UAV network task (top) and the Primary User relay task (bottom).

Methodology

Task Partitioning and Relay Protocol

The UAV swarm is dynamically split into two functional groups: $K$ drones serve as relays for the Primary User, while the remaining $N-K$ drones execute the UAV network's sensing and transmission tasks. The system employs an Amplify-and-Forward (AF) cooperation protocol, where relaying UAVs amplify received signals to bridge the distance between terrestrial transmitters and receivers.

Figure 4: Detailed system model illustrating the mathematical structure of the two task groups and their respective channel gains (h).

Distributed Multi-Agent Reinforcement Learning (MARL)

To avoid the computational explosion of a centralized controller, the researchers developed a distributed mechanism based on Q-learning. Each UAV maintains a local Q-table rather than a global one, significantly reducing complexity from exponential to linear ($O(|S|)$).

The learning process is guided by a composite reward function (Gain Function) that balances three critical metrics:

  1. UAV Network Throughput: The data rate achieved by the sensing mission.
  2. Primary User Throughput: The data rate achieved by the PU via UAV relaying.
  3. Jain’s Fairness Index: A constraint that prevents the system from "starving" one task to maximize the other, ensuring a stable "win-win" equilibrium.

At the conclusion of each time slot, the fusion center and PU receiver broadcast feedback containing achieved rates and rewards, which the individual UAV agents use to update their local policies.

Performance Evaluation

The approach was evaluated in a custom-built simulation environment representing a 100m x 100m mission area with slow Rayleigh fading channels. Two primary scenarios were tested:

  • 2-UAV Scenario: The system reached a stable, optimal task allocation after approximately 35 iterations.
  • 6-UAV Scenario: Despite the increased state space, the algorithm converged in roughly 240 iterations.

Key results indicated that once convergence is achieved, the "Number of Switching UAVs" drops to zero, signifying a stable partition. Furthermore, the agents exhibited distance-awareness, naturally learning to join the task group most relevant to their physical proximity (e.g., UAVs closer to the PU's path prioritized relaying for the PU).

Conclusion and Future Work

This MARL-based approach demonstrates that decentralized UAV swarms can effectively manage spectrum resources through cooperative bargaining. By utilizing local Q-tables and global feedback, drones achieve optimal task allocation without direct inter-agent communication.

Future research will address current limitations, such as the assumption of a static topology. In real-world applications, UAV mobility would require the algorithm to adapt to constantly shifting optimal relay positions. Additionally, exploring heterogeneous swarms—where drones have varying power levels or sensor capabilities—could further optimize the efficiency of cooperative spectrum sharing.

Summary updated

BibTeX
@inproceedings{shamsoshoara2019distributed,
  author = {Alireza Shamsoshoara and Mehrdad Khaledi and Fatemeh Afghah and Abolfazl Razi and Jonathan D. Ashdown},
  title = {{Distributed Cooperative Spectrum Sharing in UAV Networks Using Multi-Agent Reinforcement Learning}},
  booktitle = {CCNC},
  year = {2019},
  doi = {10.1109/ccnc.2019.8651796},
}
Figure