← Back to Reinforcement Learning Mind Map
🎮 Reinforcement LearningID: marl

Multi-Agent RL (CTDE)

多智能体 CTDE/MAPPO
🎯Core Definition
MARL (Multi-Agent Reinforcement Learning) trains multiple agents simultaneously. From each agent's perspective the environment is non-stationary — other agents' policies keep evolving — so naively applying single-agent algorithms is unstable. The dominant paradigm is CTDE (Centralized Training, Decentralized Execution): training shares global information (global state, all agents' actions) for credit assignment, while execution only uses each agent's local observation oio_i.
📌Overview
1. MAPPO: multi-agent PPO. Actors keep the policy-gradient clipped objective ∇θiJi=E[∇θilog⁡πθi(ai∣oi)A^i]\nabla_{\theta_i} J_i = \mathbb{E}[\nabla_{\theta_i}\log\pi_{\theta_i}(a_i|o_i)\hat{A}_i], but a shared centralized Critic Vϕ(s)V_\phi(s) takes the global state, and the advantage A^i=ri+γVϕ(s′)−Vϕ(s)\hat{A}_i = r_i + \gamma V_\phi(s') - V_\phi(s) is computed from global information, strongly reducing non-stationarity bias; homogeneous agents often use parameter sharing (one network + one-hot identity), greatly improving sample efficiency; 2. MADDPG: a centralized extension of DDPG. Each agent has a centralized Critic Qiμ(s,a1,…,aN)Q_i^{\mu}(s, a_1, \ldots, a_N) (taking all agents' actions, which freezes the environment dynamics given the joint action) while its Actor μi(oi)\mu_i(o_i) executes with local observations only; during training, opponents' actions are estimated via fitted importance sampling of their policies to mitigate non-stationarity; 3. Core challenges and mitigations: non-stationarity (targets drift with opponents' policies) → CTDE/opponent modeling; credit assignment (team rewards are hard to attribute) → difference rewards ri=R−R−ir_i = R - R_{-i}, entropy incentives; joint action space growing exponentially in NN → value decomposition (VDN/QMIX), role/hierarchy structure.
💡Use Cases
robot cooperation, autonomous driving interaction, games (OpenAI Five, StarCraft), multi-agent LLM collaboration and games.
⚡Key Problems Solved
independent learners treat others as environment noise, and non-stationary targets break single-agent convergence guarantees; CTDE concentrates information during training while staying scalable at execution — the accuracy/compute trade-off shared by MAPPO, MADDPG, VDN and QMIX.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of Multi-Agent RL (CTDE).
Use Cases
In production engineering, what are the primary use cases for Multi-Agent RL (CTDE) and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Explain CTDE: what do centralized training and decentralized execution mean, and why are they needed?
2
How does MAPPO's shared centralized Critic differ from single-agent PPO; how is the advantage computed?
3
How does MADDPG's centralized critic Q_i(s,a₁..a_N) mitigate non-stationarity, and how does it differ from MAPPO?
4
Whiteboard: write MAPPO's Actor gradient and advantage formula, and relate them to PPO / the policy gradient theorem.
5
The three MARL challenges — non-stationarity, credit assignment, exponential action space — and mitigations for each.
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "Multi-Agent RL (CTDE)"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
← Previous CardSAC Max-EntropyNext Card →Multi-Armed Bandit (MAB)

🔗 More Reinforcement Learning Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/RL/card/marl
中文速览与面试要点

多智能体 CTDE/MAPPO (Multi-Agent RL (CTDE))

定义: MARL (Multi-Agent Reinforcement Learning) 让多个智能体同时学习。每个智能体视角下的环境非平稳——其他智能体的策略也在演化,直接套用单智能体算法会不稳定。主流范式是 CTDE(集中训练,分布执行):训练时共享全局信息(全局状态、所有智能体动作)以利于信用分配,执行时每个智能体只看自身局部观测 o_i 独立决策。 1. MAPPO: 多智能体 PPO。Actor 沿用策略梯度与截断目标: _ _i J_i = E[ _ _i _ _i(a_i|o_i) A_i],但共享一个集中式 Critic V_ (s)(输入全局状态 s),优势 A_i = r_i + V_ (s') - V_ (s) 由全局信息计算,显著减少非平稳带来的偏差;同构智能体常用参数共享(同一网络 + one-hot 身份特征),样本效率大幅提升; 2. MADDPG: DDPG 的集中式扩展。每个智能体一个集中式 Critic Q_i^ (s, a_1, , a_N)(输入所有智能体的动作,把环境动态固定在给定联合动作下),Actor _i(o_i) 只用局部观测执行;训练时用其他智能体的策略做拟合重要性采样估计对手行为,缓解非平稳; 3. 核心难点与缓解: 非平稳(目标随对手策略漂移)→ CTDE/对手建模;credit assignment(团队奖励难归因到个体)→ 差分奖励 r_i = R - R_-i、熵激励;联合动作空间随 N 指数爆炸 → 分解 Q 值(VDN/QMIX)、角色/层级结构。 使用场景: 机器人协作、自动驾驶交互、游戏(OpenAI Five、StarCraft)、多智能体 LLM 协作与博弈。 解决的问题: 独立学习者把其他智能体当作环境噪声,目标非平稳导致单智能体收敛保证失效;CTDE 在训练期集中信息、执行期保持可扩展,是精度与计算成本的折中,也是 MAPPO/MADDPG/VDN/QMIX 的共同范式。

核心要点

  • 解释 CTDE:集中训练与分布执行分别指什么?为什么要这样做?
  • MAPPO 的共享集中式 Critic 与单智能体 PPO 有何不同?优势函数如何计算?
  • MADDPG 的集中式 Critic Q_i(s,a₁..a_N) 如何缓解环境非平稳?与 MAPPO 有何异同?
  • 白板手推: 写出 MAPPO 的 Actor 梯度与优势计算公式,并说明其与 PPO/策略梯度定理的继承关系?
  • MARL 三大难点:非平稳、credit assignment、指数动作空间,各有哪些缓解手段?