NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

Deep Reinforcement Learning for Multi-UAV Data Harvesting Under Variable Team Sizes and Agent Loss

Thiago de Souza Lamenza, Bruno José Olivieri de Souza, Markus EndlerarXiv 2026

TL;DR

Swarms of drones collecting data from remote ground sensors usually rely on brittle AI brains trained for a specific, unchanging headcount—meaning if one drone crashes, coordination can unravel. This paper introduces F-MADDPG, a flexible multi-agent reinforcement learning architecture that lets a single policy smoothly adapt to changing team sizes and sensor counts on the fly. Even better, the authors discover that you don't actually need to simulate crashes during training to build crash-proof swarms; just varying the starting team sizes is enough.

What Problem Does This Paper Address?

Imagine scattering wireless sensors across a remote forest with zero cell service. Sending a team of unmanned aerial vehicles (UAVs) to fly over and harvest those sensor readings via short-range radio is a natural solution. To avoid collisions or awkwardly visiting the same sensor twice, researchers use Multi-Agent Reinforcement Learning (MARL), where agents learn decentralized teamwork through trial and error.

The catch? Standard neural networks expect fixed-size input vectors. If you train a controller for five drones, deploying four—or losing one mid-flight to a dead battery or bad weather—breaks the mold. Training a separate model for every possible team size is computationally expensive, and simply padding missing-agent slots with dummy numbers (like -1) confuses standard networks, which can't inherently tell a real coordinate from a placeholder. How do we train one policy that handles any team size and shrugs off sudden, permanent losses mid-mission?

Methods

The authors build on a standard MARL framework called MADDPG (Multi-Agent Deep Deterministic Policy Gradient), which uses centralized training and decentralized execution: during training, a central "critic" network judges teamwork using global info, while each drone uses a shared "actor" network to steer based only on local observations.

What’s new here are two key ingredients that turn MADDPG into F-MADDPG:

  • The Flexible Encoder: Instead of flattening everything into one rigid vector for a standard multilayer perceptron (MLP), F-MADDPG splits inputs by type. Fixed-size info (like a drone's ID) goes to an MLP head, while variable-count info (nearby uncollected sensors, active teammates) goes to masked self-attention heads followed by masked mean pooling. Validity masks explicitly block out collected sensors and crashed or nonexistent drones, compressing whatever is left into a clean, fixed-size representation.
Figure 1: Diagram of the Flexible Encoder architecture and how it is applied to the data-harvesting task. Inputs with variable-cardinality such as sensor and teammate positions are processed by masked attention heads while fixed-size inputs such as UAV identifiers are processed by MLP heads. The resulting representations are concatenated and mixed to produce a fixed-size output.
  • Inverse-Cardinality Team-Size Sampling: Because all drones share one brain, an 8-drone step dumps eight times more experience into the memory buffer than a 1-drone step, starving small teams of learning signal. To balance the scales, the authors sample initial team sizes $N_a$ inversely proportional to $N_a$ (so 1-drone episodes are launched much more often than 8-drone episodes).

Datasets

Not discussed in the paper. Because this is a reinforcement learning study, there are no static datasets. Instead, models train and evaluate inside an open-source simulated 2D continuous-action environment (25 million timesteps per run). Episodes spawn 1 to 8 UAVs and 1 to 36 stationary ground sensors at random positions, with data collected automatically whenever a drone flies within 20 meters of a sensor.

Key Insights and Ideas

  • You don't need to practice crashing to survive crashes: Intuitively, you might expect that teaching drones to handle mid-mission losses requires randomly killing agents during training. Surprisingly, injecting mid-flight failures during training offered no consistent benefit. Simply training across varying initial team sizes (1 to 8) was enough—when a drone dies mid-flight, the 5-drone team instantly becomes a 4-drone team, a state the policy already knows how to handle!
  • Attention accelerates learning: By explicitly masking out absent entities rather than forcing an MLP to decipher -1 padding, F-MADDPG learns valid spatial relationships almost twice as fast.
  • Balancing experience at the source works: Adjusting how often small teams are spawned at episode reset (inverse-cardinality sampling) beat both uniform sampling and a more complex replay-buffer bucketing strategy, especially rescuing solo-drone performance.

Key Results

  • Faster Training: F-MADDPG hit sustained 90%+ mission success at 5.3 million training steps, compared to 9.8 million for the padded MLP baseline.
Training curves showing F-MADDPG reaching 90%+ success roughly twice as fast as the MLP baseline.
  • Quicker Missions (Mostly): Across 1–8 agents, F-MADDPG finished missions 7.2 seconds faster on average than the MLP baseline—though in single-agent runs, its success rate trailed the baseline by 6.5 percentage points.
Figure 3: Performance of the final F-MADDPG and MLP baseline policies, stratified by initial number of agents. Error bars show 95% confidence intervals.
  • Smarter Sampling: Inverse-cardinality sampling boosted success rates by an average of 3 percentage points over uniform sampling (and +9.7 percentage points for solo drones).
  • Fault Tolerance & Zero-Shot Scaling: Policies trained with zero failures ($p=0$) maintained a 99.66% success rate even when tested under frequent mid-mission crashes, whereas a fixed-population policy collapsed as failure rates rose. Furthermore, models trained on at most 8 drones generalized zero-shot to swarms of 20 UAVs, steadily cutting completion times.

Limitations and Future Work

The simulation relies on idealized physics and communication: drones fly at fixed altitudes, change speed and direction instantaneously, and share global positions and sensor statuses over a lag-free, reliable network. Furthermore, each drone only observes up to its 7 closest teammates and 12 closest sensors; this bounded local view heavily aided the zero-shot jump to 20 drones and may not hold in tasks where global density changes local observations. Finally, each experimental condition used a single training run. Future work aims to test realistic flight dynamics, energy constraints, spotty communication, partial hardware degradation, and physical drone hardware.

Summary updated

Abstract

Collecting data from wireless sensors can be challenging when limited communication infrastructure prevents them from offloading their measurements. In such settings, unmanned aerial vehicles (UAVs) can exploit their mobility to harvest data locally, while coordinated UAV teams can provide efficient and redundant coverage of remote areas. Multi-agent reinforcement learning (MARL) enables such teams to learn decentralized coordination policies. However, training separate policies for different team and sensor populations is costly, and fixed-population policies may be vulnerable to agent failures. This work proposes F-MADDPG, a flexible variant of Multi-Agent Deep Deterministic Policy Gradient (MADDPG) that supports data harvesting with varying numbers of wireless sensors and UAVs. The framework also accommodates unexpected catastrophic failures that permanently remove agents during a mission. We compare F-MADDPG with a MADDPG baseline that uses multilayer perceptrons (MLPs) and evaluate training strategies based on team-size sampling and exposure to agent terminations. The results show that F-MADDPG learns across the evaluated population sizes, completes missions faster than the baseline on average, benefits from inverse-cardinality team-size sampling compared with uniform sampling, remains effective after permanent agent losses, and gains no consistent benefit from exposure to failures during training.
BibTeX
@misc{lamenza2026deep,
  author = {Thiago de Souza Lamenza and Bruno José Olivieri de Souza and Markus Endler},
  title = {{Deep Reinforcement Learning for Multi-UAV Data Harvesting Under Variable Team Sizes and Agent Loss}},
  year = {2026},
  eprint = {2611.34818},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34818},
}
Figure