Manuscript Offprint
arXiv:2610.36662SWIM: Learning What Matters from Behaviors for JEPA World Models
Abstract
Joint-embedding predictive architectures (JEPAs) enable world models to plan from images by predicting future embeddings. However, their visual prediction objectives do not explicitly incorporate task-relevant state information, so the physical state that determines task progress may not be reliably captured in the latent space. Supervising world models with simulator state can make planning more informative, but it requires deciding which state features matter. Features are typically selected by hand or weighted uniformly, and a uniform weighting gives every standardized state feature equal influence, so redundant coordinates can overcount the same variation, while irrelevant ones can obscure task-relevant differences. To address this limitation, we propose SWIM (State Weighting with Inverse-Dynamics Model), which learns state weights from offline trajectories by predicting recorded actions from current states and observed future displacements. The learned weights quantify each feature's contribution to action prediction and define a weighted state metric for state-supervised training, which we demonstrate by aligning latent and state distances. The inverse-dynamics model is used only during training, so the resulting world model plans from images with no additional planning-time computation. Across five simulated robotic manipulation tasks, SWIM consistently improves planning success over uniform state weighting.
Equal contribution. Correspondence to jh7453@bu.edu. This work was completed while Jiaming Hu and Shi Bo were interns at Unity Technologies.
Contents
1 Introduction 3
2 Related Work 4
3 Preliminaries 5
3.1 Latent-Space Planning with LeWM 5
3.2 SCALE 6
4 SWIM 6
4.1 Learning State-Feature Gates via Inverse Dynamics 6
4.2 Transferring Learned Gates to Latent Geometry 8
4.3 Why Learned Weights Help Planning 8
5 Experiments 9
5.1 Setup 9
5.2 Does Behavioral Weighting Improve Planning? 9
5.3 What Happens When Irrelevant Variables Are Supplied? 10
6 Discussion and Conclusion 11
A Training Details and the Behavioral Objective 14
B Metric Transfer and Interpretation 15
C State-Gate Values Across Tasks 15
D Structured-Distractor Diagnostics 18
E Experimental Details and Planning Protocol 19
F Ablation Studies 19
F.1 Loss-Component Ablations 19
F.2 Gate Penalty and Discrimination Objective 20
F.3 Hinge-Margin and InfoNCE-Temperature Sensitivity 20
F.4 Data Efficiency of Gate Learning 20
G State-Weight Comparison and Planning Proofs 21
This has motivated supervising world models with the simulator states recorded alongside offline data, which provide a direct signal of task progress: TC-WM aligns compact visual representations with proprioceptive state (Fu et al., 2026), PhyLatent and PSG-JEPA ground latent representations in physical state (Zeng et al., 2026; Yan et al., 2026), and SCALE aligns latent distances with task-state distances during world-model training (Hu et al., 2026). These methods take the supervising state as given, so their effectiveness depends on how the state is selected and weighted. Although state variables contain information relevant to planning, different coordinates may encode overlapping information, while others may be irrelevant to the task. Assigning equal weights to all coordinates can therefore overemphasize redundant information and introduce irrelevant variation into the state supervision, while selecting coordinates by hand requires task-specific expertise. This motivates learning the relative contributions of state features rather than treating all coordinates equally.
A key question is how to determine these weights. Prior action-based objectives, including inverse-dynamics models (which infer the action that produced an observed state change) and PLDM (Agrawal et al., 2016; Pathak et al., 2017; Sobal et al., 2025), shape latent representations directly but do not address how individual state coordinates should be weighted. Since actions directly influence future state transitions and task outcomes, we leverage recorded actions to identify state changes that are informative about behavior: a coordinate whose change helps infer the action reflects the agent's behavior, whereas a redundant or unaffected coordinate adds little information. This provides a behavior-grounded surrogate for state relevance.
Building on this idea, we propose SWIM (State Weighting with Inverse-Dynamics Model), a two-stage framework for learning behavior-informed state supervision. First, a gated inverse-dynamics model learns continuous state weights by predicting recorded actions from current states and observed future displacements. Its training combines the log-likelihood of recorded actions, discrimination between matching and mismatched state changes, and regularization. The learned weights define a weighted state metric that can replace the hand-specified state in state-supervised training; we then demonstrate it by calibrating JEPA latent geometry through SCALE (Hu et al., 2026). This approach requires neither reward nor success labels. Because the inverse-dynamics model and simulator states are used only during training, the world model still plans from images without additional inference-time computation.
Our contributions are as follows: (i) We introduce an inverse-dynamics approach to automatically learn the relative importance of state features from offline trajectories. (ii) We demonstrate the learned state metric in SCALE, aligning JEPA latent distances with weighted state distances to better support downstream planning. (iii) We evaluate SWIM on five OGBench manipulation tasks (Park et al., 2025) with the cross-entropy method (CEM) and iCEM planners over five training seeds, where it consistently improves over uniform state weighting, and we analyze how the learned weights respond to structured distractors.
The rest of the paper is organized as follows. Section 2 reviews related work, and Section 3 introduces latent-space planning and state-distance supervision. Section 4 presents SWIM, followed by the experiments in Section 5. Section 6 discusses limitations and concludes. The appendices provide implementation and evaluation details, an analysis of the state transformation and learned weights, and additional experimental results.
2 Related Work
Latent World Models and Planning. World models support control by learning policies from imagined experience (Ha and Schmidhuber, 2018; Hafner et al., 2020) or optimizing action sequences through model predictions (Chua et al., 2018; Hafner et al., 2019; Hansen et al., 2024). Joint-embedding predictive architectures (JEPAs) learn representations through latent prediction without reconstructing observations (LeCun, 2022; Assran et al., 2023). DINO-WM builds on pretrained visual features (Zhou et al., 2025), whereas PLDM and LeWorldModel (LeWM) jointly learn visual representations and latent dynamics (Sobal et al., 2025; Maes et al., 2026). Their prediction objectives do not specify which task-relevant information the representation should capture, which motivates the state supervision discussed next.
State Supervision and Planning-Oriented Representations. Several approaches introduce additional supervision to improve the planning relevance of learned representations. TC-WM learns a compact latent space with a subspace contrastively aligned to the agent's physical state (Fu et al., 2026), while PhyLatent and PSG-JEPA incorporate physical-state grounding and dynamics-related objectives (Zeng et al., 2026; Yan et al., 2026). Other methods use value guidance, temporal distance, and reachability information to make latent representations more suitable for planning (Destrade et al., 2025; Bai and Xiong, 2026; Li et al., 2026). Decision-Metric Alignment further studies whether latent distances correctly rank candidate action sequences (Wang et al., 2026). SCALE directly correlates pairwise latent distances with task-state distances (Hu et al., 2026). TC-WM, PhyLatent, PSG-JEPA, and SCALE all rely on a fixed choice of state coordinates, selected by hand or weighted uniformly; SWIM instead learns how much each state coordinate should contribute, and we demonstrate it with SCALE.
Inverse Dynamics and Behavioral Relevance. Inverse dynamics has been widely used to learn action-relevant representations from observed transitions (Agrawal et al., 2016; Pathak et al., 2017). More recent approaches incorporate action-based objectives into latent world-model training, including PLDM, DA-LeWM, AC-MTM, and LeWAM (Sobal et al., 2025; Wang et al., 2026; Boylan and Hokamp, 2026; Hegde et al., 2026). Related work on actionable representations and bisimulation connects state similarity to behavior and task-related signals (Ghosh et al., 2019; Ferns et al., 2004; Zhang et al., 2021), while sparse regularization and differentiable feature selection provide mechanisms for learning feature weights (Tibshirani, 1996; Louizos et al., 2018). These methods shape latent representations directly, define state similarity through rewards or learned policies, or provide weighting mechanisms without a behavioral target; none learns per-coordinate weights over recorded state variables for state supervision. SWIM instead uses gated inverse dynamics to learn weights over recorded state variables, which then define the state supervision for world-model training.
3 Preliminaries
In this section, we review latent-space planning with LeWM and introduce SCALE, the state-supervised objective we use to demonstrate SWIM, which correlates latent distances with state distances. Throughout the paper, lowercase bold letters denote vectors and uppercase bold letters denote matrices; unbolded indexed letters denote scalar entries. For example, has entries , and has entries . For , we define and .
3.1 Latent-Space Planning with LeWM
LeWorldModel (LeWM) jointly learns an image encoder and action-conditioned latent dynamics, enabling an agent to evaluate candidate action sequences by predicting their outcomes in latent space (Maes et al., 2026). We introduce its planning formulation and training objective below. Let denote an image at decision step and the stacked vector of actions executed before the next decision step. An episode is one recorded environment trajectory, and a sub-trajectory is a contiguous segment of an episode. LeWM uses an encoder and an action-conditioned predictor , with trainable parameters and , respectively. Writing for the latent dimension, the model produces and . We suppress the predictor's finite history in this notation.
At test time, is the planning horizon in decision steps. Given a current image and candidate actions , the model initializes and rolls out
For a fixed initial observation and history, denotes the predicted terminal embedding under that action sequence. Given a goal image and its embedding , we define the planning cost function , which assigns a scalar score to each candidate action sequence, as
The cross-entropy method (CEM) and its improved variant iCEM search for action sequences that minimize the planning cost J in Equation (3.2), while the encoder and predictor remain fixed (de Boer et al., 2005; Pinneri et al., 2021). Thus the solver performs the search, and the latent distance supplies the cost used to compare candidates.
LeWM learns the encoder and predictor from observed transitions. For a transition , the one-step latent-prediction loss is
This loss alone admits collapsed solutions in which every image has the same embedding. LeWM stacks a batch of encoder outputs as the rows of a matrix Z and applies SIGReg, which projects the embeddings onto random unit directions and penalizes deviations of those projected distributions from a standard Gaussian (Balestriero and LeCun, 2025; Maes et al., 2026). This regularizer maintains global spread. With nonnegative weight , the objective is
While these objectives support stable latent prediction, neither explicitly optimizes the representation geometry used to compare candidate action sequences in Equation (3.2).
3.2 SCALE
SCALE (State-CAlibrated Latent Embeddings) aims to make the planning cost more informative about task progress by encouraging latent distances to reflect differences in task-relevant state (Hu et al., 2026). Let contain selected state variables, such as an object's position and orientation, standardized componentwise using statistics computed once over all frames of the offline dataset, before the train/validation split. For sampled image-frame index pairs , , latent and state distances are computed from the same pairs:
Writing and for the paired distance vectors, SCALE encourages positive correlation between them. For nonconstant and , its correlation loss and complete training objective take the following form when numerical stabilization is omitted:
where denotes Pearson correlation and the nonnegative coefficients weight the regularizers. Minimizing encourages pairs with larger task-state differences to lie farther apart in latent space.
We refer to SCALE applied to all supplied state coordinates with uniform weights as SCALE-All; it is the main baseline in our experiments. SCALE uses state distances as fixed supervision targets for latent geometry. However, these targets are determined by the supplied state coordinates and their uniform weighting. Consequently, redundant or irrelevant coordinates can influence the learned geometry even when latent-state alignment is successful. This limitation motivates learning a weighted state metric before using it for representation calibration. In the next section, we introduce SWIM, which learns these weights from offline action information.
4 SWIM
SWIM consists of two stages (Figure 1). In Stage 1, we learn state-feature weights from offline trajectories using gated inverse dynamics; these weights define a state metric that does not depend on the downstream objective. In Stage 2, we demonstrate this metric with SCALE, using it as the target for calibrating the latent geometry of JEPA world models.
4.1 Learning State-Feature Gates via Inverse Dynamics
Each Stage-1 example is drawn from one offline trajectory and contains the state at a decision step , the state reached decision steps later in the same trajectory, and the action chunk recorded at step . The behavioral horizon is sampled per example and is distinct from the planning horizon (Appendix A). As in SCALE, each state coordinate is standardized by its mean and standard deviation over all frames of the offline dataset; Stage 1 additionally floors the standard deviation and clips extreme values (Appendix A). Standardization places coordinates with different physical units, such as positions and joint-angle features, on a common scale, so each gate weights a coordinate relative to its typical variation in the data rather than its units.
We introduce trainable gate logits and define . We define the observed displacement . A Gaussian multilayer perceptron (MLP) parameterized by , which we call the behavioral predictor, predicts the recorded action from the current state and a gated displacement , and we write the resulting log-likelihood as
(4.1) a Learn behavioral weights

b Calibrate latent geometry
Deployment
Visual world-model planner
Latent rollout, cost, action search
Actions
Figure 1: SWIM. (a) The behavioral predictor learns coordinate weights from current states, gated future changes, and logged actions. (b) Frozen weights rescale standardized states. Squared latent and state distances from the same frame pairs enter the correlation loss, with state distances held fixed; prediction and SIGReg losses are retained. The inset names physical features before standardization and shows illustrative weight bars; within this inset, denotes a joint angle. The training symbols are defined in Sections 4.1–4.2. Deployment uses image-based latent planning; the behavioral predictor and logged future states are training-only components.
where denotes concatenation. The MLP outputs the mean and per-component log standard deviations of the action chunk (Appendix A). The current state remains ungated, while each gate scales the corresponding displacement coordinate. A single gate vector is shared across trajectories within an environment.
Fitting the recorded actions gives the negative log-likelihood (NLL)
where the expectation is over offline examples . This objective alone does not guarantee that the predictor uses the displacement, because actions can often be partly predicted from the current state. If the predictor ignores the displacement, the NLL provides no gradient to the gates, and the gate penalty introduced below drives all gates toward zero regardless of behavioral relevance. We therefore add a discrimination term that requires the observed displacement to explain the recorded action better than mismatched displacements , where is the later state of another example in the same training batch, and and are held fixed. We consider two forms. The hinge loss uses a single mismatched displacement:
where is the margin. If the predictor ignores the displacement, then and the loss remains . The InfoNCE loss (van den Oord et al., 2018) instead contrasts the observed displacement with mismatched displacements , :
where is a temperature. Appendix A specifies how the mismatched later states are drawn from the batch. The complete Stage-1 objective uses a discrimination weight and a gate-penalty coefficient :
We jointly optimize and ; the penalty acts on g and encourages small gates without hard feature selection. Sampling and preprocessing details are in Appendix A.
4.2 Transferring Learned Gates to Latent Geometry
We freeze the learned gates and apply them to the same state coordinates after SCALE's standardization. The gates must enter after standardization and must not be followed by a second coordinate-wise standardization, which would undo them (Appendix B). Defining (with elementwise square root), we obtain the weighted squared state distance
For the frame pairs used by SCALE (Equation (3.5)), we replace SCALE's uniform state-distance target with . Let collect these targets and the corresponding squared latent distances. Substituting the new target into SCALE's correlation term gives
Here is the objective from Equation (3.4). Relative to SCALE-All, only the state-distance targets change; remains fixed and the correlation loss trains the image encoder. The inverse-dynamics model is discarded after Stage 1. At deployment, planning uses the original image-based latent cost and optimizer, without simulator states or additional computation.
4.3 Why Learned Weights Help Planning
The state metric determines the geometry toward which the latent space is calibrated. Under uniform weighting, a redundant encoding of one quantity, such as a sine–cosine pair, is counted more than once, and coordinates unrelated to the task add variation to the target; even perfect latent–state alignment then carries these distortions into the planning cost. The following result makes this precise by separating the planning error into an alignment term, a rollout term, and a term that depends on the state weights.
Following SCALE’s planning analysis (Hu et al., 2026), fix a start–goal pair and candidate action sequences. For candidate , let be its actual terminal state, the encoded actual terminal observation, and its predicted terminal embedding; and denote the goal state and goal embedding. Define
where is the planning cost in Equation (3.2), are the normalized learned gates, and the subscript of indicates the weights used in Equation (4.6). Task progress is measured by a reference metric with weights , , on the same standardized state coordinates. Let and be the empirical standard deviations of and , respectively, using divisor , and let be their Pearson correlation.
Theorem 4.1 (Candidate selection with learned state weights). Suppose , and let , , . For every , we have
(4.8)
The three terms in Equation (4.8) correspond to imperfect alignment with the learned metric, latent rollout error, and discrepancy from the reference task weights. The last term vanishes when . SCALE-All corresponds to uniform weights , for which the bound retains the term however well the latent space is aligned. Learned weights that move toward the reference metric reduce this term; Proposition G.1 and Remark G.2 in Appendix G make this comparison precise.
5 Experiments
5.1 Setup
Environments and Comparisons. We evaluate five OGBench visual manipulation tasks (Park et al., 2025): Cube, Cube-Double, Cube-Triple, Cube-Quadruple, and Scene. Their simulator states expose structured task variables, including object poses, end-effector and joint configurations, and articulated scene elements, together with redundant encodings such as sine-cosine pairs, and the Cube tasks increase the state dimension from 22 to 37 as objects are added. This makes them well suited for studying state weighting. All candidate state coordinates are supplied to the gate together, so feature construction is fixed while relevance weighting is learned. We compare LeWM, LeWM with SCALE-All, and two SWIM variants, SWIM-H and SWIM-N, trained with hinge and InfoNCE discrimination, respectively. We also evaluate DINO-WM, which plans with pretrained visual features. All methods use the same offline data, planning protocol, and planning instances.
Evaluation. We evaluate with CEM and iCEM. Each LeWM-based method is trained with five seeds, and each task, configuration, and planner is evaluated on 600 episodes per training seed. Unless stated otherwise, SWIM-H uses and SWIM-N uses . Table 1 reports CEM results and Table 8 reports iCEM results. For significance, we average success over all tasks and both planners for each training seed and compare with SCALE-All using a paired t-test over the five seeds. Planner parameters, episode allocation, and goal sampling are detailed in Appendix E. The appendices provide gate-learning and feature-weight analyses (Appendices A–C), structured-distractor diagnostics (Appendix D), and objective and data-efficiency ablations (Appendix F).
5.2 Does Behavioral Weighting Improve Planning?
SWIM outperforms LeWM and SCALE-All on all five tasks (Table 1), improving over SCALE-All by 1.0–6.0 percentage points and over LeWM by 2.0–8.9 points, with the largest gain on Scene. With the default configurations, SWIM-H and SWIM-N improve over SCALE-All by 0.9 points (p = 0.009) and 1.0 points (p = 0.022), respectively, and averaging over all ten configurations gives 0.7 points (p = 0.006); in each case, SWIM is better on all five training seeds. DINO-WM remains stronger on Cube-Triple. SWIM-H* is higher on four tasks and SWIM-N* on Scene, but the two objectives perform comparably overall, so the choice of discrimination loss is not critical.
| Task | DINO-WM | LeWM | SCALE-All | SWIM-H | SWIM-N | SCALE-All | LeWM |
|---|---|---|---|---|---|---|---|
| Cube | 72.5 | 67.7±1.0 | 74.6±1.1 | 75.9±1.5 (.01) | 75.8±1.2 (.03) | +1.3 | +8.3 |
| Cube-Double | 17.5 | 16.4±1.1 | 18.2±0.8 | 19.4±1.1 (1.0) | 19.3±0.7 (1.0) | +1.1 | +3.0 |
| Cube-Triple | 34.2 | 30.6±0.8 | 31.3±1.2 | 32.6±1.0 (.05) | 32.4±0.5 (.03) | +1.3 | +2.0 |
| Cube-Quadruple | 30.2 | 28.3±1.0 | 29.6±0.7 | 30.7±0.9 (.03) | 30.5±0.6 (1.0) | +1.0 | +2.3 |
| Scene | 22.0 | 30.5±0.5 | 33.4±1.9 | 37.3±3.3 (.1) | 39.4±2.3 (.1) | +6.0 | +8.9 |
Table 1: CEM planning success (%) over five training seeds (mean ± standard deviation). SWIM-H* and SWIM-N* use the best λ for each task, shown in parentheses. DINO-WM uses pretrained visual features. The Δ columns compare the better SWIM variant with SCALE-All and LeWM. Bold: best; underline: second best.


Figure 2: Learned gates on Cube (InfoNCE with regularization). (a) Gate values for the 22 candidate state dimensions as the sparsity coefficient increases. End-effector height (eff_z), block height (block_z), and the arm joints (cos_j1, cos_j3, sin_j3) are retained longest, while sin_j1 and sin_j2 are suppressed first. (b) Gates learned at when 26 structured variables from unrelated Scene trajectories are appended to the Cube state (48 candidate dimensions). Every distractor receives a gate of at most 0.31, and the five Cube dimensions at or above 0.5 are exactly the five retained at on the clean 22-dimensional state.
5.3 What Happens When Irrelevant Variables Are Supplied?
SWIM assigns low weights to irrelevant state variables while preserving the ranking of the original coordinates, and largely recovers the planning success lost to them. We first examine the weights on the clean Cube state. Figure 2(a) shows how regularization changes the Cube weights. At , five coordinates have gates of at least 0.5: eff_z, cos_j1, cos_j3, sin_j3, and block_z. Relative rankings can change with regularization: for example, block_y starts highest but falls below 0.5 at the strongest displayed penalty.
To test contamination, we append 26 variables from unrelated Scene trajectories to the 22-dimensional Cube vector. The ranking of the original coordinates remains similar to the clean-state ranking across the reported penalties (Table 6); Figure 2(b) displays all weights in the augmented state at . At , their Spearman correlation is 0.995, and all appended coordinates have gates at most 0.31.
The distractors also affect planning (Table 7, single training seed). Uniform alignment to the contaminated state lowers CEM success from 75.5 to 74.2, and weighted alignment at recovers 75.2. Under iCEM, weighted alignment reaches 76.7, above both contaminated (75.5) and clean (76.3) uniform alignment.
6 Discussion and Conclusion
In this paper, we propose SWIM, a behavior-informed framework that automatically identifies and weights useful state information for JEPA planning from offline trajectories. Rather than requiring human priors to preselect which candidate state variables are important for a task, SWIM uses recorded actions to learn their relative behavioral relevance, and we demonstrate the resulting weights in SCALE's state-distance calibration. Across five OGBench manipulation tasks and two planners, SWIM consistently improves over uniform state weighting (+0.9–1.0 percentage points, p < 0.05), while the structured-distractor experiment shows that it downweights unrelated variables appended to the state. These results suggest that learning the state metric from behavior can reduce reliance on manually designed task-state representations, particularly when the relevant state information is difficult to identify a priori. SWIM depends on the state variables supplied during training and on the behaviors covered by the offline data, and we have demonstrated it through SCALE. Because the learned metric does not depend on the downstream objective, applying it to other state-supervised objectives, such as subspace alignment or physical-state grounding, is a natural next step. We also expect larger gains when the supplied state contains many more redundant or noisy coordinates, and future work should explore richer, state-dependent weighting mechanisms.
References
Agrawal, P., Nair, A., Abbeel, P., Malik, J., and Levine, S. (2016). Learning to poke by poking: Experiential learning of intuitive physics. In Advances in Neural Information Processing Systems (NeurIPS).
Assran, M., Duval, Q., Misra, I., Bojanowski, P., Vincent, P., Rabbat, M., LeCun, Y., and Ballas, N. (2023). Self-supervised learning from images with a joint-embedding predictive architecture. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).
Bai, J. and Xiong, J. (2026). Temporal-distance JEPA: Plan-aware representation learning for latent world model predictive control. arXiv preprint arXiv:2607.25337.
Balestriero, R. and LeCun, Y. (2025). LeJEPA: Provable and scalable self-supervised learning without the heuristics. arXiv preprint arXiv:2511.08544.
Boylan, J. and Hokamp, C. (2026). No Gaussian required: Contrastive inverse dynamics for JEPA world models. arXiv preprint arXiv:2608.17542.
Chua, K., Calandra, R., McAllister, R., and Levine, S. (2018). Deep reinforcement learning in a handful of trials using probabilistic dynamics models. In Advances in Neural Information Processing Systems (NeurIPS).
de Boer, P.-T., Kroese, D. P., Mannor, S., and Rubinstein, R. Y. (2005). A tutorial on the cross-entropy method. Annals of Operations Research, 134(1):19–67.
Destrade, M., Bounou, O., Le Lidec, Q., Ponce, J., and LeCun, Y. (2025). Value-guided action planning with JEPA world models. arXiv preprint arXiv:2601.00844.
Ferns, N., Panangaden, P., and Precup, D. (2004). Metrics for finite Markov decision processes. In Conference on Uncertainty in Artificial Intelligence (UAI).
Fu, M., Feng, F., Hansen, N., and Huang, B. (2026). Back to parsimonious latents: Learning task-centric world models from visual foundations. arXiv preprint arXiv:2605.25620.
Ghosh, D., Gupta, A., and Levine, S. (2019). Learning actionable representations with goal-conditioned policies. In International Conference on Learning Representations (ICLR).
Ha, D. and Schmidhuber, J. (2018). Recurrent world models facilitate policy evolution. In Advances in Neural Information Processing Systems (NeurIPS).
Hafner, D., Lillicrap, T., Ba, J., and Norouzi, M. (2020). Dream to control: Learning behaviors by latent imagination. In International Conference on Learning Representations (ICLR).
Hafner, D., Lillicrap, T., Fischer, I., Villegas, R., Ha, D., Lee, H., and Davidson, J. (2019). Learning latent dynamics for planning from pixels. In International Conference on Machine Learning (ICML).
Hansen, N., Su, H., and Wang, X. (2024). TD-MPC2: Scalable, robust world models for continuous control. In International Conference on Learning Representations (ICLR).
Hegde, S., Popov, A., Aljalbout, E., and Smolyanskiy, N. (2026). LeWAM: A JEPA world action model with diffusion-steering-based MPC. arXiv preprint arXiv:2610.12407.
Hu, J., Zheng, Y., and Wang, T. (2026). SCALE: State-calibrated latent embeddings for JEPA planning in the right geometry. arXiv preprint arXiv:2608.16287.
LeCun, Y. (2022). A path towards autonomous machine intelligence. OpenReview, version 0.9.2.
Li, W., Li, G., Maeda, K., Ogawa, T., and Haseyama, M. (2026). Predictive but not plannable: RC-aux for latent world models. arXiv preprint arXiv:2605.07278.
Louizos, C., Welling, M., and Kingma, D. P. (2018). Learning sparse neural networks through regularization. In International Conference on Learning Representations (ICLR).
Maes, L., Le Lidec, Q., Scieur, D., LeCun, Y., and Balestriero, R. (2026). LeWorldModel: Stable end-to-end joint-embedding predictive architecture from pixels. arXiv preprint arXiv:2603.19312.
Park, S., Frans, K., Eysenbach, B., and Levine, S. (2025). OGBench: Benchmarking offline goal-conditioned RL. In International Conference on Learning Representations (ICLR). arXiv:2410.20092.
Pathak, D., Agrawal, P., Efros, A. A., and Darrell, T. (2017). Curiosity-driven exploration by self-supervised prediction. In International Conference on Machine Learning (ICML).
Pinneri, C., Sawant, S., Blaes, S., Achterhold, J., Stueckler, J., Rolinek, M., and Martius, G. (2021). Sample-efficient cross-entropy method for real-time planning. In Conference on Robot Learning (CoRL).
Sobal, V., Zhang, W., Cho, K., Balestriero, R., Rudner, T. G. J., and LeCun, Y. (2025). Learning from reward-free offline data: A case for planning with latent dynamics models. arXiv preprint arXiv:2502.14819.
Tibshirani, R. (1996). Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society: Series B, 58(1):267–288.
van den Oord, A., Li, Y., and Vinyals, O. (2018). Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748.
Wang, J., Rui, K., Zuo, Y., Feng, Y., and Li, M. (2026). Decision-metric alignment in latent world models: Diagnostics and action-conditioned objectives for MPC planning. arXiv preprint arXiv:2608.18746.
Yan, H. et al. (2026). Is forward prediction enough? physical state grounding for JEPA world models. arXiv preprint arXiv:2608.06799.
Zeng, X., Ren, H., and Song, Z. (2026). PhyLatent: Learning dynamics-relevant representations for JEPA world models. arXiv preprint arXiv:2608.05720.
Zhang, A., McAllister, R., Calandra, R., Gal, Y., and Levine, S. (2021). Learning invariant representations for reinforcement learning without reconstruction. In International Conference on Learning Representations (ICLR).
Zhou, G., Pan, H., LeCun, Y., and Pinto, L. (2025). DINO-WM: World models on pre-trained visual features enable zero-shot planning. In Proceedings of the 42nd International Conference on Machine Learning (ICML). arXiv:2411.04983.
A Training Details and the Behavioral Objective
In Appendices A–F, gate values refer to the original Stage-1 sigmoid gates, before the normalization used in the planning analysis.
Data and Time Indexing. Stage 1 uses simulator states and actions from the same offline trajectories as Stage 2. Images, rewards, and success labels do not enter the behavioral predictor. Let denote a sampled raw-frame start and the action at raw frame . With frame skip , the target action chunk is . A behavioral horizon spans raw frames. Starting frames are sampled uniformly over all raw frames whose frame lies in the same episode, irrespective of the sampled ; the fixed validity filter uses the maximum offset raw frames. Horizon is distinct from the planner's rollout horizon .
State and Action Standardization. Stage 1 and Stage 2 compute separate per-coordinate state means and standard deviations, each once over all frames of the offline dataset, before the train/validation split. In Stage 1, standardized state coordinates use a standard-deviation floor of and are clipped to ; Stage 2 does not clip standardized states. Stage 1 displacements are direct differences of its once-standardized states, with no additional normalization. Stage 1 action targets are standardized per coordinate and clipped to , and the Gaussian negative log-likelihood is evaluated in this standardized action space.
Predictor and Initialization. The Gaussian predictor is an MLP with two hidden layers of 1024 units, each followed by layer normalization (LayerNorm) and a Gaussian error linear unit (GELU) activation. Its outputs are the mean and diagonal log-standard-deviation of the action chunk. The latter is clamped to . Gate logits are initialized at , giving . All candidate coordinates start with positive weight; no hard threshold is applied to the learned vector.
In-Batch Discrimination. The mismatched later states in Equations (4.3) and (4.4) are taken from other examples in the same batch, each at its own sampled horizon, while the current state and action stay fixed. The examples in a batch are ordered cyclically. For the hinge loss, the mismatched later state of each example is that of the next example in this order. For InfoNCE, the mismatched later states are those of the next examples, with batch size and temperature . Thus, the denominator contains the observed displacement and 255 alternatives, not every example in the batch. Neither construction verifies that a mismatch is unreachable or behaviorally incompatible, so correlated or similar examples can weaken the contrast.
Regularization Settings. The reported grid uses with for both discrimination objectives. The reference hinge configuration uses margin and ; InfoNCE uses temperature and . All Stage-1 runs use . Optimization uses Adam with learning rate for 8000 steps, gradient clipping at 1.0, and a fixed gate-training seed. The hinge batch size is 4096 and the InfoNCE batch size is 1024.
Stage-2 Interface. The learned gates are detached. The state distances are computed after applying to standardized coordinates, with no subsequent coordinate-wise restandardization. Stage 2 uses and . Each batch samples 4096 frame pairs: half within trajectory segments and half across episodes, with rejection sampling ensuring that the two episodes in each cross-episode pair are different. The latent encoder and predictor, prediction and SIGReg terms, optimizer, data, and number of epochs match the SCALE-All arm for the task; the optional state-regression head is disabled.
B Metric Transfer and Interpretation
Preprocessing Order. If has unit variance, has variance , so a second coordinate-wise standardization would divide by and restore uniform weighting. The weights must therefore enter after state standardization.
Scale of the Gates. Multiplying by and dividing the predictor's first-layer weights on the gated displacement by leaves every score in Equation (4.1) unchanged while reducing the gate penalty, so Stage 1 does not identify an absolute scale of the gates. This does not affect Stage 2, because Pearson correlation is invariant to a common positive rescaling of the state distances; only the relative weights matter.
C State-Gate Values Across Tasks
The following tables report Stage-1 gate values for Cube-Double, Cube-Triple, Cube-Quadruple, and Scene. Each table includes the full candidate state vector for -regularized Hinge and InfoNCE models at four sparsity coefficients. These tables report continuous gate values without thresholding.
Feature names in these tables identify coordinates in the supplied state representation. The prefixes b0, b1, and so on identify cube slots, with suffixes x, y, and z denoting position coordinates; eff denotes end-effector position. The sin_j and cos_j fields encode joint angles, and grip fields describe the gripper. The sin2psi, cos2psi, sin4th, and cos4th fields are trigonometric orientation features. The Scene fields drawer, window, and btn refer to the corresponding objects and buttons.
For the multi-cube tasks, corresponding coordinates of different cube slots often receive closely matched gates. For example, at , InfoNCE assigns b0_y, b1_y, and b2_y gates of 0.95 on Cube-Triple and all four corresponding b0_y–b3_y coordinates gates of 0.95 on Cube-Quadruple; their corresponding and coordinates are also closely grouped. This suggests that the learned weighting reflects shared coordinate roles across repeated objects, rather than arbitrary slot-specific preferences, while not implying exact equality at every coefficient.
Table 2: Stage-1 gate values on Cube-Double (27 dimensions). Values are continuous gates learned with regularization and the two discrimination objectives across the displayed values.
| Feature | + Hinge | + InfoNCE | ||||||
|---|---|---|---|---|---|---|---|---|
| b0_y | ||||||||
| b1_y | ||||||||
| b0_x | ||||||||
| b1_x | ||||||||
| eff_z | ||||||||
| eff_y | ||||||||
| cos_j3 | ||||||||
| grip_open | ||||||||
| sin_j3 | ||||||||
| b1_z | ||||||||
| b0_z | ||||||||
| eff_x | ||||||||
| cos_j1 | ||||||||
| cos_j0 | ||||||||
Continued on next page
Table 2 (continued)
| Feature | + Hinge | + InfoNCE | ||||||
|---|---|---|---|---|---|---|---|---|
| 0.03 | 0.05 | 0.10 | 0.03 | 0.05 | 0.10 | |||
| cos2psi | 0.75 | 0.58 | 0.45 | 0.29 | 0.79 | 0.66 | 0.55 | 0.37 |
| sin2psi | 0.73 | 0.56 | 0.44 | 0.28 | 0.77 | 0.64 | 0.53 | 0.35 |
| sin_j2 | 0.67 | 0.45 | 0.31 | 0.16 | 0.64 | 0.43 | 0.30 | 0.15 |
| cos_j2 | 0.67 | 0.45 | 0.30 | 0.14 | 0.66 | 0.47 | 0.33 | 0.16 |
| sin_j0 | 0.64 | 0.44 | 0.31 | 0.18 | 0.67 | 0.50 | 0.37 | 0.21 |
| grip_contact | 0.63 | 0.47 | 0.36 | 0.20 | 0.63 | 0.48 | 0.38 | 0.23 |
| b0_cos4th | 0.57 | 0.36 | 0.26 | 0.17 | 0.72 | 0.52 | 0.40 | 0.25 |
| b0_sin4th | 0.56 | 0.35 | 0.26 | 0.16 | 0.72 | 0.53 | 0.40 | 0.25 |
| b1_sin4th | 0.56 | 0.35 | 0.26 | 0.16 | 0.71 | 0.52 | 0.39 | 0.24 |
| b1_cos4th | 0.55 | 0.34 | 0.25 | 0.16 | 0.71 | 0.51 | 0.39 | 0.24 |
| sin_j1 | 0.49 | 0.35 | 0.26 | 0.17 | 0.51 | 0.38 | 0.30 | 0.20 |
| cos_j4 | 0.25 | 0.10 | 0.06 | 0.04 | 0.27 | 0.10 | 0.06 | 0.03 |
| sin_j4 | 0.06 | 0.03 | 0.03 | 0.02 | 0.09 | 0.03 | 0.03 | 0.02 |
Table 3: Stage-1 gate values on Cube-Triple (32 dimensions). Values are continuous gates learned with regularization and the two discrimination objectives across the displayed values.
| Feature | + Hinge | + InfoNCE | ||||||
|---|---|---|---|---|---|---|---|---|
| 0.03 | 0.05 | 0.10 | 0.03 | 0.05 | 0.10 | |||
| b0_y | 0.93 | 0.82 | 0.67 | 0.41 | 0.95 | 0.90 | 0.82 | 0.58 |
| b1_y | 0.93 | 0.82 | 0.66 | 0.40 | 0.95 | 0.90 | 0.82 | 0.57 |
| b2_y | 0.93 | 0.81 | 0.65 | 0.40 | 0.95 | 0.90 | 0.82 | 0.57 |
| b2_x | 0.89 | 0.69 | 0.50 | 0.30 | 0.93 | 0.85 | 0.73 | 0.46 |
| b0_x | 0.89 | 0.68 | 0.50 | 0.30 | 0.94 | 0.86 | 0.74 | 0.47 |
| b1_x | 0.89 | 0.68 | 0.49 | 0.29 | 0.94 | 0.86 | 0.73 | 0.47 |
| eff_y | 0.88 | 0.80 | 0.69 | 0.48 | 0.89 | 0.82 | 0.73 | 0.54 |
| eff_z | 0.88 | 0.84 | 0.79 | 0.65 | 0.87 | 0.84 | 0.80 | 0.69 |
| cos_j3 | 0.88 | 0.83 | 0.77 | 0.61 | 0.87 | 0.84 | 0.81 | 0.70 |
| grip_open | 0.84 | 0.76 | 0.67 | 0.49 | 0.84 | 0.76 | 0.68 | 0.50 |
| eff_x | 0.83 | 0.68 | 0.53 | 0.32 | 0.85 | 0.74 | 0.62 | 0.40 |
| sin_j3 | 0.83 | 0.73 | 0.61 | 0.39 | 0.84 | 0.77 | 0.69 | 0.49 |
| cos_j1 | 0.81 | 0.66 | 0.52 | 0.30 | 0.80 | 0.68 | 0.55 | 0.33 |
| b1_z | 0.79 | 0.66 | 0.54 | 0.36 | 0.79 | 0.67 | 0.56 | 0.38 |
| b0_z | 0.78 | 0.64 | 0.53 | 0.35 | 0.80 | 0.69 | 0.58 | 0.40 |
| cos_j0 | 0.77 | 0.57 | 0.40 | 0.21 | 0.81 | 0.67 | 0.53 | 0.30 |
| b2_z | 0.77 | 0.63 | 0.52 | 0.34 | 0.79 | 0.68 | 0.57 | 0.39 |
| cos2psi | 0.75 | 0.57 | 0.44 | 0.28 | 0.81 | 0.68 | 0.56 | 0.37 |
| sin2psi | 0.74 | 0.56 | 0.43 | 0.27 | 0.81 | 0.69 | 0.56 | 0.37 |
| cos_j2 | 0.69 | 0.45 | 0.30 | 0.14 | 0.66 | 0.44 | 0.29 | 0.14 |
| sin_j2 | 0.67 | 0.43 | 0.29 | 0.14 | 0.62 | 0.38 | 0.25 | 0.12 |
| sin_j0 | 0.65 | 0.43 | 0.31 | 0.17 | 0.68 | 0.49 | 0.35 | 0.20 |
| grip_contact | 0.62 | 0.43 | 0.32 | 0.18 | 0.62 | 0.46 | 0.34 | 0.20 |
| b2_sin4th | 0.57 | 0.34 | 0.24 | 0.15 | 0.75 | 0.54 | 0.40 | 0.24 |
| b1_sin4th | 0.56 | 0.34 | 0.24 | 0.15 | 0.74 | 0.53 | 0.39 | 0.24 |
| b0_cos4th | 0.56 | 0.33 | 0.24 | 0.15 | 0.74 | 0.53 | 0.39 | 0.23 |
| b0_sin4th | 0.56 | 0.33 | 0.24 | 0.15 | 0.73 | 0.51 | 0.38 | 0.23 |
| b2_cos4th | 0.55 | 0.33 | 0.24 | 0.15 | 0.71 | 0.49 | 0.36 | 0.21 |
| b1_cos4th | 0.54 | 0.32 | 0.23 | 0.15 | 0.74 | 0.53 | 0.39 | 0.23 |
| sin_j1 | 0.48 | 0.33 | 0.25 | 0.16 | 0.52 | 0.38 | 0.29 | 0.19 |
| cos_j4 | 0.21 | 0.09 | 0.06 | 0.04 | 0.29 | 0.12 | 0.07 | 0.04 |
| sin_j4 | 0.12 | 0.04 | 0.03 | 0.02 | 0.07 | 0.03 | 0.02 | 0.02 |
Table 4: Stage-1 gate values on Cube-Quadruple (37 dimensions). Values are continuous gates learned with regularization and the two discrimination objectives across the displayed values.
| Feature | + Hinge | + InfoNCE | ||||||
|---|---|---|---|---|---|---|---|---|
| 0.03 | 0.05 | 0.10 | 0.03 | 0.05 | 0.10 | |||
| b3_y | 0.93 | 0.77 | 0.58 | 0.34 | 0.95 | 0.89 | 0.79 | 0.52 |
| b2_y | 0.92 | 0.76 | 0.57 | 0.33 | 0.95 | 0.89 | 0.78 | 0.51 |
| b0_y | 0.92 | 0.75 | 0.57 | 0.33 | 0.95 | 0.88 | 0.77 | 0.50 |
| b1_y | 0.92 | 0.75 | 0.57 | 0.33 | 0.95 | 0.88 | 0.77 | 0.50 |
| eff_y | 0.89 | 0.80 | 0.69 | 0.48 | 0.89 | 0.82 | 0.74 | 0.53 |
| b0_x | 0.88 | 0.62 | 0.43 | 0.25 | 0.93 | 0.82 | 0.67 | 0.41 |
| b2_x | 0.88 | 0.62 | 0.44 | 0.26 | 0.93 | 0.83 | 0.68 | 0.41 |
| b1_x | 0.88 | 0.62 | 0.44 | 0.26 | 0.93 | 0.84 | 0.69 | 0.42 |
| b3_x | 0.88 | 0.62 | 0.44 | 0.26 | 0.93 | 0.83 | 0.69 | 0.42 |
| cos_j3 | 0.87 | 0.82 | 0.76 | 0.59 | 0.88 | 0.84 | 0.80 | 0.69 |
| eff_z | 0.87 | 0.82 | 0.77 | 0.62 | 0.88 | 0.84 | 0.81 | 0.70 |
| sin_j3 | 0.84 | 0.74 | 0.64 | 0.42 | 0.85 | 0.79 | 0.71 | 0.53 |
| eff_x | 0.83 | 0.65 | 0.50 | 0.30 | 0.85 | 0.73 | 0.59 | 0.38 |
| grip_open | 0.82 | 0.70 | 0.58 | 0.39 | 0.85 | 0.77 | 0.68 | 0.50 |
| cos_j1 | 0.81 | 0.68 | 0.54 | 0.32 | 0.81 | 0.68 | 0.54 | 0.31 |
| cos_j0 | 0.78 | 0.56 | 0.39 | 0.21 | 0.80 | 0.63 | 0.47 | 0.25 |
| cos2psi | 0.78 | 0.60 | 0.46 | 0.29 | 0.83 | 0.70 | 0.57 | 0.37 |
| sin2psi | 0.78 | 0.59 | 0.45 | 0.29 | 0.83 | 0.69 | 0.56 | 0.37 |
| b2_z | 0.74 | 0.57 | 0.45 | 0.28 | 0.76 | 0.63 | 0.51 | 0.33 |
| b1_z | 0.72 | 0.55 | 0.43 | 0.27 | 0.76 | 0.63 | 0.52 | 0.34 |
| b3_z | 0.72 | 0.55 | 0.42 | 0.27 | 0.77 | 0.65 | 0.53 | 0.35 |
| b0_z | 0.71 | 0.54 | 0.42 | 0.26 | 0.76 | 0.63 | 0.52 | 0.34 |
| cos_j2 | 0.67 | 0.41 | 0.27 | 0.13 | 0.65 | 0.42 | 0.27 | 0.12 |
| sin_j0 | 0.66 | 0.44 | 0.31 | 0.18 | 0.69 | 0.48 | 0.35 | 0.19 |
| sin_j2 | 0.66 | 0.40 | 0.26 | 0.13 | 0.69 | 0.46 | 0.31 | 0.15 |
| grip_contact | 0.57 | 0.37 | 0.26 | 0.15 | 0.65 | 0.48 | 0.36 | 0.21 |
| b1_cos4th | 0.53 | 0.30 | 0.21 | 0.13 | 0.72 | 0.49 | 0.35 | 0.21 |
| b3_sin4th | 0.52 | 0.29 | 0.21 | 0.12 | 0.73 | 0.50 | 0.36 | 0.22 |
| b0_sin4th | 0.52 | 0.29 | 0.21 | 0.13 | 0.74 | 0.51 | 0.37 | 0.22 |
| b3_cos4th | 0.51 | 0.29 | 0.21 | 0.13 | 0.72 | 0.48 | 0.35 | 0.20 |
| b2_sin4th | 0.51 | 0.28 | 0.20 | 0.12 | 0.73 | 0.50 | 0.36 | 0.21 |
| b1_sin4th | 0.50 | 0.28 | 0.20 | 0.12 | 0.73 | 0.51 | 0.37 | 0.22 |
| b0_cos4th | 0.50 | 0.28 | 0.21 | 0.13 | 0.70 | 0.46 | 0.32 | 0.19 |
| b2_cos4th | 0.48 | 0.27 | 0.20 | 0.12 | 0.73 | 0.50 | 0.36 | 0.22 |
| sin_j1 | 0.47 | 0.31 | 0.23 | 0.14 | 0.53 | 0.38 | 0.29 | 0.18 |
| cos_j4 | 0.19 | 0.08 | 0.06 | 0.04 | 0.32 | 0.12 | 0.07 | 0.04 |
| sin_j4 | 0.04 | 0.03 | 0.03 | 0.02 | 0.11 | 0.04 | 0.03 | 0.02 |
Table 5: Stage-1 gate values on Scene (26 dimensions). Values are continuous gates learned with regularization and the two discrimination objectives across the displayed values.
| Feature | + Hinge | + InfoNCE | ||||||
|---|---|---|---|---|---|---|---|---|
| 0.03 | 0.05 | 0.10 | 0.03 | 0.05 | 0.10 | |||
| drawer | 0.89 | 0.78 | 0.66 | 0.44 | 0.96 | 0.92 | 0.86 | 0.68 |
| eff_z | 0.88 | 0.82 | 0.76 | 0.61 | 0.87 | 0.83 | 0.78 | 0.63 |
| cos_j3 | 0.87 | 0.83 | 0.77 | 0.60 | 0.87 | 0.83 | 0.78 | 0.64 |
| window | 0.85 | 0.73 | 0.60 | 0.40 | 0.92 | 0.87 | 0.79 | 0.60 |
| sin_j2 | 0.81 | 0.63 | 0.48 | 0.27 | 0.80 | 0.66 | 0.52 | 0.29 |
| eff_y | 0.80 | 0.63 | 0.49 | 0.31 | 0.80 | 0.66 | 0.53 | 0.35 |
| btn0 | 0.80 | 0.62 | 0.48 | 0.29 | 0.83 | 0.71 | 0.60 | 0.40 |
| grip_open | 0.80 | 0.70 | 0.62 | 0.44 | 0.79 | 0.70 | 0.61 | 0.45 |
| cos2psi | 0.79 | 0.63 | 0.50 | 0.33 | 0.82 | 0.70 | 0.59 | 0.40 |
| eff_x | 0.79 | 0.64 | 0.49 | 0.28 | 0.78 | 0.65 | 0.53 | 0.32 |
| sin_j3 | 0.79 | 0.62 | 0.48 | 0.28 | 0.80 | 0.67 | 0.55 | 0.34 |
| sin_j0 | 0.79 | 0.62 | 0.48 | 0.29 | 0.80 | 0.67 | 0.54 | 0.34 |
| btn1 | 0.79 | 0.60 | 0.46 | 0.28 | 0.82 | 0.71 | 0.59 | 0.39 |
| cos_j0 | 0.78 | 0.60 | 0.45 | 0.27 | 0.79 | 0.66 | 0.54 | 0.34 |
| cos_j1 | 0.78 | 0.64 | 0.50 | 0.29 | 0.77 | 0.65 | 0.54 | 0.33 |
Continued on next page
Table 5 (continued)
| Feature | + Hinge | + InfoNCE | ||||||
|---|---|---|---|---|---|---|---|---|
| b0_y | ||||||||
| cos_j2 | ||||||||
| sin2psi | ||||||||
| sin_j1 | ||||||||
| sin_j4 | ||||||||
| cos_j4 | ||||||||
| b0_x | ||||||||
| b0_z | ||||||||
| grip_contact | ||||||||
| b0_sin4th | ||||||||
| b0_cos4th | ||||||||
D Structured-Distractor Diagnostics
The contamination experiment appends 26 coordinates from unrelated Scene trajectories to Cube's 22-dimensional state. Gate stability compares the weights assigned to the same original Cube coordinates under clean and augmented training. For , let and denote these two gate values, and define . The mean and maximum of are taken over these 22 coordinates. We denote Spearman rank correlation by and Pearson correlation by . The reporting sets are and . Jaccard overlap is . The gates remain continuous in the planner's training target.
| Spearman | Pearson | mean | max | Counts | Jaccard | |
|---|---|---|---|---|---|---|
| 0.01 | ||||||
| 0.03 | ||||||
| 0.05 | ||||||
| 0.10 |
Table 6: Gate stability under the Scene-coordinate augmentation. The comparison uses the original 22 Cube coordinates, with InfoNCE and regularization. Spearman and Pearson measure rank and linear association, respectively. Counts give clean / augmented numbers of coordinates at or above the reporting threshold.
| Alignment target | State | CEM | iCEM |
|---|---|---|---|
| none (LeWM) | |||
| SCALE-All | clean, 22-d | ||
| SCALE-All | contaminated, 48-d | ||
| SWIM () | contaminated, 48-d | ||
| SWIM () | contaminated, 48-d |
Table 7: Downstream planning under state contamination on Cube. CEM/iCEM success percentages from a single training seed. The reference is clean SCALE-All; bold marks the largest value in each planner column.
E Experimental Details and Planning Protocol
Tasks and Evaluation. The state dimensions for Cube, Cube-Double, Cube-Triple, Cube-Quadruple, and Scene are 22, 27, 32, 37, and 26, respectively. Each LeWM-based method is trained with five seeds. Each task, configuration, and planner is evaluated for 600 episodes per training seed, distributed across six evaluation seeds with 100 episodes per seed. Table 8 reports iCEM planning success in the format of Table 1.
CEM Planning Protocol. Following the CEM setup in LeWM (Maes et al., 2026), each planning iteration evaluates 300 candidate action sequences and retains 30 elite sequences. CEM uses 30 iterations for Push-T and 10 iterations for other environments; the five OGBench tasks evaluated in this work therefore use 10 iterations. The planning horizon is five decision steps with frame skip 5 (25 environment steps). Model predictive control (MPC) executes the complete five-step plan before replanning. Each evaluation episode allows at most 50 environment steps. The goal is sampled from the same offline trajectory at the state 25 environment steps after the initial state.
| Task | LeWM | SCALE-All | SWIM-H* | SWIM-N* | ||
|---|---|---|---|---|---|---|
| Cube | ||||||
| Cube-Double | ||||||
| Cube-Triple | ||||||
| Cube-Quadruple | ||||||
| Scene |
Table 8: iCEM planning success (%) over five training seeds (mean ± standard deviation). Notation as in Table 1.
F Ablation Studies
All planning results below use a single training seed and follow the planning protocol in Appendix E. The full models in Table 9 and all settings in Table 11 use for both discrimination objectives so that they share the same gate penalty. Entries with report mean and standard deviation across the six evaluation seeds.
F.1 Loss-Component Ablations
| Variant | CEM success (%) | iCEM success (%) | Dimensions with |
|---|---|---|---|
| Full Hinge () | |||
| Full InfoNCE () | |||
| No discrimination term | |||
| No NLL |
Table 9: Loss-component ablations. Success rates are percentages. The gate-count threshold is used only for reporting; gates remain continuous. Both ablated objectives retain the gate penalty .
The four SWIM variants have similar success rates. Removing the NLL leaves no gate at or above the reporting threshold, whereas variants retaining the NLL leave 13–20 dimensions at or above threshold. For Hinge, removing the discrimination term reduces the number of retained dimensions from 15 to 13. These results suggest that the NLL supports nontrivial gates and that the discrimination term affects the learned gate profile.
F.2 Gate Penalty and Discrimination Objective
The penalty is ; the squared penalty is . The latter replaces the penalty in Equation (4.5) for the corresponding ablations.
| Penalty + objective | CEM (%) | iCEM (%) | |
| LeWM baseline | - | 67.7 | 70.8 |
| SCALE (9 selected dimensions) | - | 73.5 | 76.7 |
| + Hinge | 0.01 | 76.0 | 77.5 |
| 0.03 | 75.5 | 78.0 | |
| 0.05 | 75.2 | 75.5 | |
| 0.10 | 76.2 | 75.2 | |
| + Hinge | 0.01 | 74.5 | 76.0 |
| 0.03 | 74.5 | 77.0 | |
| 0.05 | 75.7 | 76.3 | |
| 0.10 | 75.3 | 75.8 | |
| + InfoNCE | 0.01 | 74.8 | 76.2 |
| 0.03 | 77.0 | 77.3 | |
| 0.05 | 76.0 | 78.0 | |
| 0.10 | 75.7 | 76.8 | |
| + InfoNCE | 0.01 | 76.3 | 76.5 |
| 0.03 | 75.0 | 77.0 | |
| 0.05 | 76.0 | 75.8 | |
| 0.10 | 75.8 | 76.7 |
Table 10: Regularization-objective comparison. All entries are planning success percentages under the planning protocol in Appendix E.
On Cube, all 16 SWIM configurations exceed SCALE with nine manually selected state dimensions under CEM (74.5–77.0% vs. 73.5%) and are comparable under iCEM (75.2–78.0% vs. 76.7%), without requiring the manual selection. The Spearman rank correlation between - and squared--regularized gates is 0.97 at and 0.99 at . At and 1.0, all squared- gates fall below 0.5 without approaching zero, so the squared penalty preserves graded weights but does not produce the same threshold-based feature selection as . The +Hinge, +InfoNCE, and +InfoNCE variants share the retained set . +Hinge is the exception, retaining grip_open and block_y among its selected dimensions.
F.3 Hinge-Margin and InfoNCE-Temperature Sensitivity
Hinge success changes modestly over the tested margins. For InfoNCE, has the highest mean across CEM and iCEM among the tested temperatures; larger temperatures do not improve CEM success. We therefore use and as defaults.
F.4 Data Efficiency of Gate Learning
For each subset size, we sample three subsets of complete trajectories from the 2,000-trajectory dataset. Selected dimensions are coordinates with ; their reported count is averaged over the
| Setting | CEM success (%) | iCEM success (%) |
|---|---|---|
| Hinge, | ||
| Hinge, (default) | ||
| Hinge, | ||
| Hinge, | ||
| InfoNCE, | ||
| InfoNCE, (default) | ||
| InfoNCE, | ||
| InfoNCE, | ||
| InfoNCE, | ||
| InfoNCE, | ||
| InfoNCE, |
Table 11: Margin and temperature sensitivity. Values report planning success percentages as mean ± standard deviation over six evaluation seeds.
three subsets. We use the gates learned from all 2,000 trajectories as the reference for the Jaccard and Spearman comparisons.
| Trajectories | ||||
|---|---|---|---|---|
| Jaccard | Spearman | Selected dims | Spearman | |
| 25 | 0.40 | 0.69 | 13.0 | 0.03 |
| 50 | 0.45 | 0.71 | 11.0 | 0.08 |
| 100 | 0.65 | 0.79 | 6.0 | 0.30 |
| 250 | 0.80 | 0.81 | 4.0 | 0.61 |
| 500 | 0.80 | 0.86 | 4.0 | 0.81 |
| 1000 | 0.87 | 0.94 | 4.3 | 0.93 |
| 2000 (all) | 1.00 | 0.99 | 5.0 | 0.98 |
Table 12: Gate stability versus offline-data size. Hinge with . Values are means over three trajectory-subset draws. The full-data gates from 2,000 trajectories are the reference for Jaccard and Spearman calculations.
With , the selected-dimension set reaches 0.80 Jaccard overlap with the full-data reference using 250–500 trajectories, and the full-gate ranking reaches Spearman 0.94 at 1,000 trajectories. With weaker sparsity (), ranking is less stable at small sample sizes (Spearman 0.81 at 500 trajectories). Small subsets also retain more dimensions: 25 trajectories retain 13 on average, compared with 5 using all 2,000.
G State-Weight Comparison and Planning Proofs
We use the normalized learned weights and reference weights , with , on the same Stage-2 standardized state coordinates. The notation denotes normalized weights in this appendix and the planning analysis in Section 4.3; elsewhere, it retains its Stage-1 meaning as the sigmoid gates. Normalization preserves candidate ordering and, for nonconstant distance vectors, leaves ideal Pearson correlation unchanged. The subscript of specifies the weights in the sum in Equation (4.6), replacing as appropriate. Fix a start–goal pair and candidate action sequences, and write , with , for candidate 's actual terminal state and for the goal state.
The following proposition isolates the effect of the state metric under exact state-based candidate selection. These exact state-metric minimizers are analytical benchmarks; the deployed planner searches using the predicted latent cost . The comparison relates deviations from the segment joining uniform and reference weights to the reduction in learned-metric cost.
Proposition G.1 (Comparison with uniform state weighting). Let denote uniform weights and set . Choose any and . For , let , . The condition for at least one implies
with strict improvement whenever . Moreover, every satisfies
Uniform weights give the same candidate ordering as the unweighted state distance used by SCALE. A reference metric supported on task-relevant coordinates assigns zero weight to nuisance coordinates. The parameter indexes a linear interpolation of the uniform and reference weights, and measures deviation from this segment. The learned gates need not lie on the segment, but the sufficient condition still restricts their deviation relative to the selection gain. Zero deviation recovers the exact interpolation case. At , the sufficient condition becomes . The comparison uses exact state-metric minimization; Stage 1 is not assumed to satisfy its sufficient condition, consistent with the gate interpretation in Appendix B.
Remark G.2 (Comparison with SCALE-All). Theorem 4.1 provides a common basis for comparing SWIM and SCALE-All when its conditions hold for both models on the same candidates, standardized coordinates, and reference metric. Let and for . By Proposition G.1, the reduction in the weight-discrepancy term from SCALE-All to SWIM satisfies
The SWIM total upper bound is strictly smaller whenever the right-hand side is positive and exceeds any increase in the combined calibration and rollout terms.
We first establish a weight-perturbation bound and prove the proposition. We then control latent rollout error and prove Theorem 4.1.
The first lemma controls the change in a candidate cost difference when the learned weights are replaced by the reference weights.
Lemma G.3 (Perturbation of a candidate cost difference). For candidates , suppose and for all . Then
Proof. Expand both cost differences and collect the terms involving the weight change. The expression inside the absolute value becomes
The coordinate bounds place both squared differences in . Their difference therefore has absolute value at most . Taking the absolute value of the sum and applying the triangle inequality bounds it by
which proves the stated inequality.
Proof of Proposition G.1. Fix any minimizers and and any . The minimizing property of gives . For this proof, write for the comparison weights, so that . Applying Lemma G.3 to the two selected candidates, with in place of the reference weights, gives
The lemma’s coordinate bounds follow from the definition of R. Linearity in the weights expresses the left-hand side as
The first term is nonnegative because minimizes the uniform-metric cost and . Dropping this term and dividing by therefore yields
The condition makes the right-hand side nonpositive, proving Equation (G.1). Strict inequality makes it negative and gives strict improvement. The argument holds for every choice among tied minimizers.
Finally, decompose the weight error through the comparison weights:
The triangle inequality and give
which is Equation (G.2).
The next lemma converts an error in the terminal embedding into an error in the squared planning cost.
Lemma G.4 (Rollout error in the planning cost). For every candidate m,
Proof. Fix a candidate m. Factoring the difference of squared norms reduces the claim to bounding the difference and the sum of the two norms. The reverse triangle inequality and the definition of give
For their sum, the triangle inequality gives
Multiplying these bounds in the difference-of-squares factorization yields
This holds for every candidate m.
Proof of Theorem 4.1. Fix any and choose . Both minimizers exist because the candidate set is finite and nonempty. We first bound the difference between their learned-metric costs, then use Lemma G.3 to return to the reference metric.
From correlation to cost differences. Let and be the empirical means of and , respectively. Since , we can define
The empirical standard deviations use divisor M, so their definitions and the definition of Pearson correlation imply
Expanding the squared residual and substituting these identities gives
In particular, . For distinct indices , , and the remaining squared residuals are nonnegative. Hence
Taking square roots gives . When , the left-hand side is zero, so this bound holds for every pair. The centering terms cancel in cost differences; substituting the definitions of therefore gives the exact identity
This identity separates the true latent-cost difference from the calibration residual, which the preceding bound controls.
Cost of the selected candidate. To bound the true latent-cost difference, insert the predicted costs used by the planner:
The first inequality uses ; the second applies Lemma G.4 to the two candidates. Substituting this bound and the residual bound into the preceding cost identity, and using and , yields
Returning to the reference metric. The definition of supplies the coordinate bounds required by Lemma G.3. Applying that lemma with and , and using the definition of , gives
Substituting the learned-metric bound proves the upper inequality in Equation (4.8). The minimizing property of gives the lower inequality. Since was any minimizer of the predicted costs, the conclusion also covers arbitrary ties.