Abstract
Continual Multi-Agent Reinforcement Learning (Co-MARL) requires agents to adapt to a sequence of tasks without losing proficiency in previously learned ones. This paper introduces RPG (General Relation Patterns-Guided Task-specific Decision-Maker), a framework that decouples task-agnostic relation patterns from task-specific action logic. By utilizing a scalable relation capturer and a conditional hypernetwork, RPG achieves superior plasticity and stability, effectively mitigating catastrophic forgetting while enabling zero-shot generalization to unseen scenarios.
Introduction
In Multi-Agent Reinforcement Learning (MARL), agents typically learn to cooperate within static environments. However, real-world applications often demand "continual" learning, where agents must adapt to changing team compositions, enemy numbers, and objectives. Co-MARL faces two primary challenges: catastrophic forgetting, where learning new tasks overwrites old strategies, and dynamic spaces, where the number of observable entities and available actions fluctuate across tasks.
Existing methods often struggle with these shifting dimensions or lack the flexibility to maintain performance across a task sequence. RPG addresses these by separating the underlying logic of agent interaction from the specific actions required for a given task.
Methodology: The RPG Framework
RPG decomposes the decision-making process into two distinct, specialized modules designed for scalability and flexibility.
Scalable Relation Capturer
This module identifies "Relation Patterns"—the fundamental logic of how agents interact with teammates and enemies. It employs a permutation-invariant cross-attention mechanism, ensuring the agent focuses on the relative importance of entities rather than their specific order. This design makes the capturer task-agnostic and capable of scaling to any number of entities.
Hyper-Decision-Maker
To map general patterns to specific actions, RPG uses a conditional hypernetwork. This network takes a task embedding as input and generates weights for a smaller, task-specific decision-making network. This allows the system to "re-wire" its action logic for each new task while preserving the core relational understanding.
Regularization and Stability
To prevent forgetting, the framework incorporates Taylor expansion-based importance estimation to protect critical parameters within the relation capturer. Additionally, a specific loss term in the hypernetwork ensures that new task embeddings do not disrupt the performance of previous tasks.
Experimental Evaluation
The framework was evaluated on the StarCraft Multi-Agent Challenge (SMAC) and Level-Based Foraging (LBF). In SMAC, agents were tested in a sequential setup, moving through increasingly complex maps (e.g., 5m_vs_6m → 12m → 5m → 8m_vs_9m).
Key Results and Stability
RPG demonstrated exceptional stability compared to traditional baselines. As shown in the performance curves, RPG maintains high win rates on early tasks even as it learns subsequent, more difficult challenges.
- Superior Stability: While "Finetuning" baselines often saw win rates drop to 0% on old tasks immediately after switching, RPG maintained near 100% win rates.
- Outperforming SOTA: RPG surpassed MACPro, the previous state-of-the-art in Co-MARL, in both learning speed (plasticity) and memory retention (stability). It is also more parameter-efficient, utilizing 112K parameters compared to MACPro's 377K.
- Zero-Shot Generalization: Due to its focus on general interaction rules, RPG achieved a 96.3% win rate on unseen SMAC maps (like
15m), significantly outperforming EWC (73.2%) and MAS (76.9%).
Conclusion and Future Work
RPG successfully decouples relational logic from task-specific execution, providing a robust solution for continual coordination. While highly effective for homogeneous teams, future research will focus on extending the framework to heterogeneous teams with diverse roles. Additionally, the authors aim to explore mechanisms for automatic task inference and perpetual knowledge growth to handle an indefinite stream of complex environments.
Summary updated