Manuscript Offprint

arXiv:2610.31194

Inside-JEPA: From Prediction to Relational Grounding in Latent World Models

Hossein Resani, Javen Qinfeng Shi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Hossein Resani 1^{1}

Javen Qinfeng Shi 1,2^{1,2}

1^{1}Australian Institute for Machine Learning, Adelaide University

2^{2}Responsible AI Research Centre

Figure

Figure 1. Inside-JEPA. Each entity box bt,ib_{t,i} is cropped from frame xtx_t, and ff combines the crop’s features from a frozen image encoder with a Fourier embedding γ(b)\gamma(b) of the box. Its output gives the entity latent rt,ir_{t,i} and, through a relation head gg on every ordered pair, KK relational channels st,ij∈(0,1)Ks_{t,ij} \in (0,1)^K (grid rows and columns: entities ii and jj). The state zt=(rt,st)z_t = (r_t, s_t) is advanced by a predictor PP and trained, as in every model we compare, to match an exponential-moving-average target encoder Eˉ\bar{E} under stop-gradient ( LJEPA\mathcal{L}_{\text{JEPA}}, grey). Inside-JEPA adds an inverse-dynamics head hh that must recover the action ata_t, here the Something-Something template “dropping [something] into [something]”, from the relational channels sts_t and st+ks_{t+k} (blue), so the action labels decide what the channels come to mean. No relation label is used in training.

Abstract

Joint-embedding predictive architectures (JEPAs) learn world models in latent space, enabling efficient planning but leaving their states opaque. We introduce Inside-JEPA which places relational channels for ordered entity pairs inside the JEPA latent state and show that an inverse-dynamics loss can ground these channels without relation labels when its head reads them, either alone or as part of the full state. On Something-Something V2, latent prediction alone performs no better than a random relation head, while inverse-dynamics supervision that recovers actions from channel changes improves relational AUROC by .065–.103 across ten settings with annotated boxes, by .081 on RH20T robot episodes with held-out tasks, and by .050–.061 across five relations using off-the-shelf detection and tracking. An inverse head on entity latents decodes actions more accurately but barely improves relational grounding; shuffled labels, two label-free objectives, and action labels on only 5% of the pairs also fail to ground the channels. Given an action, predicted relational changes approach the quality of observed future relations (AUROC .599 vs. .621). For one-step relational goals, a supervised readout of the 16 channels ranks the correct action among the top five of 65 in 43% of cases, compared with 24% for prediction-only latents and 17% for a frequency prior.

1. Introduction

World models that predict in a learned latent space rather than in pixels can ignore what is unpredictable and keep what matters for acting [4, 8, 26], and they now support planning from images and video [5, 7, 49]. Their states, however, are opaque vectors. A probe trained on relation labels can often read from them whether the cup is inside the bowl, but no part of the state is committed to that relation, so neither a goal nor what the model believes can be stated in those terms, although relations between objects are the natural vocabulary for both [21, 46, 47]. In our real-video evaluations, these relations are geometric predicates computed from 2D entity bounding boxes, so inside denotes an image-plane proxy for containment.

A direct remedy is to build the relations into the state: for every ordered pair of entities, a small vector of soft symbols, which we call relational channels, that the predictor consumes and forecasts like the rest of the latent. Unlike neuro-symbolic pipelines that read predicates out of a representation with supervised heads [24, 31, 46], such channels sit inside the dynamics and are trained only through the world model's own objectives, with no relation labels. Nothing in a latent-prediction objective, however, says what they should mean. A predictor is as well served by a static code, or by one that changes without tracking anything, as by a code for the relations: the symbol grounding problem [18], inside a world model. To our knowledge, no prior work has tested whether relational channels in a world model learn meaningful relationships from real videos, or which training signals help them do so.

We study this question with Inside-JEPA (Fig. 1). Our method adds one term to the JEPA objective, an inverse-dynamics loss in which a head must recover the action from the relational channels before and after it, so that the action labels an action-conditioned world model consumes anyway must explain how its relational channels change. To find out what grounds the channels, we compare five models that differ only in whether and where the inverse gradient enters the state and in whether its targets are shuffled (Fig. 2), plus label-free and label-fraction controls. Because post-hoc channel matching makes it easy to find meaning that is not there, each relation is matched to a single channel, and every model is also scored with its relation head replaced by a randomly initialised one, which sees the same box geometry (Fig. 3).

Across a controlled 2-D world, Something-Something V2 with Something-Else boxes [13, 32], RH20T robot episodes [12] and objects found by an off-the-shelf detector and tracker [28, 37], the pattern is the same (Fig. 4). Latent prediction alone leaves the channels at or near the level of a random relation head, or below it. Inverse dynamics grounds them: matched relational AUROC rises by .065–.103 in ten settings with annotated boxes, by .081 on robot episodes with end-effector actions and held-out tasks, and by .050–.061 with tracked objects on five relations; the gain is positive in all 18 settings of Fig. 4 and smallest with tracked objects on thirteen relations and with a frozen V-JEPA 2 encoder (+.016 to +.042). What grounds them is correct action labels that the channels themselves must explain: an inverse head on the entity latents decodes the action best of all models yet barely moves the channels, and shuffled labels, two label-free objectives and labels on 5% of the pairs do not ground them. The grounded channels are useful: given an action, their forecasts of the relations that change score almost as well as the observed future, and a readout of the 16 channels selects actions towards relational goals better than a readout of the prediction-only model's whole latent (top-5 .425 vs. .244, frequency prior .174).

Our contributions are:

• Inside-JEPA, a JEPA world model with relational channels inside its latent state, and evidence that an inverse-dynamics loss can ground those channels without relation labels when its head reads them, either alone (INV-S) or as part of the full state (INV-Z) (Sec. 3).

• A controlled account of what grounds the channels: five models that differ only in their inverse head, on two datasets with two kinds of action and with automatically found objects, scored by one-to-one matched AUROC and against a random relation head. Grounding needs an inverse head that reads the channels and correct action labels on thousands of pairs; latent prediction, shuffled labels and two label-free losses do not ground them (Secs. 5.1 and 5.2).

• Uses and limits of the grounded channels: action-conditioned forecasting and one-step action selection towards relational goals on Something-Else, and a measured account of where grounding stops: left/right, a distributed code, a stronger encoder and a supervised ceiling (Secs. 5.3 and 5.4).

References (43)