Hierarchical Multi-Agent Skill Discovery

Mingyu Yang, Yaodong Yang, Zhenbo Lu, Wengang Zhou, Houqiang LiNeurIPS 2023

Training groups of AI agents to coordinate in complex environments is notoriously difficult, especially when feedback (or "rewards") is extremely rare. Presented at NeurIPS 2023, Hierarchical Multi-Agent Skill Discovery (HMASD) is a framework designed to tackle this exact challenge. By enabling agents to discover both high-level team tactics and low-level individual skills through unsupervised exploration, HMASD allows teams to solve "sparse reward" tasks where traditional multi-agent algorithms often fail completely.

Conceptual illustration of hierarchical team and individual skills.

The Challenge: Sparse Rewards in MARL

In Multi-Agent Reinforcement Learning (MARL), the "sparse reward" problem is a major hurdle. Imagine training a football team where the only feedback they receive is a "1" for scoring a goal and "0" for everything else. Because the joint state-action space of multiple agents is exponentially large, the odds of agents accidentally coordinating well enough to score a goal are astronomical.

Existing solutions usually rely on "reward shaping"—giving small, engineered rewards for intermediate steps. However, this is expensive to design and often biases agents toward suboptimal behavior. While unsupervised "skill discovery" has worked for single agents (e.g., learning to walk or jump without a specific goal), applying it to teams introduces a new dilemma: how do you ensure individual skills (like dribbling) align with broader team tactics (like a wing-play strategy)?

The HMASD Framework

The authors propose a two-level hierarchy modeled as a Probabilistic Graphical Model (PGM). This mathematical foundation allows them to treat skill discovery as an inference problem, deriving a grounded optimization objective that naturally incorporates exploration and skill distinctiveness.

The overall architecture of the HMASD framework.

The architecture is split into three main components:

  1. High-Level Skill Coordinator (The Coach): This module uses a Transformer structure to assign skills. It takes the global state and agent observations as input and outputs a sequence of skills. Crucially, it assigns a Team Skill ($Z$) first, and then assigns Individual Skills ($z^i$) to each agent auto-regressively. This ensures that Agent B’s skill is chosen to complement Agent A’s skill and the overall team strategy, preventing redundant roles.
  2. Low-Level Skill Discoverer (The Players): These are latent-conditioned policies. Once an agent is assigned a specific skill by the coordinator, it executes primitive actions in the environment to fulfill that skill.
  3. Skill Discriminators (The Judges): To make skills diverse and distinguishable, the system uses two discriminators that provide intrinsic rewards. If a discriminator can easily guess which skill is being executed just by observing the agent's movement, the agent is rewarded. This encourages the discovery of distinct, functional behaviors without needing an external reward.

Key Insights and Results

By separating "team skills" (global strategy) from "individual skills" (local execution), HMASD achieves highly interpretable and effective coordination.

The authors evaluated HMASD on three distinct benchmarks: a custom Alice & Bob grid-world, the cooperative cooking game Overcooked, and a highly difficult "0-1 sparse reward" version of the StarCraft Multi-Agent Challenge (SMAC).

  • Solving the Unsolvable: On the sparse-reward SMAC scenarios, state-of-the-art baselines like MAT and MAPPO achieved a 0% win rate. In contrast, HMASD achieved win rates between 40% and 100%, depending on the specific scenario.
  • Superior Coordination: In the Overcooked environment, HMASD outperformed exploration-focused baselines (EITI/EDTI) by a massive margin, achieving episode rewards of ~295 compared to the baselines' ~0.1.
  • Interpretable Skills: Visualizations of the model's behavior showed that it learned meaningful, distinct actions. In the Alice & Bob game, specific latent variables consistently mapped to distinct, cooperative goals like "going to the blue button" or "collecting the red diamond."

Limitations and Future Work

While highly effective, HMASD has a few limitations. The authors noted that in large environments like SMAC, the model discovers many diverse skills, but only about 24% of them actually contribute to winning the game; many involve exploring useless corners of the map. Additionally, performance is sensitive to hyperparameters like the "skill interval" (how many timesteps a skill lasts) and the total number of allowed skills.

Currently, the model learns one overarching team skill for the entire team. Future work could involve discovering hierarchical skills for smaller sub-groups or "squads" within a larger team, further bridging the gap between individual actions and complex, multi-agent strategies.

Summary updated

BibTeX
@inproceedings{yang2023hierarchical,
  author = {Mingyu Yang and Yaodong Yang and Zhenbo Lu and Wengang Zhou and Houqiang Li},
  title = {{Hierarchical Multi-Agent Skill Discovery}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=xMgO04HDOS},
}
Figure