Hindsight Inverse JEPA Planning (HIJP)

Beyond Action Prediction: Learning Search-Free Planning in Latent Space

Guanchen Du1 Jinhao Du2 Yanpeng Sun1
Shan Zhang3 Na Zhao4 Zechao Li1
1Nanjing University of Science and Technology 2University of Oxford
3Australian National University 4Singapore University of Technology and Design

HIJP reaching image-specified goals on the hard tier (goal 50 steps ahead). Each action chunk comes from one inverse-model / world-model rollout, with no test-time search. The inset shows the goal.

TL;DR Latent world models usually plan by searching over thousands of candidate action sequences at test time. HIJP learns a goal-conditioned inverse model jointly with the world model. Hindsight goals shape the visual representation, and an action-transition consistency loss ties predicted actions to the latent transitions they cause. At test time it simply alternates inverse → predict, with no search.
Overall success, 4 tasks × 4 tiers
86.8%
+4.9 pts over the strongest baseline
Planning speedup vs. LeWM (CEM)
1.9–16.5×
matched replanning calls, RTX 4090
Latent transitions per replan
5 vs 45,000
HIJP rollout vs. CEM search
Lower action jerk than CEM
14.7–26.4×
same model, extreme tier
Method

Train the inverse model inside the world model

HIJP jointly trains a visual encoder fθ, a latent predictor gφ, and a goal-conditioned inverse head hξ, end-to-end from offline trajectories without rewards. Click a panel to see which modules each loss updates.

Updated by this loss
ℒ = ℒpred + 0.09·ℒSIGReg + 1.0·ℒinv + 0.1·ℒcyc
all four modules optimized jointly with one AdamW optimizer (λcyc = 0.05 on TwoRoom)

Hindsight relabeling: every future frame is a goal

Pick an anchor, then sample a goal offset κ ~ Unif{1, …, W−1−i}. The target is always the immediate action ai, but the goal can sit at any horizon in the window.

Training pair
â3 = hξ(z3, z10)
Goal horizon
κ = 7 (35 env steps)
Distinct (anchor, goal) pairs per window
120 with hindsight · 15 with a fixed endpoint

Window of W = 16 observations spaced k = 5 environment steps apart (PushT). Click a frame to set the anchor, and click a later frame to set the goal. Fixing the goal to the window's last frame (the "endpoint goal" ablation) drops overall success from 82.5% to 71.7%.

Search-free planning: alternate inverse and predictor

From the current latent and the fixed goal latent, the inverse head proposes an action chunk and the predictor advances the imagined state. That is H = 5 steps, then execute and replan.

HIJP: network calls this replan
0 hξ + 0 gφ
H inverse + H predictor evaluations (H = 5)
CEM: latent transitions per replan
45,000
N = 300 samples × I = 30 iterations × H = 5
Rollouts

Four tasks, four horizons

Goals are placed K steps ahead along an offline trajectory, from easy (K = 10) to extreme (K = 75). Success is judged only by the simulator, never by latent distance. Pick a task and tier to watch HIJP plan; the curve tracks the latent distance to the goal frame by frame.

Results

Higher success, a fraction of the planning cost

All methods use the same offline datasets and evaluation protocol: 50 episodes per task–tier combination, success judged by the simulator.

Success rate

HIJP versus eight baselines. Gains are largest on long-horizon manipulation (PushT and OGCube on the hard and extreme tiers).

Data table (Table 1)

Planning time

Total wall-clock time for 50 episodes in one batch, with matched replanning calls. The label shows the speedup.

LeWM (CEM)HIJP
Data table (Table 2)

Ablations

Remove one ingredient at a time. Mean success over Reacher, PushT and OGCube (TwoRoom is saturated).

Data table (Table 3)

Latent progress toward the goal

Normalized latent distance on the extreme tier (K = 75), mean ± 95% CI over 50 episodes. HIJP and its CEM ablation share one latent space; LeWM uses its own encoder.

HIJP CEM (HIJP ablation) LeWM

Smoother actions

Action jerk, the mean ‖at − 2at−1 + at−2‖ (lower is smoother). Because HIJP and its CEM ablation share the same representation, the difference comes from the planner.

HIJP CEM (HIJP ablation) LeWM
Data table (Table 13)