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

MAST: Multi-Agent Spatial Transformer for Learning to Collaborate

Damian Owerko, Frederic Vatnsdal, Saurav Agarwal, Vijay Kumar, Alejandro RibeiroarXiv 2025 · DOI

Introduction

Deploying large-scale multi-robot systems, such as drone swarms or warehouse fleets, offers significant advantages for tasks like search-and-rescue and environmental monitoring. However, these systems are often constrained by Size, Weight, and Power (SWaP), necessitating decentralized operation where robots rely on local sensing and limited peer-to-peer communication. A primary challenge lies in determining what information to share and how to fuse it to achieve global objectives. While Graph Neural Networks (GNNs) are commonly used, they often suffer from "over-smoothing" and "over-squashing" in multi-hop scenarios. This paper introduces the Multi-Agent Spatial Transformer (MAST), which adapts Transformer architectures to spatial robotics to overcome these limitations.

Methodology

The MAST architecture builds upon the Learnable Perception-Action-Communication (LPAC) framework, replacing GNN-based communication with a spatially-aware Transformer backbone.

Architecture Overview

MAST incorporates several innovations to handle physical robot swarms effectively:

  1. Continuous Rotary Positional Encodings (RoPE): Unlike standard Transformers that use absolute positions, MAST adapts RoPE to continuous 2D Euclidean space. This ensures shift-equivariance, allowing the model to focus on relative distances and directions rather than absolute coordinates.
  2. Windowed Attention: To maintain computational efficiency and improve generalization, MAST employs a radial attention window. Robots only attend to peers within a specific physical radius.
The MAST architecture integrates local sensing, perception, and communication using a spatial self-attention mechanism.

Training Strategy: Component Masking

Training decentralized policies is typically performed centrally for efficiency. However, this often leads to a distributional shift when models are deployed on decentralized hardware. To mitigate this, the authors introduce component masking. During centralized training, the model is artificially restricted from accessing information outside an agent's current communication graph. This prevents the model from "cheating" by using global state information, ensuring robustness to communication delays and topology changes during deployment.

Component masking ensures that the attention mechanism during centralized training respects the connectivity constraints of decentralized execution.

Experimental Setup

The performance of MAST was evaluated in simulation across two primary tasks:

  • Decentralized Assignment and Navigation (DAN): 100 agents must navigate to 100 goals in various clustered configurations.
  • Coverage Control: 32 agents must cover an Importance Density Function (IDF) in a 1024x1024m environment.
  • Generalization: Models were tested on out-of-distribution scenarios, including real-world city maps (Philadelphia, San Francisco, etc.) using traffic light locations as IDFs.

Results and Discussion

MAST consistently outperformed both heuristic and GNN-based baselines. In the DAN task, it achieved an ~85% success rate, surpassing the Decentralized Hungarian-based algorithm (DHBA). In coverage control, MAST significantly outperformed the state-of-the-art GNN approach (LPAC-K3), particularly in scenarios with long-range dependencies where information must travel across many hops.

Key insights include:

  • Spatial Equivariance: RoPE effectively bakes spatial understanding into the attention mechanism, allowing the model to inherently understand spatial relationships.
  • Scalability: Localizing attention allows a model trained on 100 agents to scale to swarms of up to 1,000 agents without significant performance drops.
  • Robustness: Component masking allows the model to maintain performance even with simulated communication delays of up to 1 second.

Conclusion

MAST demonstrates that Transformers, when properly adapted for spatial constraints, offer a powerful alternative to GNNs for multi-agent collaboration. By leveraging relative positional encodings and windowed attention, MAST achieves superior scalability and robustness. While some performance degradation occurs at extreme scales and in highly non-uniform environments, MAST represents a significant step forward in decentralized multi-robot coordination. Future work will explore more dynamic communication topologies and further improve generalization across varying agent densities.

Summary updated

BibTeX
@misc{owerko2025mast,
  author = {Damian Owerko and Frederic Vatnsdal and Saurav Agarwal and Vijay Kumar and Alejandro Ribeiro},
  title = {{MAST: Multi-Agent Spatial Transformer for Learning to Collaborate}},
  year = {2025},
  eprint = {2509.17195},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.17195},
}
Figure