Variational Offline Multi-agent Skill Discovery

Jiayu Chen, Tian Lan, Vaneet Aggarwal

Introduction

Multi-Agent Reinforcement Learning (MARL) faces a significant challenge: the joint action space of multiple agents grows exponentially with the team size. While temporal abstractions, or "skills," can mitigate this complexity, existing methods often struggle to balance individual agent behaviors with rigid team-wide strategies. This paper introduces VO-MASD (Variational Offline Multi-agent Skill Discovery), a framework designed to automatically extract flexible subgroup coordination patterns from offline datasets.

The VO-MASD Framework

The core innovation of VO-MASD lies in its ability to identify latent coordination patterns within dynamic subgroups. Unlike previous approaches that assume fixed roles or global coordination, VO-MASD utilizes a co-trained grouping function ($h_\psi$) and a Vector Quantized Variational Auto-Encoder (VQ-VAE) architecture.

The VO-MASD-3D architecture illustrates the process of encoding trajectories, grouping agents, and querying multi-agent codebooks to reconstruct joint behaviors.

The framework offers two primary variants:

  1. VO-MASD-3D: This version employs a multi-dimensional codebook where each entry represents a specific $m$-agent coordination pattern. Trajectories are encoded into embeddings, which are then clustered and used to query the appropriate codebook based on subgroup size.
  2. VO-MASD-Hier: A hierarchical approach where "bottom" codes represent individual temporal behaviors and "top" codes aggregate these into subgroup skills via an attention mechanism. This hierarchy provides the flexibility needed for heterogeneous teams and varying subgroup sizes.

Training and Control Pipeline

Once skills are discovered from offline data, they are integrated into a downstream reinforcement learning pipeline. A high-level policy (the Actor) selects skill embeddings based on the current observation history. These embeddings are processed by the Grouper and Codebooks to generate skill codes, which the Decoder then translates into executable control segments (actions) for each agent.

The end-to-end pipeline demonstrates how discovered skills are utilized by a high-level actor and a critic to perform complex tasks in a multi-agent environment.

Experimental Evaluation

The researchers evaluated VO-MASD on the StarCraft Multi-Agent Challenge (SMAC) and its more difficult successor, SMACv2.

Key Results

  • Performance and Generalization: VO-MASD significantly outperformed state-of-the-art methods like ODIS. In SMACv2, which features randomized start positions and team compositions, VO-MASD maintained high win rates where baselines failed to coordinate effectively.
  • Zero-Shot Transfer: A key strength of the discovered skills is their transferability. Skills learned on smaller teams (e.g., 3 agents) could be successfully applied to much larger teams (e.g., 10 agents) without additional training of the skill decoder.
  • Overcoming Sparse Rewards: In "super-hard" scenarios with delayed rewards, standard algorithms like QMIX and MAPPO often achieve a 0% win rate. By operating at the level of skills rather than individual actions, VO-MASD effectively shortens the temporal horizon, allowing the agent to solve tasks that were previously intractable.

Conclusion

VO-MASD represents a significant step forward in offline MARL by demonstrating that subgroup coordination patterns can be discovered and reused as modular skills. By bridging the gap between individual and team-wide abstractions, the framework enables agents to solve complex, sparse-reward tasks and generalize to unseen scenarios with high efficiency.

Summary updated

BibTeX
@inproceedings{chen2025variational,
  author = {Jiayu Chen 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