Abstract
Centralised training and decentralised execution (CTDE) is one of the most effective approaches in multiagent reinforcement learning (MARL). However, these CTDE methods still require large amounts of interaction with the environment, even to reach the same performance as very simple heuristic-based algorithms. Although model-based RL is a prominent approach to improve sample efficiency, its adaptation to a multi-agent setting combining existing CTDE methods has not been well studied in the literature. The few existing studies only consider settings with relaxed restrictions on the number of agents and observable range. In this paper, we consider CTDE settings where some information about each agent’s observations (e.g. each agent’s visibility, number of agents) are changed dynamically. In such a setting, the fundamental challenge is how to train models that accurately generate each agent’s observations with complex transitions in addition to the central state, and how to use it for sample efficient policy learning. We propose a multi-agent model-based RL algorithm based on the novel model architecture consisting of global and local prediction models with model mediator. We evaluate our model-based RL approach applied to an existing CTDE method on challenging StarCraft II micromanagement tasks and show that it can learn an effective policy with fewer interactions with the environment.
Introduction
Multi-Agent Reinforcement Learning (MARL) has achieved significant success using the Centralized Training and Decentralized Execution (CTDE) framework. Despite its effectiveness, CTDE is notoriously "sample hungry," often requiring millions of environment interactions to converge on optimal policies. While Model-Based Reinforcement Learning (MBRL) offers a solution by learning a "world model" to simulate experiences, its application to multi-agent settings remains challenging.
Most existing multi-agent MBRL research assumes static environments with a fixed number of agents and full visibility. However, real-world scenarios—and complex simulations like StarCraft II—are dynamic: agents can be eliminated, move out of sensor range, or be obscured by "fog of war." Standard neural networks struggle to predict these discrete, abrupt transitions, often generating "ghost" observations that degrade policy learning. This paper introduces a novel architecture designed to handle these discontinuities explicitly.
Proposed Architecture
To address the complexities of dynamic multi-agent environments, we propose an MBRL architecture that decouples environment dynamics into global and local components, governed by a specialized "Model Mediator."
The architecture comprises three primary modules:
- Global Prediction Model: Learns high-level dynamics by taking the current global state ($s_t$) and joint actions ($u_t$) to predict the next state ($s_{t+1}$) and reward.
- Local Prediction Model: Focuses on individual agent observations ($o_t^n$). By utilizing the predicted global state, it generates specific agent-centric views, reducing computational complexity and improving local accuracy.
- Model Mediator: This module acts as a bridge between continuous predictions and discrete environment changes.
The Model Mediator Mechanism
The Model Mediator is the core innovation of this work. It employs binary classifiers to predict two critical binary states: agent existence (alive vs. dead) and entity visibility (observable vs. unobservable).
By acting as a mask, the Mediator filters the outputs of the prediction models. If an agent is predicted to be "dead," the Mediator zeros out its corresponding features. This explicit modeling of discontinuities allows the underlying neural networks to focus on continuous transitions (like movement) while the Mediator handles the "if-then" logic of agent removal, preventing the propagation of erroneous data to the policy.
Experimental Evaluation
We evaluated our approach using the StarCraft Multi-Agent Challenge (SMAC), a rigorous benchmark for MARL. Testing spanned several maps, including homogeneous (3m, 5m, 8m) and heterogeneous (2s3z, 3s5z) configurations. The system was integrated with QMIX, a popular model-free algorithm, using learned models to generate "rollouts" (short sequences of simulated experience) alongside real-world data.
Key Results
- Sample Efficiency: On the 3m and 5m maps, our method reached high win rates within just 100,000 steps. In comparison, the model-free QMIX baseline often maintained a 0% win rate at the same interval, typically requiring nearly 1 million steps to reach similar performance.
- Mediator Necessity: Ablation studies showed that removing the Model Mediator led to significantly degraded performance and increased variance. This confirms that explicitly handling agent status is vital for stable world modeling in dynamic environments.
- Model Fidelity: Qualitative analysis demonstrated that the learned world model could accurately simulate entire episodes, with episode lengths and win rates in the "rollout" environment closely matching the real environment.
Discussion and Conclusion
Our results highlight the importance of "dividing and conquering" the world modeling task in multi-agent systems. By splitting global and local dynamics and introducing an explicit mediator for discrete events, we significantly improve sample efficiency.
However, limitations remain. As the number of agents increases (e.g., on the 8m map), cumulative prediction errors can grow, making long-term rollouts less reliable. Future work will explore the integration of Recurrent Neural Networks (RNNs) or Attention mechanisms to better capture temporal dependencies and scale to even larger agent populations.
Summary updated