Skip to content
Robotics.world

Research

T$^2$Mem: Learning Test-Time Memory for Robotics

Many manipulation tasks cannot be solved from the current camera frame alone — a robot may need to remember which cup hid an object, how many times an action was repeated, or the order of a…

The paper’s first page · arXiv:2609.36720
arXiv
2609.36720 · Preprint · not peer-reviewed
Published
2026-09-29
Authors
Yize Liu, Huang Huang, Yining Hong, Zijian Du, Zhi Cao, Li Fei-Fei, Jiajun Wu

In plain words

Many manipulation tasks cannot be solved from the current camera frame alone — a robot may need to remember which cup hid an object, how many times an action was repeated, or the order of a demonstrated sequence.

AI summary

Overview

Research area: Robotics — memory-augmented vision-language-action (VLA) policies for partially observable manipulation.

Technical level: Advanced. The paper assumes familiarity with VLA architectures, fast-weight/test-time training (TTT), and imitation-learning objectives for action experts.

Scope: The paper introduces T²Mem, a framework that learns an internal, fast-weight memory inside a single pretrained VLA policy so it can act on information no longer visible in the current observation, and evaluates it on the 16-task RoboMME benchmark.

What This Paper Is About

Many manipulation tasks cannot be solved from the current camera frame alone — a robot may need to remember which cup hid an object, how many times an action was repeated, or the order of a demonstrated sequence. The authors ask whether a pretrained, memory-free VLA can learn to retain and use such history from action demonstrations alone, without external memory modules, reasoning models, or memory-specific annotations. Their answer is T²Mem, which stores observation history in rapidly updated "fast weights" that the action expert can read when the relevant evidence has disappeared from view.

Key Contributions

  1. An observation-grounded memory interface inside a VLA. T²Mem places a parametric memory pathway between the vision-language backbone and the action expert of π0.5. Learned interface tokens extract vision-language features, which are used both to write to memory and to retrieve from it, while the original direct VLM-to-action pathway is preserved.

  2. Test-time training as the memory mechanism. Instead of keeping a growing history buffer or a long context window, the policy encodes history into compact fast weights through online self-supervised key-value association updates. Slow parameters are learned across episodes and frozen at deployment; only the episode-specific fast state updates at test time, resetting to a learned initialization W0 at each episode boundary.

  3. Alternating memory–policy learning. Training alternates between a memory-learning phase (policy fixed, action gradients shape what memory stores and retrieves) and a memory-conditioned policy-learning phase (memory fixed, policy learns to use retrieved history), after an initial memory-free adaptation stage. This gives each component a stable counterpart during optimization.

  4. Adaptive self-supervised write rule. Write strength is scaled by β_t ∈ [0.1, 1], computed from the alignment between the descent direction and the accumulated displacement W_t − W0 plus the normalized reconstruction residual, with a curvature-calibrated step size. This reduces interference with earlier memory bindings.

Main Findings

  • Large gain over the memory-free base: Across the 16 RoboMME tasks, T²Mem raises average success from 17.93% (π0.5) to 56.83%, and outperforms the recurrent-memory methods reported in the benchmark (the TTT and RMT variants listed top out at 22.28% and 20.17% average). It also exceeds the reported MemER (42.38%) and SAM2Act+ (21.37%). For reference, the paper lists human performance at 90.50% average and a privileged Oracle (GroundSG Oracle) at 84.08%.

  • Strongest and weakest task families: Highest success rates are on VideoRepick, InsertPeg, and RouteStick. Performance is strongest on tasks needing direct retrieval of an earlier cue or tracking repeated events (e.g., VideoUnmask, StopCube) and weaker on VideoUnmaskSwap and ButtonUnmaskSwap, which require updating object–location associations rather than recalling a stored binding.

  • Memory must sit on the vision-language side: In single-task ablations, T²Mem reaches 84% on VideoUnmask and 71% on MoveCube, versus 30% and 26% for an integration that places memory inside the action expert and derives reads/writes from action-expert representations.

  • Alternation is necessary: Non-alternating joint training, under the same training budget, produces results similar to the no-memory baseline.

  • Adaptive writing reduces forgetting: Over 20 VideoUnmask Hard episodes, adaptive writing gives 18.8%–46.9% lower reconstruction error on early key-value bindings than a β_t = 1 control, consistently across all 20 episodes.

  • Online writes are essential at inference: Disabling episode-local fast-weight updates while keeping reads and the learned initialization drops success by 82.67 percentage points on VideoUnmask, 64.67 on SwingXtimes, and 41.33 on MoveCube.

  • Memory content is used, not just memory presence: In 50 counterfactual pairs on VideoUnmask, correct memory yields 300/300 successes, conflicting donor memory 1/300, and empty memory 101/300 across both pairing directions and three seeds. Conflicting memory is more damaging than empty memory, and empty memory sits near the one-third chance level for three candidates.

  • Useful writes are localized in time: With stride 4 over a 66-frame prefix (16 write opportunities; the dominant occlusion transition is at frame 32 in all eight inspected trajectories), eight pre-occlusion writes achieve 76.67% versus 20.67% for eight post-occlusion writes, matching full-demonstration performance.

  • Inference efficiency: Controlled profiling on RTX A5000 GPUs at batch size one shows foreground computation approximately 3.0× faster than FrameSamp+Modul and 69.2× faster than MemER.

Methodology in Plain English

The starting point is a pretrained robot policy (π0.5) that maps camera images and a language instruction to actions. The authors add a small side channel between the model's vision-language backbone and its action expert. A set of 16 learned "interface tokens" reads from the vision-language features — and is deliberately blocked from reading action or proprioceptive tokens, so memory cannot take a shortcut through action history.

Those interface tokens do two things. They form a query that reads the current contents of a small neural network whose weights change during the episode — the fast weights — and they form key-value pairs that are written into those weights by gradient descent on a self-supervised reconstruction objective. Reads happen before writes, so a new observation only affects later decisions. The retrieved readout is added back into the interface features through a channel-wise gate initialized near zero, so the pretrained skills are not disrupted at the start of training.

Training proceeds in stages: first adapt the policy to the tasks with no memory at all, then freeze the policy and train the memory to store things the frozen policy needs, then freeze the memory and train the policy to exploit what it retrieves, repeating the last two phases. At deployment, all learned parameters are frozen and only the fast weights update, using observations alone — no action labels are needed.

Why This Matters

Research impact. The paper argues against treating memory as an external store, retrieval module, or reasoning call bolted onto a policy, and shows that memory formation and memory use can be shaped jointly by the action objective inside one model. The counterfactual and write-disabling interventions give a template for testing whether a policy actually uses its memory rather than merely carrying it.

Real-world applications:

  • Warehouse and logistics picking where an item is briefly occluded or moved behind another object.
  • Household manipulation that requires remembering which container was opened or where an object was placed.
  • Assembly and insertion tasks where the robot must track progress through a multi-step sequence.
  • Instruction-following tasks that require reproducing the order of a human demonstration.

Industry relevance. The compact fast state (9,529,344 FP32 scalars, 36.35 MiB per episode, excluding attention caches and activations) and the roughly 67.90M added parameters suggest memory can be added to an existing VLA without a large separate model. The reported 3.0× and 69.2× latency advantages over explicit-memory baselines speak directly to closed-loop control rates on modest hardware (RTX A5000, batch size one).

Future Directions

  • Cross-temporal reasoning. The authors attribute weak performance on swap tasks (VideoUnmaskSwap, ButtonUnmaskSwap) to the base policy's per-frame representations, which are not trained for cross-frame correspondence. They leave designing implicit memory modules that track and reason over evolving task states to future work.

  • Separating memory failures from execution failures. On InsertPeg, the policy reportedly locates and approaches the correct target but fails during final insertion, so terminal success conflates memory-dependent decision-making with low-level precision.

  • Scaling to stronger foundation models. The authors position T²Mem as a foundational memory capability intended to complement explicit memory and higher-level reasoning in more advanced foundation models.

  • Broader validation. Evaluation is confined to the 16 RoboMME tasks with task-specific checkpoints used in the ablation and counterfactual studies; generalization beyond this benchmark is not reported.

Target Audience

Robotics and embodied-AI researchers working on VLA policies, partially observable manipulation, and memory architectures; graduate students familiar with imitation learning and transformer policies; and engineers at robotics or foundation-model companies evaluating whether to add memory to an existing policy without a separate retrieval or reasoning stack. Readers without background in test-time training or action-expert architectures will find the appendices (fast-weight update rules, curvature calibration, hyperparameters) necessary for implementation.

Authors’ abstract

Memory-dependent robotic manipulation requires policies to use information that is no longer available in the current observation. Retaining history alone is insufficient: memory must preserve information that supports future actions. One challenge is whether a memory-free foundation model can learn to retain and use historical information from action demonstrations alone, without external memory support. We introduce T$^2$Mem, a framework that develops this capability…

The full abstract on arXiv
Read the original paper

Related papers