Multiagent Continual Coordination via Progressive Task Contextualization

Lei Yuan, Lihe Li, Ziqian Zhang, Fuxiang Zhang, Cong Guan, Yang Yu

TL;DR

This paper introduces MACPro, a novel framework for multi-agent reinforcement learning (MARL) that addresses the challenge of agents learning to coordinate across a sequence of tasks without forgetting previous ones. MACPro achieves this by progressively contextualizing tasks, adaptively expanding a multi-head policy architecture, and enabling decentralized task approximation, leading to state-of-the-art performance on challenging continual MARL benchmarks.

What Problem Does This Paper Address?

Cooperative Multi-agent Reinforcement Learning (MARL) has seen significant progress in enabling agents to coordinate and achieve shared goals. However, most existing MARL methods are designed for single-task or multi-task scenarios where all tasks are available simultaneously. This is unrealistic for real-world applications where agents often encounter tasks sequentially and must adapt to new ones while retaining knowledge of previously learned tasks. This "continual learning" problem in MARL, specifically focusing on coordination, is largely unexplored. The challenge lies in formulating the problem and designing algorithms that can handle an ever-increasing number of tasks without suffering from catastrophic forgetting or becoming computationally intractable.

Methods

MACPro tackles this challenge with a three-pronged approach:

  • Multi-agent Task Contextualization Learning: This module captures the unique characteristics of each new task. It uses a global trajectory encoder to create a latent representation of a task's dynamics. A contrastive loss is employed to ensure that similar task representations are pulled together and dissimilar ones are pushed apart.
  • Adaptive Dynamic Network Expansion: To manage the growing number of tasks, MACPro employs a shared feature extractor with an expandable multi-head policy architecture. When a new task arrives, it's compared to existing task contexts. If similar, the new task reuses an existing policy head; otherwise, a new head is created. This adaptive expansion prevents the network from growing excessively large. An L2-regularizer is also used to prevent drastic changes in the shared feature extractor, mitigating catastrophic forgetting.
  • Decentralized Task Approximation: A key challenge in MARL is that agents only have local observations during execution. MACPro addresses this by developing a distillation solution. Local trajectory encoders are trained to approximate the global task representation, allowing each agent to independently select the most appropriate policy head for the current task using its local information.

Datasets

The paper evaluates MACPro on several standard multi-agent benchmarks:

  • Level-Based Foraging (LBF): A cooperative grid world game where agents must collect food. Tasks involve changes in food positions.
  • Predator-Prey (PP): A benchmark where predators chase a prey. Tasks vary in landmark positions, agent dynamics, and prey behaviors.
  • StarCraft Multi-Agent Challenge (SMAC): Specifically, the Marines and SZ series, which involve controlling armies of units in combat scenarios. Tasks involve different numbers and types of units.

The paper also designs 20 additional tasks for each benchmark to test generalization ability.

Key Insights and Ideas

  • Task Contextualization is Crucial for Continual MARL: Simply applying single-agent continual learning methods or standard MARL techniques is insufficient. MACPro's ability to learn and represent task-specific contexts is key to its success.
  • Adaptive Head Expansion Balances Scalability and Performance: The progressive expansion of policy heads, rather than a fixed large network or a new head for every task, offers a scalable solution that avoids the pitfalls of both extreme approaches.
  • Decentralized Approximation is Necessary for Real-World Deployment: The ability for agents to select the correct policy head using only local information is a critical step towards practical MARL systems.
  • Contrastive Learning Aids Representation Learning: The use of contrastive losses in both global and local task contextualization significantly improves the quality of learned representations.

Key Results

  • MACPro achieves close-to-optimal performance across multiple MARL benchmarks in a continual learning setting, significantly outperforming baselines like Finetuning, EWC, Coreset, and OWL.
  • In the Predator-Prey (PP) benchmark, MACPro demonstrates high generalization ability, performing well on unseen tasks without explicit training.
  • Ablation studies show that each component of MACPro (model loss, POE, contrastive loss, adaptive expansion, and decentralized approximation) contributes significantly to its overall performance.
  • MACPro can be integrated with existing value-based MARL methods (VDN, QMIX, QPLEX), vastly improving their continual learning capabilities.

Limitations and Future Work

  • Task Boundaries Known During Training: The current framework assumes that task boundaries are known during the centralized training phase. Future work could explore scenarios where task boundaries are unknown.
  • Heuristic-Designed Environments: The paper notes that the current MARL scenarios are somewhat heuristic. Developing more automated or diverse environment generation methods would be valuable.
  • Real-World Applications: The authors suggest that applying MACPro to more complex, real-world applications would be a significant next step.
  • More Efficient Environment Processes: Exploring more efficient ways to process environments and potentially automatically generate tasks could further enhance the framework.

Summary updated

BibTeX
@article{yuan2025multiagent,
  author = {Lei Yuan and Lihe Li and Ziqian Zhang and Fuxiang Zhang and Cong Guan and Yang Yu},
  title = {{Multiagent Continual Coordination via Progressive Task Contextualization}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2025},
  doi = {10.1109/tnnls.2024.3394513},
}
Figure