Coordination Failure in Cooperative Offline MARL

Callum Rhys Tilbury, Claude Formanek, Louise Beyers, Jonathan P. Shock, Arnu Pretorius

Abstract

Offline multi-agent reinforcement learning (MARL) leverages static datasets of experience to learn optimal multi-agent control. However, learning from static data presents several unique challenges. In this paper, we focus on coordination failure and investigate the role of joint actions in multi-agent policy gradients with offline data, focusing on a common setting we refer to as the 'Best Response Under Data' (BRUD) approach. By using two-player polynomial games as an analytical tool, we demonstrate a simple yet overlooked failure mode of BRUD-based algorithms, which can lead to catastrophic coordination failure in the offline setting. Building on these insights, we propose an approach to mitigate such failure, by prioritising samples from the dataset based on joint-action similarity during policy learning and demonstrate its effectiveness in detailed experiments. More generally, however, we argue that prioritised dataset sampling is a promising area for innovation in offline MARL that can be combined with other effective approaches such as critic and policy regularisation. Importantly, our work shows how insights drawn from simplified, tractable games can lead to useful, theoretically grounded insights that transfer to more complex contexts. A core dimension of offering is an interactive notebook, from which almost all of our results can be reproduced, in a browser.

Introduction

In standard online reinforcement learning, agents learn through active exploration and environment feedback. In contrast, Offline MARL requires agents to learn from a static "replay buffer" of past experiences without further interaction. A common paradigm in this space is Best Response Under Data (BRUD), where each agent optimizes its policy to be a best response to the actions of other agents as recorded in the dataset.

However, this approach suffers from a significant flaw: the dataset often contains a mixture of disparate strategies. If an agent attempts to be a best response to the average behavior in the dataset, it may converge to a strategy that fails to coordinate with the current strategies of its teammates. This leads to "catastrophic miscoordination," where agents are essentially chasing the "ghosts" of past data rather than coordinating with their active partners.

Analyzing the BRUD Failure Mode

To analyze this phenomenon, we utilize two-player polynomial games (e.g., $R = a_x \cdot a_y$). These games provide a differentiable reward landscape that allows for the visualization of gradient fields and the identification of learning traps.

Visualizing the coordination failure: The BRUD update ($\nabla J$) often points in a direction dictated by the dataset mean, diverging from the true reward gradient ($\nabla R$).

As shown in the figure above, the BRUD update creates a vector field that can point agents toward low-reward regions if the dataset is biased or contains high variance. In games like Sign Agreement, even a slight bias in the dataset forces agents to converge to sub-optimal results. This "unidirectional trap" occurs because the learning process is decoupled from the actual reward landscape and tethered to the static data distribution.

Proximal Joint-Action Prioritisation (PJAP)

To address this, we propose Proximal Joint-Action Prioritisation (PJAP). The core insight is that agents should only learn from data points where the joint actions are "close" to their current policies. PJAP modifies the sampling process by assigning weights to data points based on a similarity metric (e.g., L1 norm) between the dataset actions and current policy actions. Using a Gaussian-based weighting function $e^{-\alpha d^2}$, the algorithm prioritizes "proximal" data. This acts as an implicit coordination mechanism, ensuring that Agent A only updates its policy based on Agent B's past actions if those actions are relevant to Agent B's current behavior.

Experimental Results

We evaluated PJAP on polynomial games and the 2-Agent HalfCheetah task from MAMuJoCo.

Twin Peaks and the Diversity Trap

In the Twin Peaks game, we observed that increasing dataset diversity (variance) paradoxically makes coordination harder for standard BRUD-based algorithms like MADDPG. High variance pulls agents toward the "average" of the data, which typically resides in a low-reward valley between optimal peaks.

Experimental results on the Twin Peaks game showing how buffer size influences learning trajectories and sample efficiency.

As illustrated in the figure above, larger buffer sizes (representing more diverse data) can lead to erratic trajectories. However, with PJAP, agents successfully ignore irrelevant "noisy" data and converge to the true optimum.

Scaling to Complex Tasks

On the 2-Agent HalfCheetah task using the OG-MARL benchmark, PJAP significantly outperformed uniform sampling. For the "Good" dataset, adding PJAP to a MADDPG+CQL baseline improved the median normalized episode return from approximately 0.8 to 0.95. Furthermore, PJAP maintained a lower "policy distance," confirming that agents remained proximal to the data they were learning from, thereby avoiding the "ghost-chasing" behavior.

Conclusion

Our work demonstrates that how data is sampled is as critical as the loss functions used in offline MARL. PJAP provides a simple, "plug-and-play" method to mitigate coordination failure by ensuring agents learn from relevant joint actions. Future work will explore more sophisticated distance metrics for high-dimensional or discrete action spaces and investigate context-aware sampling in stateful environments.

This paper was presented at the ARLET workshop at ICML 2024.

Summary updated

Abstract

Offline multi-agent reinforcement learning (MARL) leverages static datasets of experience to learn optimal multi-agent control. However, learning from static data presents several unique challenges to overcome. In this paper, we focus on coordination failure and investigate the role of joint actions in multi-agent policy gradients with offline data, focusing on a common setting we refer to as the 'Best Response Under Data' (BRUD) approach. By using two-player polynomial games as an analytical tool, we demonstrate a simple yet overlooked failure mode of BRUD-based algorithms, which can lead to catastrophic coordination failure in the offline setting. Building on these insights, we propose an approach to mitigate such failure, by prioritising samples from the dataset based on joint-action similarity during policy learning and demonstrate its effectiveness in detailed experiments. More generally, however, we argue that prioritised dataset sampling is a promising area for innovation in offline MARL that can be combined with other effective approaches such as critic and policy regularisation. Importantly, our work shows how insights drawn from simplified, tractable games can lead to useful, theoretically grounded insights that transfer to more complex contexts. A core dimension of offering is an interactive notebook, from which almost all of our results can be reproduced, in a browser.
BibTeX
@inproceedings{tilbury2024coordination,
  author = {Callum Rhys Tilbury and Claude Formanek and Louise Beyers and Jonathan P. Shock and Arnu Pretorius},
  title = {{Coordination Failure in Cooperative Offline MARL}},
  booktitle = {ARLET @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=gR73lhgNBl},
}
Figure