SandHouse
Pages and contents

AdaJEPA

0\. Metadata

Field
Value
⋮⋮
Authors
Wang, Bounou, LeCun, Ren
⋮⋮
Year
2026
⋮⋮
Link / arXiv
https://arxiv.org/pdf/2606.32026
⋮⋮
Code
⋮⋮
My relevance (1-5)
5
⋮⋮
Tags
#world-models #jepa-adjacent #mpc #adapt #memory

1\. Problem

World models used for planning are typically frozen after training. When its predictions are inaccurate, model predictive control (MPC) optimizes the wrong objective: actions that appear effective in latent rollouts may fail under the true system dynamics. Even small one-step errors can compound over the planning horizon, causing actions that appear effective in latent imagination to fail in the real environment. This issue is amplified under test-time distribution shift: visual changes such as noise, lighting, or background distractors can misalign the encoder, while changes in friction, mass, or contact dynamics can misalign the latent predictor.

The authors express the opinion that world models should not be fixed after training, but continue to adapt during test time and deployment.

2\. Method

1\. Latent World Model Forward Pass

A latent world model consists of a sensory encoder, an action encoder, and a predictor. The equations to generate the next latent state are:

zt=ℰϕs(ot)
ut=ℰψa(at)
z^t+1=fθ(zt,ut)

Explanation: The sensory encoder ℰϕs maps high-dimensional observations ot to a compact latent representation zt . The action encoder ℰψa processes the action at into an embedding ut . The predictor fθ then estimates the next latent state z^t+1 based on the current state and action inputs.

2\. JEPA Pretraining Objective

\[cite_start\]The world model is trained offline by minimizing a latent prediction loss\[cite: 86\]:

ℒpred=1K∑k=1Kℓ(z^t+k,zt+k)

Explanation: Rather than reconstructing raw pixels, the model minimizes the loss ℓ (such as Mean Squared Error) between its predicted future latent states z^t+k and the actual encoded target representations zt+k over a horizon K .

3\. Model Predictive Control (MPC) Planning

During goal-conditioned planning, the model optimizes an action sequence to reach a defined goal:

at:t+H−1∗=arg⁡minat:t+H−1⁡∑k=1Hαkd(z^t+k,zg)

\]Explanation: The MPC planner simulates latent rollouts over a horizon H and selects the sequence of actions that minimizes the temporal-weighted αk distance d between the predicted states z^t+k and the target goal representation zg.

4\. Test-Time Adaptation Loss

During the closed-loop plan-and-adapt phase, AdaJEPA updates the model using recent transitions stored in an online buffer ℬ :

ℒada(ℬ)=1|ℬ|∑(ot,at,ot+1)∈ℬℓ(z^t+1,sg(zt+1))

Explanation: The model calculates the self-supervised prediction loss between its predicted next state and the actual encoded observation zt+1 encountered in the environment. The sg(⋅) operator applies a stop-gradient to the target to prevent representation collapse during this online adaptation.

5\. Parameter Update Rule

AdaJEPA applies gradient updates to a chosen subset of parameters Ω during deployment:

Ω←Ω−η∇Ωℒada(ℬ)

Explanation: Before the next replanning step, the selected parameters Ω (which can be restricted to a small subset of the encoder or predictor to remain lightweight) are updated using learning rate η and the gradient of the adaptation loss.