# 无模型强化学习

无模型强化学习（RL）是一类算法，直接从智能体自身的经验中学习策略、价值函数或两者，而不估计环境动力学的模型。一个强化学习系统包含四个子元素：策略、奖励信号、价值函数，以及可选的环境模型；使用模型进行规划的方法明确属于试错学习器，而无模型方法则无需模型进行学习。<sup>[1](http://web.stanford.edu/class/psych209/Readings/SuttonBartoIPRLBook2ndEd.pdf)</sup> 在无模型设定中，智能体知道状态集和动作集，但不必识别环境的转移动力学，而是通过采取动作并观察其效果来学习。<sup>[2](https://homes.di.unimi.it/~cesabian/RL/Notes/model-free.pdf)</sup><sup> • </sup><sup>[30](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume4/kaelbling96a-html/node23.html)</sup><sup> • </sup><sup>[31](https://ics.uci.edu/~dechter/courses/ics-295/fall-2019/papers/2009-silver-paper_thesis.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 输出 | 策略、价值函数或两者；预测（计算 \( V^{\pi} \)）和控制（学习 \( \pi^{*} \)）在不学习MDP结构的情况下求解<sup>[2](https://homes.di.unimi.it/~cesabian/RL/Notes/model-free.pdf)</sup> |
| 主要家族 | 基于价值的（Q学习、SARSA）、基于策略的（REINFORCE），以及结合两者的演员-评论家方法<sup>[3](https://introml.mit.edu/_static/spring24/LectureNotes/chapter_Reinforcement_learning.pdf)</sup> |
| 收敛保证 | 当所有状态下的所有动作被反复采样且值被离散表示时，表格型Q学习以概率1收敛到最优动作值<sup>[4](https://link.springer.com/article/10.1007/BF00992698)</sup> |
| 里程碑结果 | DQN智能体仅凭像素和游戏分数，用单一算法和超参数集在49款Atari 2600游戏中达到与专业人类测试员相当的水平<sup>[5](https://doi.org/10.1038/nature14236)</sup> |
| 样本效率 | 在线性二次调节器上，基于模型的方法在策略评估时所需样本量至多为无模型方法所需样本量除以状态维度所得的数值<sup>[6](https://proceedings.mlr.press/v99/tu19a.html)</sup> |
| 已知失效模式 | 使用函数近似时，基于价值的方法可能不稳定，且可能无法收敛到任何策略<sup>[3](https://introml.mit.edu/_static/spring24/LectureNotes/chapter_Reinforcement_learning.pdf)</sup><sup> • </sup><sup>[7](https://proceedings.neurips.cc/paper/1999/file/464d828b85b0bed98e80ade0a5c43b0f-Paper.pdf)</sup> |

## 工作原理

时序差分自举用采样的一步目标替代动力学模型。[Q学习](https://www.edgepedia.org/zh/q-learning)更新为 \( Q[s,a] \leftarrow (1-\alpha)Q[s,a] + \alpha(r + \gamma \max_{a'} Q[s',a']) \)，其中 \( r + \gamma \max_{a'} Q[s',a'] \) 项是一步前瞻目标；状态值形式为指数移动平均 \( V^{\pi}(s) \leftarrow (1-\alpha)V^{\pi}(s) + \alpha \cdot \text{sample} \)。<sup>[3](https://introml.mit.edu/_static/spring24/LectureNotes/chapter_Reinforcement_learning.pdf)</sup><sup> • </sup><sup>[8](https://inst.eecs.berkeley.edu/~cs188/textbook/rl/mfl.html)</sup> Q学习是异策略的：即使采取次优或随机动作，它也能学习最优策略，而直接评估和TD学习是同策略的。<sup>[8](https://inst.eecs.berkeley.edu/~cs188/textbook/rl/mfl.html)</sup>

第二种机制是策略梯度。策略梯度定理表明，梯度可以写成不包含状态分布梯度项的形式，这使得从经验中用近似动作值或优势函数来估计变得方便。<sup>[7](https://proceedings.neurips.cc/paper/1999/file/464d828b85b0bed98e80ade0a5c43b0f-Paper.pdf)</sup> 在理论方面，Q学习在通信MDP上采用全混合策略时以概率1收敛，SARSA在相关条件下收敛到 \( Q^{*} \)。<sup>[4](https://link.springer.com/article/10.1007/BF00992698)</sup><sup> • </sup><sup>[2](https://homes.di.unimi.it/~cesabian/RL/Notes/model-free.pdf)</sup>

## 如何实现

无模型智能体循环进行收集经验、评估动作或状态、改进策略。在基于价值的方法中，智能体应用上述增量Q更新；使用函数近似时，权重调整为 \( w_{i} \leftarrow w_{i} + \alpha \cdot \text{difference} \cdot f_{i}(s,a) \)。<sup>[3](https://introml.mit.edu/_static/spring24/LectureNotes/chapter_Reinforcement_learning.pdf)</sup><sup> • </sup><sup>[8](https://inst.eecs.berkeley.edu/~cs188/textbook/rl/mfl.html)</sup> 在基于策略的方法中，[REINFORCE](https://www.edgepedia.org/zh/reinforce)算法沿期望强化梯度的方向调整网络权重，而不显式计算梯度估计或存储可用于计算此类估计的信息。<sup>[9](https://doi.org/10.1007/bf00992696)</sup> [演员-评论家方法](https://www.edgepedia.org/zh/actor-critic-methods)将策略（演员）与通过学习得到、用于改进梯度估计的价值函数（评论家）配对；策略梯度方法在策略参数空间中搜索，并在智能体与环境交互时产生估计。<sup>[7](https://proceedings.neurips.cc/paper/1999/file/464d828b85b0bed98e80ade0a5c43b0f-Paper.pdf)</sup><sup> • </sup><sup>[1](http://web.stanford.edu/class/psych209/Readings/SuttonBartoIPRLBook2ndEd.pdf)</sup> 衰减为 \( 0 < \lambda < 1 \) 的资格迹将稀疏奖励向后传播，产生Q(λ)和Sarsa(λ)。<sup>[10](https://algorithmsbook.com/files/chapter-17.pdf)</sup>

## 起源

理查德·S·萨顿（Richard S. Sutton）在1988年《机器学习》论文中分析了一类他称为时序差分（TD）算法的学习规则。<sup>[11](https://doi.org/10.1023/a:1022633531479)</sup> TD算法是一种增量式在线方法，用于近似策略的评估函数，不需要系统模型。<sup>[12](https://papers.nips.cc/paper_files/paper/1989/file/a597e50502f5ff68e3e25b9114205d4a-Paper.pdf)</sup> Q学习的收敛定理在一篇《机器学习》论文中提出并证明，建立在早期概要的基础上。<sup>[4](https://link.springer.com/article/10.1007/BF00992698)</sup> Sarsa背后的方法在G·A·拉默里（G. A. Rummery）1994年技术报告《On-Line Q-Learning Using Connectionist Systems》中以不同名称提出。<sup>[10](https://algorithmsbook.com/files/chapter-17.pdf)</sup> 罗纳德·J·威廉姆斯（Ronald J. Williams）1992年《机器学习》论文引入了REINFORCE类梯度跟随算法，用于具有随机单元的连接主义网络。<sup>[9](https://doi.org/10.1007/bf00992696)</sup> [理查德·萨顿](https://www.edgepedia.org/zh/richard-sutton)（Richard Sutton）及其同事在1999年证明了带函数近似的策略梯度定理，首次表明具有任意可微近似的策略迭代收敛到局部最优策略。<sup>[7](https://proceedings.neurips.cc/paper/1999/file/464d828b85b0bed98e80ade0a5c43b0f-Paper.pdf)</sup> 深度RL时代以DQN开启，由弗拉基米尔·姆尼赫（Volodymyr Mnih）及其同事于2015年在《自然》上报道。<sup>[5](https://doi.org/10.1038/nature14236)</sup>

## 变体

**基于价值的深度变体。** DQN用网络参数表示Q函数，通过时序差分损失的梯度下降更新，使用经验回放——定期采样旧经验——以保持高效并避免灾难性遗忘。<sup>[29](https://arxiv.org/abs/1312.5602)</sup><sup> • </sup><sup>[13](https://princeton-introml.github.io/files/ch15.pdf)</sup> 带异策略修正的Q(λ)（安娜·哈鲁图尼扬（Anna Harutyunyan）及其同事，2016）是该家族的进一步变体。<sup>[14](https://doi.org/10.48550/arxiv.1602.04951)</sup>

**策略优化和演员-评论家变体。** 信任区域策略优化（TRPO），由[约翰·舒尔曼](https://www.edgepedia.org/zh/john-schulman)（John Schulman）及其同事（2015）提出，将策略更新约束在信任区域内。<sup>[15](https://doi.org/10.48550/arxiv.1502.05477)</sup> 异步优势演员-评论家（A3C），由弗拉基米尔·姆尼赫（Volodymyr Mnih）及其同事（2016）提出，用多个智能体在独立环境实例上并行运行替代经验回放。<sup>[16](https://proceedings.mlr.press/v48/mniha16.pdf)</sup> 软演员-评论家（SAC），由图奥马斯·哈尔诺亚（Tuomas Haarnoja）及其同事（2018）提出，是最大熵框架下的异策略演员-评论家方法，其中演员在最大化期望奖励的同时最大化熵。<sup>[17](https://proceedings.mlr.press/v80/haarnoja18b.html)</sup> DDPG同时学习确定性策略和Q函数，两者相互改进；TD3和PPO也属于常用方法，DDPG、TD3和SAC在策略优化和Q学习家族之间插值。<sup>[18](https://github.com/openai/spinningup/blob/master/docs/spinningup/rl%5Fintro2.rst)</sup>

## 应用

**游戏。** DQN仅接收像素和游戏分数，超越了所有先前算法，用单一算法、架构和超参数集在49款[Atari 2600](https://www.edgepedia.org/zh/atari-2600)游戏中达到与专业人类游戏测试员相当的性能。<sup>[5](https://doi.org/10.1038/nature14236)</sup>

**连续控制。** SAC在一系列连续控制基准任务上创造了最先进结果，超越了先前的同策略和异策略方法。<sup>[17](https://proceedings.mlr.press/v80/haarnoja18b.html)</sup>

## 局限与替代方案

**不稳定性和信用分配缓慢。** Q学习、Sarsa和动态规划方法已被证明无法对具有简单函数近似器的简单MDP收敛到任何策略，而带神经网络近似的Q学习理论保证很少且可能不稳定。<sup>[7](https://proceedings.neurips.cc/paper/1999/file/464d828b85b0bed98e80ade0a5c43b0f-Paper.pdf)</sup><sup> • </sup><sup>[3](https://introml.mit.edu/_static/spring24/LectureNotes/chapter_Reinforcement_learning.pdf)</sup> 表格型Q学习还要求Q表的状态和动作先验已知。<sup>[19](https://www.cs.dartmouth.edu/dfk/research/project/dagents/papers/cybenko-qlearn.pdf)</sup> 对于稀疏奖励，Q学习和Sarsa学习缓慢，因为只有紧邻目标之前的状态被更新；奖励塑形和经验回放缓解了这一点。<sup>[10](https://algorithmsbook.com/files/chapter-17.pdf)</sup>

**样本复杂度与基于模型方法的对比。** 无模型RL的高样本复杂度在很大程度上将其限制在模拟领域，而基于模型的方法以显著更低的样本复杂度学习，但当学习模型不准确时存在模型偏差风险。<sup>[20](https://www.cs.toronto.edu/~tingwuwang/mbrl/mbrl.pdf)</sup> 在线性二次调节器上，无模型方法用于策略评估的样本复杂度至少是基于模型方法的状态维度倍。<sup>[6](https://proceedings.mlr.press/v99/tu19a.html)</sup> 与基于模型的方法相比，无模型方法确实以样本效率换取实现和调参的简便性。<sup>[18](https://github.com/openai/spinningup/blob/master/docs/spinningup/rl%5Fintro2.rst)</sup>

**离线和混合替代方案。** 离线RL将学习约束在固定数据集上：保守Q学习（CQL）、MOPO和COMBO是2020年和2021年的无模型和基于模型的离线方法。<sup>[21](https://doi.org/10.48550/arxiv.2006.04779)</sup><sup> • </sup><sup>[22](https://doi.org/10.48550/arxiv.2005.13239)</sup><sup> • </sup><sup>[23](https://doi.org/10.48550/arxiv.2102.08363)</sup> 无模型RL避免了过度依赖不完美模型导致的糟糕渐近性能，代价是数据效率，而提出的统一RL结合两者，在6个测试环境中的4个中超越了任一单独方法。<sup>[24](https://rlj.cs.umass.edu/2024/papers/RLJ_RLC_2024_37.pdf)</sup> [AlphaZero](https://www.edgepedia.org/zh/alphazero)、MuZero和[Dreamer](https://www.edgepedia.org/zh/dreamer-model-family)等混合方法整合了规划和直接学习，而无模型RL需要大量训练数据且长期规划能力差。<sup>[25](https://onlinelibrary.wiley.com/doi/full/10.1002/9781394422715.ch11)</sup>

**近期发展。** MR.Q是一种无模型算法，使用基于模型的表示来近似线性化价值函数，用单一超参数集在涵盖118个环境的四个基准上评估，与包括[DreamerV3](https://www.edgepedia.org/zh/dreamerv3)和[TD-MPC2](https://www.edgepedia.org/zh/td-mpc2)在内的领域特定和通用基线具有竞争力，且无需规划或模拟轨迹。<sup>[26](https://proceedings.iclr.cc/paper_files/paper/2025/file/cf6501108fced72ee5c47e2151c4e153-Paper-Conference.pdf)</sup><sup> • </sup><sup>[27](https://doi.org/10.48550/arxiv.2310.16828)</sup> 上下文RL将学习移入Transformer的前向传播：OmniRL仅在程序生成的AnyMDP任务套件上进行元训练，在泛化方面优于先前的上下文RL方法，并适应未见过的Gymnasium和多智能体任务。<sup>[28](https://papers.nips.cc/paper_files/paper/2025/file/fa9e9b2a5176c6f72e78269087b9fe60-Paper-Conference.pdf)</sup>

## References

1. [Reinforcement Learning: An Introduction (Sutton & Barto, 2nd edition)](http://web.stanford.edu/class/psych209/Readings/SuttonBartoIPRLBook2ndEd.pdf)
2. [Reinforcement Learning lecture notes, Chapter 3: Model-free RL (Università degli Studi di Milano, Cesa-Bianchi)](https://homes.di.unimi.it/~cesabian/RL/Notes/model-free.pdf)
3. [MIT 6.036/16.06 Lecture Notes, Chapter 11: Reinforcement Learning](https://introml.mit.edu/_static/spring24/LectureNotes/chapter_Reinforcement_learning.pdf)
4. [Q-learning (Watkins & Dayan, Machine Learning 8, 279–292, 1992)](https://link.springer.com/article/10.1007/BF00992698)
5. [Volodymyr Mnih and colleagues (2015). Human-level control through deep reinforcement learning. Nature.](https://doi.org/10.1038/nature14236)
6. [The Gap Between Model-Based and Model-Free Methods on the Linear Quadratic Regulator: An Asymptotic Viewpoint (COLT 2019)](https://proceedings.mlr.press/v99/tu19a.html)
7. [Policy Gradient Methods for Reinforcement Learning with Function Approximation (Sutton, McAllester, Singh, Mansour; NeurIPS 1999)](https://proceedings.neurips.cc/paper/1999/file/464d828b85b0bed98e80ade0a5c43b0f-Paper.pdf)
8. [Model-Free Learning (UC Berkeley CS188 textbook)](https://inst.eecs.berkeley.edu/~cs188/textbook/rl/mfl.html)
9. [Ronald J. Williams (1992). Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning.](https://doi.org/10.1007/bf00992696)
10. [Algorithms for Decision Making, Chapter 17: Model-Free Methods (Kochenderfer)](https://algorithmsbook.com/files/chapter-17.pdf)
11. [Richard S. Sutton (1988). Learning to Predict by the Methods of Temporal Differences. Machine Learning.](https://doi.org/10.1023/a:1022633531479)
12. [Sequential Decision Problems and Neural Networks (Barto, Sutton & Watkins, NIPS 1989)](https://papers.nips.cc/paper_files/paper/1989/file/a597e50502f5ff68e3e25b9114205d4a-Paper.pdf)
13. [Reinforcement Learning in Unknown Environments (Princeton Introduction to ML, Chapter 15)](https://princeton-introml.github.io/files/ch15.pdf)
14. [Harutyunyan, Anna and colleagues (2016). Q($λ$) with Off-Policy Corrections. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1602.04951)
15. [Schulman, John and colleagues (2015). Trust Region Policy Optimization. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1502.05477)
16. [Asynchronous Methods for Deep Reinforcement Learning (ICML 2016)](https://proceedings.mlr.press/v48/mniha16.pdf)
17. [Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor (ICML 2018)](https://proceedings.mlr.press/v80/haarnoja18b.html)
18. [OpenAI Spinning Up: Kinds of RL Algorithms](https://github.com/openai/spinningup/blob/master/docs/spinningup/rl%5Fintro2.rst)
19. [Q-Learning: A Tutorial and Extensions (Cybenko et al.)](https://www.cs.dartmouth.edu/dfk/research/project/dagents/papers/cybenko-qlearn.pdf)
20. [Benchmarking Model-Based Reinforcement Learning (Wang et al.)](https://www.cs.toronto.edu/~tingwuwang/mbrl/mbrl.pdf)
21. [Kumar, Aviral and colleagues (2020). Conservative Q-Learning for Offline Reinforcement Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2006.04779)
22. [Yu, Tianhe and colleagues (2020). MOPO: Model-based Offline Policy Optimization. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2005.13239)
23. [Yu, Tianhe and colleagues (2021). COMBO: Conservative Offline Model-Based Policy Optimization. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2102.08363)
24. [Unifying Model-Based and Model-Free Reinforcement Learning with Equivalent Policy Sets (RLC 2024)](https://rlj.cs.umass.edu/2024/papers/RLJ_RLC_2024_37.pdf)
25. [Reinforcement Learning for AGI: Model-Based versus Model-Free Approaches (Wiley book chapter)](https://onlinelibrary.wiley.com/doi/full/10.1002/9781394422715.ch11)
26. [Towards General-Purpose Model-Free Reinforcement Learning (MR.Q, ICLR 2025)](https://proceedings.iclr.cc/paper_files/paper/2025/file/cf6501108fced72ee5c47e2151c4e153-Paper-Conference.pdf)
27. [Hansen, Nicklas, Su, Hao, Wang, Xiaolong (2023). TD-MPC2: Scalable, Robust World Models for Continuous Control. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2310.16828)
28. [Towards Large-Scale In-Context Reinforcement Learning by Meta-Training in Randomized Worlds (AnyMDP, OmniRL; NeurIPS 2025)](https://papers.nips.cc/paper_files/paper/2025/file/fa9e9b2a5176c6f72e78269087b9fe60-Paper-Conference.pdf)
29. [arxiv.org](https://arxiv.org/abs/1312.5602)
30. [Learning an Optimal Policy: Model-free Methods](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume4/kaelbling96a-html/node23.html)
31. [2009 Silver Paper Thesis.pdf, ics.uci.edu](https://ics.uci.edu/~dechter/courses/ics-295/fall-2019/papers/2009-silver-paper_thesis.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/model-free-reinforcement-learning

English original: https://www.edgepedia.org/model-free-reinforcement-learning
