uTTT

Universal Test-Time Training

Zefan Cai1,*   Qinzhe Hu1,*   Ziqiao Ma2   Hao Tan3   Junjie Hu1

1University of Wisconsin–Madison   2University of Michigan   3Adobe    *Equal contribution

arXiv Code Poster

TL;DR

Universal Test-Time Training method overview
Universal Test-Time Training. Each block keeps its own normalization, projections and window attention, and sends q, k, v to a memory whose state is shared by the whole stack: a pool of fast-weight experts under a top-K router (uTTT-MoE, top right) or dense fast weights applied in full (uTTT-Dense, bottom right). Blue arrows read, red arrows write.

One memory, two recurrences

With a layer-private memory, a state written at layer l in one chunk can only be read at layer l in the next. With one shared memory, every layer's write at chunk c is available to every layer at chunk c+1, so the stack unrolls into a single recurrence over (chunk, layer) pairs and layer-private TTT becomes its partitioned special case. The figure traces the resulting forward read chains and the backward gradient chains through the state.

State-read forward and backward chains
State-read chains in layer-private TTT (top) and universal TTT (bottom). (a) Forward: a read uses the chunk-start state, so with one shared memory any layer's write in a chunk reaches every layer in the next. (b) Backward: the gradient of a read traces through the earlier writes along the same chains; hollow nodes have no such path.

Novel view synthesis

PSNR against target-view index on Objaverse/GSO
PSNR against the number of posed views written into the pool, on Objaverse/GSO; the number at the right end of each curve is its value at view 23. Row A widens sharing from p=8 private pools to p=1 at fixed per-layer compute; row B raises per-layer compute at fixed total state. In model names, e is experts per pool, p the number of pools over the 8 layers (p=8 layer-private, p=1 universal), w the dense width and a the active experts per token head; e8-p8 and w1-p8 are TTT-MoE-e8 and TTT-Dense. The MoE-B panel also shows the full-attention reference (black dashed) and Gated DeltaNet / DeltaNet (grey dotted).

Merging eight private pools into one at fixed per-layer compute gains 0.92 dB at view 23 for routed models and 0.76 dB for dense models, and the curves keep separating as views accumulate. A shared pool of only 8 experts also beats the eight private pools by 0.99 dB while storing one eighth of the state and offering each token head the same eight candidates, so the gain comes from shared writes rather than from a wider routing choice.

Novel view synthesis demo

uTTT-MoE on held-out Objaverse/GSO objects. Each posed view is written once into the shared fast-weight pool; every rendering below is read from that pool at a camera the model has never been given.

The same camera path, more views written. Four renderings of one object from the pool after 1, 4, 8 and 23 posed views, played in sync.
8
23
Great white shark
Hereford bull
Snail measuring tape
Juicer set

Drag the strip to write views one by one, or let it play: each view flies into the pool and the orbit updates at that moment. Left of the red line: the pool after the views written so far; right: after all 23. Dots: the 64 test cameras, filled once written; the red dot is the orbit camera.

More results →

Language modeling

Loss-retrieval Pareto plot at 124M and 760M
Loss–retrieval Pareto plot at (a) 124M and (b) 760M, one point per model. Horizontal axis: mean per-token loss beyond 30K in 32K-token sequences; vertical axis: mean RULER accuracy over 4K–32K. Arrows run through the fast-weight models from LaCT to uTTT-MoE.

Long-context language modeling at 32K. PTL is the mean next-token loss at positions ≥ 30K on Books3; RULER is accuracy (%) averaged over 4K, 8K, 16K and 32K. Bold marks the best value in each column among the bounded-state models; the full-attention Transformer† keeps a key–value cache that grows with context and is excluded from that comparison.

124M760M
ModelPTL ↓RULER ↑4K8K16K32KPTL ↓RULER ↑4K8K16K32K
Baselines
Transformer†3.086916.5223.8220.2413.108.932.597834.1641.7037.9533.3623.62
Transformer-SWA3.124314.5026.9314.739.946.412.632522.2745.2322.6412.678.57
Gated DeltaNet-SWA3.099412.3223.7812.938.304.262.607521.4840.4023.1213.668.76
DeltaNet-SWA3.133611.6922.5211.237.635.362.608620.7743.4320.5611.797.28
KDA-SWA3.057112.1220.8612.988.366.282.570522.8143.4724.1714.658.96
Mamba-2-SWA3.084512.9624.2113.938.325.372.586223.5448.4225.4912.607.65
MoM-SWA3.117414.3026.1114.1010.416.582.605923.1543.3523.6915.979.60
Fast-weight family
LaCT (published)3.12348.5013.7511.375.932.942.578723.2143.6523.9714.2910.92
TTT-Dense3.121912.6526.3113.586.004.722.580926.0547.7330.0716.499.92
TTT-MoE3.106212.8225.3513.267.605.082.581525.7345.2729.4417.8510.35
uTTT-MoE (ours)3.085715.4626.5017.3211.236.782.576827.8554.1531.0016.0310.23

Sharing adds 2.6 and 2.1 RULER points over TTT-MoE at 124M and 760M, with the same state and no loss penalty; TTT-MoE stays near TTT-Dense. uTTT-MoE leads TTT-MoE at every length at 124M; at 760M it leads at 4K and 8K and trails by less than two points at 16K and 32K.

Measured training efficiency
Measured training efficiency. (a) Training throughput of the three ownership regimes on eight A100 or H100 GPUs at 32K context. (b) Where a 760M training step's time goes on one A100. (c) Training loss of the three 760M models against H100 GPU-hours.

Citation

@misc{cai2026universaltesttimetraining,
  title={Universal Test-Time Training},
  author={Zefan Cai and Qinzhe Hu and Ziqiao Ma and Hao Tan and Junjie Hu},
  year={2026},
  eprint={2610.05484},
  archivePrefix={arXiv},
  primaryClass={cs.LG},
  url={https://arxiv.org/abs/2610.05484},
}