# 行动者-评论家强化学习

行动者-评论家强化学习是一种方法：其中一个组件——行动者——参数化一个选择动作的策略；第二个组件——评论家——估计状态或状态-动作对的价值，并将该估计转化为行动者的学习信号。两个输出通过时序差分误差或优势函数结合，后者衡量一个动作比策略的默认行为好多少。该结构旨在结合仅行动者方法的优点——直接优化策略但梯度方差高——与仅评论家方法的优点——以较低方差学习价值，但对所得策略缺乏近最优性保证。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/1999/file/6449f44a102fde848669bdd9eb6b76fa-Paper.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 核心信号 | 优势函数 \( A^{\pi}(s,a) = Q^{\pi}(s,a) - V^{\pi}(s) \) 衡量一个动作比策略的默认行为更好还是更差<sup>[2](https://arxiv.org/pdf/1506.02438)</sup> |
| 里程碑式深度变体 | A3C（2016）在并行工作器上使用 n 步优势估计训练策略 \( \pi(a_t \mid s_t; \theta) \) 和价值估计 \( V(s_t; \theta_v) \)<sup>[3](https://proceedings.mlr.press/v48/mniha16.pdf)</sup> |
| 实际耗时速度 | 在 Atari 上使用 16 个 CPU 核心时，A3C 的训练速度超过在 Nvidia K40 GPU 上训练的 DQN，并以一半训练时间超过了当时的最先进水平<sup>[3](https://proceedings.mlr.press/v48/mniha16.pdf)</sup> |
| 并行加速 | 在独立同分布采样下，A3C 在 \( N \) 个工作器时每个工作器达到样本复杂度 \( \mathcal{O}(\epsilon^{-2.5}/N) \)，相对于 \( \mathcal{O}(\epsilon^{-2.5}) \) 的双时间尺度界实现了线性加速<sup>[4](https://ar5iv.labs.arxiv.org/html/2012.15511)</sup> |
| 连续控制 | 软行动者-评论家（Soft Actor-Critic），一种异策略最大熵行动者-评论家方法，在连续控制基准上优于此前的同策略和异策略方法，并在随机种子间保持稳定<sup>[5](http://proceedings.mlr.press/v80/haarnoja18b.html)</sup> |
| 已知失败 | DDPG 在 Ant-v1、Humanoid-v1 和 Humanoid（rllab）上未能取得任何进展，并被描述为对超参数设置脆弱<sup>[6](https://arxiv.org/html/1812.05905v2)</sup> |
| 依任务而定的修正 | 裁剪双 Q 学习在 DMC 运动任务上有帮助，但在 MetaWorld 操作任务上导致显著性能退化<sup>[7](https://raw.githubusercontent.com/mlresearch/v235/main/assets/nauman24a/nauman24a.pdf)</sup> |

## 工作原理

数学基础是策略梯度定理：对于平均奖励形式下的马尔可夫决策过程，性能梯度为

\[ \frac{\partial \rho}{\partial \theta} = \sum_s d^{\pi}(s) \sum_a \frac{\partial \pi(s,a)}{\partial \theta} Q^{\pi}(s,a), \]

其中 \( d^{\pi}(s) \) 是平均奖励设置下该策略的平稳状态分布；在起始状态折扣形式中，状态改为按折扣状态访问测度加权。<sup>[8](https://proceedings.neurips.cc/paper_files/paper/1999/file/464d828b85b0bed98e80ade0a5c43b0f-Paper.pdf)</sup> 可以在动作求和内部减去基线 \( b(s) \) 而不改变期望更新，因为 \( \sum_a \partial \pi(s,a)/\partial \theta = 0 \)，但基线会强烈影响方差。<sup>[9](http://www.incompleteideas.net/papers/SSM-unpublished.pdf)</sup> 基线和学习到的评论家都可以解释为策略梯度估计的加性控制变量方差缩减方法。<sup>[10](https://jmlr.org/papers/volume5/greensmith04a/greensmith04a.pdf)</sup>

评论家的作用由相容函数结果精确刻画：如果一个价值近似器满足 \( \partial f_w(s,a)/\partial w = (\partial \pi(s,a)/\partial \theta)/\pi(s,a) \)，则策略梯度可以被无偏估计，而这个相容近似器自然可解释为近似优势函数。<sup>[8](https://proceedings.neurips.cc/paper_files/paper/1999/file/464d828b85b0bed98e80ade0a5c43b0f-Paper.pdf)</sup> 优势 \( A^{\pi}(s,a) = Q^{\pi}(s,a) - V^{\pi}(s) \) 优于原始回报，因为选择它作为梯度权重可得到几乎最低可能的策略梯度估计器方差。<sup>[2](https://arxiv.org/pdf/1506.02438)</sup> 评论家本身通过时序差分学习训练，而行动者以比评论家更慢的时间尺度更新。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/1999/file/6449f44a102fde848669bdd9eb6b76fa-Paper.pdf)</sup> 在双时间尺度分析的期刊版本中，评论家是一个 TD(λ) 算法，计算价值函数到低维子空间的投影，该子空间由行动者参数化所决定的基函数张成。<sup>[11](https://www.mit.edu/~jnt/Papers/J094-03-kon-actors.pdf)</sup>

收敛保证来自这种双时间尺度视角。当评论家为 TD(1) 时，沿迭代序列的性能梯度范数以概率一满足 \( \liminf_k \lVert \nabla A(\theta_k) \rVert = 0 \)；对于 λ 接近 1 的 TD(λ)，它会变得任意小。<sup>[1](https://proceedings.neurips.cc/paper_files/paper/1999/file/6449f44a102fde848669bdd9eb6b76fa-Paper.pdf)</sup><sup> • </sup><sup>[11](https://www.mit.edu/~jnt/Papers/J094-03-kon-actors.pdf)</sup> 1999 年的策略梯度论文还首次证明，采用任意可微函数近似的策略迭代的一个版本收敛到局部最优策略。<sup>[8](https://proceedings.neurips.cc/paper_files/paper/1999/file/464d828b85b0bed98e80ade0a5c43b0f-Paper.pdf)</sup> 具体到 A3C，在独立同分布采样和马尔可夫采样下，一般策略近似下局部收敛成立，softmax 参数化下全局收敛成立；在有界延迟的马尔可夫设置中，无法建立理论线性加速。<sup>[4](https://ar5iv.labs.arxiv.org/html/2012.15511)</sup>

## 实现方式

一个实用的深度行动者-评论家循环如下运行。第一，一个或多个工作器用当前策略收集采样轨迹。第二，它们计算优势估计。A3C 维护一个策略 \( \pi(a_t \mid s_t; \theta) \) 和一个价值估计 \( V(s_t; \theta_v) \)，并使用 n 步前向估计

\[ A(s_t, a_t; \theta, \theta_v) = \sum_{i=0}^{k-1} \gamma^i r_{t+i} + \gamma^k V(s_{t+k}; \theta_v) - V(s_t; \theta_v), \]

因此行动者更新采取形式 \( \nabla_{\theta'} \log \pi(a_t \mid s_t; \theta') \cdot A(s_t, a_t; \theta, \theta_v) \)。<sup>[3](https://proceedings.mlr.press/v48/mniha16.pdf)</sup> 广义优势估计器 \( \mathrm{GAE}(\gamma, \lambda) \) 将其推广为 k 步估计器的指数加权平均：\( \mathrm{GAE}(\gamma,1) \) 无论 \( V \) 的精度如何都是 γ-just 的，但方差高；而 \( \mathrm{GAE}(\gamma,0) \) 除非 \( V \) 精确，否则会引入偏差，但方差低得多；中间的 λ 在两者之间权衡。<sup>[2](https://arxiv.org/pdf/1506.02438)</sup> 第三，评论家朝估计回报回归，行动者沿加权梯度更新一步。数据机制区分了这些方法族：A3C 使用具有不同探索策略的并行行动者-学习器，这在不使用经验回放的情况下稳定同策略训练<sup>[3](https://proceedings.mlr.press/v48/mniha16.pdf)</sup>；而软行动者-评论家使用分离的策略网络和价值网络，并采用异策略回放以提高样本效率。<sup>[6](https://arxiv.org/html/1812.05905v2)</sup>

## 起源

行动者-评论家架构可追溯到 1983 年安德鲁·G·巴托（Andrew G. Barto）、理查德·S·萨顿（Richard S. Sutton）和查尔斯·W·安德森（Charles W. Anderson）发表于《IEEE 系统、人与控制论汇刊》的论文《能解决困难学习控制问题的类神经元自适应元件》。<sup>[12](https://doi.org/10.1109/tsmc.1983.6313077)</sup> 评论家的 TD 机制建立在萨顿 1988 年的论文《通过时序差分方法学习预测》之上。<sup>[13](https://doi.org/10.1023/a:1022633531479)</sup> Q 学习本身由克里斯托弗·J·C·H·沃特金斯（Christopher J. C. H. Watkins）和彼得·达扬（Peter Dayan）于 1992 年发表于《Machine Learning》。<sup>[14](https://doi.org/10.1007/bf00992698)</sup> 该算法的双时间尺度随机近似处理出现在维韦克·S·博尔卡（Vivek S. Borkar）和维贾伊莫汉·R·孔达（Vijaymohan R. Konda）1997 年的《Sādhanā》论文中<sup>[15](https://doi.org/10.1007/bf02745577)</sup>；现代策略梯度基础由双时间尺度行动者-评论家分析<sup>[1](https://proceedings.neurips.cc/paper_files/paper/1999/file/6449f44a102fde848669bdd9eb6b76fa-Paper.pdf)</sup>以及萨顿、麦卡莱斯特（McAllester）、辛格（Singh）和曼苏尔（Mansour）的策略梯度定理论文<sup>[8](https://proceedings.neurips.cc/paper_files/paper/1999/file/464d828b85b0bed98e80ade0a5c43b0f-Paper.pdf)</sup>奠定。深度学习时代由沃洛德米尔·姆尼赫（Volodymyr Mnih）及其同事的 A3C 论文《深度强化学习的异步方法》开启，该文于 2016 年发布。<sup>[16](https://doi.org/10.48550/arxiv.1602.01783)</sup>

## 变体

**A3C** 将策略熵加入目标，以抑制过早收敛到确定性策略。<sup>[3](https://proceedings.mlr.press/v48/mniha16.pdf)</sup> **Off-PAC** 由托马斯·德格里斯（Thomas Degris）、玛莎·怀特（Martha White）和理查德·S·萨顿于 2012 年提出；论文将其描述为第一个可异策略应用的行动者-评论家方法，具有每时间步线性复杂度、资格迹，以及 \( \lambda = 0 \) 时的收敛证明。<sup>[17](https://people.bordeaux.inria.fr/degris/papers/Degris_Offpac.pdf)</sup><sup> • </sup><sup>[18](https://doi.org/10.48550/arxiv.1205.4839)</sup> **TRPO** 由[约翰·舒尔曼](https://www.edgepedia.org/zh/john-schulman)（John Schulman）及其同事于 2015 年提出，将策略更新约束到信赖域<sup>[19](https://doi.org/10.48550/arxiv.1502.05477)</sup>；配套的 **GAE** 论文（2015）提供其优势估计。<sup>[20](https://doi.org/10.48550/arxiv.1506.02438)</sup> **DDPG** 由蒂莫西·P·利利克拉普（Timothy P. Lillicrap）及其同事于 2015 年提出，将确定性策略梯度思想扩展到深度异策略连续控制。<sup>[21](https://doi.org/10.48550/arxiv.1509.02971)</sup> **TD3** 由斯科特·藤本（Scott Fujimoto）、赫尔克·范·霍夫（Herke van Hoof）和大卫·梅格（David Meger）于 2018 年提出，首次将双 Q 学习技巧应用于连续控制；**SAC** 采用两个独立训练的软 Q 函数，在策略梯度中取它们的最小值，这显著加快较难任务上的训练。<sup>[6](https://arxiv.org/html/1812.05905v2)</sup><sup> • </sup><sup>[22](https://doi.org/10.48550/arxiv.1801.01290)</sup> **SAC** 本身建立在最大熵框架上，其中行动者在最大化期望奖励的同时也最大化熵，其软策略迭代可证明收敛到最优最大熵策略。<sup>[5](http://proceedings.mlr.press/v80/haarnoja18b.html)</sup><sup> • </sup><sup>[6](https://arxiv.org/html/1812.05905v2)</sup> **ACER** 由王梓瑜（Ziyu Wang）及其同事于 2016 年提出，增加经验回放，实现样本高效的异策略更新。<sup>[23](https://doi.org/10.48550/arxiv.1611.01224)</sup> **自然行动者-评论家**算法由沙拉布·巴特纳加尔（Shalabh Bhatnagar）及其同事于 2009 年发表于《Automatica》，将行动者-评论家、自然梯度和函数近似思想结合为四种带收敛证明的算法。<sup>[24](https://doi.org/10.1016/j.automatica.2009.07.008)</sup> **分阶段策略梯度**由卡尔·科布（Karl Cobbe）及其同事于 2020 年提出，将策略训练和价值训练阶段分离。<sup>[25](https://doi.org/10.48550/arxiv.2009.04416)</sup>

## 应用

A3C 的并行工作器使训练时间随行动者-学习器数量大致线性减少；在 Atari 上使用 16 个 CPU 核心时，异步方法的训练速度超过在 Nvidia K40 GPU 上训练的 DQN，且 A3C 以一半训练时间超过了当时的最先进水平。<sup>[3](https://proceedings.mlr.press/v48/mniha16.pdf)</sup> 在独立同分布采样下，A3C 每个工作器达到 \( \mathcal{O}(\epsilon^{-2.5}/N) \) 样本复杂度，这是首次在理论上证明并行性的线性加速。<sup>[4](https://ar5iv.labs.arxiv.org/html/2012.15511)</sup> 在连续控制上，SAC 达到最先进性能，在样本效率和渐近性能上优于此前的同策略和异策略方法，并在随机种子间非常稳定。<sup>[5](http://proceedings.mlr.press/v80/haarnoja18b.html)</sup> 相同基准比较显示，SAC 在较难任务上无论学习速度还是最终性能都优于 DDPG、PPO、SQL 和 TD3。<sup>[6](https://arxiv.org/html/1812.05905v2)</sup>

## 局限与替代方案

核心权衡是方差与偏差。纯策略梯度方法如 [REINFORCE](https://www.edgepedia.org/zh/reinforce) 产生无偏梯度估计，但方差高、学习慢；仅评论家的时序差分方法方差较低，但通常必须离散化连续动作空间。行动者-评论家方法在学习早期用较大偏差换取较低方差，此时评论家的估计远不准确。<sup>[26](https://busoniu.net/files/papers/ivo_smcc12_survey.pdf)</sup> REINFORCE 比使用价值函数的方法学习慢得多，这正是评论家的理由。<sup>[8](https://proceedings.neurips.cc/paper_files/paper/1999/file/464d828b85b0bed98e80ade0a5c43b0f-Paper.pdf)</sup>

评论家质量本身很微妙。使用真实价值函数作为评论家可能次优；存在例子：不同于真实折扣价值函数的价值函数可将方差降至零且不增加偏差<sup>[10](https://jmlr.org/papers/volume5/greensmith04a/greensmith04a.pdf)</sup>，而最优基线不同于此前认为最优、被广泛使用的 \( V^{\pi}(s) \)。<sup>[9](http://www.incompleteideas.net/papers/SSM-unpublished.pdf)</sup> 一份手稿报告了形式化论证和实证验证，表明萨顿等（2000）以及孔达和齐齐克利斯（Tsitsiklis，2000）提出的策略梯度方法并不优于 REINFORCE。<sup>[9](http://www.incompleteideas.net/papers/SSM-unpublished.pdf)</sup>

在深度异策略设置中，带函数近似的 Q 学习式训练带有正的高估偏差，因为策略被训练为局部最大化动作价值估计，从而利用潜在的模型误差。<sup>[7](https://raw.githubusercontent.com/mlresearch/v235/main/assets/nauman24a/nauman24a.pdf)</sup> 标准对策裁剪双 Q 学习维护两个评论家，并使用它们的最小值作为近似下界；但一项在 SAC 框架内研究 60 多种设计选择的研究发现，它在 DMC 运动任务上有效，却在 MetaWorld 操作任务上显著有害，因此正则化有效性取决于基准和任务；通用网络正则化，例如层归一化配合全参数重置，对最终性能的影响可能远大于特定领域的强化学习方法。<sup>[7](https://raw.githubusercontent.com/mlresearch/v235/main/assets/nauman24a/nauman24a.pdf)</sup> DDPG 仍是警示性例子，被描述为极难稳定且对超参数设置脆弱。<sup>[6](https://arxiv.org/html/1812.05905v2)</sup>

## References

1. [Actor-Critic Algorithms (Konda & Tsitsiklis, NIPS 1999)](https://proceedings.neurips.cc/paper_files/paper/1999/file/6449f44a102fde848669bdd9eb6b76fa-Paper.pdf)
2. [High-Dimensional Continuous Control Using Generalized Advantage Estimation (Schulman et al., 2015/2016)](https://arxiv.org/pdf/1506.02438)
3. [Asynchronous Methods for Deep Reinforcement Learning (A3C, Mnih et al., ICML 2016)](https://proceedings.mlr.press/v48/mniha16.pdf)
4. [Towards Understanding Asynchronous Advantage Actor-critic: Convergence and Linear Speedup](https://ar5iv.labs.arxiv.org/html/2012.15511)
5. [Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor (Haarnoja, Zhou, Abbeel, Levine, ICML 2018)](http://proceedings.mlr.press/v80/haarnoja18b.html)
6. [Soft Actor-Critic Algorithms and Applications (SAC)](https://arxiv.org/html/1812.05905v2)
7. [Overestimation, Overfitting, and Plasticity in Actor-Critic: the Bitter Lesson of Reinforcement Learning (Nauman et al., ICML 2024, PMLR v235)](https://raw.githubusercontent.com/mlresearch/v235/main/assets/nauman24a/nauman24a.pdf)
8. [Policy Gradient Methods for Reinforcement Learning with Function Approximation (Sutton, McAllester, Singh, Mansour, NIPS 1999)](https://proceedings.neurips.cc/paper_files/paper/1999/file/464d828b85b0bed98e80ade0a5c43b0f-Paper.pdf)
9. [Comparing Policy-Gradient Algorithms (Sutton, Singh, McAllester, unpublished manuscript)](http://www.incompleteideas.net/papers/SSM-unpublished.pdf)
10. [Variance Reduction Techniques for Gradient Estimates in Reinforcement Learning (Greensmith, Bartlett, Baxter, JMLR 2004)](https://jmlr.org/papers/volume5/greensmith04a/greensmith04a.pdf)
11. [Actor-Critic Algorithms (Konda & Tsitsiklis, SIAM J. Control Optim.)](https://www.mit.edu/~jnt/Papers/J094-03-kon-actors.pdf)
12. [Andrew G. Barto, Richard S. Sutton, Charles W. Anderson (1983). Neuronlike adaptive elements that can solve difficult learning control problems. IEEE Transactions on Systems Man and Cybernetics.](https://doi.org/10.1109/tsmc.1983.6313077)
13. [Richard S. Sutton (1988). Learning to Predict by the Methods of Temporal Differences. Machine Learning.](https://doi.org/10.1023/a:1022633531479)
14. [Christopher J. C. H. Watkins, Peter Dayan (1992). Q-learning. Machine Learning.](https://doi.org/10.1007/bf00992698)
15. [Vivek S Borkar, Vijaymohan R Konda (1997). The actor-critic algorithm as multi-time-scale stochastic approximation. Sadhana.](https://doi.org/10.1007/bf02745577)
16. [Mnih, Volodymyr and colleagues (2016). Asynchronous Methods for Deep Reinforcement Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1602.01783)
17. [Off-Policy Actor-Critic (Degris, White, Sutton, ICML 2012)](https://people.bordeaux.inria.fr/degris/papers/Degris_Offpac.pdf)
18. [Degris, Thomas, White, Martha, Sutton, Richard S. (2012). Off-Policy Actor-Critic. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1205.4839)
19. [Schulman, John and colleagues (2015). Trust Region Policy Optimization. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1502.05477)
20. [Schulman, John and colleagues (2015). High-Dimensional Continuous Control Using Generalized Advantage Estimation. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1506.02438)
21. [Lillicrap, Timothy P. and colleagues (2015). Continuous control with deep reinforcement learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1509.02971)
22. [Haarnoja, Tuomas and colleagues (2018). Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1801.01290)
23. [Wang, Ziyu and colleagues (2016). Sample Efficient Actor-Critic with Experience Replay. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1611.01224)
24. [Shalabh Bhatnagar and colleagues (2009). Natural actor–critic algorithms. Automatica.](https://doi.org/10.1016/j.automatica.2009.07.008)
25. [Cobbe, Karl and colleagues (2020). Phasic Policy Gradient. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2009.04416)
26. [A Survey of Actor-Critic Reinforcement Learning](https://busoniu.net/files/papers/ivo_smcc12_survey.pdf)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › 机器学习与神经计算 › 机器学习方法

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/actor-critic-reinforcement-learning

English original: https://www.edgepedia.org/actor-critic-reinforcement-learning
