TL;DR
Imagine stepping onto an icy sidewalk: you don't know it's slippery just by looking, but after one unexpected slide, your brain instantly recalibrates how you walk for the rest of the block. LeMémoire brings this exact capability to visual planning models (JEPAs). By storing an ongoing memory of its own actions and their actual outcomes across episodes, the model infers the hidden physics of a new environment in a single forward pass—adapting on the fly without updating a single weight.
What Problem Does This Paper Address?
Joint-Embedding Predictive Architecture (JEPA) world models plan by imagining the future in a compact, learned latent space rather than rendering pixels. Using Model-Predictive Control (MPC), they search for action sequences whose predicted outcomes match a goal image.
However, these models typically look at only the last few frames, assuming the rules of physics are fixed. Real-world dynamics depend on invisible factors—surface friction, motor stiffness, actuator lag, or remapped controls. You cannot see friction in a static frame. Even if you train a model across diverse physics (dynamics randomization), a standard deterministic predictor simply learns the average of all possible futures, making its plans biased whenever the real world deviates from the mean.
Existing fixes like test-time training (TTT) try to adapt on the fly by running gradient descent on recent errors, which requires slow optimization and delicate hyperparameter tuning while acting. The authors ask: Can a frozen world model adapt to unseen physics purely by remembering how the world reacted to its past moves?
Methods
LeMémoire augments standard pretrained JEPA backbones (LeWM and Temporal Straightening) with an episodic-spanning memory and a lightweight reader network.
- What’s Standard: A frozen image encoder maps frames to latent states, and an action-conditioned predictor rolls out imagined futures for MPC planning.
- What’s New:
- Persistent Transition Memory ($M$): Every time the agent executes an action in its current world, it logs a row containing the short latent history, the actual resulting latent state, and its "surprise"—the prediction error compared to the original default-world predictor. Crucially, this memory persists across episodes as long as the agent stays in the same world.
- Set-Based Reader ($R$): Because hidden physics don't depend on the order of episodes, $R$ treats the memory as an unordered set. Using an MLP, attention pooling, and weight-tied cross-attention, it distills the memory into a 16-dimensional dynamics code ($\hat{e}$) that conditions the predictor (via action embeddings or gated cross-attention).
- Optional Teacher: During multi-world offline training, if ground-truth physics parameters are available, a small MLP generates a target teacher code to help supervise the reader—though the model works well even without it.
At test time, all weights stay frozen. Before every plan, the agent reads an updated $\hat{e}$ in one forward pass—zero gradient steps required.
Datasets
The authors evaluate across both simulated benchmarks and real-world robotics:
- Standard Benchmarks: PushT, Reacher, and OGBench-Cube (offline, reward-free trajectories).
- ShiftedWorlds (New Suite): The broadest dynamics-shift benchmark for JEPA planning to date, featuring 82 test conditions across 16 kinds of physical changes (friction, damping, inertia, actuator gain/delay, tilted tables, swapped/rotated commands). Conditions are split into four groups: In range, Out of range, Unseen dynamics (factors never varied in training), and Combinations.
- Real Robot Data: Recorded DROID manipulation episodes (added to the pretrained RoboJEPA model), treating each physical scene as a distinct world without known physics labels.
Key Insights and Ideas
- Cross-episode memory is the secret sauce: Limiting memory to just the current episode (like traditional history encoders) loses more than half the performance gain. Conversely, carrying weight updates across episodes in test-time training actually hurts performance, whereas carrying transitions in memory helps.
- Fast, tiny-sample adaptation: You don't need hundreds of trials. Over four-fifths of the prediction and planning gains arrive after just one episode of experience in a new world.
- Clean latent physics: Without being forced to disentangle factors, the 16D dynamics code naturally organizes hidden physics monotonically—even ranking unseen table tilts in their exact physical order—and causally steers predictions when interpolated.
Key Results
- Outperforms Test-Time Training: Out of range and under combined shifts, LeMémoire beats test-time training (AdaJEPA) across all three environments and both backbones, achieving statistical significance in 11 of 12 paired comparisons.
- Strong Extrapolation: Against the same backbone fine-tuned on the exact same multi-world data without memory, LeMémoire boosts out-of-range planning success on PushT from 50.3% to 72.3% (and unseen dynamics by +18.0 points), and on Reacher (TS backbone) from 23.1% to 62.3%.
- Real-World Validation: On 64 held-out DROID episodes, conditioning RoboJEPA on same-scene memory lowers 9-step wrist-camera rollout error in 60 of 64 episodes (1.3% average reduction, capturing ~60% of the benefit of full predictor fine-tuning), while feeding memory from the wrong scene increases error.
Limitations and Future Work
- Stationarity Assumption: LeMémoire assumes the world's physics remain constant while its memory accumulates. If the physics abruptly switch mid-deployment, old memories become stale—though the authors show that capping the memory to a sliding window of the last 50 transitions allows the agent to re-adapt within ~10 episodes.
- Frozen Visual Encoder: Because the image encoder is frozen, the system adapts to hidden physical shifts, not visual appearance shifts.
- Next Steps: Scaling to larger world models, deploying closed-loop planning under shifted dynamics on physical robots, and co-adapting the visual encoder alongside the memory.
Summary updated