[Paper Review] Multi-Agent Reinforcement Learning is a Sequence Modeling Problem
The paper proposes Multi-Agent Transformer (MAT), an encoder-decoder architecture that casts cooperative MARL as a sequence modeling task, enabling on-policy training with monotonic improvement and linear-time updates. MAT demonstrates state-of-the-art results and strong generalization across multiple MARL benchmarks.
Large sequence model (SM) such as GPT series and BERT has displayed outstanding performance and generalization capabilities on vision, language, and recently reinforcement learning tasks. A natural follow-up question is how to abstract multi-agent decision making into an SM problem and benefit from the prosperous development of SMs. In this paper, we introduce a novel architecture named Multi-Agent Transformer (MAT) that effectively casts cooperative multi-agent reinforcement learning (MARL) into SM problems wherein the task is to map agents' observation sequence to agents' optimal action sequence. Our goal is to build the bridge between MARL and SMs so that the modeling power of modern sequence models can be unleashed for MARL. Central to our MAT is an encoder-decoder architecture which leverages the multi-agent advantage decomposition theorem to transform the joint policy search problem into a sequential decision making process; this renders only linear time complexity for multi-agent problems and, most importantly, endows MAT with monotonic performance improvement guarantee. Unlike prior arts such as Decision Transformer fit only pre-collected offline data, MAT is trained by online trials and errors from the environment in an on-policy fashion. To validate MAT, we conduct extensive experiments on StarCraftII, Multi-Agent MuJoCo, Dexterous Hands Manipulation, and Google Research Football benchmarks. Results demonstrate that MAT achieves superior performance and data efficiency compared to strong baselines including MAPPO and HAPPO. Furthermore, we demonstrate that MAT is an excellent few-short learner on unseen tasks regardless of changes in the number of agents. See our project page at https://sites.google.com/view/multi-agent-transformer.
Motivation & Objective
- Bridge cooperative MARL with sequence modeling to leverage modern sequence models.
- Transform joint policy search into a sequential decision process with additive complexity.
- Provide an online, on-policy training paradigm that guarantees monotonic performance improvement.
- Demonstrate MAT’s superiority and generalization across diverse MARL benchmarks.
Proposed method
- Introduce Multi-Agent Transformer (MAT) with an encoder-decoder structure.
- Use an encoder to map a sequence of agent observations to latent representations.
- Use a decoder with masked attention to generate agents’ actions sequentially, conditioning on predecessors.
- Train with PPO-style clipped objective and GAE-like advantages for joint optimization.
- Provide a CTDE-variant (MAT-Dec) as a decentralized baseline for comparison.
- Demonstrate monotonic improvement guarantee via the multi-agent advantage decomposition theorem.
Experimental results
Research questions
- RQ1Can cooperative MARL problems be effectively modeled as sequence modeling problems using an encoder-decoder architecture?
- RQ2Does a Transformer-based MAT achieve superior performance and data efficiency on standard MARL benchmarks compared to strong baselines?
- RQ3Can MAT generalize to unseen tasks and varying numbers/types of agents (few-shot/zero-shot settings)?
Key findings
- MAT achieves superior performance and data efficiency over MAPPO, HAPPO, QMIX, and UPDeT on multiple MARL benchmarks.
- MAT exploits a sequential update scheme that enables parallel training while preserving monotonic improvement guarantees.
- MAT demonstrates strong few-shot and zero-shot generalization across tasks with different agent numbers and failure modes.
- The decoder enables a fully parallelized training cycle, accelerating learning compared to strictly sequential methods.
- A CTDE-variant (MAT-Dec) confirms the importance of the MAT decoder for performance gains.
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.