# 风险敏感强化学习

风险敏感强化学习是一类强化学习方法，其优化的目标不是期望回报，而是回报分布上的目标，例如熵（指数效用）风险度量、方差或条件风险价值。熵风险度量（以指数方式对结果加权以惩罚风险的目标）是风险敏感动态决策中使用最广泛的泛函，主要因为它在数学上仍然易于处理。<sup>[1](https://link.springer.com/article/10.1007/s00186-024-00857-0)</sup> 自1972年风险敏感马尔可夫决策过程被形式化以来，“风险敏感”这一形容词常被用作应用熵风险度量的同义词。<sup>[1](https://link.springer.com/article/10.1007/s00186-024-00857-0)</sup>

| 关键事实 | 细节 |
|---|---|
| 标准目标 | 最大化 \( V^{\pi}_{h}(s) = \tfrac{1}{\beta}\log \mathbb{E}_{h}\big[e^{\beta \sum_{i=h}^{H} r_{i}} \mid s_{h}=s\big] \)，其中风险参数 \( \beta \neq 0 \)<sup>[2](https://proceedings.neurips.cc/paper_files/paper/2021/file/ab6439fa2daf0246f92eea433bca5ac4-Paper.pdf)</sup> |
| 风险参数的作用 | 在奖励表述中，\( \beta > 0 \) 为风险追求，\( \beta < 0 \) 为风险规避；当 \( \beta \to 0 \) 时，价值函数趋于经典的风险中性价值<sup>[2](https://proceedings.neurips.cc/paper_files/paper/2021/file/ab6439fa2daf0246f92eea433bca5ac4-Paper.pdf)</sup> |
| 核心机制 | 指数贝尔曼方程使贝尔曼更新变为乘法形式：\( e^{\beta Q^{\pi}_{h}(s,a)} = \mathbb{E}_{s' \sim P_{h}(\cdot\mid s,a)}\, e^{\beta (r_{h}(s,a) + V^{\pi}_{h+1}(s'))} \)<sup>[2](https://proceedings.neurips.cc/paper_files/paper/2021/file/ab6439fa2daf0246f92eea433bca5ac4-Paper.pdf)</sup> |
| 小 \(\beta\) 极限 | \( \tfrac{1}{\beta}\log \mathbb{E}[e^{\beta R}] = \mathbb{E}[R] + \tfrac{\beta}{2}\mathrm{Var}[R] + \mathcal{O}(\beta^{2}) \)，因此 \(\beta\) 对方差项加权<sup>[3](https://arxiv.org/html/2212.09010)</sup> |
| 遗憾界 | 对于熵目标下的有限回合制MDP，为 \( \tilde{\mathcal{O}}\big(\tfrac{\exp(|\beta|H)-1}{|\beta|} H\sqrt{S^{2} \cdot A \cdot K}\big) \)<sup>[4](https://export.arxiv.org/pdf/2210.14051v2.pdf)</sup> |
| 结构性局限 | 除熵风险度量之外的静态风险度量通常不满足贝尔曼方程，因此动态规划对它们失效<sup>[5](https://proceedings.mlr.press/v238/liang24a/liang24a.pdf)</sup> |
| 计算困难性 | 在折扣成本MDP中寻找全局均值-方差最优策略是NP难的，即使转移模型已知<sup>[6](https://arxiv.org/pdf/1810.09126)</sup> |

## 工作原理

指数效用目标用累积奖励 \( R \) 的熵风险度量替代期望回报，即 \( \tfrac{1}{\beta}\log\mathbb{E}_{x \sim \pi}[\exp(\beta R(x))] \)；等价地，当 \( \beta > 0 \) 时智能体最大化指数矩 \( \mathbb{E}_{x \sim \pi}[\exp(\beta R(x))] \)，当 \( \beta < 0 \) 时最小化它。<sup>[3](https://arxiv.org/html/2212.09010)</sup> 泰勒展开展示了其机制：\( \tfrac{1}{\beta}\log \mathbb{E}[e^{\beta R}] = \mathbb{E}[R] + \tfrac{\beta}{2}\mathrm{Var}[R] + \mathcal{O}(\beta^{2}) \)，因此 \(\beta\) 控制奖励的二阶（及更高阶）矩以多强程度进入目标。<sup>[3](https://arxiv.org/html/2212.09010)</sup>

风险参数的符号遵循两种相反约定。在遗憾分析文献所用的奖励最大化表述中，\( \beta > 0 \) 使智能体风险追求，\( \beta < 0 \) 风险规避。<sup>[2](https://proceedings.neurips.cc/paper_files/paper/2021/file/ab6439fa2daf0246f92eea433bca5ac4-Paper.pdf)</sup> 在运筹学综述的基于成本的指数效用表述中，近似式改为减去方差，因此 \( \gamma > 0 \) 建模风险规避决策者，而 \( \gamma < 0 \) 对应风险偏好者。<sup>[1](https://link.springer.com/article/10.1007/s00186-024-00857-0)</sup>

更深层次上，每种风险敏感方法都会对实际获得的奖励值、转移概率或两者施加非线性变换；奖励变换是期望效用理论的标准方法，而转移概率变换源于行为经济学以及凸风险度量和一致风险度量。<sup>[7](https://ar5iv.labs.arxiv.org/html/1311.2097)</sup> 对于熵目标，[贝尔曼方程](https://www.edgepedia.org/zh/bellman-equation)在 \( e^{\beta \cdot} \) 中变为乘法形式，将即时奖励与下一步价值函数以乘法而非加法关联。<sup>[2](https://proceedings.neurips.cc/paper_files/paper/2021/file/ab6439fa2daf0246f92eea433bca5ac4-Paper.pdf)</sup><sup> • </sup><sup>[8](https://export.arxiv.org/pdf/2211.10815v1.pdf)</sup>

## 实现方式

指数准则下的**策略评估**直接通过过去回合上的样本平均 \( w_{h}(s,a) = \mathrm{SampAvg}(\{e^{\beta(r_{h}(s_{h},a_{h}) + V_{h+1}(s_{h+1}))}\}) \) 来估计 \( e^{\beta \cdot Q^{\pi}_{h}(s,a)} \)，该样本平均是从第 \( h+1 \) 步开始的累积奖励的经验矩生成函数；这一估计随后支持策略改进步骤。<sup>[2](https://proceedings.neurips.cc/paper_files/paper/2021/file/ab6439fa2daf0246f92eea433bca5ac4-Paper.pdf)</sup>

**策略梯度**采取风险加权形式。对于目标 \( J = \tfrac{1}{\beta}\log\mathbb{E}[e^{\beta R}] \)，似然比梯度为 \( \nabla J = \tfrac{1}{\beta}\, \mathbb{E}\big[e^{\beta R} \sum_{t}\nabla\log\pi(a_{t}\mid s_{t};\theta)\big] / \mathbb{E}\big[e^{\beta R}\big] \)，因此 \( e^{\beta R} \) 较大的轨迹在更新中占主导。<sup>[3](https://arxiv.org/html/2212.09010)</sup>

**均值-方差演员-评论家**表述一个约束问题：最大化回报均值，约束其方差有上界；它求解[拉格朗日松弛](https://www.edgepedia.org/zh/lagrangian-relaxation)，并用同时扰动随机逼近（SPSA）和平滑泛函方法估计拉格朗日梯度，得到两种演员-评论家算法（折扣型和平均奖励变体）。<sup>[9](https://papers.nips.cc/paper_files/paper/2013/file/eb163727917cbba1eea208541a643e74-Paper.pdf)</sup> 通过常微分方程方法建立了到局部风险敏感最优策略的渐近收敛性。<sup>[9](https://papers.nips.cc/paper_files/paper/2013/file/eb163727917cbba1eea208541a643e74-Paper.pdf)</sup>

**通过分布式强化学习的CVaR**使用乐观分布式贝尔曼算子，将概率质量从回报分布的下尾移到上尾；渐近收敛性和乐观性在表格型策略评估情形中得到证明，并且在具有离散和连续状态空间的模拟环境中，该算法寻找CVaR最优策略显著快于现有基线。<sup>[10](https://ojs.aaai.org/index.php/AAAI/article/download/5870/5726)</sup>

**无策略梯度线性性的指数效用**：指数准则需要风险加权梯度估计器，并且通常不容许通常的风险中性策略梯度简化，因此一类工作利用风险敏感强化学习与鲁棒对抗强化学习（RARL）之间的等价性——后者是一个带有假想对手的零和马尔可夫博弈，其[纳什均衡](https://www.edgepedia.org/zh/nash-equilibrium)给出最优风险敏感策略；在线性二次情形中，嵌套自然演员-评论家算法可证明以次线性速率收敛到该均衡。<sup>[11](http://proceedings.mlr.press/v130/zhang21f/zhang21f.pdf)</sup>

## 起源

风险敏感[马尔可夫决策过程](https://www.edgepedia.org/zh/markov-decision-process)由[罗纳德·A·霍华德](https://www.edgepedia.org/zh/ronald-a-howard)（Ronald A. Howard）与詹姆斯·E·马西森（James E. Matheson）在《风险敏感马尔可夫决策过程》（Risk-Sensitive Markov Decision Processes，《管理科学》，1972）中提出。<sup>[12](https://doi.org/10.1287/mnsc.18.7.356)</sup> 该论文使用值迭代来优化可能时变的有限时域过程，随后发展出一种策略迭代程序，用于在无限时域情形中寻找具有最高确定性等价增益的平稳策略。<sup>[13](http://psycnet.apa.org/doi/10.1287/mnsc.18.7.356)</sup><sup> • </sup><sup>[1](https://link.springer.com/article/10.1007/s00186-024-00857-0)</sup> 在现代强化学习中，费英杰（Yingjie Fei）及其同事（2021，arXiv）将指数贝尔曼方程应用于回合制强化学习，为风险敏感强化学习推导出改进的遗憾界，并提出无模型算法 RSVI 和 RSQ。<sup>[2](https://proceedings.neurips.cc/paper_files/paper/2021/file/ab6439fa2daf0246f92eea433bca5ac4-Paper.pdf)</sup><sup> • </sup><sup>[14](https://doi.org/10.48550/arxiv.2111.03947)</sup>

## 变体

风险规避强化学习中使用的命名风险度量包括风险价值（VaR）、条件风险价值（CVaR）、[夏普比率](https://www.edgepedia.org/zh/sharpe-ratio)和指数效用。<sup>[15](https://ar5iv.labs.arxiv.org/html/2004.10888)</sup> CVaR目标关注回报的下尾，因此对罕见但灾难性的结果更敏感；它广泛用于金融应用，并越来越多用于强化学习。<sup>[16](https://proceedings.neurips.cc/paper_files/paper/2022/file/c88a2bd0e793550d0e885aa6e31ca277-Paper-Conference.pdf)</sup> 强化学习的分布式方法学习每个状态-动作对的整个回报分布而非其期望值，这使得能够优化期望之外的目标，并作为若干风险敏感方法的算法基础。<sup>[16](https://proceedings.neurips.cc/paper_files/paper/2022/file/c88a2bd0e793550d0e885aa6e31ca277-Paper-Conference.pdf)</sup> 更一般地，动态风险度量（DRMs）包含谱风险度量、优化确定性等价和扭曲风险度量。<sup>[5](https://proceedings.mlr.press/v238/liang24a/liang24a.pdf)</sup> 在运筹学视角中，“风险敏感”指使用优化确定性等价来度量期望和风险，这一类包括熵风险度量和条件风险价值。<sup>[1](https://link.springer.com/article/10.1007/s00186-024-00857-0)</sup>

## 应用

基于指数风险度量的风险敏感强化学习已应用于金融、医疗和运筹学。<sup>[4](https://export.arxiv.org/pdf/2210.14051v2.pdf)</sup> 在控制领域，风险敏感演员-评论家算法在交通信号控制问题上得到演示，表现出低方差，性能不显著劣于风险中性对应算法，使其适合风险受限系统。<sup>[9](https://papers.nips.cc/paper_files/paper/2013/file/eb163727917cbba1eea208541a643e74-Paper.pdf)</sup> 轨迹Q学习（TQL）学习一个历史价值函数，建模给定轨迹历史时累积回报的条件分布，具有已证明的策略改进，并被提出为第一个对各类扭曲风险度量收敛到最优风险敏感策略的算法，并在离散迷你网格和连续控制任务上得到验证。<sup>[17](https://arxiv.org/html/2307.00547v2)</sup> 2025年，RS-GRPO——面向大型语言模型的GRPO风险敏感变体——在五种不同大型语言模型上持续提升pass@k性能，同时保持或提升pass@1准确率。<sup>[18](https://arxiv.org/pdf/2509.24261v1.pdf)</sup>

## 局限与替代方案

**静态CVaR的时间不一致性。** 在多个时间步上累积的静态CVaR目标是时间不一致的：最优策略可能依赖历史且非马尔可夫，因为一旦积累了足够奖励，就可以采取更高风险的动作。<sup>[16](https://proceedings.neurips.cc/paper_files/paper/2022/file/c88a2bd0e793550d0e885aa6e31ca277-Paper-Conference.pdf)</sup> 动态风险度量恢复动态规划并产生时间一致的最优策略。<sup>[5](https://proceedings.mlr.press/v238/liang24a/liang24a.pdf)</sup>

**分布式CVaR中的有偏动作选择。** 分布式强化学习中CVaR常用的动作选择策略既不收敛到动态马尔可夫CVaR，也不收敛到静态CVaR，即使最优CVaR策略是平稳且马尔可夫的。<sup>[16](https://proceedings.neurips.cc/paper_files/paper/2022/file/c88a2bd0e793550d0e885aa6e31ca277-Paper-Conference.pdf)</sup> 更广泛地说，现有基于分布式强化学习的风险敏感方法执行有偏优化，不能保证累积回报分布上的风险度量的最优性。<sup>[17](https://arxiv.org/html/2307.00547v2)</sup>

**动态规划失效。** 除熵风险度量外，静态风险度量通常不满足贝尔曼方程，即使模型已知，求得最优策略在计算上也很困难。<sup>[5](https://proceedings.mlr.press/v238/liang24a/liang24a.pdf)</sup> [累积前景理论](https://www.edgepedia.org/zh/cumulative-prospect-theory)（CPT）是一种非一致且非凸的度量，排除了通常基于贝尔曼方程的动态规划方法，而CVaR约束MDP和CPT价值优化缺乏具有方差缩减的可证明收敛的强化学习算法。<sup>[6](https://arxiv.org/pdf/1810.09126)</sup> 在困难性方面，折扣成本MDP中回报方差的贝尔曼算子不一定单调，因此策略迭代不保证找到最优策略，而且即使转移模型已知，寻找全局均值-方差最优策略也是NP难的。<sup>[6](https://arxiv.org/pdf/1810.09126)</sup>

**与邻近框架的比较。** 风险敏感强化学习针对系统本身的随机性，鲁棒MDP针对参数不确定性，<sup>[9](https://papers.nips.cc/paper_files/paper/2013/file/eb163727917cbba1eea208541a643e74-Paper.pdf)</sup> 安全强化学习保留期望回报目标同时添加约束，<sup>[19](https://arxiv.org/html/2403.18539v2)</sup> 不过RARL等价性表明指数效用目标也可以表示为鲁棒零和博弈。<sup>[11](http://proceedings.mlr.press/v130/zhang21f/zhang21f.pdf)</sup>

## References

1. [Markov decision processes with risk-sensitive criteria: an overview (Mathematical Methods of Operations Research, 2024)](https://link.springer.com/article/10.1007/s00186-024-00857-0)
2. [Exponential Bellman Equation and Improved Regret Bounds for Risk-Sensitive Reinforcement Learning (NeurIPS 2021)](https://proceedings.neurips.cc/paper_files/paper/2021/file/ab6439fa2daf0246f92eea433bca5ac4-Paper.pdf)
3. [Risk-Sensitive Reinforcement Learning with Exponential Criteria (arXiv preprint)](https://arxiv.org/html/2212.09010)
4. [Bridging Distributional and Risk-sensitive Reinforcement Learning with Provable Regret Bounds (arXiv 2210.14051, v2/v3 merged)](https://export.arxiv.org/pdf/2210.14051v2.pdf)
5. [Regret Bounds for Risk-sensitive Reinforcement Learning with Lipschitz Dynamic Risk Measures (ICML 2024)](https://proceedings.mlr.press/v238/liang24a/liang24a.pdf)
6. [Risk-Sensitive Reinforcement Learning via Policy Gradient Search (monograph, arXiv 1810.09126)](https://arxiv.org/pdf/1810.09126)
7. [Risk-sensitive Reinforcement Learning (Mihatsch & Neuneier lineage; arXiv 1311.2097, Neural Computation)](https://ar5iv.labs.arxiv.org/html/1311.2097)
8. [Non-stationary Risk-Sensitive Reinforcement Learning: The Role of Non-stationarity in Dynamic Regret (arXiv 2211.10815)](https://export.arxiv.org/pdf/2211.10815v1.pdf)
9. [Actor-Critic Algorithms for Risk-Sensitive MDPs (NIPS 2013)](https://papers.nips.cc/paper_files/paper/2013/file/eb163727917cbba1eea208541a643e74-Paper.pdf)
10. [Being Optimistic to Be Conservative: Quickly Learning a CVaR Policy (AAAI)](https://ojs.aaai.org/index.php/AAAI/article/download/5870/5726)
11. [Provably Efficient Actor-Critic for Risk-Sensitive and Robust Adversarial RL: A Linear-Quadratic Case (ICML 2021)](http://proceedings.mlr.press/v130/zhang21f/zhang21f.pdf)
12. [Ronald A. Howard, James E. Matheson (1972). Risk-Sensitive Markov Decision Processes. Management Science.](https://doi.org/10.1287/mnsc.18.7.356)
13. [Risk-Sensitive Markov Decision Processes | Management Science](http://psycnet.apa.org/doi/10.1287/mnsc.18.7.356)
14. [Fei, Yingjie and colleagues (2021). Exponential Bellman Equation and Improved Regret Bounds for Risk-Sensitive Reinforcement Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2111.03947)
15. [Mean-Variance Policy Iteration for Risk-Averse Reinforcement Learning (arXiv 2004.10888)](https://ar5iv.labs.arxiv.org/html/2004.10888)
16. [Distributional Reinforcement Learning for Risk-Sensitive Policies (NeurIPS 2022)](https://proceedings.neurips.cc/paper_files/paper/2022/file/c88a2bd0e793550d0e885aa6e31ca277-Paper-Conference.pdf)
17. [Is Risk-Sensitive Reinforcement Learning Properly Resolved? (Trajectory Q-Learning)](https://arxiv.org/html/2307.00547v2)
18. [Risk-Sensitive RL for Alleviating Exploration Dilemmas in Large Language Models (RS-GRPO)](https://arxiv.org/pdf/2509.24261v1.pdf)
19. [Safe and Robust Reinforcement Learning: Principles and Practice (arXiv 2403.18539, 2024)](https://arxiv.org/html/2403.18539v2)

---
*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/risk-sensitive-reinforcement-learning

English original: https://www.edgepedia.org/risk-sensitive-reinforcement-learning
