The Options Framework is a formalism for temporal abstraction in reinforcement learning (RL), where an option is a temporally extended action consisting of three components: an initiation set (states where the option can start), an internal policy (the sequence of primitive actions to execute), and a termination condition (a probability of stopping in each state). This framework allows an agent to operate at a higher level of planning, treating complex skills as building blocks within a Semi-Markov Decision Process (SMDP). It is foundational for hierarchical reinforcement learning, enabling more efficient exploration and long-horizon task decomposition.
Glossary
Options Framework

What is the Options Framework?
The Options Framework is a formal method for introducing temporal abstraction into reinforcement learning, enabling agents to plan and execute extended sequences of actions as single, reusable units.
By grouping primitive actions into options, agents can learn macro-actions that persist over multiple time steps, dramatically improving sample efficiency and planning scalability. The framework connects closely with skill discovery and intrinsic motivation, where options can be learned to represent useful subroutines. In robotics and embodied AI, options correspond to reusable motion primitives or behavioral modules. The formalism generalizes standard RL, as primitive actions are simply one-step options, and provides a mathematical bridge to hierarchical task and motion planning.
The Three Components of an Option
An option is a formal abstraction for a temporally extended action in reinforcement learning. It is defined by three core components that enable hierarchical planning and skill reuse.
Initiation Set
The initiation set defines the set of states from which an option can be started. It is a subset of the environment's state space, often denoted as I ⊆ S. This component determines when a temporally extended skill is available for execution.
- Formal Role: Acts as a precondition or gating function.
- Example: For a robot's 'open door' option, the initiation set includes states where the robot is near a closed door and its gripper is empty.
- Key Property: If the agent is not in a state within the initiation set, the option cannot be invoked, ensuring actions are contextually appropriate.
Internal Policy
The internal policy (π) is the strategy that dictates which primitive action to take at each step while the option is executing. It maps from states within the option's scope to primitive actions (a ∈ A).
- Formal Role: The 'how' of the option—the sequence of low-level controls.
- Example: For a 'navigate to kitchen' option, the internal policy would be a mapping from sensor inputs (lidar, camera) to wheel velocities.
- Key Property: This policy is followed until the termination condition is met, abstracting away a potentially long sequence of primitive actions into a single decision point.
Termination Condition
The termination condition (β) is a function that specifies the probability of the option terminating in any given state. It defines when the temporally extended action is considered complete, returning control to a higher-level policy.
- Formal Role: β(s) → [0,1], where β(s) is the probability of terminating upon entering state
s. - Example: For the 'pick up cup' option, β(s) = 1.0 when the cup is securely in the gripper, and 0.0 otherwise.
- Key Property: Provides temporal abstraction; the agent commits to the option's internal policy until β indicates termination, enabling planning over longer time horizons.
Semi-Markov Property
A critical feature of the options framework is that an option, once initiated, executes until termination independent of the higher-level policy that selected it. This is known as the semi-Markov property.
- Formal Implication: The future after an option is chosen depends only on the current state, not the history of states and actions within the option.
- Benefit: This property allows options to be treated as single, indivisible actions at a higher level of abstraction, enabling the use of standard MDP solution methods (like value iteration) over the new action set of options.
Relation to Hierarchical RL
Options are the foundational building block for Hierarchical Reinforcement Learning (HRL). By grouping primitive actions, they create a hierarchy of policies.
- Two-Tier Learning: A meta-policy (or manager) learns to select among options, while each option's internal policy (or controller) learns the low-level skill.
- Skill Reuse: Learned options can be transferred across different but related tasks, dramatically improving sample efficiency.
- Planning Abstraction: In algorithms like Option-Critic, policies over options and intra-option policies can be learned end-to-end via gradient descent.
Example: Mobile Robot Task
Consider a mobile robot in a warehouse. Its primitive actions are small wheel movements. Using the options framework, we can define:
-
Option 1: 'Traverse Corridor'
- Initiation Set: States where robot is at a corridor entrance.
- Internal Policy: Follow the center line using visual servoing.
- Termination Condition: β(s)=1.0 when the robot's GPS coordinates match the corridor's end.
-
Option 2: 'Avoid Dynamic Obstacle'
- Initiation Set: States where a moving person is detected within 2 meters.
- Internal Policy: A reactive policy to steer away and stop.
- Termination Condition: β(s)=1.0 when the path is clear again.
A high-level planner can now sequence 'Traverse Corridor' and 'Avoid Dynamic Obstacle' as single actions, making long-horizon navigation tractable.
How the Options Framework Works
The options framework is a formal method for introducing temporal abstraction into reinforcement learning, enabling agents to plan and learn over extended sequences of actions.
The options framework formalizes temporally extended actions, called options, each defined by an initiation set (states where it can start), an internal policy (the sequence of primitive actions to execute), and a termination condition (a probability of stopping in each state). This abstraction allows an agent to operate at a higher level, treating complex skills as single, macro-level decisions within a semi-Markov Decision Process (SMDP). It is a cornerstone for hierarchical reinforcement learning, enabling more efficient exploration and long-horizon planning.
By grouping primitive actions into reusable skills, the framework significantly improves sample efficiency and facilitates transfer learning. Options can be pre-defined by a domain expert or discovered autonomously through intrinsic motivation or skill discovery algorithms. When integrated with planning algorithms like SMDP Q-learning, an agent learns a policy over options, deciding which extended skill to invoke next. This hierarchical structure is fundamental to scaling reinforcement learning to complex, real-world tasks in robotics and embodied AI.
Options vs. Primitive Actions
A comparison of temporally extended actions (options) and atomic actions within the options framework, highlighting their structural properties and use cases in hierarchical reinforcement learning.
| Feature | Primitive Action | Option |
|---|---|---|
Definition | An atomic, indivisible command executed by an agent in a single timestep. | A temporally extended action consisting of an internal policy, initiation set, and termination condition. |
Temporal Scope | Single timestep | Multiple timesteps (variable length) |
Formal Components | Action (a) from action space A. | Initiation set I ⊆ S, internal policy π: S → A, termination condition β: S → [0,1]. |
Planning Granularity | Low-level, direct control. | High-level, abstracts a subtask or skill. |
Termination | Always terminates after one timestep. | Stochastically terminates based on condition β(s). |
Initiation | Available in any state where the action is defined. | Only available in states within the initiation set I. |
Sample Efficiency | Lower; requires learning at the finest timescale. | Higher; can propagate reward over longer sequences. |
Common Use Case | Direct motor control (e.g., joint torque, button press). | Executing reusable skills (e.g., 'navigate to door', 'pick up object'). |
Examples and Applications
The Options Framework provides a formal language for hierarchical reinforcement learning. These cards illustrate its core mechanisms and practical applications in robotics, gaming, and complex planning.
Hierarchical Robot Navigation
A mobile robot uses options to decompose a high-level navigation task. Instead of learning a single policy from pixels to motor torques, it learns reusable sub-policies (options).
- Navigate to Kitchen: Initiation set is any location; internal policy uses visual SLAM; termination condition is proximity to the counter.
- Open Door: Initiation set is near a door; internal policy controls the gripper; termination condition is door angle > 45 degrees.
This abstraction allows the high-level planner to sequence
[Navigate to Kitchen, Open Door, Navigate to Counter], reusing skills across different missions.
Skill Discovery in Atari
In complex environments like Montezuma's Revenge, options can be discovered automatically to represent meaningful skills.
- Option Discovery: Algorithms like Option-Critic or DIAYN (Diversity is All You Need) learn options that correspond to distinct behaviors (e.g., 'climb a ladder', 'collect a key') without explicit human labeling.
- Temporal Abstraction: The agent learns an option's internal policy and termination condition. The high-level policy then selects among these discovered options, drastically improving exploration and sample efficiency by committing to coherent sequences of primitive actions.
Semi-Markov Decision Process (SMDP)
The Options Framework formally casts hierarchical RL as a Semi-Markov Decision Process (SMDP). An SMDP generalizes an MDP by allowing actions (now options) to take a variable amount of time.
- Key Formalism: The value function for an option is defined over states where the option can be initiated. The Bellman equation is extended to account for the cumulative reward and time elapsed during the option's execution.
- Planning Benefit: This allows the use of standard RL algorithms (like Q-learning) at the option level, treating each option as a single, temporally extended action in a new, abstracted SMDP.
The Option-Critic Architecture
A foundational end-to-end gradient-based method for simultaneously learning options and the policy over them.
- Two-Level Gradient: The architecture computes gradients for both the intra-option policies (how to execute the option) and the termination functions (when to stop the option), all in service of maximizing the overall task reward.
- On-Policy Learning: It learns options specialized for the current task without pre-defining subgoals. This demonstrates how useful temporal abstractions can emerge directly from the reward signal, validating the framework's utility for autonomous skill formation.
Integration with Planning Algorithms
Options provide natural subgoals for planning algorithms like Monte Carlo Tree Search (MCTS) or Model-Predictive Control (MPC).
- Abstract Search Tree: Instead of expanding a search tree with primitive actions at every node, the planner expands with options. Each node now represents executing a skill for multiple timesteps.
- Efficient Planning: This dramatically reduces the depth and breadth of the search tree, enabling longer-horizon reasoning. In a learned world model, rolling out option sequences provides more coherent and informative simulated trajectories than rolling out random primitive actions.
Bridging Imitation and Reinforcement Learning
Options offer a structured way to incorporate expert demonstrations into RL.
- Expert Segments as Options: Demonstrated trajectories can be segmented into chunks that define option policies. The initiation set is the state where the expert began the segment, and termination is the state where they ended it.
- Hybrid Learning: The agent can use these expert-derived options as a robust starting point. Its high-level policy learns to sequence them, and its low-level policies can refine the option execution via RL. This is particularly powerful in robotic manipulation, where safe, sensible skills are bootstrapped from demonstration.
Frequently Asked Questions
The options framework is a formalism for temporal abstraction in reinforcement learning, enabling agents to plan and act over extended time horizons. These FAQs address its core mechanisms, applications, and relationship to other planning concepts.
The options framework is a formalism for temporal abstraction in reinforcement learning, where an option is a temporally extended action consisting of three components: an initiation set (states where the option can start), an internal policy (the sequence of primitive actions to execute), and a termination condition (a probability of stopping in each state).
It allows an agent to operate at a higher level of planning by treating frequently used sequences of primitive actions as single, reusable macro-actions. This abstraction reduces the effective horizon of a planning problem, making complex, long-horizon tasks computationally more tractable. The framework integrates seamlessly with standard reinforcement learning algorithms like Semi-Markov Decision Processes (SMDPs), where options are treated as actions with variable durations.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
The Options Framework is a core formalism for temporal abstraction. These related concepts define the mathematical structures, learning algorithms, and planning methods that enable agents to operate over extended time horizons.
Semi-Markov Decision Process (SMDP)
A Semi-Markov Decision Process (SMDP) is the mathematical model underlying the Options Framework. It generalizes a standard MDP by allowing actions (now called options) to take a variable amount of time to complete.
- Formalization: An option's execution is a single, temporally extended action within the SMDP.
- Components: The SMDP defines a reward and transition probability for the entire duration of an option, not just a single timestep.
- Solution Methods: Value functions and optimality equations can be defined over options, enabling planning and learning at the abstract level.
Initiation Set
The initiation set is a core component of an option, defining the set of states from which the option can be invoked. It enforces the precondition for using a temporally extended skill.
- Function: Determines where a specific skill or subroutine is applicable.
- Example: A
pick-up-cupoption might only be initiated in states where a cup is within the agent's reach. - Learning: Can be learned from data or specified by a designer. A poorly defined initiation set can lead to the agent attempting skills in invalid states.
Termination Condition
The termination condition of an option is a function that determines, at each state, the probability that the option terminates. It defines the postcondition or stopping criterion for the extended action.
- Role: Signals when control should be returned to a higher-level policy to select a new option.
- Types: Can be deterministic (e.g., terminate upon reaching a goal region) or stochastic.
- Critical for Composition: Well-defined termination conditions allow options to be reliably sequenced to accomplish complex tasks.
Intra-Option Policy
The intra-option policy is the low-level, primitive-action policy that is executed while an option is active. It maps states encountered during the option's execution to primitive actions.
- Scope: Operates only from initiation until termination of its option.
- Learning: Can be learned using any standard RL algorithm, with the option providing the task context.
- Abstraction: This policy is hidden from the higher-level agent, which only sees the option as a single, abstract choice.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us