What Test-Time Training Corrects in Latent World Models? A Slow-Fast Approach
Organizations: Nanyang Technological University · University of British Columbia · Tulane University · Shanghai Jiao Tong University
Abstract
Latent world models plan toward a goal by predicting the outcomes of candidate actions, but under the 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 remains 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 needs to be learned and retained from many episodes. Our 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.
Figures & tables
| Planning model | T (seen) | I (unseen) | Change | vs. | Planning model | T (seen) | I (unseen) | Change | vs. |
| Reference | Constant vs. learned, within vs. across episodes | ||||||||
| Frozen | 48.7 | 24.7 | Shift-Online | 72.0 | 40.7 | ||||
| AdaJEPA | 78.0 | 52.0 | 28.3 | Shift-Prev | 45.3 | 16.0 | 25.7 | Shift-Online | |
| AdaJEPA-P | 82.7 | 47.3 | 28.3 | Fast only | 84.0 | 48.7 | 10.0 | Shift-Online | |
| Is the gain a shift? | Adding cross-episode knowledge | ||||||||
| AdaJEPA-P without its shift | 47.3 | 22.7 | 1.7 | Slow@100 | 76.0 | 55.3 | |||
| PushObj (GD) | PushObj (CEM) | PointMaze (GD) | PointMaze (CEM) | |||||||||
| Method | Seen | Unseen | All | Seen | Unseen | All | Medium | Layout | All | Medium | Layout | All |
| Frozen | 46.8 1.8 | 30.2 1.4 | 39.7 1.5 | 45.2 2.3 | 31.3 1.3 | 39.2 0.9 | 81.3 4.8 | 60.7 2.3 | 76.2 3.2 | 80.9 2.3 | 54.0 2.0 | 74.2 2.3 |
| AdaJEPA | 81.0 2.3 | 50.0 2.4 | 67.7 2.3 | 74.2 1.3 | 52.9 4.7 | 65.0 2.3 | 83.6 3.8 | 65.3 6.4 | 79.0 4.4 | 82.4 2.7 | 56.7 5.0 | 76.0 3.0 |
| JEPA-TTT † | 65.3 2.7 | 49.6 1.0 | 58.6 1.7 | 62.4 2.0 | 51.6 1.1 | 57.7 0.7 | 82.1 1.2 | 65.1 1.4 | 77.9 0.9 | 83.3 0.8 | 58.9 3.8 | 77.2 1.0 |
| JEPA-TTT-EC † | 71.1 3.4 | 58.1 1.6 | 65.5 2.6 | 66.7 1.5 | 58.1 2.6 | 63.0 1.9 | 81.6 0.8 | 80.7 3.1 | 81.3 0.7 | 83.3 0.8 | 74.2 1.0 | 81.1 0.8 |
| sft-JEPA (ours) † | 82.9 0.5 | 69.3 1.0 | 77.1 0.6 | 83.7 0.6 | 70.7 2.9 | 78.1 0.9 | 84.9 0.2 | 77.3 2.9 | 83.0 0.6 | 85.5 0.7 | 74.7 2.3 | 82.8 0.7 |
| RoboCasa (DINO-WM) | Puzzle (LeWAM) | Scene (LeWAM) | |||||||||||||
| Method | Reach | Place | Avg | No Shift | R60 | WR 60 | O0.3 | G0.5+OE | Avg | No Shift | R60 | WR 60 | O0.3 | G0.5+OE | Avg |
| Frozen | 8.3 6.5 | 25.0 0.0 | 16.7 3.3 | 79.3 10.3 | 8.7 2.3 | 7.3 5.0 | 27.3 3.1 | 11.3 1.2 | 13.7 1.8 | 96.7 1.2 | 22.0 7.2 | 23.3 2.3 | 55.3 10.3 | 28.0 5.3 | 32.2 2.3 |
| AdaJEPA | 13.5 6.5 | 25.0 6.3 | 19.3 6.3 | 78.0 8.7 | 30.0 6.0 | 10.7 5.0 | 52.7 9.9 | 28.7 1.2 | 30.5 5.1 | 96.7 1.2 | 40.7 8.1 | 20.7 8.1 | 85.3 3.1 | 58.7 8.3 | 51.4 4.5 |
| JEPA-TTT † | 25.0 3.1 | 31.3 3.1 | 28.2 2.7 | 80.0 6.9 | 15.3 6.1 | 12.7 5.0 | 58.7 8.1 | 15.3 5.8 | 25.5 4.3 | 96.7 1.2 | 29.3 3.1 | 22.0 0.0 | 80.0 3.5 | 33.3 4.6 | 41.2 2.8 |
| JEPA-TTT-EC † | 25.0 19.5 | 36.5 4.8 | 30.8 9.9 | 80.7 5.8 | 53.3 8.1 | 17.3 4.2 | 74.7 6.4 | 36.7 3.1 | 45.5 4.8 | 94.0 2.0 | 69.3 8.1 | 22.0 3.5 | 90.0 2.0 | 51.3 10.1 | 58.2 2.8 |
| sft-JEPA (ours) † | 44.8 1.8 | 38.5 3.6 | 41.7 2.4 | 80.0 6.9 | 50.0 10.6 | 30.7 7.6 | 78.7 5.8 | 45.3 6.1 | 51.2 7.1 | 96.0 0.0 | 76.0 12.0 | 46.7 1.2 | 93.3 1.2 | 58.0 4.0 | 68.5 2.6 |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Horizon, execution | 5 chunks (25 raw steps); execute the first chunk, then replan |
| Replanning | at most 20 replans per episode |
| Warm start | the 4 unexecuted chunks of the previous plan plus a new one |
| GD | Adam on normalized actions, lr 0.1, 100 iterations, cosine decay to 0; new chunk at the zero action; no action noise |
| CEM ( Rubinstein and Kroese, 2004 ) | 200 samples including the current mean, 30 elites, 10 iterations; at every replanning step; mean warm-started, new chunk at 0 |
| Cost, PushObj | ; last frame only for the first 5 replanning steps, all frames afterward |
| Cost, medium maze | ; all frames |
| Fast learner | Slow learner | |
| Parameters | last predictor block and final LayerNorm (13 tensors, 3,314,848) | rank-8 LoRA, , on all 24 linear layers of the predictor (470,784); zero increment at start |
| Data | dense windows of the newest chunk and one chunk-aligned window from each of the 8 previous chunks | dense windows of all episodes so far, in a buffer without size limit |
| Batch | all current windows | windows, , drawn uniformly without replacement |
| Learning rate | ||
| Updates | steps after every chunk that does not end the episode | steps after every episode, after the fast reset |
| T (seen) | I (unseen) | |||
| Model | ||||
| Within one episode, reset after every episode | ||||
| AdaJEPA | 0.49 | 0.96 | 0.46 | 0.93 |
| AdaJEPA, in ’s latent space | 0.53 | 0.97 | 0.49 | 0.96 |
| AdaJEPA-P | 0.51 | 0.97 | 0.47 | 0.95 |
| Shift-Ada | 0.44 | 1.00 | 0.51 | 1.00 |
| Task | Frozen | AdaJEPA | JEPA-TTT † | JEPA-TTT-EC † | Fast only | Slow only † | sft-JEPA † | |
| GD planner | ||||||||
| PointMaze | Default | 86.0 8.7 | 86.7 7.6 | 86.7 1.8 | 84.4 0.8 | 85.3 5.0 | 87.3 2.4 | 85.6 1.5 |
| Low mass | 82.7 2.3 | 84.0 7.2 | 80.9 3.4 | 79.1 2.8 | 82.0 5.3 | 82.4 1.4 | 84.0 0.7 | |
| High damping | 75.3 4.2 | 80.0 2.0 | 78.9 1.4 | 81.1 1.0 | 82.7 3.1 | 84.0 2.7 | 85.1 0.8 | |
| Unseen layout | 60.7 2.3 | 65.3 6.4 | 65.1 1.4 | 80.7 3.1 | 67.3 3.1 | 70.0 3.7 | 77.3 2.9 | |
| PushObj, seen | T | 51.3 7.6 | 79.3 5.0 | 67.8 4.0 | 74.2 3.3 | 80.7 4.2 | 63.6 3.0 | 85.1 1.4 |
| PushObj | PointMaze | ||||||||||||
| GD | CEM | GD | CEM | ||||||||||
| Method | Steps | Seen | Unseen | All | Seen | Unseen | All | Medium | Layout | All | Medium | Layout | All |
| Reset every episode | |||||||||||||
| AdaJEPA | 1 | 80.7 3.8 | 51.1 1.4 | 68.0 2.3 | 75.5 2.8 | 54.9 1.0 | 66.7 2.0 | 83.6 4.0 | 61.3 6.4 | 78.0 4.4 | 82.2 2.5 | 55.3 5.0 | 75.5 3.0 |
| 3 | 81.5 2.2 | 56.2 2.1 | 70.7 2.1 | 80.7 2.0 | 56.9 3.0 | 70.5 1.4 | 82.9 4.5 | 68.0 5.3 | 79.2 4.5 | 84.0 4.7 | 58.7 6.4 | 77.7 4.5 | |
| 5 | 83.5 2.3 | 53.3 4.8 | 70.6 3.0 | 83.3 3.8 | 60.7 4.0 | 73.6 3.8 | 83.3 4.0 | 73.3 4.2 | 80.8 3.4 | 84.7 3.7 | 58.0 7.2 | 78.0 4.6 | |
| PushObj | PointMaze | ||||||||||||
| GD | CEM | GD | CEM | ||||||||||
| Method | LR | Seen | Unseen | All | Seen | Unseen | All | Medium | Layout | All | Medium | Layout | All |
| Learning rate | |||||||||||||
| JEPA-TTT | 65.3 2.7 | 49.6 1.0 | 58.6 1.7 | 62.4 2.0 | 51.6 1.1 | 57.7 0.7 | 82.1 1.2 | 65.1 1.4 | 77.9 0.9 | 83.3 0.8 | 58.9 3.8 | 77.2 1.0 | |
| 60.9 0.4 | 50.7 1.9 | 56.6 1.0 | 58.6 2.1 | 53.0 2.0 | 56.2 2.0 | 81.9 1.5 | 73.3 2.0 | 79.8 0.9 | 82.1 0.1 | 66.4 5.7 | 78.2 1.4 | ||
| JEPA-TTT-EC | 71.1 3.4 | 58.1 1.6 | 65.5 2.6 | 66.7 1.5 | 58.1 2.6 | 63.0 1.9 | 81.6 0.8 | 80.7 3.1 | 81.3 0.7 | 83.3 0.8 | 74.2 1.0 | 81.1 0.8 | |
| GD | CEM | |||||
| Learning rate | ||||||
| AdaJEPA | 65.3 6.4 | 66.7 11.0 | 75.3 1.2 | 56.7 5.0 | 62.0 9.2 | 61.3 8.3 |
| Fast only | 67.3 3.1 | 69.3 1.2 | 70.0 3.5 | 57.3 6.4 | 60.7 7.6 | 62.7 5.0 |
| sft-JEPA † | 77.3 2.9 | 80.4 3.4 | 82.0 3.5 | 74.7 2.3 | 76.4 1.9 | 75.6 1.5 |
| Episodes 1–50 | 67.3 1.2 | 72.0 2.0 | 74.7 2.3 | 59.3 3.1 | 64.7 6.4 | 61.3 3.1 |
| Episodes 51–100 | 76.7 4.2 | 80.7 9.5 | 81.3 13.3 | 78.0 7.2 | 78.0 9.2 | 78.7 4.6 |
| GD | CEM | ||||||
| Windows | Steps | Seen | Unseen | All | Seen | Unseen | All |
| AdaJEPA’s windows | 1 | 81.2 2.5 | 50.9 5.4 | 68.2 3.3 | 74.5 2.2 | 52.9 2.8 | 65.2 2.0 |
| 5 | 81.2 0.3 | 48.7 5.7 | 67.2 2.3 | 82.2 1.2 | 55.8 4.7 | 70.9 2.2 | |
| Dense windows | 1 | 80.2 4.5 | 51.6 2.3 | 67.9 3.2 | 77.2 3.3 | 53.3 3.5 | 67.0 3.2 |
| 5 | 82.2 2.1 | 50.2 5.8 | 68.5 3.6 | 82.3 3.1 | 57.6 5.1 | 71.7 3.7 | |
| GD | CEM | ||||||||
| Fast only | sft-JEPA | Fast only | sft-JEPA | ||||||
| Task | Reset | Never | Reset | Never | Reset | Never | Reset | Never | |
| PushObj, seen | T | 80.7 4.2 | 70.2 3.7 | 85.1 1.4 | 70.9 1.7 | 86.0 4.0 | 68.9 2.7 | 85.3 1.3 | 71.8 2.8 |
| L | 82.7 3.1 | 72.2 0.4 | 83.8 1.7 | 73.1 2.0 | 83.3 2.3 | 73.3 4.2 | 85.3 2.4 | 71.6 5.3 | |
| Z | 84.0 3.5 | 66.9 3.4 | 82.9 1.5 | 67.8 5.0 | 82.7 4.2 | 68.0 2.4 | 83.6 1.0 | 69.6 2.1 | |
| + | 80.7 2.3 | 68.0 2.3 | 79.8 1.0 | 68.7 1.8 | 78.0 3.5 | 67.8 1.9 | 80.4 2.1 | 68.0 1.2 | |
| GD | CEM | |||
| Buffer of the slow learner | Success | Memory (MiB) | Success | Memory (MiB) |
| All windows (default) | 77.1 0.6 | 6.55 | 78.1 0.9 | 7.00 |
| At most 2,048 windows | ||||
| Most recent | 76.2 0.5 | 0.79 | 76.9 0.7 | 0.78 |
| Window reservoir | 77.3 1.0 | 3.41 | 78.3 1.0 | 3.50 |
| Episode reservoir | 75.0 2.1 | 0.78 | 74.3 0.7 | 0.75 |
| LoRA rank | Slow learner steps | LoRA update | ||||
| Shape | Default | 4 | 16 | 1 | 4 | before fast reset |
| T (seen) | 85.3 1.3 | 87.8 1.5 | 86.9 2.7 | 86.0 1.8 | 86.0 3.1 | 86.0 1.8 |
| I (unseen) | 70.0 2.9 | 69.6 0.8 | 69.3 1.8 | 65.8 2.7 | 71.8 3.8 | 68.0 0.7 |
Test-Time Training
Test-time training adapts model parameters or memory during deployment using each input or stream to improve performance under changing tasks and data.
See all 114 papers