sft-JEPA

Forget fast. Learn slow.

Slow-fast test-time training for latent world models.

  • Fast learner. Tracks the offset, reset every episode.
  • Slow learner. Learns what recurs, kept.

Best average on every benchmark.Up to 22 points over AdaJEPA.

Paper

The error

One error. Two parts.

Try a fan of actions from one state and compare each prediction with what really happens. The error splits into an offset every action shares and a part that depends on the action.

  • true outcome
  • prediction

Offset

The same for every action. It shifts the planner’s goal.

Action-dependent

Different for every action. Adapting within an episode barely reduces it.

43–79%

of the frozen model’s error on PushObj is offset, depending on the object’s shape and on whose actions are probed, the planner’s or the dataset’s.

Why the offset matters

The offset moves the goal.

A planner picks the action whose prediction lands closest to the goal. Shift every prediction the same way, and the true state ends up beside it.

Schematic. Drag the dashed target, or focus it and use the arrow keys.

91%

of AdaJEPA’s planning gain on PushObj comes back when only its shared shift is added to the frozen model (CEM, shapes T and I).

What each learner fixes

Left in one episode. Down in a hundred.

Every dot is a probe state on PushObj’s unseen shape I. Across: its offset error. Up: its action-dependent error. Gray is the frozen model.

What to keep

Some corrections expire.

Part of the offset belongs to a single episode. Carried into the next one, its correction does not help and may even hurt. The rest of the offset recurs and can be learned across episodes; the action-dependent error needs many of them.

Offset correction may not carry over

−25.7

points of planning success on PushObj when the previous episode’s shift is reused instead of refit online (CEM, shapes T and I). That is below the frozen model: the old correction is nearly orthogonal to the one the new episode needs (cosine 0.05–0.10).

Action-dependent error needs many episodes

×0.82

action-dependent error on the unseen shape I after 100 training episodes. After 10 it is still ×0.99: a PushObj episode has at most 20 executed chunks, and one action per visited state.

How it works

One model. Two learners.

The pretrained predictor stays frozen. Both learners minimise the same prediction error on executed actions. They differ in what they update, and in how long it lasts.

Plan

Search for the action chunk whose predicted latent lands closest to the goal.

Execute

Execute the first chunk. Its true outcome is a free label.

Fast update

The predictor’s last block and final LayerNorm adapt to the newest chunk.

Every chunk, then plan again

Slow update

The fast weights are reset. LoRA learns from all past episodes.

Every episode, then start the next one

Gray parts stay frozen. The slow path runs through the frozen predictor and LoRA only, so it never trains on the fast learner’s corrections.

Fast learner

Slow learner

Corrects

The offset of this episode

The recurring offsetand the action-dependent error

Updates

Last blockand the final LayerNorm

Rank-8 LoRAon every block

Learns from

The newest chunkand replay of earlier chunks

All past episodeswindows drawn uniformly from a buffer

When the episode ends

Reset

Kept

Results

Best average. Every benchmark.

Four testbeds, from simulated pushing to a real-robot model and a world action model. All methods share the same world models, planners and episodes.

Tracking is enough on seen shapes. Unseen shapes need both learners.

Planning success rate, %. Mean ± sd over three runs.

Questions, answered.

Why reset the fast learner?

Part of the offset may belong to one episode. Without the reset, sft-JEPA loses 15.7 points on PushObj with CEM and 16.1 with GD, declining on every shape.

When does learning need many episodes?

For the action-dependent error. It cannot be learned inside one episode, because an episode visits few states and tries one action in each. With the same 200 training steps, a LoRA trained on 100 episodes reaches 23% lower action-dependent error than one trained on a single episode (unseen shape I).

Another case is the rest of the offset. The part that is not specific to one episode recurs across similar situations, and can be learned from many episodes: a LoRA trained on 100 earlier episodes lowers the offset energy of episodes it has never seen to ×0.42 on the unseen shape I.

Is one learner enough?

The fast learner alone tends to win where the pretrained action dynamics are already good or shifts change every episode. The slow learner alone can win where shifts recur and action dynamics are less accurate. On all seven benchmark averages, sft-JEPA leads the better of the two, by up to 13.5 points.

What does the learning cost?

Planning dominates the runtime. A replan takes 0.36–0.65 s with CEM and 3.4–3.8 s with GD, while sft-JEPA spends 0.06–0.07 s on fast learning and 0.08–0.09 s on slow learning between episodes. On PushObj shape I, an episode takes 11.7 s against 12.9 s for the frozen model with CEM, and 53.4 s against 60.8 s with GD.

Peak GPU memory rises by 91–95 MiB, against 167–193 MiB for the JEPA-TTT variants.

What if the stream mixes shapes?

With T, I and square alternating in one stream (CEM planner), sft-JEPA loses 4.0 points against single-shape streams (JEPA-TTT-EC loses 8.0). It still leads the frozen model by 35.6 points.

Are the animations real experiments?

The stream at the top of the page and the two schematics (the action fan and the moving goal) are illustrations drawn for this page from a two-dimensional toy model. They are not the paper’s experiments. The scatter plot, the results chart and every number are from the paper.

What Test-Time Training Corrects in Latent World Models?
A Slow-Fast Approach

  • Shuaicheng Niu1
  • Guohao Chen1
  • Kevin Z. Shen2
  • Yunbei Zhang3
  • Peilin Zhao4
  • Yinan Zhang1
  • Cyril Leung2

1NTU2UBC3Tulane4SJTU

BibTeX

@misc{sftjepa2026,
  title  = {What Test-Time Training Corrects in Latent World Models?
            A Slow-Fast Approach},
  author = {Niu, Shuaicheng and Chen, Guohao and Shen, Kevin Z. and
            Zhang, Yunbei and Zhao, Peilin and Zhang, Yinan and
            Leung, Cyril},
  year   = {2026}
}
Abstract

Latent world models plan toward a goal by predicting the outcomes of candidate actions, but under distribution shift, prediction errors can lead the planner astray. Test-time training using executed actions helps, yet what it corrects and whether its updates should persist across episodes remain unclear. We address both by analyzing the world model’s prediction error. On PushObj, an object-pushing task, we probe multiple actions from the same state and decompose the error into an offset shared across actions and an action-dependent component. The offset effectively shifts the planner’s goal, and AdaJEPA mainly tracks it: the common shift alone recovers 91% of its planning gain. Part of the offset is episode-specific, so carrying its correction into the next episode does not help and may even hurt. The remaining offset recurs across episodes and action-dependent error can be or need to be learned and retained from many episodes. sft-JEPA therefore uses two learners on different timescales: a fast learner that tracks the offset and resets each episode, and a slow LoRA learner that accumulates recurring knowledge across episodes. Across PushObj, PointMaze, zero-shot planning on RoboCasa (with DINO-WM), and OGBench (with LeWAM), sft-JEPA leads all benchmark averages, improving planning success over AdaJEPA by up to 22 points.