# 多智能体深度确定性策略梯度

**多智能体深度确定性策略梯度**（Multi-agent deep deterministic policy gradient，MADDPG）是一种多智能体强化学习算法。它扩展了DDPG：为每个智能体配备一个集中式评论家（critic），该评论家以所有智能体的观测和动作为条件；而每个智能体的演员（actor）在执行时仅依据自身观测行动。该算法由[瑞安·洛](https://www.edgepedia.org/zh/ryan-lowe)、吴翼、阿维夫·塔马尔、让·哈布、皮特·阿贝尔和伊戈尔·莫尔达奇在2017年NeurIPS论文《混合合作-竞争环境中的多智能体演员-评论家》（“Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments”）中提出，支持混合合作、竞争和对抗性奖励结构。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2017/file/68a9750337a418a86fe06c1991a1d64c-Paper.pdf)</sup><sup> • </sup><sup>[2](https://openai.com/index/learning-to-cooperate-compete-and-communicate/)</sup>

| 关键事实 | 详情 |
|---|---|
| 架构 | 集中训练、分散执行：每个智能体有一个仅使用局部观测的演员，以及一个在训练期间能看到所有智能体观测和动作的评论家<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2017/file/68a9750337a418a86fe06c1991a1d64c-Paper.pdf)</sup><sup> • </sup><sup>[2](https://openai.com/index/learning-to-cooperate-compete-and-communicate/)</sup> |
| 评论家 | 每个智能体一个集中式评论家，因此具有不同或对抗性奖励的智能体可以各自学习自己的价值函数<sup>[2](https://openai.com/index/learning-to-cooperate-compete-and-communicate/)</sup> |
| 学习机制 | 离策略学习，使用联合转移的共享经验回放缓冲区，并在确定性策略上加入高斯噪声以进行探索<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2017/file/68a9750337a418a86fe06c1991a1d64c-Paper.pdf)</sup><sup> • </sup><sup>[3](https://arxiv.org/html/2409.03052)</sup> |
| 官方默认值 | 学习率1e-2，折扣因子0.95，批大小1024，两层64单元多层感知机，训练回合数60,000，回合长度25<sup>[4](http://github.com/openai/maddpg)</sup> |
| 主要结果 | 在原论文的所有测试环境对比中，MADDPG均优于DDPG；集成MADDPG优于单策略MADDPG<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2017/file/68a9750337a418a86fe06c1991a1d64c-Paper.pdf)</sup> |
| 当前地位 | MADDPG本身已不再广泛使用，但其集中式评论家的思想已被后续CTDE方法广泛采用<sup>[3](https://arxiv.org/html/2409.03052)</sup> |

## 背景：DDPG与多智能体学习问题

将DDPG直接应用于多智能体场景——即把其他智能体视为环境的一部分——会遇到一个特定困难：随着每个智能体学习并改变其策略，从任一智能体的视角看，环境都呈现非平稳性，这可能违反收敛分析中所用的马尔可夫假设。<sup>[5](https://ojs.aaai.org/index.php/AAAI/article/download/4327/4205)</sup> 独立Q学习也有同样的问题，且没有收敛保证，因为当智能体独立探索并更新策略时，从每个智能体的视角看环境都变得非平稳。<sup>[6](https://beipeng.github.io/files/2003.06709.pdf)</sup> OpenAI作者们的论述补充道，在每个时间步，每个智能体都试图在采取自身动作的同时预测其他智能体的动作；而仅仅添加一个不考虑其他智能体动作的评论家，在若干环境中（如合作通信）会失败。<sup>[2](https://openai.com/index/learning-to-cooperate-compete-and-communicate/)</sup> 策略梯度的方差也可能随智能体数量的增加而指数增长。<sup>[5](https://ojs.aaai.org/index.php/AAAI/article/download/4327/4205)</sup>

## 算法：集中式评论家与分散式演员

**平稳性论证。** 论文的核心洞见是：以所有智能体的动作为条件，可以解决由策略变化引起的表观非平稳性。因此，评论家可以在训练期间以所有智能体的动作为条件，从而解决这一非平稳性来源；而演员在执行时仍然只需要自身的观测。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2017/file/68a9750337a418a86fe06c1991a1d64c-Paper.pdf)</sup>

**谁看到什么。** 在MADDPG中，评论家是一个集中式Q函数，旨在捕获全局信息并协调学习信号；而演员是局部策略，确保分散执行。每个智能体的Q函数以联合观测和动作为输入，确定性的连续演员允许价值函数的梯度反向传播到策略中。<sup>[7](https://link.springer.com/article/10.1007/s10458-023-09633-6)</sup> 在测试时，智能体不访问中央评论家；仅使用局部演员，基于自身观测以分散方式行动。<sup>[2](https://openai.com/index/learning-to-cooperate-compete-and-communicate/)</sup><sup> • </sup><sup>[21](https://proceedings.neurips.cc/paper/7217-multi-agent-actor-critic-for-mixed-cooperative-competitive-environments.pdf)</sup>

**更新规则。** 经验回放缓冲区\( D \)存储元组\( (x, x', a_1, \ldots, a_N, r_1, \ldots, r_N) \)，记录所有智能体的经验。对于智能体\( i \)，集中式动作价值函数\( Q^{\mu}_i \)通过以下损失训练：

\[ L(\theta_i) = \mathbb{E}\left[ \left( Q^{\mu}_i(x, a_1, \ldots, a_N) - y \right)^2 \right], \qquad y = r_i + \gamma\, Q^{\mu'}_i(x', a'_1, \ldots, a'_N), \]

其中目标使用延迟的目标策略\( \mu' \)。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2017/file/68a9750337a418a86fe06c1991a1d64c-Paper.pdf)</sup> 智能体\( i \)的策略梯度为：

\[ \nabla_{\theta_i} J(\mu_i) = \mathbb{E}_{x, a \sim D}\left[ \nabla_{\theta_i} \mu_i(a_i \mid o_i) \, \nabla_{a_i} Q^{\mu}_i(x, a_1, \ldots, a_N) \big|_{a_i = \mu_i(o_i)} \right]. \]

这与DDPG更新的唯一区别在于，评论家以所有智能体的观测和动作为条件，而非单个智能体的状态和动作。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2017/file/68a9750337a418a86fe06c1991a1d64c-Paper.pdf)</sup>

**探索与离散动作。** MADDPG是一种离策略方法，使用类似于基于DQN方法的回放缓冲区；它执行随机探索策略（例如在当前确定性策略上添加高斯噪声），同时估计和优化确定性策略的价值。<sup>[3](https://arxiv.org/html/2409.03052)</sup> 策略由每层64单元的两层ReLU多层感知机参数化，离散通信消息通过Gumbel-Softmax估计器支持。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2017/file/68a9750337a418a86fe06c1991a1d64c-Paper.pdf)</sup>

## 训练流程与超参数

OpenAI的官方实现现已归档，预计不再更新，配置为与多智能体粒子环境（Multi-Agent Particle Environments，MPE）一起运行，并记录了以下默认值：学习率1e-2，折扣因子0.95，批大小1024，64个多层感知机单元，总训练回合数60,000，最大回合长度25。<sup>[4](http://github.com/openai/maddpg)</sup> 一项在MPE上对MADDPG、MATD3和MASAC的可扩展性研究使用了相同的网络结构和批大小，Adam优化器学习率0.01，回放缓冲区\( 10^{6} \)个转移，软更新参数\( \tau = 0.01 \)，每向缓冲区添加100个样本后更新网络。<sup>[8](https://ar5iv.labs.arxiv.org/html/2302.05007)</sup> 后续研究偏离了官方默认值：一个基于注意力的MADDPG变体使用演员学习率0.001、评论家学习率0.01、目标网络学习率0.001，回放缓冲区100,000，批大小128。<sup>[9](https://www.ifaamas.org/Proceedings/aamas2019/pdfs/p1108.pdf)</sup> 一项在协作合作场景中的参数研究发现，奖励曲线在约40,000步后收敛，且随着学习率和探索参数\( \varphi \)的减小，收敛更快更稳定；测试的最佳配置为学习率0.001、\( \varphi = 0.65 \)，平均奖励为−48.65，方差49.88，而学习率0.1、\( \varphi = 0.80 \)时为−118.92和423.90。<sup>[10](https://iopscience.iop.org/article/10.1088/1742-6596/2858/1/012037/pdf)</sup> 因此，官方默认值1e-2与该研究的最佳值0.001相差一个数量级，且超参数值在不同研究中各不相同。<sup>[4](http://github.com/openai/maddpg)</sup><sup> • </sup><sup>[10](https://iopscience.iop.org/article/10.1088/1742-6596/2858/1/012037/pdf)</sup>

## 数据一览

MADDPG在所有测试环境对比中均优于DDPG，集成MADDPG优于单策略版本。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2017/file/68a9750337a418a86fe06c1991a1d64c-Paper.pdf)</sup> 后续的直接对比结果则不那么有利：在连续捕食者-猎物任务上，COMIX在绝对性能和学习速度上均显著优于MADDPG；在多智能体MuJoCo上，COMIX在2智能体Walker（MADDPG无法有效学习）和2智能体HalfCheetah上均优于MADDPG，且种子方差更低。<sup>[6](https://beipeng.github.io/files/2003.06709.pdf)</sup> 在扩展方面，结合TD3和优先经验回放的DE-MADDPG在购物中心和随机地标环境中，在1000个回合上的平均全局回报分别比基线MADDPG高出55%和73%（8个种子的平均值）。<sup>[11](https://ar5iv.labs.arxiv.org/html/2003.10598)</sup> 在MPE对抗环境中，LA-MADDPG将对手胜率提高到0.53 ± 0.11，而基线为0.45 ± 0.16，EG-MADDPG为0.56 ± 0.27。<sup>[12](https://arxiv.org/html/2410.07976v1)</sup> 种子间方差是一个有据可查的问题：基于Adam的MADDPG在不同种子间表现出高方差，Lookahead正则化可显著降低方差；基线MADDPG在零和博弈中也会偏离[纳什均衡](https://www.edgepedia.org/zh/nash-equilibrium)，而LA-MADDPG持续缩小了与最优策略的距离。<sup>[12](https://arxiv.org/html/2410.07976v1)</sup>

## 与QMIX、MAPPO、COMA和IQL的比较

MADDPG在集中训练算法中占据特定位置。与COMA为所有智能体使用一个集中式评论家不同，MADDPG为每个智能体配备一个集中式评论家，这允许在竞争环境中使用不同的奖励函数；MADDPG学习连续策略，而COMA侧重于离散策略。<sup>[13](https://link.springer.com/article/10.1007/s10462-022-10299-x)</sup> 对于纯合作情况，MADDPG与共享评论家的CTDE算法非常相似，主要区别在于其离策略的回放缓冲区训练。<sup>[3](https://arxiv.org/html/2409.03052)</sup> 相对于独立[Q学习](https://www.edgepedia.org/zh/q-learning)，MADDPG的集中式评论家解决了使IQL缺乏收敛保证的非平稳性问题。<sup>[6](https://beipeng.github.io/files/2003.06709.pdf)</sup> 其已记录的弱点在于更大规模的合作和连续控制场景：在多智能体MuJoCo（一个用于分散式合作机器人控制的多智能体连续动作任务基准套件）上，MADDPG输给COMIX，且无法有效学习2智能体Walker。<sup>[6](https://beipeng.github.io/files/2003.06709.pdf)</sup>

## 应用与实践

已记录的用途均基于仿真。在分散式网络级交通信号控制中，一种多智能体深度强化学习算法相对于基准信号将平均旅行时间减少了10.27%（4.26对4.75分钟），总延迟减少了46.46%（11.27对21.06秒/英里）。<sup>[14](https://www.sciencedirect.com/science/article/pii/S259019821930020X)</sup> 一种基于DDPG的多智能体循环深度确定性策略梯度（MARDDPG）算法已被提出用于车联网中的交通灯控制。<sup>[15](https://doi.org/10.1109/tvt.2020.2997896)</sup> 一个混合交通信号框架在CTDE范式下用MADDPG训练每个子区域智能体，并使用图注意力网络进行交叉口间通信；训练期间智能体共享经验并从全局智能体接收协调反馈，执行时每个智能体基于局部观测独立行动。<sup>[16](https://www.mdpi.com/2076-3417/15/15/8605)</sup> 在自动驾驶方面，VN-MADDPG（一种变噪声扩展）被提出用于无信号交叉口的车辆决策，针对动态变化对标准MADDPG构成挑战的连续动作空间。<sup>[17](https://www.mdpi.com/2079-9292/13/16/3180)</sup> 在安全多智能体强化学习中，为MADDPG添加软约束安全层后，与无约束MADDPG相比，训练累计碰撞分别减少了97.71%（UI）和97.99%（ED），而硬约束仅实现84.38%和42.42%的减少；这些实验运行了8000个回合，用不同随机种子重复10次。<sup>[18](https://arxiv.org/html/2108.03952v2)</sup>

**实现与可复现性。** OpenAI的官方代码按原样归档，与MPE一起运行；仓库指出，自原论文以来代码库已重构，结果可能与论文中报告的不同。<sup>[4](http://github.com/openai/maddpg)</sup> 谷歌发表了该论文的部分复现，发布了训练好的模型检查点、每隔1000个回合保存的奖励pickle文件和视频。<sup>[19](https://github.com/google/maddpg-replication/blob/master/README.md)</sup> 后续工作继续采用多智能体粒子环境（该环境是为MADDPG类技术开发和优化的），并在社区PyTorch实现的基础上构建。<sup>[20](https://inria.hal.science/hal-04317184v1/document)</sup>

## 变体与近期进展

一系列扩展修改了基础算法。R-MADDPG（Wang等，2019）添加了循环演员和评论家，为部分可观测环境保留先前观测的历史；M3DDPG（Li等，2019）引入极小极大优化，以学习针对策略变化的智能体的鲁棒策略；在四个混合竞争环境的直接对比测试中（在固定的2500个环境配置集上评估），M3DDPG在所有情况下均优于MADDPG。<sup>[13](https://link.springer.com/article/10.1007/s10462-022-10299-x)</sup><sup> • </sup><sup>[5](https://ojs.aaai.org/index.php/AAAI/article/download/4327/4205)</sup> 基于注意力的评论家、变噪声探索、Lookahead正则化和图注意力通信已在应用工作中分别叠加到该算法上。<sup>[9](https://www.ifaamas.org/Proceedings/aamas2019/pdfs/p1108.pdf)</sup><sup> • </sup><sup>[16](https://www.mdpi.com/2076-3417/15/15/8605)</sup><sup> • </sup><sup>[17](https://www.mdpi.com/2079-9292/13/16/3180)</sup><sup> • </sup><sup>[12](https://arxiv.org/html/2410.07976v1)</sup>

**可扩展性限制。** 原论文指出，\( Q \)的输入空间随智能体数量\( N \)线性增长，具体取决于\( x \)中包含的信息，并提出模块化评论家作为未来工作。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2017/file/68a9750337a418a86fe06c1991a1d64c-Paper.pdf)</sup> 一篇综述更尖锐地描述了扩展性问题，认为由于这些方法在评论家中拼接所有观测，输入维度随每个智能体指数增长，这推动了如平均场演员-评论家（Mean-Field Actor-Critic，Yang等，2018）等因子化方法。<sup>[13](https://link.springer.com/article/10.1007/s10462-022-10299-x)</sup> 两种论述在增长率上存在分歧。经验上，因子化评论家变体（FacMADDPG）在连续捕食者-猎物和所有三个多智能体MuJoCo任务上与COMIX表现相似，表明在分散式连续合作任务中，重要的是联合Q值函数的因子化，而非策略梯度与基于价值的选择。<sup>[6](https://beipeng.github.io/files/2003.06709.pdf)</sup>

**当前地位。** 2024年的一份CTDE教程明确指出，MADDPG已不再广泛使用，但其思想（如集中式评论家）已被广泛采用；更新的CTDE方法建立在该设计之上，而非算法本身。<sup>[3](https://arxiv.org/html/2409.03052)</sup>

## References

1. [Lowe, R., Wu, Y., Tamar, A., Harb, J., Abbeel, P., Mordatch, I. (2017). Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments. NeurIPS 2017.](https://proceedings.neurips.cc/paper_files/paper/2017/file/68a9750337a418a86fe06c1991a1d64c-Paper.pdf)
2. [Learning to cooperate, compete, and communicate. OpenAI blog.](https://openai.com/index/learning-to-cooperate-compete-and-communicate/)
3. [An Introduction to Centralized Training for Decentralized Execution in Cooperative Multi-Agent Reinforcement Learning. arXiv (2024).](https://arxiv.org/html/2409.03052)
4. [openai/maddpg — official reference implementation, GitHub.](http://github.com/openai/maddpg)
5. [Li, C. et al. Robust Multi-Agent Reinforcement Learning via Minimax Deep Deterministic Policy Gradient. AAAI.](https://ojs.aaai.org/index.php/AAAI/article/download/4327/4205)
6. [Deep Multi-Agent Reinforcement Learning for Decentralized Continuous Cooperative Control. arXiv 2003.06709.](https://beipeng.github.io/files/2003.06709.pdf)
7. [A survey of multi-agent deep reinforcement learning with communication. AAMAS journal (Springer).](https://link.springer.com/article/10.1007/s10458-023-09633-6)
8. [Scalability Bottlenecks in Multi-Agent Reinforcement Learning Systems. arXiv 2302.05007.](https://ar5iv.labs.arxiv.org/html/2302.05007)
9. [Modelling the Dynamic Joint Policy of Teammates with Attention Multi-agent DDPG. AAMAS 2019.](https://www.ifaamas.org/Proceedings/aamas2019/pdfs/p1108.pdf)
10. [Research on the influence of MADDPG key parameters in typical scenarios. Journal of Physics: Conference Series (IOP).](https://iopscience.iop.org/article/10.1088/1742-6596/2858/1/012037/pdf)
11. [Multi-Agent Reinforcement Learning for Problems with Combined Individual and Team Reward. arXiv 2003.10598.](https://ar5iv.labs.arxiv.org/html/2003.10598)
12. [Variational Inequality Methods for Multi-Agent Reinforcement Learning. arXiv (2024).](https://arxiv.org/html/2410.07976v1)
13. [Deep multiagent reinforcement learning: challenges and directions. Artificial Intelligence Review (Springer).](https://link.springer.com/article/10.1007/s10462-022-10299-x)
14. [Decentralized network level adaptive signal control by multi-agent deep reinforcement learning.](https://www.sciencedirect.com/science/article/pii/S259019821930020X)
15. [Multi-Agent Deep Reinforcement Learning for Urban Traffic Light Control in Vehicular Networks. IEEE Transactions on Vehicular Technology.](https://doi.org/10.1109/tvt.2020.2997896)
16. [Multi-Agent Deep Reinforcement Learning for Large-Scale Traffic Signal Control with Spatio-Temporal Attention Mechanism. Applied Sciences (MDPI).](https://www.mdpi.com/2076-3417/15/15/8605)
17. [VN-MADDPG: A Variable-Noise-Based Multi-Agent Reinforcement Learning Algorithm for Autonomous Vehicles at Unsignalized Intersections. Electronics (MDPI).](https://www.mdpi.com/2079-9292/13/16/3180)
18. [Safe Deep Reinforcement Learning for Multi-Agent Systems with Continuous Action Spaces. arXiv.](https://arxiv.org/html/2108.03952v2)
19. [google/maddpg-replication, GitHub.](https://github.com/google/maddpg-replication/blob/master/README.md)
20. [INRIA HAL preprint using MPE and PyTorch MADDPG.](https://inria.hal.science/hal-04317184v1/document)
21. [7217 Multi Agent Actor Critic for Mixed Cooperative Competitive Environments.pdf, proceedings.neurips.cc](https://proceedings.neurips.cc/paper/7217-multi-agent-actor-critic-for-mixed-cooperative-competitive-environments.pdf)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Foundation-model methods and training › Reinforcement learning and world models

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/multi-agent-deep-deterministic-policy-gradient

English original: https://www.edgepedia.org/multi-agent-deep-deterministic-policy-gradient
