arXiv 2026CoLaPLatent world models

Contingency Planning with Latent World Models under Irreversible Outcomes

  • Abdul Monaf Chowdhury1
  • Syed Nazmus Sakib1
  • Ahanaf Hasan Ariq2
  • Chandak Chakma1
  • Nafiul Haque1
  • Shifat E. Arman3
  • Md Mehedi Hasan1
  • 1University of Dhaka
  • 2Daffodil International School
  • 3University of Oxford
TL;DR

Latent world models plan by predicting where each action leads, and their planners judge a plan by one predicted future and its latent distance to the goal. When the world is stochastic and some outcomes cannot be undone, that score hides the risk: the prediction averages the fall away, the distance cannot tell a stranded agent from one that will arrive, and a fixed action sequence cannot react to what the agent sees. CoLaP scores each plan by its expected time to the goal instead. It samples several futures, prices them with a learned asymmetric time-to-goal, and lets the plan branch on future observations, on top of a frozen world model and from reward-free offline data.

66.8%
Average success on 9 stochastic navigation, reaching and manipulation tasks
+6.8 over next best
+21.4pts
Over LeWM's published planner, on the same frozen world model
+47% relative
6of 6
Navigation and reaching tasks where CoLaP is best or tied for best
0labels
No rewards and no failure labels. Irreversibility is learned from the data.
Four panels. Possible futures of crossing an ice patch, some falling through; the world model's single prediction, the mean, which shows no fall; a planner on that prediction crossing and falling; and CoLaP's futures going around the ice.

Figure 1. The mean trap. (a) A plan that crosses the ice has two outcomes: the agent crosses, or it falls through and can no longer reach the goal \(g\). Trained with squared error, the world model predicts the mean of these futures, which matches neither and shows no fall. (b) A planner that scores this one predicted future crosses the ice and falls in some episodes. CoLaP samples several futures, scores them by their expected time to the goal, and goes around.

Background

Planning inside a learned latent space

The setting is goal-conditioned control from pixels, fully offline and reward-free. The agent gets a dataset of image trajectories with their actions, no rewards, and no further access to the environment. At test time it starts from an observation \(o_1\), receives a goal image \(o_g\), and succeeds if it reaches the goal before the episode ends. Every action \(a_t\) is a chunk of five consecutive environment actions, so one planning step covers five control steps.

A latent world model predicts the future in a learned embedding space instead of in pixels. It has an encoder and a predictor:

\[ z_t = \mathrm{enc}_\theta(o_t), \qquad \hat z_{t+1} = \mathrm{pred}_\phi(z_t, a_t) \]
latent world model

CoLaP builds on LeWorldModel (LeWM; Maes et al., 2026), which trains both networks end to end from pixels and plans far faster than world models built on foundation-model features:

\[ \mathcal{L}_{\text{LeWM}} = \lVert \hat z_{t+1} - z_{t+1} \rVert_2^2 + \lambda\, \mathrm{SIGReg}(Z) \]
LeWM loss

The first term pulls each prediction toward the true next embedding, and SIGReg pushes the embeddings toward an isotropic Gaussian so they cannot collapse. One LeWM is trained per task and then kept frozen. To plan, the predictor rolls out a candidate sequence of \(H\) chunks from \(\hat z_1 = \mathrm{enc}_\theta(o_1)\), feeding back its own predictions, and the planner compares the last prediction with the goal embedding \(z_g = \mathrm{enc}_\theta(o_g)\):

\[ a^*_{1:H} = \arg\min_{a_{1:H}}\ \lVert \hat z_{H+1} - z_g \rVert_2^2 \]
latent planning

The Cross-Entropy Method (CEM) solves this by sampling plans from a Gaussian, scoring them, and refitting the Gaussian to the best ones. The agent executes the first few chunks, observes the result and replans, as in model predictive control. Each plan is scored by a single predicted future and its distance to the goal.

The problem

When some outcomes cannot be undone

In a stochastic environment the same action chunk can lead to several outcomes, and some of them are irreversible. An agent crossing thin ice may fall through, and a pushed block may slip into a pit. Once that happens, the goal is out of reach.

So a policy should be judged by its expected time to the goal. Let \(\tau \le L\) be the number of chunks the agent takes to reach the goal, where \(L\) is the episode length and \(\tau = L\) if the agent never arrives:

\[ \min_\pi\ \mathbb{E}_\pi[\tau], \qquad a_t \sim \pi(\cdot \mid o_{1:t}, o_g) \]
expected time to goal

The expectation runs over the stochastic transitions of the environment. An irreversible failure sets \(\tau = L\), so it costs the whole episode. Two small examples show what this objective asks for.

Example 1Ice

The direct path to the goal takes 10 chunks and crosses a patch of ice. Halfway, the agent falls through with probability 0.5 and is stuck for the rest of the episode, so \(\tau = L = 50\). The direct path takes \(0.5 \cdot 10 + 0.5 \cdot 50 = 30\) chunks in expectation, while a detour around the ice takes 20. The detour is better.

Example 2Locked door

Two doors lead to the goal in 10 chunks each, and one of them is locked at random. Picking the locked door costs 8 more chunks to walk to the other, so guessing takes \(0.5 \cdot 10 + 0.5 \cdot 18 = 14\) in expectation. A switch that shows which door is locked costs a 2-chunk detour, after which the agent walks straight to the open door in 12. Checking the switch is better.

InteractiveWhat each way of scoring a plan decides
Exact values for Examples 1 and 2, in action chunks
The ice crossing A direct path from the start to the goal crosses a patch of ice, where the agent can fall through. A longer detour arcs around the ice. The route CoLaP chooses is drawn solid. g 10 chunks falls with p = 0.50 detour · 20 chunks start

A fall strands the agent for the whole 50-chunk episode. Bars show what each score charges for the crossing, on a 0–50 chunk scale.

One predicted future: the mean shows no fall 10.0 chunks · crosses
Symmetric time-to-goal: a fall adds at most one chunk ≤ 10.5 chunks · crosses
Expected time to the goal, \((1-p)\cdot 10 + p\cdot 50\) (CoLaP) 30.0 chunks · goes around
The detour, under every score 20.0 chunks

One predicted future charges the crossing 10 chunks and the symmetric score at most 10.5. Both are below the 20-chunk detour, so both planners cross and fall in 50% of episodes. Averaged over outcomes the crossing costs 30 chunks, so CoLaP goes around.

The locked door A wall with two doors separates the start from the goal, and one door is locked at random. A switch below the start shows which one. The route a branching planner chooses is drawn solid. g start 10 chunks switch · +2 +8 if locked one locked, ½ each

Each door is 10 chunks from the start, and each is locked with probability ½. Bars use a 0–30 chunk scale.

Guess a door, \(10 + \tfrac12 w\) 14.0 chunks
Visit the switch as one action sequence sees it, \(s + 10 + \tfrac12 w\) 16.0 chunks
Check the switch, then choose (branching), \(s + 10\) 12.0 chunks

Checking the switch costs 12 chunks against 14 for a guess, so a branching plan looks first. One action sequence has to pick its door before it sees the switch, so to it the visit is 2 wasted chunks (16) and it guesses.

Three ways the latent planner fails

The planner of the previous section takes the ice and skips the switch, for three reasons.

Failure 1It sees one future

LeWM is trained with squared error, so it predicts the mean of the next embedding. On the ice, that mean lies between crossing and falling and matches neither, so the planner never sees the fall.

Fixed by sampled futures.

Failure 2It scores distance, not arrival

The latent distance measures how close the agent is to the goal, not whether it can still reach it. A fallen agent 5 chunks from the goal can score better than an agent 5 chunks into the detour, yet it never arrives.

Fixed by an asymmetric time-to-goal.

Failure 3One sequence for every future

A single action sequence cannot depend on which door the switch shows. So the visit to the switch looks like 2 wasted chunks, and the planner never checks.

Fixed by observation-conditioned branching.

The first failure is not something a better optimizer can fix. A planner that only sees the mean cannot tell a safe world from a risky one.

Theorem 1The mean trap

Call a planner mean-only if all it knows about the dynamics is the mean predictor \(m(z,a) = \mathbb{E}[z_{t+1} \mid z_t = z,\, a_t = a]\), whatever its cost, search budget or replanning. LeWM's planner is one, since its predictor learns \(m\). Let \(H \lt T \lt L\) and \(p \in (0,1)\). There are two environments \(M_1\) and \(M_2\) with the same \(m\), in both of which crossing reaches the goal in \(T\) chunks, and in \(M_2\) alone the crossing enters an irreversible outcome with probability \(p\). Every mean-only planner \(\Pi\) loses

\( G_{M_1}(\Pi) + G_{M_2}(\Pi) \,\ge\, \big\lfloor p\,(L - T)/2 \big\rfloor \)

chunks of expected time against the best policy, summed over the two environments. With an exact sampler, an exact time-to-goal and many futures, the planner that minimizes CoLaP's score has a zero gap in both.

Method

Score a plan by its expected time to the goal

All three failures have the same cause: the planner scores a plan as if the environment were deterministic. A plan should instead be scored by the expected time the agent needs to reach the goal, over all possible outcomes. That weighs every outcome by how often it happens, counts time instead of distance, and rewards looking first when it saves time later.

CoLaP estimates this score on top of a frozen LeWM, with one component for each failure. LeWM is never changed, and the two new networks are trained once per task from the same reward-free data.

  1. Sampled futuresA small sampler turns each prediction into a sample of the next embedding, so every plan gets \(K = 8\) futures and an irreversible outcome is no longer averaged away.
  2. An asymmetric time-to-goalA learned quasimetric replaces the latent distance. Falling in is short and getting out is long, so a fall no longer looks close to the goal.
  3. BranchingEach plan carries an alternative that the agent can switch to after it observes the outcome of the first chunks, so the plan can depend on what the agent will see.
Three panels. One predicted embedding between two clusters of outcomes, and samples that cover both; a latent distance map where a fall looks close to the goal, beside a time-to-goal map where entering the fall is short and leaving it is long; and one action sequence guessing a door, beside branching that checks a switch first.

Figure 2. The three components. (a) LeWM predicts one embedding \(\hat z\), the mean of two outcomes, and the sampler turns it into \(K\) samples \(\tilde z^{(k)}\) that cover both. (b) The cost of reaching \(g\) from each point, with a fallen agent on the ice. The latent distance places the fall close to \(g\), while the time-to-goal makes the way in short and the way out long. (c) Each colour is one lock state, and its path takes the door of its colour. One action sequence must guess a door, while branching checks the switch first.

1 · A cross-fitted future sampler

To see the risk on the ice, the planner needs futures that keep the outcomes apart. A small network \(g_\psi\) sits on top of the frozen predictor and turns each prediction into a sample, which is fed back into the predictor. For a plan \(a_{1:H}\) and noise \(\epsilon^{(k)}_t \sim \mathcal{N}(0, I)\), the \(k\)-th future starts from \(\tilde z^{(k)}_1 = \mathrm{enc}_\theta(o_1)\) and continues as

\[ \hat z^{(k)}_{t+1} = \mathrm{pred}_\phi\big(\tilde z^{(k)}_t,\, a_t\big), \qquad \tilde z^{(k)}_{t+1} = \hat z^{(k)}_{t+1} + g_\psi\big(\hat z^{(k)}_{t+1},\, \epsilon^{(k)}_t\big). \]
sampled futures

Every later prediction in a future builds on its earlier samples, and \(K\) independent noise sequences give \(K\) futures of the same plan. The sampler is trained with the energy score, a proper scoring rule:

\[ \mathcal{L}_{\text{ES}} = \mathbb{E}\big[\lVert \tilde z_{t+1} - z_{t+1} \rVert_2\big] - \tfrac12\, \mathbb{E}\big[\lVert \tilde z_{t+1} - \tilde z'_{t+1} \rVert_2\big], \]
energy score

where \(\tilde z_{t+1}\) and \(\tilde z'_{t+1}\) are two samples with independent noise for the same prediction from real frames. The first term pulls the samples toward the real outcome and the second pushes them apart. Its expectation is lowest only when the samples follow the true distribution of the next embedding, so \(g_\psi\) learns the distribution of LeWM's error, and the samples spread over the outcomes instead of sitting on the prediction.

Cross-fitting. LeWM's error is smaller on its own training data, which it saw for many epochs and can partly memorize, so a sampler trained there would underestimate the spread. LeWM and the sampler are therefore trained on disjoint episodes from the same behaviour policy: the sampler uses 5,000 episodes that LeWM never sees. Moments where a random outcome can happen next, such as an agent at the edge of the ice, are rare, so they are oversampled into half of every epoch. They are found from the logged position alone, never the outcome, so each window's outcome distribution stays unbiased. At planning time all CEM candidates share the same noise, so any difference between them comes from their actions and not from sampling luck.

2 · An asymmetric time-to-goal

A fallen agent can lie close to the goal, yet it never arrives. So the planner should score how soon a future reaches the goal, not how close it ends. CoLaP learns a time-to-goal \(d(z, z')\), the fewest action chunks needed to go from embedding \(z\) to \(z'\), and scores the \(k\)-th future of a plan, and the plan itself, as

\[ \begin{gathered} J^{(k)}(a_{1:H}) = \sum_{t=1}^{H} \min\big(d(\tilde z^{(k)}_{t+1}, z_g),\, 1\big) + d\big(\tilde z^{(k)}_{H+1}, z_g\big), \\[4pt] V(a_{1:H}) = \frac{1}{K} \sum_{k=1}^{K} J^{(k)}(a_{1:H}). \end{gathered} \]
time to the goal

The first term counts the chunks a future spends before it reaches the goal, and the second adds the chunks it still needs after the plan ends, about zero if it has already arrived. The average \(V\) estimates the expected time of the objective above, and the planner minimizes it in place of the latent distance.

For this to penalize a fall, \(d\) has to place a fallen agent far from the goal. Let the agent on the ice be at \(z\) and fall through, in one chunk, to \(z'\). Then \(d(z, z') \le 1\), while getting back out is impossible. A symmetric \(d\) cannot express that: it sets \(d(z', z) = d(z, z') \le 1\), and the triangle inequality gives

\[ d(z', z_g) \,\le\, d(z', z) + d(z, z_g) \,\le\, 1 + d(z, z_g). \]
why symmetry fails

With a symmetric \(d\), falling through the ice costs at most one extra chunk, although the fallen agent never reaches the goal. CoLaP's \(d\) is therefore a quasimetric, which obeys the triangle inequality but need not be symmetric, built as a metric residual network:

\[ d(z, z') = \lVert f(z) - f(z') \rVert_2 + \max_i\, \big[h_i(z) - h_i(z')\big]_+ \]
MRN quasimetric

Here \(f\) and \(h\) are two heads of one network and \([x]_+ = \max(x, 0)\). The first term is symmetric and the second is not, and both obey the triangle inequality, so \(d\) is a quasimetric for any weights. It is trained with quasimetric RL:

\[ \max_d\ \mathbb{E}_{z, z'}\big[\varphi(d(z, z'))\big] \quad \text{s.t.} \quad \mathbb{E}_{z_t, z_{t+1}}\big[[d(z_t, z_{t+1}) - 1]_+^2\big] \le \eta^2 \]
QRL objective

The objective pushes \(d\) up between random frames, and the constraint keeps it at most one chunk between consecutive frames of an episode. Because \(d\) obeys the triangle inequality, it then learns the fewest chunks between two frames in the data. \(\varphi\) flattens above a cap of \(C = 50\) chunks, so pairs that are already far apart are barely pushed further.

Proposition 1 · Corollary 1Irreversibility without labels

With exact constraints, every maximizer of the QRL objective equals \(d^\star(z, z') = \min\big(n(z, z'),\, C\big)\) on the pairs it samples, where \(n\) is the fewest one-chunk transitions in the data that lead from \(z\) to \(z'\). Now let \(A\) be a set of states, not containing the goal, that no transition in the data ever leaves. Then for every \(z' \in A\) and \(z \notin A\),

\( d^\star(z', z) = C \qquad \text{while} \qquad d^\star(z, z') \le 1 \text{ for every observed step into } A. \)

No episode recovers from a fall, so the step in stays short while nothing stops the way out from growing to the cap. The time-to-goal learns which outcomes are irreversible from the data alone, and the average over futures then weighs each one by how often it happens, so CoLaP needs no risk parameter.

The planner evaluates \(d\) on sampled embeddings, which lie near real embeddings but not exactly on them, and a network trained only on real embeddings can read such a small offset as several chunks. A second constraint, with its own multiplier, keeps small perturbations cheap in both directions:

\[ \mathbb{E}\big[[d(z + \xi, z) - \delta]_+^2 + [d(z, z + \xi) - \delta]_+^2\big] \le \eta^2, \qquad \xi \sim \mathcal{N}(0, \sigma^2 I) \]
noise constraint

When both terms are at most \(\delta\), the triangle inequality gives \(|d(z + \xi, z_g) - d(z, z_g)| \le \delta\) for any goal. Since \(d\) is trained on LeWM's training frames and never sees its predictions, it needs no cross-fitting.

Corollary 2A symmetric time-to-goal undercharges an irreversible outcome

Take two futures of the same plan that agree up to chunk \(s\). For a symmetric \(d\) whose sampled steps cost at most one chunk, the score of a future that enters an irreversible outcome exceeds the other by at most \(3(H + 1 - s) \le 3H\) chunks, however long the episode is. A symmetric planner can then prefer a risky route over a safe one that takes longer. Under \(d^\star\) the way back costs \(C \ge L\), so entering the outcome costs the whole episode.

3 · Observation-conditioned branching

For the locked door, a good plan checks the switch and then walks to the open door. Its later actions depend on what the agent observes on the way, which one action sequence cannot express. So every candidate is a pair: a root plan \(a_{1:H}\) and an alternative \(a'_{1:H}\). Every future follows the root for the first \(b\) chunks; the agent then observes \(o_{b+1}\) and either keeps the root or switches.

Futures that are close in embedding space look the same to the agent at that point, so they must continue the same way. CoLaP splits the \(K\) futures into two groups \(\mathcal{G}_1, \mathcal{G}_2\) by 2-means on their embeddings \(\tilde z^{(k)}_{b+1}\), and each group takes whichever continuation gives it the lower total time:

\[ V_b = \frac{1}{K} \sum_{j=1}^{2} \min\Big\{ \sum_{k \in \mathcal{G}_j} J^{(k)}(a_{1:H}),\ \sum_{k \in \mathcal{G}_j} J^{(k)}\big(a_{1:b},\, a'_{b+1:H}\big) \Big\} \]
branched value

The switched futures continue from the root's samples at chunk \(b\), with the same noise. CoLaP branches after \(b \in \{1, 2\}\) and takes \(V = \min_b V_b\). Since each group can keep the root, \(V_b\) never exceeds the root's own value. The agent executes only the first two chunks of the root and then replans, so the alternative is never executed directly. Its job is to let the planner value a root that gathers information, such as the visit to the switch.

Proposition 3Information must come first

Branching never scores a pair worse than its better single sequence, and it scores it the same whenever one continuation is best for both groups. In particular, with exact futures, if every future at chunk \(b+1\) is either already inside an irreversible outcome or at one common embedding, branching adds nothing. It lowers the score only when the agent observes something before an irreversible outcome that changes its best continuation: the classical value of information, applied to contingent plans in latent space.

Putting it together

\[ \big(a^*_{1:H},\, a'^*_{1:H}\big) = \arg\min_{a_{1:H},\, a'_{1:H}}\ \min_{b \in \{1, 2\}}\ V_b\big(a_{1:H},\, a'_{1:H}\big) \]
CoLaP planning problem

CEM searches the root and the alternative together, as one plan of \(2H\) chunks, and scores each candidate pair in three steps: the sampler rolls out \(K\) futures, the time-to-goal scores them, and each group of futures keeps the root or switches. The agent executes the first two chunks of the best root before it replans.

Three panels. Imagined futures of a crossing plan, some falling, and of a detour plan, all arriving; their times to the goal, where the fallen futures sit in a red zone and the detour has the lower mean; and the agent executing the first chunks of the detour.

Figure 3. One planning step. (a) The sampler imagines several futures of each candidate plan, and some futures of the crossing fall through the ice. (b) The time-to-goal scores each future, and a fall costs the rest of the episode. The average over futures ranks the detour first, while one predicted future ranks the crossing first. (c) The agent executes the first chunks of the best plan and then replans.

Algorithm 1: one CoLaP re-plan pseudo-code

Requires a frozen LeWM \((\mathrm{enc}_\theta, \mathrm{pred}_\phi)\), the sampler \(g_\psi\), the time-to-goal \(d\), a goal image \(o_g\), horizon \(H\) and \(K\) futures.

  1. Encode the goal, \(z_g \leftarrow \mathrm{enc}_\theta(o_g)\)
  2. for each replanning step do
  3. Encode the current observation, \(\tilde z^{(k)}_1 \leftarrow \mathrm{enc}_\theta(o)\)
  4. Initialise a Gaussian over plan pairs \((a_{1:H}, a'_{1:H})\)
  5. for each CEM iteration do
  6. Draw noise \(\epsilon^{(k)}_{1:H}\) for \(k = 1, \dots, K\), shared by every candidate
  7. Sample candidate pairs from the Gaussian
  8. for each candidate do
  9. Roll out \(K\) futures of both plans sampled futures
  10. Score every future with \(J^{(k)}\) time to the goal
  11. Group the futures, \(V \leftarrow \min_b V_b\) branched value
  12. end for
  13. Refit the Gaussian to the lowest-\(V\) candidates
  14. end for
  15. Execute the first two chunks of the best root plan \(a^*_{1:H}\)
  16. end for
Architecture and settings the same on all nine tasks
World model LeWM: a ViT-Tiny encoder maps each 224 × 224 frame to a 192-d embedding, and a 6-layer transformer predictor reads the last three embeddings and action chunks. Trained per task, then frozen.
Future sampler MLP with two hidden layers of 512, reading the prediction and 16-d Gaussian noise. Its last layer starts at zero, so before training it returns LeWM's prediction. 8 draws per window, 20 epochs on the 5,000 held-out episodes.
Time-to-goal MRN on standardized embeddings: one MLP with two hidden layers of 512 and two 64-d heads \(f\) and \(h\). Cap \(C = 50\) chunks, tolerance \(\eta = 0.25\), noise constraint \(\delta = 0.5\) with \(\sigma \sim \mathcal{U}[0, 0.2]\). 60,000 steps, multipliers by dual ascent.
Planner CEM with 300 candidate pairs, 30 elites and 15 iterations. Horizon \(H = 5\) chunks (10 on TwoRoom-LockedDoor), two chunks executed per re-plan, \(K = 8\) futures, branch after chunk 1 or 2, two groups by 2-means.
Compute One workstation with an NVIDIA RTX 5090 (32 GB), on top of stable-worldmodel.
Results

Nine stochastic tasks, ten planners

The tasks are built on the four environments of LeWM: a point that moves between two rooms, a two-link arm, a pusher that moves a T-shaped block, and a robot arm that carries a cube. Seven tasks add a fixed, visible hazard. At every step inside it the agent, or the object it moves, enters an irreversible outcome with a probability set so that a typical crossing fails half the time; afterwards it freezes and turns dark, and the goal is out of reach. The last two test other kinds of randomness: in TwoRoom-LockedDoor one of two doors is locked at random and a switch shows which (Example 2), and in TwoRoom-Slip random pushes move the agent but nothing is irreversible, as a control.

Before and after frames for four tasks: a point agent falling through ice, a reacher arm breaking on a patch, a T-block falling into a pit, and a cube slipping into a hole in the table.

Figure 4. Four of the nine tasks, as LeWM sees them. Each column shows one training episode before (top) and after (bottom) its irreversible outcome: the agent falls through the ice, the arm breaks on the patch, the block falls into the pit, and the cube slips into the hole.

All nine tasks random event · data · episodes
Task Random event Irreversible Data Episodes (LeWM + sampler)
TwoRoom-Trap the agent falls through the ice ✓ expert 10,000 + 5,000
TwoRoom-Bridge the agent falls at the cracked door ✓ expert, takes the nearer door 10,000 + 5,000
TwoRoom-Slip a 5 px push in a random direction – expert 10,000 + 5,000
TwoRoom-LockedDoor one of two doors is locked – expert, picks a door before the lamps light 6,000 + 5,000
Reacher-Thin the arm breaks on a 4 cm patch ✓ random actions, 200 steps 10,000 + 5,000
Reacher-Hazard the arm breaks on a 7 cm patch ✓ random actions, 200 steps 10,000 + 5,000
PushT-Pit the block falls into the pit ✓ PushT expert, replayed 12,685 + 5,000
PushT-Pusher the pusher falls into the pit ✓ PushT expert, replayed 12,685 + 5,000
Cube-Drop the cube falls into the hole ✓ OGBench scripted expert 10,000 + 5,000

The sampler's episodes are collected the same way as LeWM's, and LeWM never sees them. On TwoRoom-LockedDoor the expert picks a door before the lamps show the lock, so its actions carry no information about it.

The protocol follows LeWM: a test task pairs a start observation from a held-out episode with the goal image 25 steps later in the same episode, chosen so that the straight route crosses the hazard. Every score is the success rate over 50 episodes, averaged over four seeds. The nine baselines come from three families, and every planner uses the same frozen LeWM:

LeWM planners

LeWM's published planner; one predicted future scored by our time-to-goal; MC-dropout with 8 futures; and TEMPO, a symmetric temporal distance.

Our futures, open loop

Our sampler and time-to-goal with one action sequence for all futures, scored by the mean or by CVaR, the mean of the worst two.

Offline GCRL

GCBC, GCIVL and GCIQL, goal-conditioned policies trained on the frozen LeWM embeddings, with no world model at test time.

Nine stochastic tasks Average success rate (%) · LeWM planners, our futures in open loop, offline GCRL, CoLaP
LeWM 45.4
One future 53.6
MC-dropout 57.9
TEMPO 44.2
Sampler 60.0
CVaR 58.1
GCBC 40.9
GCIVL 56.9
GCIQL 49.1
CoLaP 66.8
Runner-up: our sampler in open loop CoLaP

+6.8 points over the runner-up, our sampler in open loop (+11% relative), and +21.4 over LeWM's published planner on the same world model (+47% relative). CoLaP is best or tied for best on all six navigation and reaching tasks, by up to 13.0 points. On TwoRoom-Trap every planner that samples several futures reaches at least 96.5%, against 77.5% for one predicted future, and on the control task TwoRoom-Slip, where nothing is irreversible, CoLaP still reaches 100%.

The exceptions are the three manipulation tasks, where a GCRL policy finishes ahead because the planner fails even without the risk. On Cube-Drop the arm fills most of the image and LeWM's embedding barely registers where the cube is, so the planner drops the cube and matches the arm pose of the goal. On PushT-Pit the safe route first takes the pusher away from the goal image, and a five-chunk horizon rarely completes it; LeWM's own planner pushes straight across and is the best planner there.

Per-task results 9 tasks × 10 methods
Task LeWM One future MC-dropout TEMPO Sampler CVaR GCBC GCIVL GCIQL CoLaP
TwoRoom-Trap 75.0±6.0 77.5±5.7 96.5±1.9 78.0±4.3 98.5±1.0 99.5±1.0 40.5±4.4 67.0±6.0 42.5±8.7 99.5±1.0
TwoRoom-Bridge 39.0±8.2 57.5±2.5 59.5±4.4 45.5±6.8 76.0±7.1 79.0±4.8 42.5±5.0 73.5±3.4 29.5±6.6 83.5±1.9
TwoRoom-Slip 93.5±3.0 100.0±0.0 100.0±0.0 94.0±2.8 100.0±0.0 99.5±1.0 46.5±10.6 100.0±0.0 100.0±0.0 100.0±0.0
TwoRoom-LockedDoor 0.0±0.0 60.5±7.9 68.5±7.7 35.5±4.4 59.0±6.6 57.5±4.4 6.0±3.3 0.0±0.0 7.0±7.6 71.0±6.1
Reacher-Thin 60.5±2.5 67.5±2.5 71.5±1.9 54.0±7.1 79.0±5.3 78.0±5.7 47.0±5.3 78.0±2.8 73.5±3.4 92.0±5.9
Reacher-Hazard 57.0±2.0 69.0±6.2 73.0±7.4 54.0±2.8 66.5±4.1 63.0±6.2 53.0±4.2 79.5±7.9 76.0±6.7 90.5±7.2
PushT-Pit 37.5±3.4 14.5±5.0 12.5±6.2 20.5±4.4 15.0±3.5 10.5±7.0 42.0±2.8 31.0±5.8 30.5±1.9 13.5±4.4
PushT-Pusher 46.0±2.3 36.0±2.8 38.0±7.7 15.5±4.1 44.5±6.4 36.0±4.3 65.5±1.0 50.5±6.0 54.5±9.6 50.5±5.4
Cube-Drop 0.0±0.0 0.0±0.0 1.5±1.0 0.5±1.0 1.5±1.9 0.0±0.0 25.0±4.8 32.5±10.0 28.5±5.5 0.5±1.0
Average 45.4 53.6 57.9 44.2 60.0 58.1 40.9 56.9 49.1 66.8

Success rate (%) ± standard deviation over four seeds of 50 episodes. Bold marks the best in each row and underline the runner-up. Every baseline that samples futures uses 8, as CoLaP does.

Ablations

What each component contributes

The ablations run on TwoRoom-Trap, TwoRoom-Bridge, Reacher-Thin and Reacher-Hazard. With the hazard switched off, one predicted future solves at least 99.5% of each, so these tasks separate the irreversible outcome from every other planning failure. All eight combinations of the three components are tested.

Every combination of the three components Average success rate (%) on TwoRoom-Trap, TwoRoom-Bridge, Reacher-Thin and Reacher-Hazard
None 55.4
Time-to-goal 67.9
Sampler 61.9
Branching 61.2
Sampler + time-to-goal 88.9
Sampler + branching 63.4
Time-to-goal + branching 70.1
CoLaP (all three) 91.4
Best without branching CoLaP
Sampled futures

Without the sampler, success drops on every task, by 17.5 to 26.5 points. Its gain depends on the score: with the time-to-goal it adds 20.0 to 22.0 points on every task, with the latent distance only 6.5 on average. The sampler shows the risk, and the time-to-goal charges for it.

Time-to-goal

Swapping it for the latent distance costs 15.0 to 41.0 points, the largest drop of the three on average. It is also the strongest component alone: with one predicted future it raises success by 3.5 to 20.0 points.

Branching

Removing it costs only 1.0 to 4.0 points here, because a fall comes without warning and no observation can change the best plan. It pays when looking first saves time: on TwoRoom-LockedDoor with a perfect model, it lifts success from 59.0% to 87.0%.

Per-task ablation 4 tasks × 8 combinations
Task None Time-to-goal Sampler Branching Sampler + time-to-goal Sampler + branching Time-to-goal + branching CoLaP
TwoRoom-Trap 74.0±3.7 77.5±5.7 86.5±3.4 78.0±7.5 97.5±2.5 84.5±4.4 73.0±7.0 99.5±1.0
TwoRoom-Bridge 37.5±10.4 57.5±2.5 58.5±5.3 47.0±7.4 79.5±4.7 66.0±3.7 63.0±7.4 83.5±1.9
Reacher-Thin 54.0±4.3 67.5±2.5 58.0±5.7 60.5±4.1 89.0±5.3 53.5±5.5 71.5±3.4 92.0±5.9
Reacher-Hazard 56.0±2.8 69.0±6.2 44.5±1.0 59.5±4.4 89.5±6.6 49.5±4.1 73.0±7.6 90.5±7.2
Average 55.4 67.9 61.9 61.2 88.9 63.4 70.1 91.4

Success rate (%) ± standard deviation over four seeds. Without the sampler the planner uses one predicted future, without the time-to-goal it uses LeWM's latent distance, and without branching it plans one action sequence.

Three design choices

Hover or focus a bar for its value

CoLaP scores a plan by the average time-to-goal over \(K\) futures. Few futures make that average noisy, and every extra future adds a rollout to every candidate.

Number of sampled futures K CoLaP · average success (%) on the four ablation tasks
1 predicted future 70.1
8 futures 91.4
16 futures 90.4
32 futures 87.9

Success rises from 70.1% to 91.4% between one predicted future and eight sampled ones, then stops improving: 90.4% at 16 and 87.9% at 32. More futures add cost without adding success, so CoLaP uses \(K = 8\).

The same eight sampled futures, without branching, scored by four costs, so that only the cost changes.

The same eight futures, four ways to score them Sampler in open loop, no branching · average success (%) on the four ablation tasks
Latent distance 61.9
TEMPO 57.8
Symmetric time-to-goal 61.1
Asymmetric time-to-goal 88.9

The asymmetric time-to-goal averages 88.9% and is the best cost on every task. A symmetric time-to-goal reaches 61.1%, no better than LeWM's latent distance at 61.9%, and TEMPO's temporal distance reaches 57.8%. Only an asymmetric \(d\) charges an irreversible outcome as a goal that can no longer be reached.

CoLaP rolls out several futures for every candidate, so each re-plan takes longer. Here one predicted future gets 20 to 22 times more CEM samples, so that a re-plan takes as long as one of CoLaP's.

Equal planning time TwoRoom-Trap, TwoRoom-Bridge, Reacher-Thin, PushT-Pusher · average success (%)
One future · 300 samples 59.6
One future · same time 61.8
CoLaP 81.4

The extra search helps only on TwoRoom-Trap, by 10.0 points, and moves the other tasks by −1.5 to +1.5. CoLaP stays ahead on all four tasks, by 12.0 to 26.0 points. A larger search cannot recover an outcome that one prediction has already averaged away, as Theorem 1 predicts for any search budget.

Analysis

Does it work for the reason it should?

The sampled futures show the fall

CoLaP rests on the claim that LeWM's single prediction hides the irreversible outcome while sampled futures show it. This is tested on risky moments of held-out episodes, where the agent or its object is near the hazard and has not fallen yet. A linear probe labels each predicted next embedding as fallen or not, and the fall share \(q\) is the fraction labelled fallen, compared across one predicted future, 32 MC-dropout passes and 64 draws of the sampler.

AUROC of the fall share against the real outcome ↑

Task One future MC-dropout Our sampler
TwoRoom-Trap 0.64 0.77 0.88
TwoRoom-Bridge 0.59 0.71 0.91
Reacher-Hazard 0.71 0.77 0.94
PushT-Pusher 0.63 0.69 0.85

Brier score ↓

Task One future MC-dropout Our sampler
TwoRoom-Trap 0.092 0.075 0.057
TwoRoom-Bridge 0.068 0.055 0.043
Reacher-Hazard 0.038 0.034 0.019
PushT-Pusher 0.018 0.017 0.014

Moments whose futures hold both outcomes (%)

Task One future MC-dropout Our sampler
TwoRoom-Trap 0.0 11.9 31.0
TwoRoom-Bridge 0.0 8.7 31.0
Reacher-Hazard 0.0 2.4 10.4
PushT-Pusher 0.0 1.3 5.9

Risky moments and their real fall rates: TwoRoom-Trap 4,222 at 7.2%, TwoRoom-Bridge 9,727 at 5.5%, Reacher-Hazard 19,389 at 2.3%, PushT-Pusher 32,413 at 1.5%. "Both outcomes" means \(0 \lt q \lt 1\): the predictions hold a fall and a non-fall.

The sampler has the lowest Brier score and the highest AUROC on all four tasks. One predicted future never holds both outcomes, and dropout rarely does. On the moments that did end in a fall, the probe still labels the single prediction as not fallen, with a logit of −1.4 to −1.7 against 4.2 to 5.6 for the real frame. This is the mean trap of Theorem 1, measured.

Left: a test episode in which the one-future planner walks onto the ice and falls while CoLaP goes around. Right: three context frames and the real next frame, in which the agent fell; the single prediction shows no fall, while two of CoLaP's eight samples show one.

Figure 5. The mean trap on TwoRoom-Trap. (a) In test episode 13, one predicted future walks onto the ice and falls, while CoLaP goes around it. (b) A held-out moment on the ice where the agent did fall: the three context frames, the real next frame, and LeWM's single prediction, which shows no fall. (c) CoLaP's eight samples for the same moment: two of them fall, a share of 0.25, close to the real fall rate on the ice of 0.29. Each prediction is shown as the nearest real frame with the same probe label.

Calibration of the fall share real fall rate against predicted share
Four calibration plots of real fall rate against predicted fall share for one future, MC-dropout and the sampler.

The real fall rate against the predicted fall share \(q\) on the risky moments, in one bin for \(q = 0\) and four bins of width 0.25. The dotted line is perfect calibration.

Branching, with a perfect model

Branching pays only if the agent observes something before an irreversible outcome that changes its best continuation (Proposition 3). With a learned model, a planner can miss such an observation simply because its predictions are wrong. To test branching on its own, LeWM is replaced by the simulator and the learned time-to-goal by the true one, with 64 futures per plan.

Cost · planner TwoRoom-Trap (fell) TwoRoom-LockedDoor (checked switch) TwoRoom-Slip
Expected time · open loop 100.0 (0.0) 59.0 (0.0) 100.0
Expected time · branching 100.0 (0.0) 87.0 (73.5) 100.0
Sum of distances · open loop 82.0 (18.0) 36.0 (0.0) 99.5
Sum of distances · branching, mean 83.0 (17.0) 87.5 (75.0) 99.5
Sum of distances · branching, CVaR 96.0 (4.0) 55.0 (55.0) 99.5

Success rate (%) over four seeds of 50 episodes. In brackets: the episodes (%) that fell on TwoRoom-Trap, and that visited the switch on TwoRoom-LockedDoor.

On TwoRoom-LockedDoor, branching raises success from 59.0% to 87.0%, winning 59 episodes and losing 3. It visits the switch in 73.5% of episodes, while the open-loop planner never does. On TwoRoom-Trap a fall comes without warning, and both planners reach 100%, so branching neither helps nor hurts. With the sum of distances, no planner handles both tasks: branching with the mean reaches 87.5% on the locked door but falls in 17.0% of the ice episodes, and CVaR falls in only 4.0% but reaches 55.0% on the door. The expected time handles both with one objective.

The gain is where the hazard hurts

For each hazard task, the loss is what the hazard costs one predicted future (its success with the hazard switched off, minus its success with it on), and the gain is what CoLaP adds over it. The gain tracks the loss with a Spearman correlation of 0.93, and wherever the loss exceeds 5 points, CoLaP wins back 61 to 100% of it.

Task Hazard off Loss Gain Won back (%)
TwoRoom-Trap 100.0 22.5 22.0 98
TwoRoom-Bridge 100.0 42.5 26.0 61
Reacher-Thin 100.0 32.5 24.5 75
Reacher-Hazard 99.5 30.5 21.5 70
PushT-Pit 19.5 5.0 −1.0 –
PushT-Pusher 50.5 14.5 14.5 100
Cube-Drop 0.0 0.0 0.5 –

Success points (%). On PushT-Pit and Cube-Drop one predicted future fails even with the hazard off, so there is nothing to win back.

CoLaP fixes the irreversible outcome, not other planning failures.

Robustness

Hazard probability. Every component is trained where a crossing fails half the time. Tested at 0.25 and 0.75 without retraining, CoLaP stays ahead of one predicted future at every probability, and its gain grows with the risk: from 7.5 to 23.0 points on TwoRoom-Trap, and from 11.5 to 37.5 on Reacher-Thin. A second world model. Swapping LeWM for PLDM, with nothing retuned, gives an average of 63.3% against 66.8%, and seven of the nine tasks differ by at most 4.0 points. Clipping every CEM candidate to the action range changes CoLaP by −2.5 to −0.5 points, and the ablation conclusions hold with \(K = 32\) futures.

Robustness tables hazard probability · second world model

Test-time hazard probability

Task · hazard probability One future CoLaP Gain
TwoRoom-Trap · 0.25 92.0±1.6 99.5±1.0 +7.5
TwoRoom-Trap · 0.50 77.5±5.7 99.5±1.0 +22.0
TwoRoom-Trap · 0.75 70.5±7.5 93.5±1.9 +23.0
Reacher-Thin · 0.25 86.5±2.5 98.0±4.0 +11.5
Reacher-Thin · 0.50 67.5±2.5 92.0±5.9 +24.5
Reacher-Thin · 0.75 50.0±6.3 87.5±5.3 +37.5

CoLaP on two world models

Task PLDM LeWM
TwoRoom-Trap 84.5±7.0 99.5±1.0
TwoRoom-Bridge 87.5±4.4 83.5±1.9
TwoRoom-Slip 99.0±1.2 100.0±0.0
TwoRoom-LockedDoor 56.0±12.3 71.0±6.1
Reacher-Thin 94.0±6.3 92.0±5.9
Reacher-Hazard 89.0±4.8 90.5±7.2
PushT-Pit 12.5±1.0 13.5±4.4
PushT-Pusher 46.5±4.4 50.5±5.4
Cube-Drop 0.5±1.0 0.5±1.0
Average 63.3 66.8

Success rate (%) ± standard deviation over four seeds. All components are trained at \(p = 0.5\); CoLaP uses 8 futures throughout.

Limitations

CoLaP changes how a plan is scored, not the world model it plans with. When planning fails even without the risk, as on the manipulation tasks, a better score cannot help. Branching also depends on the quality of the sampled futures: it can only act on an observation the futures actually show.

Cite

Citation

If this work is useful to you, please cite it as:

@article{chowdhury2026colap,
  title   = {Contingency Planning with Latent World Models under Irreversible Outcomes},
  author  = {Chowdhury, Abdul Monaf and Sakib, Syed Nazmus and Ariq, Ahanaf Hasan and Chakma, Chandak and Haque, Nafiul and Arman, Shifat E. and Hasan, Md Mehedi},
  journal = {Preprint},
  year    = {2026}
}