Manuscript Offprint

arXiv:2610.25013

Latent World Models Should Plan with Distances Along the Latent Manifold

Zunzhi You, Linwei Tao, Siyu Xu, Yunke Wang, Chang Xu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Latent world models such as LeWM plan by searching for an action sequence whose predicted terminal latent is closest to the goal latent under an ambient norm, such as the Euclidean distance. Planning with such a cost assumes that proximity in the ambient latent space reflects proximity to the goal in the environment. Studying LeWM, we find that this assumption holds only in a small neighborhood around the goal, whereas farther away the L2 cost forms spurious low-cost basins that trap the planner. Yet neighborhood-based embeddings show that the latents retain the underlying physical state. We therefore hypothesize that the latents lie near a curved, low-dimensional manifold, and that the terminal cost should measure the distance along this latent manifold rather than through the ambient space. To estimate this manifold distance, we propose the Neighborhood Graph Cost (NGC), which computes shortest-path distances on a mutual nearest-neighbor graph constructed over training latents. NGC changes only the terminal cost and requires no retraining. This single change improves the planning success rate of LeWM across all four benchmark tasks and nearly solves TwoRoom and Reacher: even at the farthest goal offsets tested, NGC reaches 95% and 100% success, whereas the L2 cost falls to 27% and 81%. These results support the manifold hypothesis and our argument that latent world models should plan with distances along the latent manifold.

1 INTRODUCTION

In the paradigm of planning with world models, an agent predicts the outcomes of candidate action sequences and executes the sequence whose predicted outcome scores best (Finn & Levine, 2017; Hafner et al., 2019; LeCun, 2022; Hansen et al., 2024). When the task is specified by a goal observation, the score is naturally a distance between the predicted outcome and the goal, without requiring a separately designed reward. Because pixel-wise distances to a goal image are dominated by large objects such as the robot arm (Ebert et al., 2018), latent world models measure the distance in a learned representation space instead (Zhou et al., 2025; Sobal et al., 2025; Assran et al., 2025; Terver et al., 2026; Maes et al., 2026b). These models typically score the predicted terminal latent against the goal latent using a norm of their difference, such as the Euclidean distance (Maes et al., 2026b) or the L1 distance (Assran et al., 2025), serving as the sole signal guiding the planner toward the goal. Planning with such a cost therefore assumes that a latent closer to the goal latent in the latent space corresponds to a state closer to the goal in the environment.

In this work, we study LeWM (Maes et al., 2026b), an end-to-end latent world model framework that uses the squared Euclidean distance as its terminal cost (the L2 cost), and find that this assumption fails even on a simple task. In TwoRoom, a point agent moves from one room to the other through a doorway, and the observation is determined solely by the agent's 2D position. Yet LeWM reaches a success rate of only about 90% when the goal observation is 25 steps from the start, dropping below 30% at 75 steps. In every failed episode, the agent becomes trapped in a region far from the goal. The cost maps in Figure 1 (top) reveal why: while the L2 cost forms a true basin around the goal, it also creates spurious low-cost basins far away that trap the planner.

Figure

Figure

Figure 1: Cost maps and rollout trajectories for four start–goal pairs in TwoRoom. Top: the L2 cost (Equation 1) between the latent rendered at each feasible grid position and the goal latent. Bottom: NGC (Section 4) on the same pairs. Details in Appendix B.1.

Figure 2: Terminal cost against the length of the shortest feasible path to the goal, for every feasible grid position of the rightmost pair in Figure 1. Top: the L2 cost. Bottom: NGC.

Figure

Figure 3: Two-dimensional embeddings of the TwoRoom grid latents, with each point colored by its rendered physical position (left: color key).

To understand these basins, we compare the L2 cost against the physical distance to the goal and find that it tracks this distance only locally, ceasing to increase with it farther away (Figure 2). Yet neighborhood-based embeddings such as Isomap (Tenenbaum et al., 2000) unfold the latents into a faithful two-dimensional map of the agent's position, whereas Euclidean-distance-based embeddings fold the space onto itself (Figure 3). The planning failures, therefore, stem not from the latents losing task-relevant state information, but from how they are read.

These observations lead us to hypothesize that the latents of a trained LeWM lie near a curved, low-dimensional manifold, and that the terminal cost should measure the distance along this latent manifold rather than through the ambient latent space. To estimate this manifold distance, we propose the Neighborhood Graph Cost (NGC). NGC connects the latents of training observations to their mutual nearest neighbors, attaches the goal latent and each predicted terminal latent to the graph, and scores a candidate by the shortest-path length between the two. On the TwoRoom pairs, NGC produces a single clean basin at the goal (Figure 1, bottom).

We compare NGC with the L2 cost across all four LeWM tasks. NGC achieves a success rate of 94.6% or higher on TwoRoom and 99.4% on Reacher, whereas the L2 cost drops to 27% and 81% at the farthest goal offsets. On Cube and PushT, NGC improves the success rate at the farthest offsets by 16 and 15 percentage points. This gain comes from the cost formulation itself: NGC still outperforms the L2 cost when paired with an oracle predictor that executes every candidate in the simulator, confirming that it does not merely compensate for errors of the learned predictor. Moreover, the L2 cost fails to match NGC even with four times as many CEM candidates.

In summary, we offer a simple explanation for the planning failures we observe in LeWM. It leads to a method that changes only the terminal cost, and the method's effectiveness in turn supports the explanation. We hope that our work leads the latent world model community to reconsider the default of measuring distances through the ambient latent space, and to plan with distances along the latent manifold instead.

References (63)