# 多智能体近端策略优化

多智能体近端策略优化（MAPPO）是一种[多智能体强化学习](https://www.edgepedia.org/zh/multi-agent-reinforcement-learning)算法，它将近端策略优化（PPO）扩展至在共享环境中训练多个智能体。它在训练时使用集中式价值函数，在执行时使用分散式策略。Chao Yu 及其同事在 2021 年的一篇 arXiv 论文中针对合作博弈研究了该算法，该论文后来发表于 NeurIPS 2022，报告称 MAPPO 在一台单 GPU 台式机上于标准多智能体测试平台上取得了强劲结果。<sup>[1](https://doi.org/10.48550/arxiv.2103.01955)</sup><sup> • </sup><sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> 这一结果挑战了此前的一种看法，即认为在多智能体系统中 PPO 的样本效率显著低于离策略方法。<sup>[1](https://doi.org/10.48550/arxiv.2103.01955)</sup>

| 关键事实 | 详情 |
|---|---|
| 结构 | 集中训练、分散执行（CTDE）：分散的演员，一个集中的评论家<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> |
| 定义 | 带集中式价值函数输入的 PPO；IPPO 是同一算法，但策略和价值函数均使用局部输入<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> |
| 评论家输入 | 全局状态，理想情况下是结合全局信息与智能体特有特征的智能体特有全局状态<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> |
| 关键技巧 | PopArt 价值归一化、智能体特有全局状态、训练数据使用、动作掩码、死亡掩码<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> |
| 裁剪比例 | 将 \( \epsilon \) 保持在 0.2 以下；较小值（约 0.05）学习更慢但更稳定<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> |
| 基准测试 | MPE、SMAC、Hanabi 和 Google Research Football，对比 QMIX、MADDPG 等方法<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> |
| 有争议的结果 | MAPPO 是否随着智能体数量增长而优于 IPPO；2024 年的一项重新检验发现 IPPO 在困难 SMAC 地图上更强<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup><sup> • </sup><sup>[3](https://d2jud02ci9yv69.cloudfront.net/2024-05-07-is-mappo-all-you-need-128/blog/is-mappo-all-you-need/)</sup> |

## 工作原理

MAPPO 将策略 \( \pi_{\theta} \) 和价值函数 \( V_{\phi}(s) \) 作为两个独立的神经网络来学习。每个智能体的策略仅以其局部观测为条件，因此在执行时智能体独立行动。价值函数用于降低方差，且仅在训练期间使用，因此它可以接受智能体局部观测中不存在的额外全局信息作为输入；这正是多智能体领域中 PPO 能够遵循 CTDE 结构的原因。<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> 在合作设定中，智能体共享一个共同奖励。<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup>

集中式评论家可以使用智能体特有或智能体无关的全局状态，并且不要求每个智能体拥有相同的价值基线，这降低了策略梯度更新的方差。<sup>[4](https://docs.pytorch.org/rl/main/reference/generated/torchrl.objectives.multiagent.MAPPOLoss.html)</sup><sup> • </sup><sup>[17](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Supplemental-Datasets_and_Benchmarks.pdf)</sup> 一篇博客文章的重新检验给出了共享优势估计器为 \( \hat{A}_t = r_t + \gamma V^{\phi}(s_{t+1}^i) - V^{\phi}(s_t) \)。<sup>[3](https://d2jud02ci9yv69.cloudfront.net/2024-05-07-is-mappo-all-you-need-128/blog/is-mappo-all-you-need/)</sup> 集中式评论家有助于克服多个智能体同时学习时产生的非平稳性，但它们可能受到大输入空间的影响。<sup>[5](https://docs.pytorch.org/rl/main/tutorials/multiagent_ppo.html)</sup>

## 实现方式

MAPPO 遵循常见的 PPO 实践：带优势归一化的广义优势估计（GAE）、观测归一化、梯度裁剪、价值裁剪、层归一化、带正交初始化的 ReLU 激活，以及大批量大小。<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> 在具有同质智能体的基准环境中，使用参数共享，智能体共享策略和价值函数参数，过往工作已表明这能提高学习效率。<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup>

该论文强调了五项对实际性能尤为关键的实现建议：价值归一化、智能体特有全局状态、训练数据使用、动作掩码和死亡掩码。<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> PopArt 价值归一化对归一化目标值进行回归，并在计算 GAE 时对输出进行反归一化；在 MPE Spread 任务中，回合回报范围从低于 -200 到 0，这对强劲性能至关重要。<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> 评论家输入应为结合全局信息与必要智能体特有特征的智能体特有全局状态，因为当全局状态缺乏必要的局部特征时，完全分散的 PPO 有时可能优于集中式 PPO。<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup>

样本重用必须受限：样本重用过于频繁时性能会下降，因此作者对简单任务进行 15 轮训练，对困难任务进行 10 或 5 轮训练，默认避免小批量划分。<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> 对于裁剪比例 \( \epsilon \)，指导原则是保持在 0.2 以下，并在该范围内调节以在训练稳定性和快速收敛之间权衡；较小的 \( \epsilon \)（如 0.05）会在 MMM2 和 3s5z vs. 3s6z 等困难 SMAC 地图上减慢学习速度，但能产生持续较高、更稳定的最终性能，而 0.2 到 0.5 的较大值通常导致次优性能。<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup>

## 起源

引入 MAPPO 的论文《PPO 在合作多智能体博弈中的惊人有效性》由 Chao Yu 及其同事撰写，于 2021 年发布到 arXiv，并刊印于 NeurIPS 2022 会议录（第 24611-24624 页）。<sup>[1](https://doi.org/10.48550/arxiv.2103.01955)</sup><sup> • </sup><sup>[6](https://www.proceedings.com/068431-1787.html)</sup> 同一论文还研究了 IPPO，即策略和价值函数均使用局部输入的 PPO。<sup>[1](https://doi.org/10.48550/arxiv.2103.01955)</sup><sup> • </sup><sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> MAPPO 建立在 PPO 之上，后者提供了信赖域策略优化的一些优点，同时实现更简单且经验上样本效率更高。<sup>[7](https://arxiv.org/abs/1707.06347)</sup> 其优势估计器使用 GAE，由 [John Schulman](https://www.edgepedia.org/zh/john-schulman) 及其同事于 2015 年在 arXiv 上描述。<sup>[8](https://doi.org/10.48550/arxiv.1506.02438)</sup> 早期的多智能体 PPO 变体包括 CoPPO，它通过在策略更新期间协调自适应步长来扩展 PPO，以及相关的 MATRPO 和 MATRL 方法。<sup>[9](https://papers.nips.cc/paper_files/paper/2021/file/de73998802680548b916f1947ffbad76-Paper.pdf)</sup>

## 变体

变化的主轴是评论家。MAPPO 使用集中式评论家；IPPO 使用分散式评论家，两者都为每个智能体的策略计算独立比率。<sup>[10](https://ar5iv.labs.arxiv.org/html/2202.00082)</sup> 后来的一篇论文将 MAPPO 描述为将 IPPO 的独立评论家扩展为集中式评论家，并指出 MAPPO-FP（特征剪枝）是一种微调变体。<sup>[11](https://export.arxiv.org/pdf/2106.14334v14.pdf)</sup> HATRPO 和 HAPPO 由 Jakub Grudzien Kuba 及其同事于 2021 年在 arXiv 上提出，是基于多智能体优势分解引理和具有单调改进保证的序列策略更新方案的信赖域方法；该序列方案节省了在 CTDE 中为每个智能体维护集中式评论家的成本，且不要求智能体同质或联合 Q 函数可分解。<sup>[12](https://doi.org/10.48550/arxiv.2109.11251)</sup> ACPO 将多智能体更新分解为每个智能体的项，每项仅涉及每个智能体的得分函数和每个智能体的评论家，更新通过信念耦合，定位上不同于价值分解方法。<sup>[13](https://rlj.cs.umass.edu/2026/papers/Paper137.pdf)</sup>

多智能体 PPO 也已扩展到大型语言模型训练。MAPoRL2 在语言领域实例化多智能体 PPO，用于协同训练协作式 LLM，将状态定义为多智能体交互历史的拼接，使用对齐但不完全相同的奖励，添加针对参考 LLM 的 KL 正则化项，并使用 GAE 和神经价值函数估计优势。<sup>[14](https://p.rst.im/q/aclanthology.org/2025.acl-long.1459.pdf)</sup> MHGPO 将 MAPPO 风格的演员-评论家优化应用于 LLM 驱动的多智能体搜索系统，以 LLM 为演员，以大型评论家估计回报。<sup>[15](https://aclanthology.org/2026.acl-long.1399.pdf)</sup> 作为无评论家的替代方案，组相对策略优化（GRPO）移除了评论家，并从组轨迹的相对奖励中估计优势。<sup>[15](https://aclanthology.org/2026.acl-long.1399.pdf)</sup>

## 应用

MAPPO 和 IPPO 在四个合作基准上进行了评估：多智能体粒子世界环境（MPE）、[星际争霸](https://www.edgepedia.org/zh/starcraft)微操挑战（SMAC）、Hanabi 挑战和 Google Research Football（GRF）。<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> 基线为：MPE 上的 QMIX 和 MADDPG；SMAC 上的 QMIX 加 QPlex、CWQMix、AIQMix 和 RODE；GRF 上的 QMIX 加 CDS 和 TiKick；Hanabi 上的 SAD 和 VDN。<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> 在 MPE（Spread、Reference、Comm）上，对十个种子取平均，MAPPO 在所有任务上与 QMIX 表现非常相似，并在 Comm 上超过 MADDPG，使用相当数量的环境步数。<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> 这些同策略结果颠覆了假定的样本效率排名，此前人们预期 MADDPG 和价值分解 Q 学习等离策略方法会占主导。<sup>[16](https://openreview.net/pdf?id=uHv20yi8saL)</sup>

## 局限与替代方案

裁剪范围超参数对智能体数量高度敏感，因为它们共同有效决定了集中式信赖域的大小。<sup>[10](https://ar5iv.labs.arxiv.org/html/2202.00082)</sup> 集中式评论家的大输入空间是一项公认的成本。<sup>[5](https://docs.pytorch.org/rl/main/tutorials/multiagent_ppo.html)</sup> 样本重用会降低性能，限制了训练轮数和小批量划分。<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> 在 LLM 设定中，在多样化智能体上近似联合动作价值通常不稳定，并产生大量内存和计算开销，限制了可扩展性。<sup>[15](https://aclanthology.org/2026.acl-long.1399.pdf)</sup>

MAPPO 与 IPPO 之争尚未解决。原论文报告称，IPPO 在 2 智能体设定中与 MAPPO 相当，但随着智能体数量增长，MAPPO 显示出明显的改进优势，表明集中式评论家输入可能至关重要。<sup>[2](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)</sup> 2024 年 ICLR Blogposts 的重新检验得出结论“MAPPO 并未优于 IPPO”，报告 IPPO 在 corridor 上的胜率为 98% 对 3%，在 5m_vs_6m 上为 88% 对 26%，而 MAPPO 在 27m_vs_30m 上领先（95% 对 75%）。<sup>[3](https://d2jud02ci9yv69.cloudfront.net/2024-05-07-is-mappo-all-you-need-128/blog/is-mappo-all-you-need/)</sup> 相关地，一项理论分析发现 IPPO 和 MAPPO 在不同难度的 SMAC 地图上相当，这意味着评论家的集中化程度可能不如信赖域约束重要。<sup>[10](https://ar5iv.labs.arxiv.org/html/2202.00082)</sup>

## References

1. [Yu, Chao and colleagues (2021). The Surprising Effectiveness of PPO in Cooperative, Multi-Agent Games. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2103.01955)
2. [The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games (NeurIPS 2022 Datasets and Benchmarks, full paper PDF)](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf)
3. [Is MAPPO All You Need in Multi-Agent Reinforcement Learning? (ICLR Blogposts 2024)](https://d2jud02ci9yv69.cloudfront.net/2024-05-07-is-mappo-all-you-need-128/blog/is-mappo-all-you-need/)
4. [MAPPOLoss, TorchRL official documentation](https://docs.pytorch.org/rl/main/reference/generated/torchrl.objectives.multiagent.MAPPOLoss.html)
5. [Multi-agent PPO tutorial, TorchRL official documentation](https://docs.pytorch.org/rl/main/tutorials/multiagent_ppo.html)
6. [NeurIPS 2022 proceedings entry for the MAPPO paper](https://www.proceedings.com/068431-1787.html)
7. [Proximal Policy Optimization Algorithms](https://arxiv.org/abs/1707.06347)
8. [Schulman, John and colleagues (2015). High-Dimensional Continuous Control Using Generalized Advantage Estimation. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1506.02438)
9. [Coordinated Proximal Policy Optimization (CoPPO), NeurIPS 2021](https://papers.nips.cc/paper_files/paper/2021/file/de73998802680548b916f1947ffbad76-Paper.pdf)
10. [Trust Region Bounds for Decentralized PPO Under Non-stationarity](https://ar5iv.labs.arxiv.org/html/2202.00082)
11. [Policy Regularization via Noisy Advantage Values for Cooperative Multi-agent Actor-Critic methods](https://export.arxiv.org/pdf/2106.14334v14.pdf)
12. [Kuba, Jakub Grudzien and colleagues (2021). Trust Region Policy Optimisation in Multi-Agent Reinforcement Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2109.11251)
13. [ACPO: Agent-Chained Policy Optimization for Multi-Agent Reinforcement Learning](https://rlj.cs.umass.edu/2026/papers/Paper137.pdf)
14. [MAPoRL2: Multi-Agent Post-Co-Training for Collaborative Large Language Models with Reinforcement Learning](https://p.rst.im/q/aclanthology.org/2025.acl-long.1459.pdf)
15. [End-to-End Optimization of LLM-Driven Multi-Agent Search Systems via Heterogeneous-Group-Based Reinforcement Learning (MHGPO)](https://aclanthology.org/2026.acl-long.1399.pdf)
16. [Monotonic Improvement Guarantees under Non-stationarity for Decentralized PPO](https://openreview.net/pdf?id=uHv20yi8saL)
17. [papers.nips.cc](https://papers.nips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Supplemental-Datasets_and_Benchmarks.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Neural networks and deep learning › Titles I to Z

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/multi-agent-proximal-policy-optimization

English original: https://www.edgepedia.org/multi-agent-proximal-policy-optimization
