Introduction
Multi-Agent Reinforcement Learning (MARL) is a powerful paradigm for solving complex coordination tasks, yet it is often hampered by the "curse of dimensionality." As the number of agents grows, the interaction space expands exponentially, making traditional online learning prohibitively expensive in terms of data collection. While offline reinforcement learning—learning from pre-collected datasets—offers a potential solution, its application to multi-agent systems has remained largely unexplored.
This paper introduces the Multi-agent Decision Transformer (MADT), the first framework to successfully adapt the Decision Transformer architecture to the MARL setting. By treating multi-agent trajectories as a sequence modeling problem and leveraging large-scale offline pre-training, MADT achieves state-of-the-art performance and remarkable zero-shot generalization across diverse tasks.
Methods
The core innovation of MADT is the shift from iterative policy optimization to conditional sequence modeling.
Architecture
MADT utilizes a causal transformer backbone to process agent trajectories. Unlike the original single-agent Decision Transformer, MADT reformulates input tokens as triples consisting of global states, local observations, and actions. To maintain a universal model capable of controlling varying numbers of agents and feature sizes, the authors employ parameter sharing, zero-padding for features, and action masking.
Two-Phase Training Workflow
The framework operates in two distinct stages:
- Offline Pre-training: The model is trained on diverse, multi-quality datasets using a cross-entropy loss to predict the next action in a sequence, effectively performing a form of multi-agent imitation learning.
- Online Fine-tuning (MADT-PPO): To mitigate distribution shift—where the model encounters states not present in the offline data—the pre-trained transformer is integrated into a Proximal Policy Optimization (PPO) framework. Here, the transformer serves as the backbone for both the actor and a centralized critic.
Datasets and Evaluation
To support this research, the authors contributed the first large-scale offline MARL dataset based on the StarCraft II Multi-Agent Challenge (SMAC). This dataset includes trajectories of varying quality ("poor," "medium," and "good") across maps of different difficulties, such as the easy "2s3z" and the super-hard "Corridor." These datasets are specifically structured for sequence modeling, adhering to the Decentralized Partially Observable Markov Decision Process (Dec-POMDP) property.
Key Insights
- The "Reward-to-go" Paradox: While "reward-to-go" is a critical input for single-agent Decision Transformers, the authors discovered it was detrimental during online fine-tuning in MARL. Because initial online rewards are often lower than those in high-quality offline data, the model's performance became unstable. Removing this input significantly improved fine-tuning stability.
- Zero-Shot Generalization: A standout feature of MADT is its ability to perform zero-shot transfer. Because the model learns general relationships between observations and actions across multiple maps, it can control new unit compositions in unseen scenarios with no additional training.
Results and Performance
MADT consistently outperformed established offline RL baselines like BCQ and CQL across nearly all SMAC maps. During online fine-tuning, the pre-trained MADT demonstrated exceptional sample efficiency. For instance, on the "3s VS 5z" map, it reached a 100% win rate using approximately 10x fewer samples than a standard MAPPO approach trained from scratch.
Conclusion
MADT represents a significant step toward "foundation models" for multi-agent decision-making. While transformers introduce higher computational overhead compared to simple MLPs, the gains in sample efficiency and generalization are substantial. Future work will focus on scaling these models further and testing their efficacy in real-world domains like robotics and traffic management.
Summary updated