Temporal Straightening for Latent Planning
Ying Wang1, Oumayma Bounou1, Gaoyue Zhou1, Randall Balestriero2, Tim G. J. Rudner3, Yann LeCun1*, and Mengye Ren1*
1New York University, 2Brown University, 3University of Toronto
*Equal advising
The 43rd International Conference on Machine Learning (ICML 2026)
TL;DR: Inspired by the perceptual straightening hypothesis in human vision, we introduce temporal straightening to improve representation learning for latent planning.
Abstract
Learning good representations is essential for latent planning with world models. While pretrained visual encoders produce strong semantic visual features, they are not tailored to planning and contain information irrelevant -- or even detrimental -- to planning. Inspired by the perceptual straightening hypothesis in human visual processing, we introduce temporal straightening to improve representation learning for latent planning. Using a curvature regularizer that encourages locally straightened latent trajectories, we jointly learn an encoder and a predictor. We show that reducing curvature this way makes the Euclidean distance in latent space a better proxy for the geodesic distance and improves the conditioning of the planning objective. We demonstrate empirically that temporal straightening makes gradient-based planning more stable and yields significantly higher success rates across a suite of goal-reaching tasks.
Overview

Method
Inspired by the perceptual straightening hypothesis in human vision, which posits that visual systems transform complex videos into straighter internal representations, we introduce a simple approach to straighten latent trajectories for planning. Concretely, we jointly learn an encoder and a predictor of a world model, while imposing regularization on the curvature of latent trajectories during training. The training objective is:
$$\mathcal{L}_{\text{pred}} = \lVert \hat{z}_{t+1} - \mathrm{sg}(z_{t+1}) \rVert_{2}^{2}$$ $$\mathcal{L}_{\text{curv}} = 1 - C, \quad \text{where } C = \cos(z_{t+1} - z_{t},\ z_{t+2} - z_{t+1})$$ $$\mathcal{L}_{\text{total}} = \mathcal{L}_{\text{pred}} + \lambda\, \mathcal{L}_{\text{curv}}$$Here, $\mathrm{sg}$ denotes stop-gradient and $\lambda$ controls the strength of the straightening.

How Good Is the Embedding Space?
We inspect the learned embedding space by measuring latent trajectory curvatures, PCA projections of latent trajectories, and latent Euclidean distances to understand the impact of straightening.
- Implicit straightening can happen when training the encoder using the predictor loss alone.
- Adding straightening regularization further decreases curvature of the resulting embeddings.
- Straightening encourages the latent Euclidean distance to better align with the geodesic distance.
- Near-perfect reconstruction can be attained with a very low feature dimensionality.

We visualize the Euclidean distance between the embedding of a target state (denoted by the star) and all other states in the maze. Blue indicates smaller distance, red indicates larger distance.








We also visualize the learned trajectory representations using PCA. While latent trajectories are highly curved in the pretrained embedding space, they become significantly smoother after straightening, and Euclidean distance becomes a more faithful proxy for geodesic progress toward the goal.















Planning
We perform gradient-based planning using our models on four environments: Wall, PointMaze-UMaze, PointMaze-Medium, and PushT. We report both open-loop planning and closed-loop MPC. Open-loop planning optimizes a length-$H$ action sequence using the terminal embedding distance to the target, while MPC executes the first action and replans at every step. Across environments, temporal straightening substantially improves planning performance.

Closed-loop MPC replans at every step. The success-rate curves below show that straightening reaches high MPC success quickly, especially on Wall and UMaze.




Below are examples of MPC planning across the four environments.
BibTeX
@inproceedings{wang2026temporal,
title = {Temporal Straightening for Latent Planning},
author = {Wang, Ying and Bounou, Oumayma and Zhou, Gaoyue and Balestriero, Randall and Rudner, Tim G. J. and LeCun, Yann and Ren, Mengye},
booktitle = {International Conference on Machine Learning (ICML)},
year = {2026}
}