Reaching Consensus in Cooperative Multi-Agent Reinforcement Learning with Goal Imagination

Liangzhou Wang, Kaiwen Zhu, Fengming Zhu, Xinghu Yao, Shujie Zhang, Deheng Ye, Haobo Fu, Qiang Fu, Wei YangarXiv 2024 · DOI

Introduction

In cooperative Multi-Agent Reinforcement Learning (MARL), agents must work together to achieve common objectives. However, a persistent challenge is the "miscoordination problem." Even with Centralized Training, Decentralized Execution (CTDE), agents often lack a shared plan during the execution phase, leading to disjointed behaviors. For instance, in a narrow passage, two agents might both attempt to move to the same side, resulting in a collision. While model-based approaches attempt to predict future states, they often suffer from compounding errors over long horizons and the curse of dimensionality.

The MAGI Framework

To address these challenges, we introduce the Multi-agent Goal Imagination (MAGI) framework. MAGI establishes an explicit consensus by decoupling action selection from environment dynamics through three core components:

  1. Long-horizon Goal Imagination: Instead of step-by-step rollouts, MAGI utilizes a Conditional Variational Auto-Encoder (CVAE) to model the distribution of future states directly. A Goal Actor samples potential states from this distribution, and a Goal Critic selects the highest-value state as the team's shared goal ($s^g_t$).
  2. Hypernetwork-based Policy: To ensure agents act on the shared goal, a Hyper-net generates the weights for each agent's policy network based on the imagined goal. This allows strategies to adapt flexibly to the shared objective.
  3. Intrinsic Reward: Agents are incentivized with intrinsic rewards for taking actions that bring the global state closer to the consensus goal, further anchoring the team's coordination.
The MAGI architecture integrates goal imagination via CVAE with a hypernetwork-based policy to ensure agent coordination.

Experimental Evaluation

The MAGI framework was evaluated across diverse and challenging environments:

  • Multi-agent Particle-Environments (MPE): A 2D physics environment where tasks included Navigation, Treasure Collection (scaled up to 10 agents), and Predator-Prey scenarios.
  • Google Research Football (GRF): A complex 3D simulation testing coordination in 3v3, 4v4, and 5v5 matches against a built-in AI.
A visualization of a coordination task where multiple agents (guards) must synchronize their movements to manage a target (theft).

Key Results and Insights

MAGI demonstrated significant improvements in both performance and sample efficiency across all benchmarks. In MPE Navigation, MAGI achieved a reward of -11.1, nearly doubling the performance of model-based baselines like Conditional-TSM (-20.3).

Direct Future Modeling

By using a CVAE to "leapfrog" intermediate steps, MAGI avoids the compounding errors typical of standard model-based RL. This allows for stable long-term planning without the computational overhead of full trajectory rollouts. The "imagined goals" provided a stronger gradient for exploration in the early stages of training, leading to faster convergence.

Scalability and Complexity

In the Google Research Football 5v5 scenario, MAGI's advantage was particularly pronounced. The high-dimensional state space and discrete action sets of GRF make coordination non-trivial; MAGI's ability to condition policy weights on a shared "imagined" future allowed the team to execute complex maneuvers that model-free baselines struggled to discover. Furthermore, the framework's scalability was proven in the 10-agent Treasure Collection task, where it maintained a consistent lead over MADDPG.

The "Sweet Spot" of Foresight

A critical finding was the importance of the planning horizon ($c$). Ablation studies revealed that if the horizon is too short, the goal provides little guidance; if too long, the goal becomes an unachievable "hallucination" that agents eventually ignore. Optimal performance requires balancing these extremes.

Conclusion

MAGI provides a robust mechanism for explicit consensus in MARL by treating the goal as a mathematical anchor for behavior. While currently dependent on CVAE accuracy and manual horizon tuning, it opens doors for adaptive horizon planning and applications in more complex, mixed-motive environments where coordination is the key to success.

Summary updated

BibTeX
@misc{wang2024reaching,
  author = {Liangzhou Wang and Kaiwen Zhu and Fengming Zhu and Xinghu Yao and Shujie Zhang and Deheng Ye and Haobo Fu and Qiang Fu and Wei Yang},
  title = {{Reaching Consensus in Cooperative Multi-Agent Reinforcement Learning with Goal Imagination}},
  year = {2024},
  eprint = {2403.03172},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.03172},
}
Figure