NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Dynamic Deep Factor Graph for Multi-Agent Reinforcement Learning

Yuchen Shi, Shihong Duan, Cheng Xu, Ran Wang, Fangwen Ye, Chau YuenarXiv 2024 · DOI

Introduction

The Dynamic Deep Factor Graph (DDFG) algorithm introduces a flexible framework for multi-agent coordination by dynamically decomposing collective value functions using factor graphs. By learning a "graph policy" that determines agent collaboration on-the-fly, DDFG addresses the challenge of "relative overgeneralization"—a common failure mode where agents avoid high-reward cooperation due to the risk of significant penalties from miscoordination.

Problem Statement: Relative Overgeneralization

In Multi-Agent Reinforcement Learning (MARL), the exponential growth of the state-action space makes learning a global value function difficult. While Value Function Decomposition (VFD) methods like VDN or QMIX mitigate this by decomposing the global reward into individual contributions, they often suffer from relative overgeneralization. This occurs in environments where successful cooperation yields high rewards, but a single agent's error results in a large penalty. Consequently, agents often converge to "safe" but sub-optimal independent behaviors. Existing Coordination Graphs (CG) are often static or limited to pairwise interactions, failing to adapt to dynamic environments requiring higher-order coordination.

Methodology

DDFG employs a three-pronged architecture to enable situational teamwork:

  1. Dynamic Factor Graphs: A "graph structure generation policy" (hypernetwork) takes the environment state and outputs a factor graph structure. This allows the system to dynamically group agents based on immediate task requirements.
  2. Higher-Order Decomposition: DDFG supports factors involving three or more agents. To maintain parameter efficiency, it utilizes Canonical Polyadic (CP) Decomposition, approximating complex multi-agent interactions with a reduced set of learnable weights.
  3. Max-Sum Algorithm: During execution, agents use the Max-Sum message-passing algorithm over the factor graph to find the joint action that maximizes shared utility.
  4. Dual-Loss Optimization: The architecture simultaneously trains the Q-value network via TD-error and the Graph Policy via policy gradients (PPO-style), ensuring the graph structure evolves to support rewarding strategies.
DDFG Architecture: (a) Agent network with GRU, (b) Overall DDFG framework including the Q-Value Function network and Graph Policy, (c) Graph Policy details.

Experimental Setup

DDFG was evaluated on two primary benchmarks:

  • Higher-Order Predator-Prey (HO-PP): A grid-world where 9 predators must capture 6 prey. Success requires at least 3 agents to surround a prey simultaneously; solo attempts incur heavy penalties, making this a perfect test for relative overgeneralization.
  • StarCraft II Multi-Agent Challenge (SMAC): Tested on "Hard" and "Superhard" maps (e.g., MMM2) where precise micromanagement and coordination are essential for victory.

Results and Discussion

DDFG demonstrates significant resilience to miscoordination penalties. In the Predator-Prey task, as penalties increased, standard baselines like QMIX and VDN failed to learn cooperative strategies, whereas DDFG consistently reached optimal rewards.

Performance comparison on the Predator-Prey task with punishment p=-1 and rt=0. DDFG significantly outperforms baselines which struggle to overcome the coordination penalty.

In StarCraft II, DDFG achieved higher win rates on complex maps like MMM2 compared to state-of-the-art methods like QMIX and DCG. Qualitative analysis revealed that the learned graph structures effectively "target" enemies, dynamically reconfiguring to support multiple capture groups as the situation evolves.

Conclusion

DDFG provides a robust mechanism for dynamic multi-agent coordination. By combining flexible factor graph structures with efficient tensor decomposition and dual-loss optimization, it successfully overcomes relative overgeneralization. Future work includes reducing computational overhead from the iterative Max-Sum algorithm and exploring automated determination of the maximum factor order.

Summary updated

BibTeX
@misc{shi2024dynamic,
  author = {Yuchen Shi and Shihong Duan and Cheng Xu and Ran Wang and Fangwen Ye and Chau Yuen},
  title = {{Dynamic Deep Factor Graph for Multi-Agent Reinforcement Learning}},
  year = {2024},
  eprint = {2405.05542},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.05542},
}
Figure