Probe the goal
Encode the observation and goal. Predict one step with a zero-action probe and measure the latent distance to the goal.
NeurIPS 2026
Paper & code forthcoming




Bright: retained tokens Dim: discarded tokens
Recorded rollouts · 50% tokens · retrained predictors
spatial tokens per sparse rollout
measured planning-step speedup on Wall
gradient probe per planning step
Prediction and control need
different things from an image.
COSTGRAD scores each visual token by how strongly it affects the planning cost. A single gradient probe chooses the tokens; the planner then searches over actions using that smaller representation.
Encode the observation and goal. Predict one step with a zero-action probe and measure the latent distance to the goal.
Backpropagate the cost to the input tokens. Retain the K positions with the largest gradient norms.
Run the full CEM action search on those positions. Keep the subset fixed within a planning step; select again when replanning.
On the evaluated retrained AdaLN predictors, COSTGRAD achieves higher mean success than Full on three of four environments.
| Environment | Full 256 tokens | COSTGRAD 128 tokens | Random 128 tokens | CG − Full percentage points |
|---|---|---|---|---|
| PointMaze | 88.2 ± 8.7 | 86.2 ± 6.1 | 77.0 ± 9.4 | −2.0 |
| Wall | 84.7 ± 2.6 | 92.0 ± 1.8 | 67.0 ± 3.6 | +7.3 |
| PushT | 62.4 ± 4.4 | 65.2 ± 6.5 | 41.3 ± 5.9 | +2.8 |
| MetaWorld reach | 58.7 ± 1.8 | 65.6 ± 4.7 | 46.9 ± 3.1 | +6.9 |
96 episodes per evaluation seed on a fixed predictor per environment. Positive differences are observed mean improvements, not a claim of statistical significance.

Choosing relevant tokens is only half the problem. The predictor must still support useful action-conditioned rollouts when those tokens are the only ones present.
In matched AdaLN–concat experiments, COSTGRAD’s advantage over Random depends on how actions enter the predictor. Selected-token removal reduces measured action-pathway drift for AdaLN, but increases it for concat.
Read the scope and limitationsSelected / random KL ratio · lower is less drift
Three training seeds per architecture. The ratio compares COSTGRAD-selected removal with random removal on the same predictor; it is a diagnostic, not a success guarantee.
The empirical conditioning comparison covers AdaLN and channel-wise concat, with concat replication on Wall and PointMaze. FiLM and cross-attention remain untested. Action-pathway drift is evidence for a compatibility hypothesis, not a proven necessary or sufficient condition.
All experiments use visual token grids, CEM planning, and simulated continuous-control tasks. Public MetaWorld results show that inference-time applicability does not guarantee preserved performance on every checkpoint. The displayed MetaWorld demo uses the retrained reach predictor.
@inproceedings{xu2026sparseplanning,
title = {Sparse Planning in Visual World Models
via Cost Gradients},
author = {Xu, Yingchen and Grefenstette, Edward},
booktitle = {Advances in Neural Information Processing Systems},
year = {2026}
}