AttentionSwarm: Reinforcement Learning with Attention Control Barier Function for Crazyflie Drones in Dynamic Environments
Grik Tadevosyan, Valerii Serpiva, Aleksey Fedoseev, Roohan Ahmed Khan, Demetros Aschu, Faryal Batool, Nickolay Efanov, Artem Mikhaylov, Dzmitry Tsetserukou
TL;DR
AttentionSwarm addresses safe, scalable multi agent drone control in dynamic environments by fusing a centralized MAPPO policy with an attention based Control Barrier Function. The Attention CBF network yields adaptive safety penalties that constrain the learned policy while preserving performance, enabling real time collision avoidance. Through extensive simulation and indoor real world experiments with Crazyflie drones, the approach achieves 95-100% collision free navigation and outperforms baselines such as MAPPO, A2C, and MPC. The work provides a practical framework for safe high speed multi robotic operations in applications like logistics, inspection, and racing.
Abstract
We introduce AttentionSwarm, a novel benchmark designed to evaluate safe and efficient swarm control in a dynamic drone racing scenario. Central to our approach is the Attention Model-Based Control Barrier Function (CBF) framework, which integrates attention mechanisms with safety-critical control theory to enable real-time collision avoidance and trajectory optimization. This framework dynamically prioritizes critical obstacles and agents in the swarm's vicinity using attention weights, while CBFs formally guarantee safety by enforcing collision-free constraints. The AttentionSwarm algorithm was developed and evaluated using a swarm of Crazyflie 2.1 micro quadrotors, which were tested indoors with the Vicon motion capture system to ensure precise localization and control. Experimental results show that our system achieves a 95-100% collision-free navigation rate in a dynamic multi-agent drone racing environment, underscoring its effectiveness and robustness in real-world scenarios. This work offers a promising foundation for safe, high-speed multi-robot applications in logistics, inspection, and racing.
