DoF: A Diffusion Factorization Framework for Offline Multi-Agent Reinforcement Learning

Chao Li, Ziwei Deng, Chenxing Lin, Wenqi Chen, Yongquan Fu, Weiquan Liu, Chenglu Wen, Cheng Wang, Siqi ShenICLR 2025

Overview

Researchers have introduced DoF (Diffusion Factorization), a novel framework that brings the generative power of diffusion models to offline Multi-Agent Reinforcement Learning (MARL). By introducing the Individual-Global-identically-Distributed (IGD) principle, the authors demonstrate how to factorize a complex, centralized team model into efficient, individual agent models. This allows agents to coordinate perfectly without falling victim to the computational "curse of dimensionality."

The Challenge of Multi-Agent Diffusion

In cooperative Multi-Agent Reinforcement Learning (MARL), a group of agents must work together to achieve a common goal using only a pre-collected (offline) dataset. The gold standard for this paradigm is Centralized Training with Decentralized Execution (CTDE): agents learn collaboratively during training but must act based solely on their local observations during execution.

Recently, Diffusion Models—the technology behind powerful image generators like DALL-E—have shown incredible promise in reinforcement learning because they can model complex, multi-modal behaviors better than traditional methods. However, applying them to MARL presents two major hurdles:

  1. Scalability: A centralized diffusion model that processes all agents simultaneously grows exponentially in complexity ($O(n)$) as the number of agents increases.
  2. Cooperation: Conversely, assigning each agent its own independent diffusion model often results in a failure to coordinate. Without a mathematical link, agents are prone to collisions or redundant efforts.

The primary challenge is finding a mathematical way to factorize a team-wide diffusion process into individual, decentralized parts that still retain the ability to cooperate effectively.

The DoF Framework and the IGD Principle

To solve this, the authors propose DoF (Diffusion Factorization). Their approach is built on two foundational pillars:

  1. The IGD Principle: The authors extend the well-known "Individual-Global-Max" (IGM) principle—which ensures that individual greedy actions sum up to an optimal team action—into the Individual-Global-identically-Distributed (IGD) principle. IGD ensures that the joint distribution of data generated by individual, decentralized agents is identical to the distribution generated by a single, all-knowing centralized model.
  2. Factorization Functions:
  3. Noise Factorization ($f$): During the diffusion process, noise is iteratively added or removed. DoF uses a linear function (like Concat or WConcat) to ensure the noise of the multi-agent system is equivalent to the combination of individual agent noises. This crucial step allows each agent to run a model with $O(1)$ input complexity.
  4. Data Factorization ($h$): In the final step of generation, this function models the complex relationships between the agents' outputs to ensure they match the ground truth cooperative behavior.

The framework is highly flexible and can be implemented as DoF-Trajectory (generating future states for planning) or DoF-Policy (generating actions directly).

Experimental Benchmarks

The authors rigorously tested DoF across several diverse environments:

  • SMAC & SMACv2 (StarCraft Multi-Agent Challenge): High-dimensional environments requiring complex micro-management and unit coordination.
  • MPE (Multi-Particle Environment): Used for illustrative tasks like "Landmark Covering," where agents must navigate to targets without colliding.
  • Multi-Agent MuJoCo: A physics-based environment where different agents control distinct joints of a single robot (e.g., a HalfCheetah).
  • Custom Scalability Benchmarks: Stress-testing performance with massive teams of up to 64 agents.

Key Insights

  • The "Aha" Moment on Noise: The authors realized that for diffusion to work in a decentralized way, the noise must remain Gaussian. They mathematically proved that linear factorization (like concatenation) preserves this property, whereas non-linear mixers (like the popular QMIX architecture) distort the noise and degrade performance.
  • Scalability via Factorization: By factorizing the noise model, an agent only needs to process its own local data during execution. This drops the input complexity from $O(n)$ to $O(1)$, allowing the system to scale to large teams where centralized models would otherwise crash.
  • Generalization of Principles: The paper demonstrates that IGD is a "super-principle" capable of generalizing existing MARL concepts like Individual-Global-Optimal (IGO) and Risk-sensitive IGM.

Performance and Scalability

DoF demonstrated superior performance across the board. In StarCraft (SMAC), DoF consistently outperformed both traditional offline MARL baselines (like MAICQ) and the previous state-of-the-art diffusion method (MADIFF). For example, on the challenging "3m" map with "Poor" quality data, DoF achieved a return of 10.9 compared to MADIFF's 10.3.

Furthermore, DoF successfully broke the scalability barrier. In experiments with 64 agents, MADIFF suffered from Out-of-Memory (OOM) errors. DoF not only ran successfully but maintained high rewards with significantly lower GPU memory usage and faster inference times.

Comparison of trajectory generation in the Landmark Covering task. DoF closely matches the Ground Truth, avoiding the collisions seen in Independent Diffusion and MADIFF.

Qualitative results in the Landmark Covering game further highlight DoF's superior coordination. While independent models caused many collisions and MADIFF showed overlapping confusion, DoF agents planned trajectories that mimicked the ground truth "expert" cooperation almost perfectly.

Limitations and Future Directions

While DoF handles large numbers of agents exceptionally well, the authors note it may still struggle with extremely high-dimensional raw observations (like pixel inputs) without further architectural optimization. Additionally, the current work focuses entirely on cooperative tasks. Extending the IGD principle to competitive or mixed-motivation scenarios—where agents have conflicting goals—remains a promising frontier for future research. Finally, like all diffusion models, DoF is computationally heavier than simple neural network policies, though the authors successfully mitigated this using techniques like DDIM and Consistency Models to accelerate sampling.

Summary updated

BibTeX
@inproceedings{li2025dof,
  author = {Chao Li and Ziwei Deng and Chenxing Lin and Wenqi Chen and Yongquan Fu and Weiquan Liu and Chenglu Wen and Cheng Wang and Siqi Shen},
  title = {{DoF: A Diffusion Factorization Framework for Offline Multi-Agent Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=OTFKVkxSlL},
}
Figure