2026-10-26

T2-Z fits one 32-dimensional latent at test time so a frozen world model adapts to new physics

World ModelsTest-Time AdaptationRobot LearningEmbodied AIVideo DiffusionStanfordarXiv
T2-Z fits one 32-dimensional latent at test time so a frozen world model adapts to new physics

A robotic world model that has learned how objects move still fails the moment the floor changes. Two scenes can look identical, the same action can be commanded, and the outcome differs, because friction, mass distribution, the stiffness of a latch spring or a human-imposed rule about how a button responds are all invisible in the frame the robot sees. A paper from a Stanford-led group, with co-authors at Carnegie Mellon, the Toyota Research Institute and the University of Southern California, attacks that gap from an unusual direction: it leaves the world model untouched at deployment and puts the entire adaptation into a vector of 32 numbers.

The method is called T2-Z, it is on arXiv as 2610.22364, and the code is released under Apache-2.0 with the training data published separately on Hugging Face. The claim in the abstract is a reduction in prediction error from 15.20 to 7.00 and a rise in action success from 33.73 to 72.96 percent, pooled over seven simulated settings and four real robot tasks. Those pooled figures hide most of what matters for anyone deciding whether to use it, which is why the per-split and per-task numbers below are worth reading closely.

The two answers that already exist, and why neither is enough

One established answer is system identification: enumerate the factors that might vary, decide how to parameterise each, then estimate the values from a history of interactions. The paper uses the RMA family as its reference point for this. It works when the list of factors is short and known in advance, and it degrades when factors compound, or when a real environment takes a value outside anything the estimator saw during training.

The other answer is to ignore the problem. A plain conditional world model has no place to put environment-specific information, so it learns the average behaviour of the training distribution and predicts the same outcome for a polished floor and a carpeted one.

T2-Z takes the middle position. Keep one small latent per environment, tell it nothing about which factors exist or what values they hold, and let prediction error alone decide what the latent has to encode.

Two optimisers that never move at the same time

Training alternates between two stages under a single flow-matching objective. In the world-model stage the environment latents are held fixed and only the network parameters move, so the network is pushed toward dynamics that are shared across environments. In the latent stage the network is frozen and only the latents move, so the latents are forced to absorb whatever the shared dynamics cannot explain. Repeating the alternation lets the two bootstrap each other: a better world model produces a sharper error signal for the latent, and a better latent leaves a cleaner residual for the world model to learn.

The learning rates are deliberately far apart, and this is the part that a reader can check without running anything, because the released per-task configurations carry the numbers. The backbone trains at 1e-5. The latents train at 3e-2, with a much larger 1.5e-1 for a group of latents that has just been introduced and needs to move quickly into place. That is a factor of roughly three thousand between the two populations in the same update loop, which is how the method keeps the frozen model genuinely frozen in effect while still letting the latent explore.

There is a second schedule underneath the first. On the friction task the training set covers 35 distinct physical environments, and the curriculum does not start with all of them. It begins with five, adds five every two full cycles, and inside each cycle runs 200 steps of latent fitting against 200 steps of model-only updates, with an extra 200 steps of new-latent fitting whenever a group is introduced. The paper's ablation on the same task reports that this default 200/200 alternation beats both a faster 100/100 and a slower 400/400, which is a reminder that the schedule is a tuned component rather than a formality.

Why the latent is 32 numbers and not 3,072

The most informative result in the paper is a failure. One ablation replaces the 32-dimensional latent with the model's raw conditioning token, which is 3,072 dimensions, and optimises that instead of a bottleneck. Mean prediction error goes to 94.50, action success falls to 24 percent, and the video metrics collapse with it. Adapting the full-width token is worse than not adapting at all.

The width sweep explains why, and it is narrow enough to reproduce the shape from the numbers alone.

Latent width Mean error Action success
8 8.92 44%
16 7.63 64%
32 3.85 72%
64 6.86 64%
128 7.08 64%

All five rows are the friction task under the same single-trajectory evaluation protocol, so the differences come from capacity alone. Eight dimensions cannot span the variation. Thirty-two is enough to explain one environmental factor and still small enough that a single trajectory constrains it. From 64 upward the extra room stops helping, which is the signature of a space wide enough that a single observed trajectory can be fitted without forcing the latent to represent anything general.

That reading gets support from the baseline the paper compares against. The DINOv2 Context baseline also produces a 32-dimensional context, from a frozen DINOv2-B/14 encoder plus a learned action summary, so the two methods have the same bottleneck width. The difference is how that width is filled: one is amortised through an encoder trained on a fixed number of conditioning trajectories, the other is fitted per environment by gradient descent. The paper's argument is that amortisation ties the model to the trajectory counts it saw in training, while optimisation does not, and the sweep above shows the optimisation route working at the same width.

Forty gradient steps, then reuse

The test-time procedure is short enough to state completely. A new latent is initialised, the world model is frozen, and the latent is optimised through the same flow-matching loss on the observed interaction, with query outcomes kept out of the update. The released inference configuration fixes the budget and the schedule:

stage2_inner_steps: 40
stage2_inner_lr_schedule: 3.0:10,1.5:10,0.5:10,0.15:10
stage2_context_clamp_min: 0.0
stage2_context_clamp_max: 1.0

Forty updates, with the step size falling from 3.0 to 1.5 to 0.5 to 0.15 in blocks of ten. The paper sweeps ten to sixty steps and reports that performance improves up to forty and then saturates, so the number in the configuration is the measured plateau rather than a guess. The latent is held inside the unit interval throughout, which matches its initialisation from a uniform distribution.

The economics of that choice depend on one detail that is easy to miss. The adapted latent is reused across every candidate action in the same environment. A robot that needs to rank a set of candidate actions against predicted outcomes pays the forty-update bill once and then runs one cheap prediction per action, and the paper's efficiency section makes the same point by processing the interaction once and reusing it across query videos. What is not amortised is the environment itself: a new room, a new spring, a new object mass means a new latent and a new forty updates through a five-billion-parameter video backbone.

What the benchmark numbers actually contain

The headline pair in the abstract is not the same measurement as the per-split pairs in the introduction, and mixing them is the easiest mistake to make when quoting this paper.

Setting Mean prediction error Action success
Seven simulated tasks 12.86 to 4.80 37.9% to 74.2%
Four real-world tasks 19.30 to 10.85 px 26.5% to 70.8%
All eleven, pooled 15.20 to 7.00 33.73% to 72.96%

The pooled row is the weighted mean of the two above it, which is why 15.20 and 7.00 do not appear anywhere in the per-task tables. Both descriptions are correct; they answer different questions.

The more important qualification is what those percentages are compared against. Every headline number in the paper is T2-Z against the standard world model, which has no adaptation at all. The paper also trains four baselines that do adapt, and those narrow the gap considerably.

Method Simulation success Real-world success
Standard world model 37.9% 26.5%
LoRA TTA 44.8% 44.0%
DINOv2 Context 51.8% 31.9%
TTT-KQV 42.1% 36.2%
T2-Z 74.2% 70.8%

Read against the strongest adaptive baseline rather than the plain model, the improvement is 22 points in simulation and 27 points in the real world, not the 44 points the abstract implies. Both readings are honest; only one is usually quoted.

The real-world table carries more than the topline. Mean physical error falls from 19.30 to 10.85 pixels while final-frame error falls further, from 38.24 to 16.66, meaning the adapted model does not merely start closer but stays closer as the action plays out. LPIPS improves from 0.05194 to 0.04341, a smaller relative gain than the positional error, which the paper's own framing explains: pixel-faithfulness and physical correctness are different properties.

The per-task spread is where the method looks least like a uniform improvement. On door closing, all four baselines sit at exactly 22.22 percent success, unchanged from the standard world model, while T2-Z reaches 55.56 percent, so this is a task where adaptation of any kind previously bought nothing. On ball friction the standard model records 0.00 percent against 62.50 percent for T2-Z, although LoRA TTA also reaches 50.00 percent, which makes it the weakest-looking of the three headline tasks once the adapted baselines are included. On stick balance the jump is 20.00 to 83.33 percent, the largest single-task gain against the standard model and the one that corresponds to a fourfold improvement.

Action success is where T2-Z wins cleanly: it is the highest of the five methods on all eleven tasks. Physical error is not as clean. On the soft-pull task TTT-KQV records a lower mean error, 18.23 against 18.71, and soft pull is also the one real task where T2-Z posts the worst LPIPS of the five methods at 0.07580, with the lowest PSNR. A single deformation task is enough to show that the latent does not capture every kind of environmental variation equally well.

One trajectory is enough, per task

The abstract says the latent can be inferred from as little as a single test-time interaction trajectory, and the ablation spells out both the claim and its boundary.

Task One trajectory Two Four
Light Switch 50.0% 87.5% 87.5%
Door Close 22.2% 55.6% 55.6%
Soft Pull 81.8% 81.8% 81.8%
Mass Collision 61.1% 66.7% 72.2%

Action success at one, two and four test-time trajectories. The paper's configuration uses one trajectory for seven of the eleven tasks and two for the remaining four, and the table shows why that is a per-task decision rather than a global default. Door closing gains thirty-three points going from one trajectory to two, and at one trajectory it is indistinguishable from every baseline. Soft pull is flat. Mass collision keeps improving slowly through four. A team that reads only the abstract and hard-codes one trajectory would reproduce the door result at the baseline level and conclude the method does not work.

The latent grows structure nobody asked for

Nothing in the objective tells the latent what a physical factor is. A principal-component analysis of the learned latents nonetheless shows single factors occupying single directions: on the friction task the first component orders environments by their true friction coefficient, and on the task where mass and friction vary together the latents spread into two dimensions aligned with the two factors. Test-time latents are projected onto the basis fitted from training latents and are not part of the fit, so the structure is not an artefact of plotting.

The multi-background setting tests something different: whether the latent is secretly encoding appearance. Fifteen physical environments are replayed across thirty scene backgrounds, and the latents organise by friction rather than by background. The representation separates what the environment does from what it looks like, which is the property that makes a latent portable to a new room.

The backbone, the budget and the caveats

The world model is not built from scratch. It is Wan2.2-TI2V-5B, a five-billion-parameter video diffusion model, initialised from the Boundless World Model checkpoint, and the released task configurations disable text conditioning entirely, so this is a vision-and-action model rather than a language-conditioned one. Actions enter as 14-channel vectors, end-effector deltas in the released configuration, through adaptive layer normalisation. Simulation runs at 224 by 224 with 41-frame clips; the real-world rig is a Franka arm with a single fixed RealSense D435i view at 640 by 480.

The training bill is smaller than the parameter count suggests. Every task in the paper was trained on two H200 GPUs for 24 hours per method, with the largest simulated setting, where mass and friction vary jointly over 84 environments, taking four GPUs for 48 hours. The friction task alone covers 35 environments and just over a thousand episodes each. That is a per-task cost, not a foundation-model cost, because the backbone is initialised rather than trained here.

The deployment cost is the part the paper is most candid about. Forty latent updates through a five-billion-parameter diffusion model is a burst of gradient work that has to be paid again for every new environment, and it recurs whenever the environment changes. The paper positions T2-Z as an adaptive layer on top of a world model rather than a replacement for one, which follows directly: the latent can only explain what the backbone is capable of predicting, and the two failure modes that dominate are a weak backbone and an environment whose variation is not low-dimensional.

The repository is small and recent, released in mid-October with the training data on Hugging Face and the base weights and initialisation checkpoint hosted separately, so reproducing any of the numbers above requires pulling three external artefacts before the first training run.

What a robotics team should take from it

Three things transfer beyond this paper.

If the hidden variable in a deployment is genuinely low-dimensional, which friction, mass and spring stiffness all are, then fitting a small bottleneck per environment is a cheaper bet than training an encoder to predict it, and it removes the dependence on how many trajectories the encoder was trained to consume.

Do not optimise the raw conditioning token. The 3,072-dimensional ablation is the clearest warning in the paper that the bottleneck is the method, not an implementation detail.

Measure the trajectory count per task before committing. The difference between one and two observed interactions is thirty-three points on door closing, and no amount of latent tuning recovers it.

← All news