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:
- 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.
- 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.
- 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.
- 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.
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.
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