Few is More: Task-Efficient Skill-Discovery for Multi-Task Offline Multi-Agent Reinforcement Learning

Xun Wang, Zhuoran Li, Hai Zhong, Longbo HuangarXiv 2025 · OpenReview

Abstract

As a data-driven approach, offline MARL learns superior policies solely from offline datasets, ideal for domains rich in historical data but with high interaction costs and risks. However, most existing methods are task-specific, requiring retraining for new tasks, leading to redundancy and inefficiency. To address this issue, in this paper, we propose a task-efficient multi-task offline MARL algorithm, Skill-Discovery Conservative Q-Learning (SD-CQL). Unlike existing offline skill-discovery methods, SD-CQL discovers skills by reconstructing the next observation. It then evaluates fixed and variable actions separately and employs behavior-regularized conservative Q-learning to execute the optimal action for each skill. This approach eliminates the need for local-global alignment and enables strong multi-task generalization from limited small-scale source tasks. Substantial experiments on StarCraftII demonstrates the superior generalization performance and task-efficiency of SD-CQL. It achieves the best performance on $\textbf{10}$ out of $14$ task sets, with up to $\textbf{65%}$ improvement on individual task sets, and is within $4\%$ of the best baseline on the remaining four.

Introduction

Offline Multi-Agent Reinforcement Learning (MARL) is a powerful paradigm for training agents in high-risk or high-cost environments, such as autonomous driving or finance, where real-time experimentation is impossible. However, most existing methods are task-specific: changing the number of agents or the objective usually necessitates retraining the entire model from scratch.

Existing "multi-task" approaches attempt to solve this by discovering "skills," but they often rely on Behavior Cloning (BC) to execute those skills. BC simply mimics the dataset, which biases agents toward "likely" actions rather than "optimal" ones and limits generalization. The authors of this paper tackle the challenge of task-efficiency: how to train on a few known tasks and generalize effectively to many unseen ones without sacrificing performance.

Methodology: SD-CQL

The authors propose Skill-Discovery Conservative Q-Learning (SD-CQL), which consists of three main pillars:

  1. Skill Discovery via Observation Reconstruction: Instead of using task-specific global rewards, SD-CQL discovers skills in a continuous latent space by reconstructing the next local observation. This forces the model to learn task-agnostic, spatiotemporal features—essentially the "physics" and "tactics" of the environment.
  2. Value-Based Policy Optimization: Unlike previous methods that use BC, SD-CQL uses a skill-conditioned Q-learning approach. This allows the agent to select the mathematically optimal action for a given skill, enabling it to "stitch" together the best parts of different trajectories in the dataset.
  3. Local Value Calibration (LVC): To prevent the Q-value overestimation common in offline RL, LVC regularizes local Q-values against the behavior policy, ensuring stability as the number of agents scales up.

To handle varying numbers of agents, the model uses a Transformer-based encoder that decomposes the environment into "entities" (allies, enemies, etc.), allowing the same network to process observations regardless of team size.

Visualization of discovered skills. SD-CQL identifies distinct clusters for 'Retreat', 'Attack', and 'Death' that remain consistent across different task scales (3m vs 12m).

Experimental Results

The researchers evaluated SD-CQL using the StarCraft Multi-Agent Challenge (SMAC) benchmark across 14 task sets. Key scenarios included combat with varying numbers of units and mixed-unit combat.

Zero-Shot Generalization

A rigorous "One-to-Multi" test was conducted where agents trained on only one task (e.g., 3 Marines) and were tested on much larger ones (e.g., 12 Marines). SD-CQL demonstrated remarkable resilience:

  • Scalability: SD-CQL maintained a 27% win rate on the 12-Marine task after training only on the 3-Marine task. In contrast, baselines like HiSSD and ODIS effectively collapsed to near-zero win rates as the task scale increased.
  • Performance Gains: SD-CQL achieved the best performance on 10 out of 14 task sets. In the "Stalker-Zealot" scenario, it improved win rates by up to 68.9% over the best existing baseline.
Comparison of win rates for the 'One-to-Multi' generalization task. SD-CQL (Ours) maintains significantly higher performance as the task deviates from the source (3 agents) compared to baselines.

Conclusion

SD-CQL represents a significant advancement in task-efficient offline MARL. By shifting from imitation-based skill discovery to observation reconstruction and value-based optimization, the framework enables agents to learn robust, transferable skills. This allows for effective zero-shot generalization from small-scale training scenarios to complex, large-scale multi-agent tasks, significantly reducing the need for redundant retraining.

Summary updated

BibTeX
@misc{wang2025few,
  author = {Xun Wang and Zhuoran Li and Hai Zhong and Longbo Huang},
  title = {{Few is More: Task-Efficient Skill-Discovery for Multi-Task Offline Multi-Agent Reinforcement Learning}},
  year = {2025},
  eprint = {2502.08985},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.08985},
}
Figure