SPD: Synergy Pattern Diversifying Oriented Unsupervised Multi-agent Reinforcement Learning

Yuhang Jiang, Jianzhun Shao, Shuncheng He, Hongchang Zhang, Xiangyang JiNeurIPS 2022

Reinforcement learning (RL) typically relies heavily on well-designed reward signals. In cooperative multi-agent reinforcement learning (MARL), this challenge is magnified: how do you reward a single agent for the success of the entire team? This often leads to "sparse rewards," where agents struggle to learn because they rarely encounter a successful outcome by chance.

Unsupervised Reinforcement Learning (URL) attempts to bypass this by allowing agents to learn useful "skills" through intrinsic motivation before a specific task is assigned. However, existing URL methods primarily focus on state diversity—encouraging a single agent to visit as many different states as possible. In a multi-agent system, this is insufficient. Agents might explore widely but never learn how to interact or coordinate. The authors of this paper argue that for MARL, the fundamental "skill" to learn is coordination itself.

To address this, the researchers introduce Synergy Pattern Diversifying (SPD), a novel unsupervised MARL framework designed to learn complex coordination skills without external reward signals.

The SPD Framework: Learning to Coordinate

The core idea behind SPD is to encourage agents to discover diverse ways of interacting. The framework achieves this through several key mechanisms:

  1. Synergy Pattern Graph (SPG): At every time step, the relationships between agents are modeled as a graph. Each agent acts as a node, and the edges represent their spatial or relational connections (e.g., Euclidean distance). This graph abstraction ensures the method is invariant to absolute positions—what matters is the team's formation relative to one another, not where they are on the map.
  2. Gromov-Wasserstein (GW) Discrepancy: To determine if two coordination patterns are distinct, the system must compare graphs. SPD utilizes the GW discrepancy, a tool from optimal transport that measures how much one graph must be "distorted" to match another.
  3. Diversification Objective: The algorithm trains multiple policies simultaneously. It calculates a "pseudo-reward" by measuring how different the current team's coordination graph is from the graphs produced by other policies. Discovering a novel interaction shape yields a high intrinsic reward.
  4. Reward Decomposition: Because the GW discrepancy is calculated over an entire episode (resulting in a sparse signal), SPD employs a matching algorithm to break that total difference down into step-by-step rewards. This dense pseudo-reward makes it significantly easier for agents to learn.
Illustration of the reward decomposition process using Gromov-Wasserstein discrepancy to compare agent formations.

Experimental Setup and Key Insights

The researchers evaluated SPD on two popular MARL benchmarks: a customized "SimpleTag" scenario in the Multi-Agent Particle Environment (MPE) stripped of default rewards, and the complex, physics-based Google Research Football (GRF) simulator.

The results demonstrate a significant shift in how we can approach MARL pre-training:

  • Meaningful Emergent Behavior: In GRF, without any explicit "goal" reward, SPD agents naturally learned complex behaviors like dribbling, executing long passes, and retreating to play defense, all driven by the intrinsic motivation to maximize synergy diversity.
  • Superior Initialization and Data Efficiency: When these pre-trained models were fine-tuned on downstream tasks (e.g., actually trying to score goals), they reached high win rates significantly faster than standard MARL algorithms (like QMIX) or other URL baselines (like DIAYN). The unsupervised pre-training effectively "primed" the agents for cooperation.
  • Quantitative Diversity: In MPE tests, SPD vastly outperformed existing methods in discovering unique coordination patterns. As shown below, SPD achieved a normalized synergy discrepancy score of 1.0 ± 0.1, orders of magnitude higher than baselines.
Table comparing the quantitative diversity performance of SPD against DIAYN and WURL baselines.

Limitations and Future Directions

While SPD presents a strong step forward for unsupervised MARL, it is not without limitations. Calculating Gromov-Wasserstein distances and solving the matching problem for reward decomposition is computationally expensive, and this cost scales with the number of agents and episode length. Additionally, the current implementation relies on relatively simple synergy functions based primarily on agent distances. Incorporating velocity, orientation, or communication messages could yield even richer behaviors, albeit at a higher computational cost. Finally, translating these learned "synergy patterns" from a simulator to real-world robot swarms—where sensor noise and physical constraints are prevalent—remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{jiang2022spd,
  author = {Yuhang Jiang and Jianzhun Shao and Shuncheng He and Hongchang Zhang and Xiangyang Ji},
  title = {{SPD: Synergy Pattern Diversifying Oriented Unsupervised Multi-agent Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=lqXGAQLRuL},
}
Figure