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.
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.
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:
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:
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)\):
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.
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:
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.
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.
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.
Three ways the latent planner fails
The planner of the previous section takes the ice and skips the switch, for three reasons.
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.
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.
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.
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.
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.
- 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.
- 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.
- 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.
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
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:
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
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
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:
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:
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.
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:
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.
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:
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.
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
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.
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.
- Encode the goal, \(z_g \leftarrow \mathrm{enc}_\theta(o_g)\)
- for each replanning step do
- Encode the current observation, \(\tilde z^{(k)}_1 \leftarrow \mathrm{enc}_\theta(o)\)
- Initialise a Gaussian over plan pairs \((a_{1:H}, a'_{1:H})\)
- for each CEM iteration do
- Draw noise \(\epsilon^{(k)}_{1:H}\) for \(k = 1, \dots, K\), shared by every candidate
- Sample candidate pairs from the Gaussian
- for each candidate do
- Roll out \(K\) futures of both plans sampled futures
- Score every future with \(J^{(k)}\) time to the goal
- Group the futures, \(V \leftarrow \min_b V_b\) branched value
- end for
- Refit the Gaussian to the lowest-\(V\) candidates
- end for
- Execute the first two chunks of the best root plan \(a^*_{1:H}\)
- 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. |
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.
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's published planner; one predicted future scored by our time-to-goal; MC-dropout with 8 futures; and TEMPO, a symmetric temporal distance.
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.
GCBC, GCIVL and GCIQL, goal-conditioned policies trained on the frozen LeWM embeddings, with no world model at test time.
+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.
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.
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.
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.
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
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.
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 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.
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.
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.
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
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.
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}
}