MADiff: Offline Multi-agent Learning with Diffusion Models

Zhengbang Zhu, Minghuan Liu, Liyuan Mao, Bingyi Kang, Minkai Xu +3 more
2/12/2026

No official code found. Best implementation: zbzhu99/madiff (113 stars, MIT, last commit 2025-06-26).

Abstract

Offline reinforcement learning (RL) aims to learn policies from pre-existing datasets without further interactions, making it a challenging task. Q-learning algorithms struggle with extrapolation errors in offline settings, while supervised learning methods are constrained by model expressiveness. Recently, diffusion models (DMs) have shown promise in overcoming these limitations in single-agent learning, but their application in multi-agent scenarios remains unclear. Generating trajectories for each agent with independent DMs may impede coordination, while concatenating all agents' information can lead to low sample efficiency. Accordingly, we propose MADiff, which is realized with an attention-based diffusion model to model the complex coordination among behaviors of multiple agents. To our knowledge, MADiff is the first diffusion-based multi-agent learning framework, functioning as both a decentralized policy and a centralized controller. During decentralized executions, MADiff simultaneously performs teammate modeling, and the centralized controller can also be applied in multi-agent trajectory predictions. Our experiments demonstrate that MADiff outperforms baseline algorithms across various multi-agent learning tasks, highlighting its effectiveness in modeling complex multi-agent interactions. Our code is available at https://github.com/zbzhu99/madiff.

View on arXivView PDF

Code Implementations(1)

zbzhu99/madiffCommunity100%
MIT

Implementation of "MADiff: Offline Multi-agent Learning with Diffusion Models"

11319Shell, PythonOct 13, 20231 years agoMIT

Similar Papers

Cite this paper

@article{zhu2026madiff,
  title  = {MADiff: Offline Multi-agent Learning with Diffusion Models},
  author = {Zhengbang Zhu and Minghuan Liu and Liyuan Mao and Bingyi Kang and Minkai Xu and Yong Yu and Stefano Ermon and Weinan Zhang},
  year   = {2026},
  eprint = {2305.17330},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2305.17330},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.17330.svg)](https://codeofpaper.com/paper/2305.17330)

Discussion