Manuscript Offprint

arXiv:2610.10302

Continual Graph Multi-Agent Reinforcement Learning

Tommaso Marzi, Ahmed Hendawy, Jan Peters, Carlo D'Eramo, Andrea Cini, Cesare Alippi

Abstract

In Continual Multi-Agent Reinforcement Learning (CMARL), agents learn cooperative policies across sequences of tasks, aiming to adapt effectively to new tasks while preserving the ability to solve previously encountered ones. In many applications, tasks differ in their underlying structure, which can represent, for example, distinct operational conditions or target configurations (e.g., different network topologies in power grids or arrangements in formation control). Existing CMARL methods lack dedicated mechanisms to leverage this structural information when learning new tasks, failing to promote transfer and mitigate forgetting. To fill this gap, we propose Continual Graph Multi-Agent Reinforcement Learning (CGMARL), a novel framework for CMARL problems in which task sequences are mapped into a series of attributed graphs, each modeling a task-specific structure. In CGMARL, each graph determines the environment dynamics (next states and/or rewards) and the number of agents for the corresponding task. Then, we present Graph-based Formation (GRAFO), the first CGMARL benchmark, and show how forgetting arises in this setting. Finally, to address this limitation, we propose Frozen Graph Encoder (FROG), a method that relies on a frozen graph backbone to preserve past structural information in graph-based CMARL policies. Experiments on GRAFO show that pairing FROG with existing CL methods substantially improves performance on multiple CGMARL scenarios.

1 Introduction

In cooperative Multi-Agent Reinforcement Learning (MARL; [41]), multiple RL agents learn to coordinate their behaviors to accomplish a shared task. This paradigm has proven effective across a variety of domains, such as autonomous driving [12], traffic signal control [37], or video games [76]. However, its applicability remains limited: most existing methods train RL agents on a single problem, whereas real-world scenarios typically involve sequences of related tasks that are often not known in advance. Continual RL (CRL; [35, 2]) formalizes this challenge by considering RL environments in which the agent never stops learning from an unknown sequence of tasks and cannot access previously observed ones. In particular, the agent aims to adapt to new tasks while preserving performance on previously learned ones [47, 60], i.e., to transfer knowledge across tasks (plasticity) while avoiding catastrophic forgetting (stability). The multi-agent extension of the CRL paradigm, namely, Continual MARL (CMARL; [58, 75]), poses additional challenges. Specifically,

Preprint.

learning new tasks while mitigating the forgetting of past ones is complicated by multiple interacting learners [83]. This introduces a tightly coupled adaptation problem: agents must adapt to external changes in the environment, while accounting for changes in other agents' behaviors due to policy updates.

In many real-world domains, such as autonomous mobility-on-demand [24] or power grid control [81, 26], the multi-agent problem is characterized by an underlying structure [42], which encodes dependencies across agents (e.g., physical or relational). Importantly, this structure determines the environment's dynamics, i.e., it shapes state transitions and rewards. For example, in a traffic light network where each agent controls a specific intersection, local rewards and observations depend on incoming/outgoing vehicles from/to connected agents. Crucially, agents often face sequences of MARL tasks that differ in their underlying structures [16], requiring them to adapt their strategy to distinct structure-dependent dynamics. These structures may be entirely unrelated, such as flying formation problems with distinct target configurations, or may share similarities, e.g., adding or removing intersections and roads in a traffic light network. However, the current CMARL framework is not suited to address such sequential structure-based MARL problems: task shifts are typically attributed to variations in environment dynamics or team size [58], whereas the impact of task-specific problem structures is largely overlooked. Moreover, standard CL methods lack dedicated mechanisms to model structural information [88], making them ineffective at preserving past structural knowledge when adapting to new tasks. For example, regularization-based methods [36] mitigate forgetting by preserving important features or parameters, but fundamentally ignore the task's structure. Given these limitations, we argue that graphs provide a natural and effective approach for capturing task-specific structures by representing agents as nodes and encoding pairwise (agent-agent) dependencies through edges.

In this work, we introduce Continual Graph Multi-Agent Reinforcement Learning (CGMARL), a novel framework for continual structure-based MARL problems. In CGMARL, task sequences are characterized by a series of attributed graphs, each modeling a task-specific structure and determining the environment dynamics and the number of agents. We first show how distinct graph distributions induce CGMARL problems relevant to real-world scenarios. Then, we present the first CGMARL benchmark, named Graph-based Formation (GRAFO), and show the failure modes of graph-based policies in CGMARL. Finally, we propose Frozen Graph Encoder (FROG), a simple approach tailored for CGMARL problems that relies on decoupling graph representation learning from action prediction. Specifically, FROG leverages node representations generated with a frozen graph backbone to provably eliminate forgetting in the graph representation learning module caused by structural changes. At the same time, the action prediction module can be paired with standard CL approaches to further mitigate forgetting. To the best of our knowledge, this is the first work that formalizes continual graph-based MARL problems and can pave the way for novel methodologies tailored to CGMARL.

Main Contributions: 1) We introduce the Continual Graph Multi-Agent Reinforcement Learning (CGMARL) framework, in which continual structure-based MARL problems are modeled as a series of attributed graphs. 2) We present Graph-based Formation (GRAFO), a novel graph-based navigation benchmark that allows us to design arbitrary CGMARL task sequences. 3) We provide empirical evidence that, in CGMARL, standard graph-based methods fail to generalize across different graphs and strongly suffer from forgetting. 4) We propose Frozen Graph Encoder (FROG), a simple technique that relies on a frozen graph backbone, and showcase its effectiveness across multiple CGMARL sequences.

References (86)

  • Policy and value transfer in lifelong reinforcement learning
  • A definition of continual reinforcement learning
  • Learning transferable cooperative behavior in multi-agent teams
  • Multi-agent reinforcement learning: Foundations and modern approaches
  • Memory aware synapses: Learning what (not) to forget (opens the publisher in a new tab)
  • Encoding goals as graphs: Structured objectives for scalable cooperative multi-agent reinforcement learning
  • A gentle introduction to deep learning for graphs
  • Heterogeneous multi-robot reinforcement learning
  • Large-scale study of curiosity-driven learning
  • Exploration by random network distillation
  • New insights on reducing abrupt representation change in online continual learning
  • Transferring multi-agent reinforcement learning policies for autonomous driving using sim-to-real
  • Efficient lifelong learning with a-GEM
  • Self-supervised reinforcement learning that transfers using random features
  • A simple framework for contrastive learning of visual representations
  • Multi-agent deep reinforcement learning (madrl)-based end-to-end formation control for uav swarm with dynamic topology
  • Multi-agent reinforcement learning for networked system control
  • Tarmac: Targeted multi-agent communication
  • Ig-rl: Inductive graph reinforcement learning for massive-scale traffic signal control (opens the publisher in a new tab)
  • Online continual graph learning (opens arXiv in a new tab)
  • The unreasonable effectiveness of randomized representations in online continual graph learning (opens the publisher in a new tab)
  • Bayesian ego-graph inference for networked multi-agent reinforcement learning
  • Learning to communicate with deep multi-agent reinforcement learning
  • Graph neural network reinforcement learning for autonomous mobility-on-demand systems
  • Neural message passing for quantum chemistry
  • Graph reinforcement learning for power grids: A comprehensive survey
  • Lifelong machine learning with deep streaming linear discriminant analysis
  • Parameter-efficient transfer learning for nlp
  • Continual knowledge adaptation for reinforcement learning
  • Decentralized graph-based multi-agent reinforcement learning using reward machines
  • Learning multi-agent communication from graph modeling perspective
  • Harnessing nonlinearity: Predicting chaotic systems and saving energy in wireless communication
  • Learning attentional communication for multi-agent cooperation
  • Graph convolutional reinforcement learning
  • Towards continual reinforcement learning: A review and perspectives
  • Overcoming catastrophic forgetting in neural networks (opens the publisher in a new tab)
  • Multi-agent reinforcement learning for traffic signal control: A cooperative approach
  • Revisiting self-supervised visual representation learning
  • Crnet: A fast continual learning framework with random theory
  • Multi-agent reinforcement learning in stochastic networked systems
  • Survey on graph-based reinforcement learning for networked coordination and control
  • VIP: Towards universal visual reward and representation via value-implicit pretraining
  • Packnet: Adding multiple tasks to a single network by iterative pruning
  • Feudal graph reinforcement learning
  • Hierarchical message-passing policies for multi-agent reinforcement learning (opens arXiv in a new tab)
  • Catastrophic interference in connectionist networks: The sequential learning problem
  • Ranpac: Random projections and pre-trained models for continual learning
  • Position: Lifetime tuning is incompatible with continual reinforcement learning
  • R3m: A universal visual representation for robot manipulation
  • An untrained neural model for fast and accurate graph classification
  • Scalable multi-agent reinforcement learning through intelligent information aggregation
  • Deep reinforcement learning with plasticity injection
  • Traffic signal control based on reinforcement learning with graph convolutional neural nets (opens the publisher in a new tab)
  • Multi-agent graph-attention communication and teaming
  • Springer, 2016
  • Randomized prior functions for deep reinforcement learning
  • A survey of continual reinforcement learning (opens arXiv in a new tab)
  • Neural-net computing and the intelligent control of systems
  • Continual lifelong learning with neural networks: A review
  • Self-activating neural ensembles for continual reinforcement learning
  • Evaluating continual learning on a home robot
  • Randumb: Random representations outperform online continually learned representations
  • Value propagation for decentralized networked deep multi-agent reinforcement learning
  • Scalable reinforcement learning for multiagent networked systems
  • Random features for large-scale kernel machines
  • Factored value functions for graph-based multi-agent reinforcement learning
  • Progressive Neural Networks
  • Distributed value functions
  • Masked label prediction: Unified message passing model for semi-supervised classification (opens arXiv in a new tab)
  • Learning when to communicate at scale in multiagent cooperative and competitive tasks
  • Continual learning in vision-language models via aligned model merging (opens arXiv in a new tab)
  • Advances in neural information processing systems, 29, 2016
  • MEAL: A benchmark for continual multi-agent reinforcement learning, 2026
  • nature, 575(7782):350–354, 2019
  • Nervenet: Learning structured policy with graph neural networks
  • Continual world: A robotic benchmark for continual reinforcement learning
  • A transfer approach using graph neural networks in deep reinforcement learning
  • Learning to share in networked multi-agent reinforcement learning
  • Winning the 12{rpn} challenge: Power grid management via semi-markov afterstate actor-critic
  • The surprising effectiveness of ppo in cooperative multi-agent games
  • Multiagent continual coordination via progressive task contextualization
  • Graph random neural features for distance-preserving graph representations
  • Fully decentralized multi-agent reinforcement learning with networked agents
  • Mastering continual reinforcement learning through fine-grained sparse network allocation and dormant neuron exploration (opens arXiv in a new tab)
  • Selective experience replay compression using coresets for lifelong deep reinforcement learning in medical imaging
  • Overcoming catastrophic forgetting in graph neural networks with experience replay