Compositional Planning with Jumpy World Models
Abstract
The ability to plan with temporal abstractions is central to intelligent decision-making. Rather than reasoning over primitive actions, we study agents that compose pre-trained policies as temporally extended actions, enabling solutions to complex tasks that no constituent alone can solve. Such compositional planning remains elusive as compounding errors in long-horizon predictions make it challenging to estimate the visitation distribution induced by sequencing policies. Motivated by the geometric policy composition framework introduced in Thakoor et al. (2022), we address these challenges by learning predictive models of multi-step dynamics — so-called jumpy world models — that capture state occupancies induced by pre-trained policies across multiple timescales in an off-policy manner. Building on Temporal Difference Flows (Farebrother et al., 2025), we enhance these models with a novel consistency objective that aligns predictions across timescales, improving long-horizon predictive accuracy. We further demonstrate how to combine these generative predictions to estimate the value of executing arbitrary sequences of policies over varying timescales. Empirically, we find that compositional planning with jumpy world models significantly improves zero-shot performance across a wide range of base policies on challenging manipulation and navigation tasks, yielding, on average, a 200% relative improvement over planning with primitive actions on long-horizon tasks.
Motivation
Pre-trained foundation policies can solve many short-horizon skills zero-shot, yet struggle on complex, long-horizon tasks where no single constituent policy suffices. Traditional hierarchical RL addresses this by learning task-specific high-level policies over options or subgoals, while standard model-predictive control plans over primitive actions—where compounding one-step prediction errors rapidly degrade long-horizon rollouts.
This work reframes pre-trained policies as composable planning primitives. By learning a single jumpy world model conditioned on both policy identity and discount factor , an agent can predict where any policy will lead across a continuum of timescales and dynamically sequence behaviors at test time to solve novel long-horizon tasks without task-specific training or online fine-tuning.

Figure 1. Jumpy world model predictions during multi-cube manipulation (cube-4-task-5): translucent robots and cubes visualize multi-step GHM successor-state samples from the first policy in the planned geometric switching sequence as the arm stacks four cubes sequentially.
Method
Geometric Switching Policies
Given a repertoire of pre-trained policies , a Geometric Horizon Model (GHM) models each policy’s normalized successor measure —the state distribution at a geometrically distributed halting time with continuation probability . Any policy’s action-value function then takes the simple expectation form:
To sequence multiple behaviors, we consider Geometric Switching Policies (GSPs) of the form , where each phase continues with probability or transitions to with probability (and the final policy is absorbing, ). Combining global discounting with per-phase switching yields effective phase discount factors and phase mixture weights:
Our main decomposition result (Theorem 1 and Lemma 1) shows that splits into an -component mixture whose components share sequential structure. Starting from , chaining jumpy samples with produces an unbiased Monte Carlo estimator of the composite policy’s return:
Varying the switching probabilities unifies previously separate planning paradigms under one model: setting recovers action-level MPC (ActionPlan), with recovers Generalized Policy Improvement (GPI), fixed recovers Geometric GPI (GGPI), and distinct gives CompPlan.
Temporal Difference Horizon Consistency
Following Temporal Difference Flows (TD-Flow), we parameterize the GHM as a conditional flow-matching U-Net trained off-policy on offline datasets. Learning accurately across a continuum of horizons is difficult because variance and bootstrapping bias grow rapidly as .
To stabilize long-horizon predictions, we derive a cross-horizon Bellman identity linking any two discount factors :
where and . Extending TD-Flow to this identity yields the Temporal Difference Horizon Consistency (TD-HC) objective, which bootstraps long-horizon predictions from shorter-horizon jumps (recovering standard TD-Flow when ). Applying the consistency term () to a small fraction of each mini-batch (25% in antmaze, 12.5% in cube) aligns predictions across timescales without compounding self-sampling bias.

Figure 2. Long-horizon generative fidelity on antmaze-giant: while TD-Flow and TD-HC perform comparably at γ = 0.99 (~100 steps), TD-HC accurately tracks the ground-truth corridor occupancy out to γ = 0.998 (~500 steps) and suppresses wall-crossing artifacts.
Compositional Planning via Random Shooting
At test time, CompPlan solves via random shooting using the GHMs themselves to propose candidate subgoal sequences:
- Goal-conditioned proposal (used in
antmaze, 256 sequences): chains samples from the goal-conditioned GHM starting from to propose plausible waypoints toward the target goal . - Unconditional proposal (used in
cube, 1024 sequences): chains samples from an unconditional behavior-policy GHM (trained jointly by masking on 10% of updates), naturally covering diverse multi-object pick-and-place paths.
Each candidate switching policy is evaluated with the unbiased Monte Carlo estimator , and the agent executes the highest-value initial action and policy before replanning.
Key Results
Experiments are conducted on 7 long-horizon OGBench domains—antmaze-{medium,large,giant} and cube-{1,2,3,4} (35 tasks total)—using five diverse offline goal-conditioned base policy families: Contrastive RL (CRL), Goal-Conditioned 1-Step RL (GC-1S), Goal-Conditioned Behavior Cloning (GC-BC), Goal-Conditioned TD3 (GC-TD3), and Hierarchical Flow Behavior Cloning (HFBC).
Zero-Shot Gains Across Base Policies
Across all domains and policy classes, CompPlan consistently matches or substantially improves upon zero-shot base policies—revealing that even policies with very weak zero-shot long-horizon performance can become highly effective when composed:
- On multi-cube manipulation,
GC-BCjumps from 9% to 92% oncube-3and 0% to 76% oncube-4;GC-1Sclimbs from 1% to 60% oncube-4, andGC-TD3climbs from 0% to 57%. - On
antmaze-giant,CompPlanboostsHFBCfrom 42% to 79% andCRLfrom 16% to 29%, while also unlocking strongCRLmanipulation performance (1% to 73% oncube-3and 0% to 39% oncube-4).
Comparison to Planning and Hierarchical Baselines
Comparing against special cases powered by the exact same flow-matching U-Net architecture confirms that both temporal abstraction and multi-step composition are essential: across long-horizon domains, CompPlan yields a 201% average relative improvement over one-step ActionPlan and an 89% average relative improvement over single-policy GPI.

Figure 3. Percentage-point gains over zero-shot policies on long-horizon OGBench domains: compositional planning (CompPlan) substantially outperforms one-step world-model planning (ActionPlan) and Generalized Policy Improvement (GPI) across all five base policy classes.
Against state-of-the-art hierarchical RL baselines trained explicitly for subgoal selection (HIQL and SHARSA), test-time CompPlan (with HFBC base policies) achieves the strongest overall results, with the widest gaps on the hardest long-horizon tasks:
| Domain | HIQL | SHARSA | HFBC | CompPlan |
|---|---|---|---|---|
antmaze-medium | 0.96 | 0.91 | 0.94 | 0.94 |
antmaze-large | 0.91 | 0.88 | 0.78 | 0.92 |
antmaze-giant | 0.65 | 0.56 | 0.42 | 0.79 |
cube-1 | 0.15 | 0.70 | 0.84 | 0.97 |
cube-2 | 0.06 | 0.60 | 0.70 | 0.77 |
cube-3 | 0.03 | 0.50 | 0.54 | 0.83 |
cube-4 | 0.00 | 0.09 | 0.34 | 0.67 |
Horizon Consistency Analysis
Evaluating generative fidelity via Earth Mover’s Distance (EMD) at shows that TD-HC systematically improves predictive accuracy across every domain—cutting EMD by 28% on antmaze-giant with GC-1S (from 7.29 down to 5.25) and by 15% with CRL (6.77 to 5.74). Downstream OGBench planning success improves more modestly (+5% relative on average) because per-phase planning horizons sit in a moderate range (, roughly 50–100 steps) where base TD-Flow already ranks candidate plans accurately—highlighting that horizon consistency provides a critical safety margin as planning scales to even longer horizons.
Citing
To cite this paper, please use the following reference:
@inproceedings{farebrother26compositional,
title = {Compositional Planning with Jumpy World Models},
author = {
Farebrother, Jesse and Pirotta, Matteo and Tirinzoni, Andrea and
Bellemare, Marc G. and Lazaric, Alessandro and Touati, Ahmed
},
year = 2026,
booktitle = {International Conference on Machine Learning (ICML)},
url = {https://arxiv.org/abs/2602.19634},
}