Multi-agent Coordination via Flow Matching

Dongsu Lee, Daehee Lee, Amy Zhang

Executive Summary

MAC-Flow is a novel framework for offline multi-agent reinforcement learning (MARL) that successfully bridges the gap between expressiveness and execution speed. By leveraging flow matching to capture complex joint behaviors and subsequently distilling them into one-step decentralized policies, MAC-Flow achieves state-of-the-art coordination with a 14.5x inference speedup over diffusion-based methods.

The Expressiveness vs. Speed Trade-off

In MARL, agents must learn to coordinate their actions to achieve shared goals. This challenge is magnified in offline settings, where agents learn from a fixed dataset without the ability to interact with the environment.

Historically, solutions have fallen into two conflicting categories:

  1. Gaussian Policies: These models are fast, executing in a single step, but are often "brittle." They struggle to represent multi-modal distributions—scenarios with multiple valid coordination strategies—leading to agents "averaging" strategies and ultimately failing.
  2. Diffusion-based Models: These models are highly expressive and adept at capturing complex coordination. However, they rely on an iterative denoising process (often requiring 100+ steps) to generate a single action, making them computationally prohibitive for real-time applications.

MAC-Flow asks a pivotal question: How can we achieve the coordination power of generative models with the real-time speed of simple policies?

Performance vs. Inference Time

The MAC-Flow Framework

To resolve this trade-off, MAC-Flow employs a two-stage architecture that decouples learning what to do from learning how to act quickly.

The MAC-Flow Architecture
  • Stage I: Joint Policy Extraction: Instead of immediately training individual agents, the framework learns a flow-based joint policy via Behavioral Cloning (BC). Flow matching is utilized because it offers a more stable and efficient path from noise to data than traditional diffusion. This stage captures the rich, multi-modal coordination patterns present in the source data. Concurrently, individual critics are trained using the Individual-Global-Max (IGM) principle to evaluate actions.
  • Stage II: Policy Factorization & Distillation: The complex, multi-step joint flow is then distilled into decentralized, one-step sampling policies for each individual agent. This distillation process is guided by a dual-objective loss:
  • RL Objective: Maximizes the global Q-value to ensure high task performance.
  • Imitation Objective: Keeps the distilled policy close to the joint flow distribution, preserving the sophisticated coordination learned in Stage I.

By the end of Stage II, agents can act independently and instantly while maintaining the high-level coordination of the joint generative model.

Evaluation Benchmarks

The researchers rigorously evaluated MAC-Flow across 12 environments and 34 datasets, including:

  • SMACv1 & SMACv2: Discrete action tasks requiring intense strategic coordination (StarCraft Multi-Agent Challenge).
  • MA-MuJoCo: Continuous action tasks involving multi-agent robotic control.
  • MPE (Multi-Agent Particle Environment): Lightweight continuous tasks like cooperative navigation.
  • Datasets spanned various quality levels, including "Good," "Medium," "Poor," "Replay," and "Random."

Key Insights and Results

  • Massive Inference Speedup: MAC-Flow achieves an average 14.5x faster inference compared to state-of-the-art diffusion-based methods (like DoF and MADiff). Its execution speed is practically identical to simple Gaussian policies, effectively solving the computational bottleneck.
  • Superior Performance: In SMACv1 and SMACv2, MAC-Flow consistently matched or outperformed existing models. It proved especially robust in "Medium" and "Poor" data scenarios where extracting coordination is notoriously difficult.
  • Continuous Control Excellence: The framework scales seamlessly from discrete to continuous action spaces, achieving the highest average rewards in MA-MuJoCo and MPE.
  • Theoretical Guarantees: The authors provide mathematical proofs (utilizing Lipschitz continuity and Wasserstein distance) bounding the performance gap between the expressive joint model and the distilled decentralized policies.

Limitations and Future Directions

While highly effective, MAC-Flow has boundaries. An "XOR stress test" revealed that its reliance on the IGM principle can cause struggles in rare, non-separable coordination scenarios where actions cannot be decomposed into individual contributions. Future work aims to extend MAC-Flow to more dynamic environments and explore integrating multiple pre-trained distributions to foster greater policy diversity.

Summary updated

BibTeX
@inproceedings{lee2026multi,
  author = {Dongsu Lee and Daehee Lee and Amy Zhang},
  title = {{Multi-agent Coordination via Flow Matching}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=2L6MffR0ut},
}
Figure