DTPPO: Dual-Transformer Encoder-Based Proximal Policy Optimization for Multi-UAV Navigation in Unseen Complex Environments

Anlei Wei, Jintao Liang, Kaiyuan Lin, Ziyue Li, Rui ZhaoDrones 2024 · DOI

Abstract

Navigating multi-UAV swarms through dense, unknown environments remains a significant challenge in robotics due to the poor generalization of traditional reinforcement learning models. This paper introduces DTPPO (Dual-Transformer Proximal Policy Optimization), a decentralized navigation framework designed for zero-shot transfer. By utilizing a Dual-Transformer Encoder to capture both spatial inter-agent dependencies and temporal environmental context, DTPPO enables UAVs to adapt to unseen obstacle configurations without retraining. Evaluations in high-fidelity 3D simulations show that DTPPO significantly outperforms state-of-the-art baselines in navigation efficiency and safety across complex, randomized scenarios.

Introduction

The deployment of Unmanned Aerial Vehicle (UAV) swarms in urban or disaster-stricken areas requires robust decentralized navigation. While Multi-Agent Deep Reinforcement Learning (MADRL) has shown promise, existing models often lack "cross-scenario transferability"—they fail when the obstacle density or geometry differs from the training environment. DTPPO addresses this "brittleness" by framing navigation as a context-aware task, where the agent's history and its neighbors' states provide the necessary information to navigate novel terrains.

Methods: The Dual-Transformer Architecture

The core of DTPPO is the Dual-Transformer Encoder, which processes multi-agent information to inform a Proximal Policy Optimization (PPO) framework.

The DTPPO architecture featuring the Dual-Transformer Encoder (Spatial and Temporal modules) integrated with Actor-Critic networks.

The architecture is defined by three primary components:

  1. Spatial Transformer: This module models inter-agent dynamics by processing the full Markov Decision Process (MDP) features—including observations, previous actions, and rewards—of the target UAV and its four nearest neighbors. This allows the agent to understand neighbor intent and coordinate movements in tight spaces.
  2. Temporal Transformer: By analyzing a sliding window of the last 20 time steps, this module captures the "rhythm" of the environment. It effectively performs in-context learning, allowing the UAV to infer obstacle density and environmental difficulty from its own movement history.
  3. Auxiliary Tasks and Residuals: A dynamic predictor ensures the temporal embeddings capture meaningful environmental transitions, while a residual link preserves raw sensor data for immediate obstacle avoidance.

Experimental Setup

The model was developed and tested using the gym-pybullet-drones simulator.

  • Training: Agents were co-trained on 9 maps with varying obstacle types (pillars, cylinders, mixed shapes) and densities (10% to 50%).
  • Testing: Zero-shot transfer was evaluated on 6 entirely unseen maps with randomized configurations to verify the model's generalist capabilities.

Results and Discussion

DTPPO demonstrates remarkable robustness when transferred to complex, unseen environments.

Visualization of the zero-shot transfer process: the model is trained on simpler scenes (I and II) and successfully navigates the more complex Scene-III without further tuning.

In the most challenging "Mixed" environment (Scene-III) with 50% obstacle density, DTPPO achieved an average transfer reward of 214.55, significantly higher than MAPPO (134.90) and MARDPG (77.69). This indicates that the Dual-Transformer structure successfully extracts generalizable navigation features.

Safety and Coordination

Safety is a critical metric for swarm operations. DTPPO maintained the lowest collision penalties across all test scenarios. For instance, in Scene-II (50% density), its collision penalty was only 2.56, whereas MAPPO and MADDPG recorded penalties of 5.80 and 24.27, respectively. Ablation studies confirmed that the Spatial Transformer is the primary driver for this improved safety, as it facilitates better inter-agent coordination.

Conclusion

DTPPO provides a scalable and robust solution for multi-UAV navigation in complex, unseen environments. By leveraging the strengths of Transformers for both spatial and temporal modeling, the system achieves high-performance zero-shot transfer. Future work will focus on addressing the sim-to-real gap and extending the framework to heterogeneous swarms with varying flight dynamics.

Summary updated

Abstract

Existing multi-agent deep reinforcement learning (MADRL) methods for multi-UAV navigation face challenges in generalization, particularly when applied to unseen complex environments. To address these limitations, we propose a Dual-Transformer Encoder-Based Proximal Policy Optimization (DTPPO) method. DTPPO enhances multi-UAV collaboration through a Spatial Transformer, which models inter-agent dynamics, and a Temporal Transformer, which captures temporal dependencies to improve generalization across diverse environments. This architecture allows UAVs to navigate new, unseen environments without retraining. Extensive simulations demonstrate that DTPPO outperforms current MADRL methods in terms of transferability, obstacle avoidance, and navigation efficiency across environments with varying obstacle densities. The results confirm DTPPO’s effectiveness as a robust solution for multi-UAV navigation in both known and unseen scenarios.
BibTeX
@inproceedings{wei2024dtppo,
  author = {Anlei Wei and Jintao Liang and Kaiyuan Lin and Ziyue Li and Rui Zhao},
  title = {{DTPPO: Dual-Transformer Encoder-Based Proximal Policy Optimization for Multi-UAV Navigation in Unseen Complex Environments}},
  booktitle = {Drones},
  year = {2024},
  doi = {10.3390/drones8120720},
}
Figure