Abstract
Multi-Agent Reinforcement Learning (MARL) often struggles with generalization, typically failing when agent counts or objectives shift from training scenarios. We present HyGen (Hybrid Training for Enhanced Multi-Task Generalization), a framework that enables agents to generalize to entirely unseen tasks without additional fine-tuning. By combining the stability of offline datasets with the exploratory power of online interaction through a unique linearly decreasing data sampling strategy, HyGen discovers and refines generalizable skills. Our results on the StarCraft Multi-Agent Challenge (SMAC) demonstrate that HyGen significantly outperforms existing state-of-the-art methods in zero-shot execution.
Introduction
While reinforcement learning has achieved significant milestones in complex multi-agent environments, most current algorithms are "narrow." They are optimized for specific scenarios and lack the flexibility to handle variations in agent numbers or task objectives. Current approaches generally fall into two categories: online MARL, which is computationally expensive and lacks zero-shot transferability, and offline MARL, which is limited by the quality of pre-collected datasets.
The primary hurdles to generalization include restrictive neural architectures that cannot accommodate varying input sizes and the inherent difficulty of transferring learned policy knowledge to novel target tasks. HyGen addresses these by decoupling skill discovery from policy execution and employing a hybrid training regime.
The HyGen Framework
HyGen operates through a three-phase pipeline designed to extract, refine, and execute multi-agent skills across diverse tasks.
1. Unsupervised Skill Discovery
In the first phase, HyGen analyzes multi-task offline datasets using a Variational Autoencoder (VAE) architecture to identify "general skills." A Global Trajectory Encoder utilizes multi-head self-attention to process trajectories. Because self-attention is permutation-invariant, the model can handle varying numbers of agents and entities across different tasks, providing a foundation for universal skill representation.
2. Hybrid High-Level Policy Learning
The core innovation of HyGen lies in its hybrid learning phase. The agent learns a high-level policy to select appropriate skills based on the current environment state. This is facilitated by a Hybrid Replay Buffer that integrates offline data with online experience.
Unlike traditional hybrid methods that use a static data ratio, HyGen employs a linearly decreasing ratio ($R_h$). The training starts by relying heavily on stable offline data to provide a "warm start," preventing initial random exploration. As the policy matures, the system gradually shifts toward online data, allowing the agent to discover superior strategies not present in the original offline dataset.
3. Decentralized Execution
While training is centralized, execution must be decentralized. HyGen trains a Local Observation Encoder to mimic the global encoder's outputs using a consistency loss ($L_c$). This alignment ensures that agents can select the correct high-level skills during zero-shot execution on unseen tasks, relying only on their local observations.
Experimental Evaluation
HyGen was evaluated using the StarCraft Multi-Agent Challenge (SMAC) benchmark, specifically focusing on the marine-hard and stalker-zealot task sets. To test robustness, the researchers used both "Expert" and "Medium" quality offline datasets.
Key Results
- Superior Generalization: In the
marine-hardset using medium-quality data, HyGen achieved a ~91% win rate on source tasks, outperforming the offline baseline ODIS (~85%). - Zero-Shot Success: On unseen maps (e.g., the
10mmap), HyGen maintained a ~96% win rate, demonstrating that its skill refinement process overcomes the sub-optimality of initial offline data. - Training Efficiency: HyGen converged significantly faster than purely online methods like QMIX. For instance, on the
3mtask, HyGen reached peak performance in approximately 10k steps, whereas QMIX required substantially more environmental interaction.
Discussion and Insights
HyGen's success stems from refinement over extraction. Purely offline methods are capped by their data; HyGen uses the hybrid phase to update the action decoder, unconstraining the skills from the original dataset's limitations. The dynamic sampling ratio provides the necessary stability to begin learning complex tasks while ensuring the final policy is not tethered to mediocre demonstrations.
Future work may explore the integration of Large Language Models (LLMs) to provide "universal knowledge" that could augment or replace the offline discovery phase, further enhancing the scalability of multi-agent systems in unpredictable real-world environments.
Summary updated