# 选项框架

选项框架是强化学习中的一种形式化方法，它用时间延展的动作——称为选项——来扩展智能体的动作集，每个选项由各自的策略、可启动的状态以及结束条件来定义。该框架由理查德·S·萨顿（Richard S. Sutton）、多伊娜·普雷库普（Doina Precup）和萨廷德·辛格（Satinder Singh）在1999年《人工智能》期刊论文《在MDP与半MDP之间：强化学习中的时间抽象框架》中提出，是分层强化学习的基础，在分层强化学习中，高层策略在技能之间进行选择，低层策略负责执行这些技能。<sup>[1](https://citeseerx.ist.psu.edu/document?doi=c18e730eb03ed8a49acbcee9b5e95948892a4bbd&repid=rep1&type=pdf)</sup><sup> • </sup><sup>[2](https://www.reinforcement-learning.com/kb/hierarchical-rl)</sup>

| 关键事实 | 详情 |
|---|---|
| 选项的定义 | 一个三元组 \( \omega = (I, \pi, \beta) \)：起始集 \( I \subseteq \mathcal{S} \)、选项内策略 \( \pi: \mathcal{S} \to \Delta(\mathcal{A}) \)，以及终止函数 \( \beta: \mathcal{S} \to [0,1] \)<sup>[3](https://embodiedbook.icsgen-ai.org/part-5-learning-from-demonstration-and-robot-data/module-26-skills-hierarchy-and-task-decomposition/section-26.2.html)</sup> |
| 起源 | 萨顿、普雷库普与辛格，《在MDP与半MDP之间》，《人工智能》（1999）<sup>[1](https://citeseerx.ist.psu.edu/document?doi=c18e730eb03ed8a49acbcee9b5e95948892a4bbd&repid=rep1&type=pdf)</sup> |
| 产生的控制过程 | 高层为半马尔可夫决策过程（SMDP），因为决策之间的转移耗时可变且依赖于状态<sup>[3](https://embodiedbook.icsgen-ai.org/part-5-learning-from-demonstration-and-robot-data/module-26-skills-hierarchy-and-task-decomposition/section-26.2.html)</sup> |
| 终止语义 | 每一步选项以概率 \( \beta(s_t) \) 结束，否则继续，因此其持续时间 \( \tau \) 是随机的，由 \( \beta \) 决定<sup>[3](https://embodiedbook.icsgen-ai.org/part-5-learning-from-demonstration-and-robot-data/module-26-skills-hierarchy-and-task-decomposition/section-26.2.html)</sup> |
| 基元动作作为选项 | 任何基元动作 \( a \) 都是一个选项，其起始集为 \( \mathcal{I} = \{s : a \in \mathcal{A}_s\} \)，策略恒为 \( \pi_o(s) = a \)，单步终止 \( \beta(s) = 1 \)<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC5937602/)</sup> |
| 学习机制 | 选项模型（奖励部分与折扣下一状态部分）通常未知，必须学习，可通过选项内学习方法或选项-评论家架构实现<sup>[5](https://temporalbook.icsgen-ai.org/part-6-sequential-decision-making/module-26-advanced-rl/section-26.5.html)</sup> |
| 规划收益 | 在拟合值迭代中，持续时间更长的选项和悲观的值估计都能带来更快的收敛，而且即使选项次优且分布稀疏，也能有所帮助<sup>[6](https://cris.technion.ac.il/en/publications/approximate-value-iteration-with-temporally-extended-actions-3/)</sup> |

## 选项三元组

一个选项 \( \omega \) 打包了三个组成部分。起始集 \( I \subseteq \mathcal{S} \) 规定了该选项可以被选中的状态，功能类似于动作的前置条件。选项内策略 \( \pi \) 是技能运行时所遵循的基元动作分布。终止函数 \( \beta \) 为每个状态赋予将控制权交还高层的概率；每一步执行以概率 \( \beta(s_t) \) 结束，因此选项运行一个由 \( \beta \) 决定的随机时长 \( \tau \)。<sup>[3](https://embodiedbook.icsgen-ai.org/part-5-learning-from-demonstration-and-robot-data/module-26-skills-hierarchy-and-task-decomposition/section-26.2.html)</sup><sup> • </sup><sup>[7](https://cs.brown.edu/people/jmacglashan/oomdptbTutorial/options/p1.html)</sup> 若一个选项的行为与终止性质完全由当前执行状态决定，则称之为马尔可夫选项。<sup>[7](https://cs.brown.edu/people/jmacglashan/oomdptbTutorial/options/p1.html)</sup>

该定义将普通动作作为特例嵌套其中：一个基元动作 \( a \) 是一个选项，其起始集恰好包含 \( a \) 可用的那些状态，其策略始终输出 \( a \)，其终止条件在一步之后触发，即对所有状态 \( \beta(s) = 1 \)。<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC5937602/)</sup> 因此，选项是对标准动作集的推广，而非替代。

## 半MDP视角

当智能体依据选项上的策略 \( \mu(o \mid s) \) 在选项之间进行选择时，所产生的过程是：在其起始集成立的状态中选择一个选项，运行该选项的选项内策略直至其终止，选择下一个选项，如此继续。<sup>[5](https://temporalbook.icsgen-ai.org/part-6-sequential-decision-making/module-26-advanced-rl/section-26.5.html)</sup> 由于决策之间现在隔着随机的、依赖于状态的时间量，高层问题成为一个半[马尔可夫决策过程](https://www.edgepedia.org/zh/markov-decision-process)，SMDP值函数按这些持续时间而非单步进行折扣。<sup>[5](https://temporalbook.icsgen-ai.org/part-6-sequential-decision-making/module-26-advanced-rl/section-26.5.html)</sup><sup> • </sup><sup>[3](https://embodiedbook.icsgen-ai.org/part-5-learning-from-demonstration-and-robot-data/module-26-skills-hierarchy-and-task-decomposition/section-26.2.html)</sup> 这正是奠基论文标题的含义所在：选项居于普通MDP（每次决策耗时一步）与半MDP（决策耗时不限于一步）之间。<sup>[1](https://citeseerx.ist.psu.edu/document?doi=c18e730eb03ed8a49acbcee9b5e95948892a4bbd&repid=rep1&type=pdf)</sup>

## 带选项的学习

该框架支持两族学习更新。选项内方法根据选项所采取的基元动作来更新选项的值，这使得许多与当前动作选择相一致的选项可以同时进行离策略更新；萨顿及其同事表明，这能大幅提升整体学习速度。<sup>[8](https://doi.org/10.1007/s10994-016-5580-x?urlappend=%3Futm_source%3Dresearchgate.net%26utm_medium%3Darticle)</sup><sup> • </sup><sup>[9](https://arxiv.org/abs/2112.03097)</sup> 选项模型——即选项多步转移中的奖励部分与折扣下一状态部分——通常未知，必须学习，这正是选项内学习方法和选项-评论家架构所做的工作。<sup>[5](https://temporalbook.icsgen-ai.org/part-6-sequential-decision-making/module-26-advanced-rl/section-26.5.html)</sup>

选项-评论家这一研究方向处理一个核心设计问题：由谁决定选项何时结束。Harb及其同事提出了一种选项切换的成本模型，以鼓励长选项。<sup>[10](https://openreview.net/pdf/a330d7acfb88e840d99b6c63e626ea80a3f794ca.pdf)</sup> 连续控制中一个常见的实际问题是选项坍缩：当智能体过于频繁地切换选项时，时间抽象不再提供任何优势，选项退化为基元动作。<sup>[11](https://lacuna.tiptreesystems.com/work/learnings-options-end-to-end-for-continuous-action-tasks/wrk_71fec7aaa4cb9f6ec04ad531cb4ebb42)</sup>

## 规划收益

选项不仅对控制有价值，对规划也有价值，因为其持续时间压缩了规划器必须做出的决策数量。Mann、Mannor和普雷库普分析了带选项的拟合值迭代，发现持续时间更长的选项和悲观的值函数估计都能带来更快的收敛；即使选项次优且在状态空间中分布稀疏，也能改善收敛。他们基于地标的变体LAVI仅在部分地标状态上表示值函数。<sup>[6](https://cris.technion.ac.il/en/publications/approximate-value-iteration-with-temporally-extended-actions-3/)</sup>

该框架也已从最初的折扣设定扩展到平均奖励MDP，出现了收敛的离策略选项间学习算法、针对值和模型的选项内算法，以及基于采样的规划变体。<sup>[12](https://arxiv.org/abs/2110.13855)</sup>

## 在分层强化学习框架中的地位

在分层强化学习中，选项构成三大经典主干之一，三者对“结构从何而来”给出了不同回答。选项/SMDP方法学习一个选项上的策略，选项本身往往由人工给定；MAXQ（Dietterich，2000）依据程序员指定的任务图对值函数进行递归分解；而封建式或目标条件式方法（从Dayan和Hinton 1993年的工作，到FeUdal Networks和HIRO）由管理者为工作者设定目标，端到端学习。<sup>[2](https://www.reinforcement-learning.com/kb/hierarchical-rl)</sup> 与选项和HAM不同，MAXQ框架不将原始MDP归约为一个SMDP。<sup>[13](https://onlinelibrary.wiley.com/doi/10.1155/2010/659432)</sup> 一篇分层强化学习综述将选项描述为其中较为通用的方法，允许抽象被半自动地发现和学习，而非完全依赖专家知识。<sup>[14](https://www.mdpi.com/2504-4990/4/1/9)</sup>

这一文献中反复出现两个未决的工程问题。端到端地学习选项，包括将终止条件与选项上的策略一同学习，需要额外研究才能稳定；其中一条应对思路是构建任意深度的层级，其中高层选项由时间分辨率更细的低层选项组成。<sup>[14](https://www.mdpi.com/2504-4990/4/1/9)</sup><sup> • </sup><sup>[15](https://arxiv.org/abs/1810.11583)</sup>

## 应用

选项已被应用于机器人学与控制领域。它们可作为机器人技能单元的模型，该框架为利用这些技能进行学习和规划提供了方法。<sup>[16](https://www.researchgate.net/publication/224333374_Sensorimotor_Abstraction_Selection_for_Efficient_Autonomous_Robot_Skill_Acquisition)</sup> 在长时程机器人操作中，分解为子目标或技能的分层结构是反复出现的架构原型之一，而“选项框架”和“技能链”是该文献的标准检索词。<sup>[17](https://link.springer.com/article/10.1007/s44430-026-00037-1)</sup> 近来，诸如DOPPLER之类的分层生成系统将以线性时序逻辑指定的时序任务分解为从离线非专家数据集中学习到的选项链，展示了该框架在机器人导航与操作中的持续应用。<sup>[18](https://arxiv.org/abs/2410.02389)</sup>

## References

1. [Sutton, Precup, Singh (1999). Between MDPs and semi-MDPs: A framework for temporal abstraction in reinforcement learning. CiteSeerX PDF.](https://citeseerx.ist.psu.edu/document?doi=c18e730eb03ed8a49acbcee9b5e95948892a4bbd&repid=rep1&type=pdf)
2. [Hierarchical Reinforcement Learning, reinforcement-learning.com knowledge base](https://www.reinforcement-learning.com/kb/hierarchical-rl)
3. [Section 26.2: The options framework, Building Embodied AI](https://embodiedbook.icsgen-ai.org/part-5-learning-from-demonstration-and-robot-data/module-26-skills-hierarchy-and-task-decomposition/section-26.2.html)
4. [Constructing Temporally Extended Actions through Incremental Community Detection, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC5937602/)
5. [Section 26.5: Hierarchical RL and Temporal Abstraction, Building Temporal AI](https://temporalbook.icsgen-ai.org/part-6-sequential-decision-making/module-26-advanced-rl/section-26.5.html)
6. [Mann, Mannor, Precup (2015). Approximate value iteration with temporally extended actions. Journal of Artificial Intelligence Research 53, 375-438.](https://cris.technion.ac.il/en/publications/approximate-value-iteration-with-temporally-extended-actions-3/)
7. [Creating and Using Options, Brown University BURL tutorial](https://cs.brown.edu/people/jmacglashan/oomdptbTutorial/options/p1.html)
8. [Probabilistic inference for determining options in reinforcement learning, Machine Learning (Springer)](https://doi.org/10.1007/s10994-016-5580-x?urlappend=%3Futm_source%3Dresearchgate.net%26utm_medium%3Darticle)
9. [Flexible Option Learning, arXiv:2112.03097](https://arxiv.org/abs/2112.03097)
10. [Dynamic Option Creation in Option-Critic Reinforcement Learning, OpenReview PDF](https://openreview.net/pdf/a330d7acfb88e840d99b6c63e626ea80a3f794ca.pdf)
11. [Learning Options End-to-End for Continuous Action Tasks, Lacuna](https://lacuna.tiptreesystems.com/work/learnings-options-end-to-end-for-continuous-action-tasks/wrk_71fec7aaa4cb9f6ec04ad531cb4ebb42)
12. [Average-Reward Learning and Planning with Options, arXiv:2110.13855](https://arxiv.org/abs/2110.13855)
13. [Daoui (2010). Exact Decomposition Approaches for Markov Decision Processes: A Survey. Advances in Operations Research.](https://onlinelibrary.wiley.com/doi/10.1155/2010/659432)
14. [Hierarchical Reinforcement Learning: A Survey and Open Research Challenges, MDPI Machine Learning and Knowledge Extraction 4(1)](https://www.mdpi.com/2504-4990/4/1/9)
15. [Learning Abstract Options, arXiv:1810.11583](https://arxiv.org/abs/1810.11583)
16. [Sensorimotor Abstraction Selection for Efficient, Autonomous Robot Skill Acquisition, ResearchGate](https://www.researchgate.net/publication/224333374_Sensorimotor_Abstraction_Selection_for_Efficient_Autonomous_Robot_Skill_Acquisition)
17. [A scoping review of reinforcement learning methods for long horizon robotic manipulation, Discover Robotics (2026)](https://link.springer.com/article/10.1007/s44430-026-00037-1)
18. [Diffusion Meets Options: Hierarchical Generative Skill Composition for Temporally-Extended Tasks, arXiv:2410.02389](https://arxiv.org/abs/2410.02389)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Foundation-model methods and training › Reinforcement learning and world models

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/options-framework

English original: https://www.edgepedia.org/options-framework
