Variational Offline Multi-agent Skill Discovery

Jiayu Chen, Bhargav Ganguly, Tian Lan, Vaneet Aggarwal · DOI

Abstract

This paper introduces VO-MASD, a novel framework for discovering multi-agent subgroup skills from offline datasets. By leveraging dynamic grouping and specialized Vector Quantized-Variational AutoEncoder (VQ-VAE) architectures, VO-MASD identifies reusable coordination patterns among agent subsets. Evaluation on StarCraft II benchmarks demonstrates that these discovered skills significantly enhance performance, particularly in sparse-reward scenarios, and exhibit strong zero-shot transferability to larger-scale tasks.

Introduction

Multi-Agent Reinforcement Learning (MARL) often requires agents to execute complex, long-horizon maneuvers. While skill discovery offers a path toward temporal abstraction, existing methods typically focus on either independent single-agent skills or rigid team-wide behaviors. The former often fails to coordinate, while the latter lacks the flexibility to scale. VO-MASD targets the "sweet spot" of subgroup coordination—dynamic clusters of agents working together on specific tactical objectives without requiring manual labels or task-specific rewards.

Methodology

The authors propose two primary architectures based on VQ-VAEs. VO-MASD-3D utilizes a three-dimensional codebook where each entry represents a pre-packaged coordination pattern of single-agent skills. In contrast, VO-MASD-Hier employs a two-level hierarchy: bottom-level codes represent individual behaviors, while top-level codes, aggregated via an attention mechanism, represent the collective strategy of a subgroup.

Architecture of VO-MASD-Hier showing the hierarchical skill discovery process involving bottom and top encoders.

Central to both is the Dynamic Grouper ($h_\psi$), a module trained to partition agents into subgroups based on the current environment state. By forcing the model to reconstruct actions from offline data, the system naturally discovers underlying coordination patterns as a representation learning problem.

Experiments and Datasets

The framework was evaluated using the StarCraft Multi-Agent Challenge (SMAC) and its stochastic successor, SMACv2. The researchers tested both homogeneous (e.g., marines) and heterogeneous (e.g., Marines, Medivacs, and Marauders - MMM) agent configurations. A key focus was transfer learning, where skills discovered on simpler "source" tasks (3-5 agents) were applied to harder, unseen target tasks (10 agents).

Key Results

VO-MASD-Hier consistently outperformed state-of-the-art baselines like ODIS. In the "super-hard" MMM2 task, it achieved significantly higher win rates with lower variance. Notably, in sparse-reward settings where standard algorithms like QMIX and MAPPO failed entirely, VO-MASD maintained high performance by providing effective behavioral "stepping stones."

Win rates across various SMAC and SMACv2 maps comparing VO-MASD variants against baselines, demonstrating superior performance and transferability.

The discovered skills also enabled zero-shot transfer, allowing tactical maneuvers learned by small groups to be successfully deployed in 10-agent scenarios. This suggests the model learns general tactical maneuvers rather than just memorized sequences.

Conclusion and Future Work

VO-MASD effectively bridges the gap between individual and team-wide skill discovery. While the current grouping logic faces combinatorial challenges as agent counts scale significantly, the hierarchical approach provides a robust inductive bias for multi-agent coordination. Future work may involve online fine-tuning of the grouper with the high-level policy to further adapt discovered skills to novel environments.

Summary updated

BibTeX
@inproceedings{chen2025variational,
  author = {Jiayu Chen and Bhargav Ganguly and Tian Lan and Vaneet Aggarwal},
  title = {{Variational Offline Multi-agent Skill Discovery}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/538},
}
Figure