Learning Generalizable Skills from Offline Multi-Task Data for Multi-Agent Cooperation

Sicong Liu, Yang Shu, Chenjuan Guo, Bin Yang

Introduction

Training multi-agent reinforcement learning (MARL) policies that can generalize to new tasks without additional interaction is a major challenge in the field. In real-world applications—such as robot swarms, automated warehouses, or autonomous driving—deploying agents to learn via trial-and-error is often prohibitively expensive or dangerous. Offline MARL addresses this by training policies entirely on static, pre-collected datasets. However, a significant hurdle remains: creating policies that are truly generalizable. For instance, a policy trained on a team of three robots should ideally transfer to a team of five without requiring retraining from scratch.

This paper introduces Hierarchical and Separate Skill Discovery (HiSSD), a framework designed to learn both "common" cooperative skills and "task-specific" execution skills from offline multi-task data. By separating high-level strategy from low-level tactical execution, HiSSD significantly improves zero-shot policy transfer to unseen tasks with varying numbers of agents and targets.

The Challenge: Generalization in Offline MARL

Recent approaches to multi-task MARL attempt to extract "common skills"—general behavior patterns—across multiple tasks. However, the authors identify two major gaps in these existing methods:

  1. Lack of Temporal Dynamics: Many methods group similar actions into skills but fail to incorporate cooperative temporal knowledge. Consequently, these skills do not inherently understand how the environment's state will evolve over time.
  2. Ignoring Task-Specific Nuance: Current research often focuses so heavily on finding universal, task-agnostic skills that it fails to capture task-specific knowledge. Different scenarios (e.g., fighting 5 enemies versus 10) require unique, fine-grained action execution that a purely "common" skill cannot provide.

HiSSD: Hierarchical and Separate Skill Discovery

To bridge these gaps, HiSSD utilizes a hierarchical architecture to jointly learn two distinct types of skills from offline data:

High-Level Planner (Common Skills)

This module extracts general, reusable cooperation patterns. Unlike traditional methods that simply mimic actions, the HiSSD planner is trained to predict the next global state and maximize expected accumulated rewards using an Implicit Q-Learning (IQL) objective. This approach forces the common skills to encode temporal dynamics and maintain a global perspective of the environment. A skill is no longer just a simple command like "move left"; it becomes a strategic decision: "move left to flank the enemy in the next time step."

Low-Level Controller (Task-Specific Skills)

This module generates the actual actions by utilizing a contrastive learning objective to distinguish between different tasks. By pulling trajectories from the same task together and pushing different tasks apart in the latent space, it creates a "task-specific skill" embedding. This embedding acts as a prior to guide the agent's fine-grained actions adaptively based on the specific scenario. During execution, the system is fully decentralized; agents use local observations to infer both common and task-specific skills, which are then decoded into actions.

Experimental Evaluation

The authors evaluated HiSSD on two popular benchmarks using offline datasets of varying qualities (Expert, Medium, Medium-Expert, and Medium-Replay):

  • SMAC (StarCraft Multi-Agent Challenge): Offline datasets were used across three task sets: Marine-Easy, Marine-Hard, and Stalker-Zealot. Tasks varied by the number and type of allied and enemy units.
  • MAMuJoCo (Multi-Agent MuJoCo): A continuous robotic control benchmark. The authors created a multi-task dataset based on the HalfCheetah-v2 environment by partitioning the robot into six agents and creating distinct tasks by disabling specific joints.

Key Results and Insights

HiSSD achieved state-of-the-art performance across both benchmarks:

  • SMAC Performance: HiSSD secured the top test win rates on over half of the unseen tasks in the Marine-Hard set. Notably, on the unseen "10m" task (using Expert data), HiSSD achieved a 98.4% win rate, significantly outperforming baselines such as ODIS (93.8%) and UPDeT-m (54.7%).
  • MAMuJoCo Performance: HiSSD outperformed all baselines, including Behavior Cloning, IQL, and TD3-BC, on both source and unseen tasks. On the unseen "front foot" task, it achieved an average return of 4175, compared to the next best baseline (ODIS) at 3930.
  • Dynamic Adaptation: Visualizations of the learned latent spaces reveal that as an episode progresses and agents are defeated—naturally simplifying a large-scale task—the task-specific skill representations dynamically adapt. This suggests the model actively understands the evolving state of the game.
  • Ablation Studies: Removing either the global state prediction module or the task-specific skill learning module resulted in significant performance drops, confirming that both components are essential for effective zero-shot transfer.

Limitations and Future Work

While HiSSD demonstrates strong performance, the authors note that training stability is a current limitation due to the complex, multi-objective nature of combining hierarchical models, contrastive learning, and Q-learning. Additionally, while HiSSD excels in homogeneous tasks (e.g., identical Marines), it occasionally struggles with highly heterogeneous tasks (e.g., the Stalker-Zealot set) when data is limited. Future work will focus on improving training stability and enhancing generalization across diverse unit types to make the framework more robust for broader offline multi-task MARL applications.

Summary updated

BibTeX
@inproceedings{liu2025learning,
  author = {Sicong Liu and Yang Shu and Chenjuan Guo and Bin Yang},
  title = {{Learning Generalizable Skills from Offline Multi-Task Data for Multi-Agent Cooperation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=HR1ujVR0ig},
}
Figure