Continual Graph Multi-Agent Reinforcement Learning

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

TL;DR

This paper introduces Continual Graph Multi-Agent Reinforcement Learning (CGMARL), a framework where cooperative agents must adapt to a sequence of tasks defined by changing graph structures (like shifting power grid topologies or robot formations). The authors propose FROG (Frozen Graph Encoder), a simple yet effective strategy that freezes the graph-processing backbone after the first task to prevent "structural forgetting," significantly outperforming standard continual learning methods.

What Problem Does This Paper Address?

Multi-agent reinforcement learning (MARL) has seen great success in static environments, but real-world systems—like traffic lights, power grids, or swarms of drones—are rarely static. They involve sequences of tasks where the underlying "structure" (who is connected to whom) changes over time.

Existing Continual MARL (CMARL) research focuses on adapting to new rewards or team sizes but largely ignores changes in the problem's relational structure. When agents use Graph Neural Networks (GNNs) to coordinate, they learn specific "local rules" for message passing. When a new task with a different topology arrives, the agents overwrite these rules to adapt (plasticity), but in doing so, they completely forget how to solve previous tasks (catastrophic forgetting).

The authors identify a gap: standard continual learning (CL) tools like weight regularization aren't designed to handle the unique way GNNs represent structural information.

Methods

The authors propose a two-pronged approach: a new framework and a targeted algorithm.

  1. CGMARL Framework: They formalize tasks as attributed graphs where the graph determines the environment dynamics and the number of agents. They categorize structural changes into three types:
  2. Topology Switch (TS): Nodes and edges change between tasks (e.g., different city layouts).
  3. Connectivity Switch (CS): The team is fixed, but connections change (e.g., a power grid rerouting).
  4. Graph Features Switch (GFS): The layout is fixed, but node/edge properties change (e.g., different limb lengths on a robot).
Scheme of the CGMARL problem showing different task switch scenarios.
  1. FROG (Frozen Graph Encoder): To stop agents from overwriting their structural knowledge, the authors decouple the policy into two parts: a GNN encoder (which interprets the graph) and an MLP action head (which decides what to do).
  2. The GNN is trained on the first task and then frozen.
  3. For all subsequent tasks, only the MLP action head is updated.
  4. To further prevent forgetting in the MLP, they pair FROG with standard CL methods like Elastic Weight Consolidation (EWC) or Memory Aware Synapses (MAS).

Datasets

The paper introduces GRAFO (Graph-based Formation), a new benchmark for CGMARL.

  • The Task: Agents must navigate to a target formation.
  • The Twist: Only one agent knows its target (a landmark). All other agents must deduce their target positions based solely on the graph structure provided at the start of the task.
  • Evaluation: They test on sequences of 4 to 6 tasks, varying the number of agents (from 3 to 7) and the connectivity patterns.
Figure 2: Example of a GRAFO task with five agents (circles). Left: agent graph identifying the task. Right: current state of the environment, where the green solid cross is the landmark known to all agents, i.e., the target position of the green agent, while the dashed crosses are the target posi- tions of other agents. These positions are defined based on the graph, but are not explicitly provided.

Key Insights and Ideas

  • GNNs are "Structural Overwriters": The authors prove (both theoretically and empirically) that GNNs are particularly prone to forgetting because structural changes force the message-passing functions to change fundamentally.
  • The Power of a Stable Language: By freezing the GNN, FROG forces the model to use a consistent "structural language." Even if the first task was simple, a well-trained GNN often captures enough general relational features to be useful for more complex future tasks.
  • Decoupling is Key: Standard CL methods (like EWC) often fail in CGMARL because they use a single regularization strength for the whole network. The GNN usually needs much stronger "protection" than the action head; FROG solves this by simply setting the GNN's learning rate to zero.

Key Results

The experiments compared standard CL methods (L2, EWC, MAS) against their "FROG-enhanced" versions across TS, CS, and GFS scenarios.

  • Performance Boost: Pairing FROG with EWC or MAS consistently improved Average Final Performance (AFP). For example, in the Topology Switch scenario, FROG-enhanced methods maintained high success rates across the entire sequence, whereas standard methods saw performance drop as they forgot early tasks.
  • Stability: FROG significantly reduced Average Forgetting (AF). In many cases, standard GNN policies showed near-total forgetting of the first task (AF near -1.0), while FROG kept AF closer to zero.
  • Zero-Shot Failure: The authors showed that GNNs trained on one formation cannot generalize to another without further training, highlighting that "structure" in MARL is a task-specific feature that must be learned continually.

Limitations and Future Work

  • Task Order Sensitivity: FROG's success depends on the first task being "rich" enough to help the GNN learn a good general representation. If the first task is too simple, the frozen encoder might lack the expressiveness needed for later, harder tasks.
  • Static vs. Dynamic Edges: The current work focuses on graphs that are fixed within a single task. Future work could explore "Connectivity Switch" scenarios where edges change dynamically during an episode.
  • Off-policy Learning: The current study uses on-policy PPO; extending this to off-policy methods could allow for experience-replay-based CL, which might further improve stability.

Summary updated

BibTeX
@misc{marzi2026continual,
  author = {Tommaso Marzi and Ahmed Hendawy and Jan Peters and Carlo D'Eramo and Andrea Cini and Cesare Alippi},
  title = {{Continual Graph Multi-Agent Reinforcement Learning}},
  year = {2026},
  eprint = {2610.10302},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.10302},
}
Figure