Manuscript Offprint

arXiv:2610.26179

Learning Goal-Conditioned Subgoals through Frozen Hierarchical World Models

Xiang Kaibo, Liu Qingfeng

Abstract

Hierarchical world models plan over long horizons by passing predicted states from a coarse model to a lower-level controller. Choosing these states can be expensive: the upper-level planner repeatedly differentiates through candidate macro-action trajectories. We replace this search with a lightweight goal-conditioned network trained through the frozen high-level predictor. The network supplies a conditioning vector, while the predictor generates the next latent waypoint. Training uses hindsight goals and state-prediction losses on offline trajectories, without search-solution targets or macro-action labels. Inference retains an autoregressive high-level rollout, but requires no high-level candidate optimization. We evaluate this approach on the shared-latent HWM checkpoints distributed with H-JEPA, using three backbone seeds and three head initializations per backbone. With a common evaluation protocol, mean success is 70.4% on Cube, 48.7% on Push-T, 100.0% on FourRoom, and 71.1% on Visual AntMaze. The method improves over the corresponding HWM search baseline on three environments and has the same mean on Push-T. Dedicated measurements on an NVIDIA L40S give 1.28–4.39× end-to-end speedups for batched evaluation. Ablations identify state-adaptive conditioning as a consistent contributor, while predictor-mediated subgoals and unrestricted conditions have environment-dependent benefits.

1. Introduction

Visual world models support control by predicting the consequences of actions in a compact latent space [14, 15, 20, 24, 40]. Long-horizon planning remains difficult because the action search grows with temporal depth and prediction errors accumulate. Hierarchical models address this challenge by decomposing control across temporal scales: a coarse model predicts latent waypoints that a finer planner tries to reach. HWM [39] uses a shared latent space across levels, while H-JEPA [38] learns a separate representation at each level.

Choosing the high-level plan can itself be expensive. The planner optimizes candidate macro-action sequences by repeatedly rolling out and differentiating through the coarse predictor. The released two-level configurations permit up to 9,000–72,000 candidate-trajectory updates per decision. Although early stopping reduces this budget, high-level optimization accounts for a large fraction of evaluation time in the measured settings.

We propose to learn the inputs to this frozen predictor. Its conditioning interface provides a useful point of intervention: a small network maps a latent state, a goal, and a remaining-step input to a condition, and the coarse model turns that condition into the next waypoint. Figure 1 shows the resulting hierarchy. The encoder and both predictive models stay frozen, and the low level retains its action optimizer. The learned head removes upper-level candidate optimization while preserving autoregressive prediction through the world model.

The head learns from offline trajectories using their endpoints as hindsight goals. Teacher-forced prediction provides local transition supervision, autoregressive rollout loss trains on generated contexts, and an endpoint term emphasizes arrival at the goal. Gradients pass through the frozen predictor to update the head. This objective uses observed state sequences, without macro-action labels or search-solution targets. It consequently learns a goal-conditioned controller through the model rather than distilling a particular search algorithm.

We evaluate on the shared-latent HWM checkpoints distributed with H-JEPA, with three backbone seeds and three head initializations per backbone. Relative to HWM search with the same low-level objective, mean success increases from 51.3% to 70.4% on Cube, 72.0% to 100.0% on FourRoom, and 35.3% to 71.1% on Visual AntMaze; Push-T has the same mean, 48.7%. Dedicated NVIDIA L40S measurements give 1.28–4.39× end-to-end speedups for batched evaluation. Ablations show that state-adaptive conditioning consistently helps, while the benefit of routing subgoals through the predictor or restricting conditions to macro-action embeddings depends on the environment.

Our contributions are:

• A lightweight goal-conditioned head that replaces high-level macro-action optimization by learning predictor conditions through a frozen hierarchical world model.

• An evaluation across four visual-control environments, three backbones, and three heads per backbone, with a common success protocol and separate measurements of online and training cost.

• Controlled ablations of predictor-mediated subgoals, condition dimensionality, head inputs, and training losses that

*Corresponding author. Email: qliu@hosei.ac.jp.

Figure

Figure 1. Replacing upper-level search within a frozen hierarchy. The encoder E maps the observation and goal into latent states. HWM obtains predictor conditions by optimizing macro-actions; our head gθg_{\theta}, with trainable parameters θ\theta, produces a condition c from the state, goal, and remaining-step input. The frozen coarse predictor F2F_{2} generates a latent trajectory over H coarse transitions. Its first waypoint becomes the target for the low-level model-predictive control (MPC) planner, which optimizes primitive actions through the frozen fine predictor F1F_{1}. Blue-filled blocks denote the trainable head, gray blocks frozen modules, and dashed red arrows action optimization.

identify the design choices supported by these experiments.

References (38)

  • Differentiable MPC for end-to-end planning and control
  • Hindsight experience replay
  • Self-supervised learning from images with a joint-embedding predictive architecture
  • V-JEPA 2: Self-Supervised Video Models Enable Understanding, Prediction and Planning
  • The option-critic architecture
  • Navigation world models
  • Revisiting feature prediction for learning visual representations from video
  • Diffusion policy: Visuomotor policy learning via action diffusion
  • Deep reinforcement learning in a handful of trials using probabilistic dynamics models
  • A tutorial on the cross-entropy method
  • Contrastive learning as goal-conditioned reinforcement learning
  • Learning to reach goals via iterated supervised learning
  • World Models
  • Learning latent dynamics for planning from pixels
  • Dream to control: Learning behaviors by latent imagination
  • Mastering Atari with discrete world models
  • Deep hierarchical planning from pixels
  • Mastering diverse control tasks through world models
  • Temporal difference learning for model predictive control
  • TD-MPC2: Scalable, robust world models for continuous control
  • Learning multi-level hierarchies with hindsight
  • LeWorldModel: Stable end-to-end joint-embedding predictive architecture from pixels (opens arXiv in a new tab)
  • Data-efficient hierarchical reinforcement learning
  • Deep dynamics models for learning dexterous manipulation
  • Visual reinforcement learning with imagined goals
  • Latent geometry beyond search: Amortizing planning in world models (opens arXiv in a new tab)
  • HIQL: Offline goal-conditioned RL with latent states as actions
  • OGBench: Benchmarking offline goal-conditioned RL. In International Conference on Learning Representations (ICLR), 2025
  • Sample-efficient cross-entropy method for real-time planning
  • The Cross-Entropy Method: A Unified Approach to Combinatorial Optimization, Monte-Carlo Simulation and Machine Learning
  • Mastering Atari, Go, chess and shogi by planning with a learned model
  • A general reinforcement learning algorithm that masters chess, shogi, and go through self-play
  • Between MDPs and semi-MDPs: A framework for temporal abstraction in reinforcement learning
  • FeUdal networks for hierarchical reinforcement learning
  • Aggressive driving with model predictive path integral control
  • H-JEPA: End-to-End Learning of Hierarchical World Models for Visual Planning
  • Hierarchical planning with latent world models (opens arXiv in a new tab)
  • DINO-WM: World models on pre-trained visual features enable zero-shot planning