Mem-TTT: Plug-in Memory for Pretrained VLAs via Recall-Supervised Test-Time Training

Authors and affiliations
  • Mingzhe Ye1,2
  • Xiao Xia1,2
  • Congsheng Xu1,2
  • Zhongxi Chen1,2
  • Jianbo Zhou1,3
  • Wenchao Yue1,4
  • Xinjun Sheng2
  • Zhijie Deng1,2
  • 1 Sharpa Robotics
  • 2 Shanghai Jiao Tong University
  • 3 South China University of Technology
  • 4 The Chinese University of Hong Kong

Which can goes on the tray?

Red reference
The robot holds a red can at the opening of the box.
Black reference
The same camera angle shows the robot holding a black can at the opening.

Match the color of the can in the box.

Red reference
The lid is closed. A red can and a black can stand beside the empty tray.
Black reference
The lid is closed. A red can and a black can also stand beside this empty tray.

Once the lids close, both tables show the same choices.

Red reference
The robot places the matching red can on the tray.
Black reference
The robot places the matching black can on the tray.

The earlier color determines the pick.

The Mem-TTT memory bank

Figure 1 connects an occluded cue to hierarchical recall, four fast-weight writes, gated integration with a VLA, and measured gains in success and training speed.
Figure 1 notes
Four observations show colored blocks being covered. Short-4, Long-16 and Long-64 summaries feed a later readout. The right side pairs simulation and real-robot recall examples.

(a) Memory across an episode

After occlusion, a summary retains the earlier block layout.

Four 8-by-8 fast-weight updates add to the cumulative change. The four association losses fall by 62, 65, 74 and 72 percent.

(b) Four writes to fast weights

Four writes reduce loss on stored key–value pairs by 62–74%.

The frozen vision–language model supplies tokens to Mem-TTT. The action expert supplies executed actions and receives memory summaries through a learned gate.

(c) Policy readout

Gated adapters feed both streams to the action expert.

Success improves on RMBench, RoboMME and real hardware. Cached and joint GR00T training cost 0.174 and 1.230 seconds per step, respectively.

(d) Success and training cost

With 64 writes, caching cuts a GR00T update from 1.230 to 0.174 seconds.

Abstract

Test-time training (TTT) equips vision-language-action (VLA) policies with episodic memory by adapting fast weights online. However, training one flat state end to end with the action loss can overwrite early cues, leaves retention unsupervised, and forces slow sequential optimization.

We present Mem-TTT, a plug-in, self-supervised multimodal memory bank for pretrained VLAs. Parallel visual and action streams write frozen-VLM tokens and executed action chunks into bounded short-window fast-weight encoders, then recursively fold completed windows into a hierarchical merge tree in logarithmic depth. Supervised via timestamped recall to reconstruct past visual features and actions from raw demonstrations, memory learning decouples from policy control, unlocking exact offline causal caching and 7.1× faster policy optimization steps via near-zero-initialized gated adapters.

Across VLA backbones, Mem-TTT boosts GR00T N1.7 on RMBench from 23.4% to 79.9%, nearly doubles π0.5 success on RoboMME while outperforming the benchmark’s end-to-end TTT baseline by 12.7 points, and lifts four-task mean success on real-robot bimanual dexterous manipulation from 33.5% to 77.8%.

Four gradient writes

The grid tracks 64 visual weights in one Cover Blocks demonstration.

Camera · Step 420

Cover Blocks at control step 420.

Visual fast weights

≤ −0.0050≥ +0.005

W₁ − W₀

Write loss

Before
2.083
After
0.715
RMBench Cover Blocks demonstration 005. The patch comes from the second layer. Loss is measured on the current observation before and after its gradient update.

What a fast-weight writer retains

Early cues fade with repeated writes

After 128 uninterrupted writes, recall error for the first four events exceeds the unwritten baseline.

Early recall error relative to unwritten memory increases from 11.4 percent after four writes to 111.2 percent after 128 writes. The band shows the 10th to 90th percentile.Early recall error (% of unwritten)0255075100125Unwritten111.2%48163264128Writes into the same stateAt the trained step size the median spectral norm of the initial-to-final fast-weight Jacobian rises from 2.21 at one write to 21.38 at 128 writes.Sensitivity to initialization051015202521.41248163264128Writes into the same state
Band: 10th–90th percentile across 12 RMBench sequences.Figure 2b–c · Data (CSV)

Recall training improves retrieval

A fresh probe must pick the original visual feature from 512 candidates.

Mean top-1 retrieval for recall 16.8%, action plus recall 14.4%, action proxy 5.2%, and untrained 7.2%.Writer training objective05101520Recall16.8%Action + recall14.4%Action proxy5.2%Untrained7.2%Top-1 retrieval (%)
Figure 2e · Data (CSV)

Consecutive decisions share gradient information

Across these tasks, 32 consecutive decisions yield 9.3–21.6 effective samples.

Estimated effective gradient sample sizes for windows of 8, 16, 32 and 64 decisions on three RMBench tasks. All task curves fall below the independent-sample reference.Effective samples0163248648163264IndependentCover BlocksPress ButtonBattery TryConsecutive decisions
Figure 2f · Data (CSV)

Merging shortens the update path

Across 64 events, an early cue traverses at most 12 updates in the tree.

Analytical comparison at 4, 16, 64 and 256 events. The flat update chain has 4, 16, 64 and 256 writes. The upper bound for a path through a four-way tree is 4, 8, 12 and 16 writes.Updates on one event-to-root path4166425641664256Flat chainTree boundEvents in a completed tree
Four-way tree bound: 4 log₄(T).Proposition 2 · Data (CSV)
Diagnostic notes

The action loss supervises the next command. Timestamped recall directly tests whether earlier features survived. The three trained objectives share an optimization budget.

Flat-writer sensitivity is the median Jacobian spectral norm. Median scaled curvature at the learned step size exceeds the quadratic contraction threshold of 2 on both benchmarks.

Writing and reading episodic memory

Each stream reads out 16 tokens after four writes and merges matching spatial cells across windows.

Backbone adapters and training details

GR00T N1.7

Selected DiT blocks read memory as extra cross-attention keys and values through near-zero-initialized gates.

π0.5

Each Gemma action-expert block reads memory through a gated scale and shift before its feed-forward layer.

Offline visual targets use a centered 13-write median and 128 whitened PCA channels. Long writers train on frozen Short summaries before policy adaptation.

A 64-write memory tree

Each merge combines four child summaries into 16 tokens, one per spatial cell.

Write 16 / 64

Long-16 covers writes 1–16.

Jump to

Trace a spatial cell

Row 2 · Column 3

Mem-TTT architecture

Explore Figure 3
Figure 3. Visual and action writers learn from timestamped recall, then supply hierarchical summaries to a gated action expert.

From gradient writes to recall

Success in simulation and on hardware

Mean success (%)

No memoryMem-TTT
RMBenchGR00T N1.7
RoboMMEπ0.5
Real robotGR00T N1.7

RMBench · 900 episodes per run. Three-run mean for Mem-TTT.

RoboMME · One policy, 16 tasks, 2,400 test rollouts.

Real robot · 105 trials per method. Equal weight per task.

Simulation task success (0–100%)

No memoryShort-only TTTMem-TTT

RMBench

GR00T N1.7 · 100 episodes per task per run. Mem-TTT values average three runs.

Benchmark mean
No memory
23.4%
Short only
30.1%
Mem-TTT
79.9%
Battery Try
No memory 68%Short-only TTT 97%Mem-TTT 99%
Blocks Ranking
No memory 44%Short-only TTT 49%Mem-TTT 100%
Cover Blocks
No memory 6%Short-only TTT 21%Mem-TTT 98%
Observe and Pickup
No memory 3%Short-only TTT 1%Mem-TTT 3%
Press Button
No memory 2%Short-only TTT 3%Mem-TTT 38%
Put Back Block
No memory 26%Short-only TTT 22%Mem-TTT 100%
Rearrange Blocks
No memory 46%Short-only TTT 53%Mem-TTT 100%
Swap T
No memory 7%Short-only TTT 11%Mem-TTT 83%
Swap Blocks
No memory 9%Short-only TTT 14%Mem-TTT 98%

RoboMME

π0.5 · 150 test rollouts per task, 600 per suite.

Benchmark mean
No memory
18.3%
Short only
22.5%
Mem-TTT
34.7%
Counting
TaskNo memoryShort onlyMem-TTT
BinFillNo memory 33.3%Short-only TTT 34.0%Mem-TTT 38.7%
PickXtimesNo memory 36.0%Short-only TTT 34.7%Mem-TTT 73.3%
SwingXtimesNo memory 38.7%Short-only TTT 36.7%Mem-TTT 90.7%
StopCubeNo memory 4.0%Short-only TTT 14.7%Mem-TTT 38.0%
Suite mean28.0%30.0%60.2%
Permanence
TaskNo memoryShort onlyMem-TTT
VideoUnmaskNo memory 28.7%Short-only TTT 26.7%Mem-TTT 42.0%
ButtonUnmaskNo memory 22.7%Short-only TTT 28.7%Mem-TTT 26.0%
VideoUnmaskSwapNo memory 18.7%Short-only TTT 26.0%Mem-TTT 26.7%
ButtonUnmaskSwapNo memory 7.3%Short-only TTT 14.0%Mem-TTT 20.0%
Suite mean19.3%23.8%28.7%
Reference
TaskNo memoryShort onlyMem-TTT
PickHighlightNo memory 9.3%Short-only TTT 21.3%Mem-TTT 31.3%
VideoRepickNo memory 0.7%Short-only TTT 13.3%Mem-TTT 26.0%
VideoPlaceButtonNo memory 31.3%Short-only TTT 30.7%Mem-TTT 30.7%
VideoPlaceOrderNo memory 24.7%Short-only TTT 27.3%Mem-TTT 32.7%
Suite mean16.5%23.2%30.2%
Imitation
TaskNo memoryShort onlyMem-TTT
MoveCubeNo memory 22.7%Short-only TTT 31.3%Mem-TTT 49.3%
InsertPegNo memory 1.3%Short-only TTT 2.0%Mem-TTT 3.3%
PatternLockNo memory 10.0%Short-only TTT 12.0%Mem-TTT 10.7%
RouteStickNo memory 3.3%Short-only TTT 6.0%Mem-TTT 15.3%
Suite mean9.3%12.8%19.7%

Real-robot success by task

Rearrange Blocks

No memory35%
7/20 trials
Mem-TTT90%
18/20 trials

Match Object

No memory30%
6/20 trials
Mem-TTT85%
17/20 trials

Press Button

No memory8.9%
4/45 trials
Mem-TTT51.1%
23/45 trials

Wipe Bowl

No memory60%
12/20 trials
Mem-TTT85%
17/20 trials

Bimanual rollouts

Two seven-axis arms and two five-finger hands execute 40-step action chunks. Memory resets each trial and contains only the history preceding each chunk.

Return the original block

The robot moves a second, identical block onto the empty mat, presses the button, then returns the original block to the center. The original starts on the left in the large view and on the right in both insets. The lower-right no-memory policy picks its twin.

Memory interventions and ablations

Task success

Fixed policy weights. Nine task-specific GR00T N1.7 policies, 900 episodes per condition. Full Mem-TTT uses the reference run.

Freeze visual writes

Only the action writer updates, using executed commands and pooled visual features.

160 successes in 900 episodes

Recall after occlusion in Cover Blocks

At step 860, we query a 16-token Long-64 node about earlier block layouts. The target stays fixed when we swap in memory from a different block order.

Query step

Fixed target

Episode 0 · step 30

All three blocks are visible. Earlier camera view from the target episode.

All three blocks are visible.

Current memory

0.062 MSE

The blocks in episode 0 start in blue, green, red order.

Episode 0 · step 30Blue · green · red

Swapped memory

0.151 MSE

The blocks in episode 1 start in red, green, blue order.

Episode 1 · step 30Red · green · blue

Swapped / current MSE 2.44×

Largest increase at row 4, column 2 0.087 → 0.469

Cell MSE · lower is better 00.60 Block region
Probe protocol and error metric

Both nodes cover writes 0–63 (steps 0–315). The decoder’s target is a centered 13-write median of whitened visual features.

Each cell averages squared error over 128 channels. Across 64 writes, the six outlined foreground cells have mean errors of 0.055 (current) and 0.233 (swapped). Across all 16 equally weighted cells, the means are 0.050 and 0.132.

Both demonstrations come from the encoder training set. The thumbnails show their layouts at step 30. Open Supplementary Figure S3 · Download cell errors (CSV)

Training time and online storage

7.1×

faster policy steps with caching

At 64 writes, caching also reduces peak GPU memory by 35.5%. With fixed writers and preprocessing, cache and replay yield identical policy gradients on the same minibatch.

Joint writer–policy trainingCached policy training
Policy step time (ms)
16 writes
Joint writer–policy training431.8
Cached policy training165.1
64 writes
Joint writer–policy training1,230.0
Cached policy training174.1
Peak GPU memory (GiB)
16 writes
Joint writer–policy training27.8
Cached policy training27.5
64 writes
Joint writer–policy training42.6
Cached policy training27.5

One H20 GPU, batch size 8. Times are medians over 12 steps after warmup.

Citation

Download .bib
View BibTeX
@misc{ye2026memttt,
  title = {{Mem-TTT: Plug-in Memory for Pretrained VLAs via Recall-Supervised Test-Time Training}},
  author = {Mingzhe Ye and Xiao Xia and Congsheng Xu and Zhongxi Chen and
            Jianbo Zhou and Wenchao Yue and Xinjun Sheng and Zhijie Deng},
  year = {2026},
  eprint = {2611.35793},
  archivePrefix = {arXiv},
  primaryClass = {cs.RO},
  url = {https://arxiv.org/abs/2611.35793}
}

Mem-TTT architecture

The paper’s complete architecture diagram showing recall-supervised training and hierarchical online inference.
Open full-size image