[Paper Review] Offline Pre-trained Multi-Agent Decision Transformer: One Big Sequence Model Tackles All SMAC Tasks
This paper proposes Multi-Agent Decision Transformer (MADT), a unified sequence modeling framework based on transformers that enables offline pre-training for multi-agent reinforcement learning (MARL). By leveraging large-scale offline StarCraft II datasets, MADT achieves superior sample efficiency and strong few-shot/zero-shot generalization across diverse SMAC tasks, outperforming state-of-the-art offline RL methods and demonstrating effective transfer to online fine-tuning scenarios.
Offline reinforcement learning leverages previously-collected offline datasets to learn optimal policies with no necessity to access the real environment. Such a paradigm is also desirable for multi-agent reinforcement learning (MARL) tasks, given the increased interactions among agents and with the enviroment. Yet, in MARL, the paradigm of offline pre-training with online fine-tuning has not been studied, nor datasets or benchmarks for offline MARL research are available. In this paper, we facilitate the research by providing large-scale datasets, and use them to examine the usage of the Decision Transformer in the context of MARL. We investigate the generalisation of MARL offline pre-training in the following three aspects: 1) between single agents and multiple agents, 2) from offline pretraining to the online fine-tuning, and 3) to that of multiple downstream tasks with few-shot and zero-shot capabilities. We start by introducing the first offline MARL dataset with diverse quality levels based on the StarCraftII environment, and then propose the novel architecture of multi-agent decision transformer (MADT) for effective offline learning. MADT leverages transformer's modelling ability of sequence modelling and integrates it seamlessly with both offline and online MARL tasks. A crucial benefit of MADT is that it learns generalisable policies that can transfer between different types of agents under different task scenarios. On StarCraft II offline dataset, MADT outperforms the state-of-the-art offline RL baselines. When applied to online tasks, the pre-trained MADT significantly improves sample efficiency, and enjoys strong performance both few-short and zero-shot cases. To our best knowledge, this is the first work that studies and demonstrates the effectiveness of offline pre-trained models in terms of sample efficiency and generalisability enhancements in MARL.
Motivation & Objective
- To address the lack of large-scale offline MARL datasets and benchmarks for pre-training.
- To investigate whether offline pre-training with sequence modeling can enhance sample efficiency and transferability in multi-agent RL.
- To develop a unified sequence model capable of generalizing across diverse SMAC tasks with few-shot and zero-shot capabilities.
- To evaluate the effectiveness of transformer-based modeling in offline and online MARL settings.
Proposed method
- Proposes a novel Multi-Agent Decision Transformer (MADT) architecture that models state, action, and reward sequences using self-attention mechanisms.
- Uses offline datasets from the StarCraft II environment with varying skill levels to pre-train a single universal sequence model.
- Employs only state embeddings as input during pre-training and fine-tuning, excluding reward-to-go to avoid distributional shift.
- Adapts the pre-trained MADT for online fine-tuning using MAPPO as the online policy optimization algorithm.
- Applies conditional sequence modeling to predict actions given state sequences, treating MARL as a conditional generation task.
- Combines multi-task pre-training across five SMAC scenarios to improve policy generalization.
Experimental results
Research questions
- RQ1Can a single offline pre-trained sequence model generalize across multiple SMAC tasks with few-shot and zero-shot capabilities?
- RQ2How does offline pre-training with MADT improve sample efficiency in online MARL fine-tuning?
- RQ3Why is the inclusion of reward-to-go detrimental to online fine-tuning performance in pre-trained models?
- RQ4What is the impact of using MAPPO versus other policy gradient methods for online adaptation of pre-trained transformers?
- RQ5Why does the offline-only version of MADT fail to improve during online fine-tuning?
Key findings
- MADT outperforms state-of-the-art offline RL baselines (BC, BCQ, CQL, ICQ) on the SMAC offline benchmark.
- When fine-tuned online, pre-trained MADT achieves higher returns than training from scratch with only 2.5 million environment interactions.
- The pre-trained MADT policy generalizes effectively to unseen maps (e.g., 3s_vs_4z), demonstrating strong zero-shot transfer performance.
- Excluding reward-to-go from input features leads to better online fine-tuning performance due to reduced distributional shift between offline and online data.
- Using MAPPO for online fine-tuning significantly improves sample efficiency compared to simpler policy gradient methods.
- The offline-only version of MADT fails to improve during online fine-tuning, indicating a lack of reward-seeking motivation in supervised pre-training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.