Inferensys

Glossary

Options Framework

The Options Framework is a formalism for temporal abstraction in reinforcement learning, where an 'option' is a temporally extended action defined by an initiation set, internal policy, and termination condition.
Governance lead reviewing model governance framework on laptop, policy documents visible, executive office setup.
REINFORCEMENT LEARNING

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.

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.

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.

OPTIONS FRAMEWORK

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.

01

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.
02

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.
03

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.
04

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.
05

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.
06

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.

TEMPORAL ABSTRACTION IN REINFORCEMENT LEARNING

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.

TEMPORAL ABSTRACTION IN REINFORCEMENT LEARNING

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.

FeaturePrimitive ActionOption

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').

TEMPORAL ABSTRACTION IN ACTION

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.

01

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.
10-100x
Faster High-Level Planning
02

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.
03

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.
04

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.
05

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.
06

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.
OPTIONS FRAMEWORK

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.

Prasad Kumkar

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.