VOPP

The Vectorized Online POMDP Planner: the whole search is batched tensor operations over a flat belief tree, with no Python loop per simulation and no host/device synchronization inside a planning step. Instead of interleaving optimization with estimation, VOPP solves its value function analytically — a log-sum-exp over action preferences — and leaves only the expectations to Monte Carlo.

It does not take an Environment. It takes a vectorized generative model and the number of actions, and the episode loop is driven by VOPPEpisodeRunner.

Notes

  • Original paper: Hoerger, M., Sudrajat, M., & Kurniawati, H. (2026). Vectorized Online POMDP Planning. arXiv:2510.27191. https://arxiv.org/abs/2510.27191

  • Needs PyTorch. It runs on CPU, but its speed comes from stepping every particle in one batched tensor call, which pays off on a GPU with a model that steps batches of particles.

  • Not in the policy registry, and it is not a Policy subclass — its entry point is plan(), not action().

Can I use?

Discrete

Continuous

State

✔️

✔️

Action

✔️

❌

Observation

✔️

❌

Also supports

Cost constraints

❌

GPU

✔️

Example

The example plans one step of Continuous Light-Dark through its vectorized model. The belief is a tensor of state particles, all at (2, 2) here.

import torch
from POMDPPlanners.environments.light_dark_pomdp.continuous_light_dark_pomdp import (
    ContinuousLightDarkPOMDP,
)
from POMDPPlanners.environments.light_dark_pomdp.continuous_light_dark_vectorized_model import (
    ContinuousLightDarkVectorizedModel,
)
from POMDPPlanners.planners.vectorized_planners import VOPPPlanner

torch.manual_seed(0)
env = ContinuousLightDarkPOMDP(discount_factor=0.95, is_obstacle_hit_terminal=False)
model = ContinuousLightDarkVectorizedModel(env, device=torch.device("cpu"))

planner = VOPPPlanner(
    model,
    num_actions=model.num_actions,
    num_particles=256,
    max_depth=5,
    num_planning_iterations=8,
    discount_factor=0.95,
)

root_particles = torch.tensor([[2.0, 2.0]]).repeat(256, 1)  # [n, state_dim]
action = planner.plan(root_particles)  # an index in [0, num_actions)

Parameters

class POMDPPlanners.planners.vectorized_planners.vopp.vopp.VOPPPlanner(model, num_actions, *, temperature=2.0, num_particles=1000, max_depth=10, discount_factor=0.95, num_planning_iterations=100, value_heuristic=None, belief_capacity=1024, action_capacity=1024, value_dtype=torch.float32)[source]

Bases: object

Fully vectorized online POMDP planner (VOPP / PORPP).

The planner owns a VectorizedBeliefTree and repeatedly expands and backs it up entirely with batched tensor operations. A single call to plan() samples particles from the supplied root belief, runs the configured number of forward-search / preference-backup iterations, and returns the greedy root action.

Parameters:
  • model (VectorizedGenerativeModel)

  • num_actions (int)

  • temperature (float)

  • num_particles (int)

  • max_depth (int)

  • discount_factor (float)

  • num_planning_iterations (int)

  • value_heuristic (Callable[[Tensor], Tensor] | None)

  • belief_capacity (int)

  • action_capacity (int)

  • value_dtype (dtype)

device

Device every tensor lives on (taken from the model).

num_actions

Size of the fixed representative action set.

Example

See the module-level docstring for a runnable example.

plan(root_particles)[source]

Plan from a particle-set root belief and return the greedy action.

The tree is cleared, then num_planning_iterations forward-search / preference-backup passes refine the root action preferences. The action with the highest root preference is returned.

Parameters:

root_particles (Tensor) – [num_root_particles, ds] states representing the current belief; iterations resample num_particles of them with replacement.

Return type:

int

Returns:

The index of the greedy root action in [0, num_actions).

Raises:

ValueError – If root_particles is not a 2-D tensor on the planner’s device.

property tree: VectorizedBeliefTree

The belief tree built by the most recent plan() call.

tree_metrics()[source]

Root-tree analysis metrics for the most recent plan() call.

Returns the same TreeMetrics set the MCTS planners report (root action visit min / max / entropy, number of root actions, root visit count, max depth, leaf flag), making VOPP directly comparable to them.

Return type:

List[PolicyInfoVariable]

Returns:

A list of PolicyInfoVariable describing the current tree.