Abstract
Multi-agent reinforcement learning (MARL) methods have shown superior performance to solve a variety of real-world problems focusing on learning distinct policies for individual tasks. These approaches face problems when applied to the non-stationary real-world: agents trained in specialized tasks cannot achieve satisfied generalization performance across multiple tasks; agents have to learn and store specialized policies for individual task and reliable identities of tasks are hardly observable in practice. To address the challenge continuously adapting to multiple tasks in MARL, we formalize the problem into a two-stage curriculum. Single-task policies are learned with MARL approaches, after that we develop a gradient-based Self-Adaptive Meta-Learning algorithm, SAML, that can not only distill single-task policies into a unified policy but also can facilitate the unified policy to continuously adapt to new incoming tasks. In addition, to validate the continuous adaptation performance on complex task, we extend the widely adopted StarCraft benchmark SMAC and develop a new multi-task multi-agent StarCraft environment, Meta-SMAC, for testing various aspects of continuous adaptation method. Our experiments with a population of agents show that our method enables significantly more efficient adaptation than reactive baselines across different scenarios.
Introduction
While Multi-Agent Reinforcement Learning (MARL) has achieved significant milestones in static environments, real-world applications often demand agents that can handle non-stationary conditions. Standard MARL agents are typically "specialists"—highly effective at a single task but brittle when faced with variations in unit composition or environment dynamics.
Current approaches suffer from three primary limitations:
- Poor Generalization: Agents trained for specific unit compositions (e.g., 10 Marines) often fail when the composition changes slightly.
- Storage Bloat: Maintaining separate policies for every possible task is computationally prohibitive.
- Hidden Task Identities: In practice, agents often lack explicit task labels and must infer behavior from raw observations.
To bridge this gap, this research introduces SAML (Self-Adaptive Meta-Learning), a framework designed to create "generalist" agents capable of multi-task execution and rapid adaptation to novel scenarios.
Methodology: A Two-Phase Curriculum
The proposed approach decomposes the learning process into two distinct phases, moving from specialized expertise to a unified, adaptive policy.
Phase I: Learning Specialized Policies
In the first phase, agents are trained on specific tasks using established MARL techniques like QMIX or VDN. To ensure architectural compatibility across tasks with varying state spaces, a Meta-Experience Transition Module is employed. This module utilizes a semantic mapping function to project diverse observations into a unified dimensional space, allowing a single network structure to process inputs from any task.
Phase II: The SAML Algorithm
The core of the framework is the SAML algorithm, which distills the knowledge from Phase I experts into a single Deep Recurrent Q-Network (DRQN). SAML treats multi-task learning as a meta-optimization problem, aiming to find a set of weights that serves as a strong starting point for any task within the distribution.
Balancing Transfer and Interference
A critical challenge in multi-task learning is the "tug-of-war" between tasks. When tasks are complementary, learning one should help the other (Transfer). When they conflict, learning one can degrade performance on the other (Interference).
SAML addresses this by analyzing the geometry of gradients. If the gradients of two tasks point in similar directions (positive dot product), the algorithm encourages weight updates that benefit both. If they diverge, it minimizes interference to preserve existing knowledge. This gradient-based meta-update rule ensures the unified policy remains robust across the entire task spectrum.
Experimental Validation: Meta-SMAC
To evaluate the framework, the authors introduced Meta-SMAC, an extension of the StarCraft Multi-Agent Challenge. Meta-SMAC categorizes scenarios into Homogeneous, Heterogeneous, and Mixed groups, testing the agents' ability to generalize across unit types and counts.
Key Results
- Performance: SAML achieved an 88% mean win rate in mixed scenarios, outperforming standard Multi-Task Learning (MTL) and other meta-learning baselines like Reptile.
- Adaptability: When introduced to completely new maps (e.g., 5 Marines vs 6 Marines), SAML-trained agents adapted significantly faster, reaching high win rates (~86%) in a fraction of the time required by baseline methods.
- Scalability: Performance was found to be highly dependent on network capacity; increasing the hidden layer size (from 64 to 256) allowed the unified model to better capture the nuances of multiple complex tasks.
Conclusion
SAML provides a robust pathway for developing versatile multi-agent systems. By combining specialized policy distillation with a gradient-aware meta-learning objective, the framework enables agents to transcend the limitations of single-task specialization. Future work will focus on scaling this approach to even more diverse environments and addressing the potential for catastrophic forgetting as the task library expands.
Summary updated