Abstract
Cooperative multi-agent reinforcement learning (MARL), where agents coordinate with teammate(s) for a shared goal, may sustain non-stationarity caused by the policy change of teammates. Prior works mainly concentrate on policy changes across episodes, ignoring the fact that teammates may suffer from sudden policy changes within an episode, which might lead to miscoordination and poor performance. We formulate the problem as an open Dec-POMDP, where we control some agents to coordinate with uncontrolled teammates whose policies could be changed within one episode. We develop a new framework, Fast teammates adaptation (Fastap), to address this. Concretely, we first train versatile teammates’ policies and assign them to different clusters via the Chinese Restaurant Process (CRP). Then, we train the controlled agent(s) to coordinate with the sampled uncontrolled teammates by capturing their identifications as context for fast adaptation. Finally, each agent applies its local information to anticipate the teammates’ context for decision-making accordingly. This process proceeds alternately, leading to a robust policy that can adapt to any teammates during the decentralized execution phase. We show in multiple multi-agent benchmarks that Fastap can achieve superior performance than multiple baselines in stationary and non-stationary scenarios.
Introduction
In cooperative multi-agent reinforcement learning (MARL), agents often fail when their teammates suddenly change their behavior mid-mission. Most research assumes that while the environment might be complex, the "rules of engagement" with teammates are relatively stable or change slowly over many episodes. However, in real-world applications, a teammate might suffer a hardware fault, a communication lag, or a sudden shift in strategy within a single episode.
When a teammate's policy changes abruptly, standard MARL agents often suffer from miscoordination. They continue to act based on old expectations, leading to catastrophic performance drops. This paper formalizes this challenge as an Open Dec-POMDP, where the set of active teammate policies can change unpredictably at any time step. The goal is to create a "controllable agent" robust enough to recognize these shifts and pivot its strategy immediately.
The Fastap Framework
The proposed Fastap framework enables agents to identify and adapt to these sudden policy changes in real-time by clustering teammate behaviors and using local observations to infer the global team situation. It consists of three main pillars:
- CRP-Based Teammate Clustering: To handle a wide variety of possible teammate behaviors, the system uses a Chinese Restaurant Process (CRP). This non-parametric clustering method allows the model to group similar teammate behaviors into "clusters" automatically. Instead of learning to coordinate with infinite individual agents, the model learns to coordinate with a few distinct "behavioral types."
- Centralized Contextualization: During training, a global context encoder ($g_\theta$) looks at the entire state-action trajectory to identify which behavioral cluster the current teammates belong to. This "oracle" view helps the agent learn the ideal response for any given teammate type.
- Decentralized Situation Recognition: During execution, agents only have access to local observations. Fastap uses an Individual Context Encoder and Mutual Information (MI) maximization to bridge this gap. The local agent is trained to "guess" the global context based on its limited local view, allowing it to recognize team-wide policy shifts from its own perspective.
Experimental Evaluation
The researchers evaluated Fastap on four popular MARL benchmarks, modified to include sudden teammate policy shifts:
- Level-Based Foraging (LBF): A grid-world where agents must coordinate their levels to collect food.
- Predator-Prey (PP): Multiple predators must surround a fast-moving prey.
- Cooperative Navigation (CN): Agents must reach landmarks while avoiding collisions.
- StarCraft Multi-Agent Challenge (SMAC): A complex combat scenario (specifically the
10m_vs_14mmap) where allies must coordinate to defeat a larger enemy force.
Results and Key Insights
Fastap consistently outperformed baselines like QMIX, LIAM, and ODITS. In non-stationary scenarios where teammates changed policies every few steps, Fastap showed significantly less performance degradation. For instance, in the LBF environment, Fastap achieved a return of 0.562 in non-stationary settings, while the next best baseline (ESCP) trailed at 0.404.
Key takeaways from the evaluation include:
- Clustering as a Complexity Filter: By using the CRP, the authors avoid the "trivial encoding" problem where a model tries to memorize every specific teammate. Clustering shrinks the search space, making adaptation much faster.
- Local Inference of Global Shifts: The use of Mutual Information to align local encoders with global ones acknowledges that while an agent is "blind" to the whole team, the consequences of a teammate's policy change eventually manifest in the agent's local observations.
- Versatility over Specialization: Fastap doesn't just aim for robustness; it aims for adaptability, switching between specialized coordination strategies as it detects changes in the team's behavior. Visualization of episodes showed Fastap agents recognizing shifts within 1-2 frames and adjusting their strategy successfully.
Conclusion
While Fastap shows superior adaptation, there is a fundamental "speed limit"; if teammates change policies too frequently (e.g., every 2 timesteps), the agent cannot gather enough data to detect the change. Future work may explore "Open-environment MARL" where agents gain or lose abilities mid-game, or utilize Transformer architectures for even more robust context extraction over long-duration missions.
Summary updated