# Test-Time Training as Residual Memory for Robot Policies

Robotics.world

> Long-horizon manipulation is partially observable: an object may be occluded, an instruction issued long ago, or a subgoal already completed, so the current camera frame alone is not enough to pick…

**arXiv**: 2610.04701 · Preprint · not peer-reviewed

**Published**: 2026-10-03

**Authors**: Haoxuan Wang, Gengyu Zhang, Ramana Rao Kompella, Gaowen Liu, Yan Yan

## In plain words

Long-horizon manipulation is partially observable: an object may be occluded, an instruction issued long ago, or a subgoal already completed, so the current camera frame alone is not enough to pick the next action.

## AI summary

## Overview

**Research area:** Robot learning — memory-augmented visuomotor policies for long-horizon manipulation, combining Explicit Memory (retrieval banks) with Test-Time Training (TTT) fast weights.

**Technical level:** Advanced. The paper assumes familiarity with transformer policies, fast-weight/parametric memory, flow-matching action heads, and inner-loop/outer-loop (meta-learning) optimization.

**Scope:** The paper proposes TTT-RM, a modular add-on that repurposes Test-Time Training as a *residual* memory channel storing only the history that a policy's current observation and retrieved memory cannot already explain, and validates it on RoboMME, RMBench, and three real-world manipulation tasks.

## What This Paper Is About

Long-horizon manipulation is partially observable: an object may be occluded, an instruction issued long ago, or a subgoal already completed, so the current camera frame alone is not enough to pick the next action. Two memory families exist — Explicit Memory (EM), which keeps a bounded bank of retrievable past observations, and Test-Time Training, which squeezes the whole interaction history into a fixed-size fast-weight state — but neither distinguishes between history the policy can already infer from context and history that must be carried explicitly. The paper's goal is to make TTT spend its limited capacity only on the genuinely unrecoverable part of the past, and to show this improves control across many memory designs.

## Key Contributions

1. **A residual formulation of memory.** TTT-RM trains a history decoder to reconstruct past visual representations from the current observation, the retrieved EM contents, and the language instruction; the reconstruction error (the residual) becomes the target for the fast weights, so TTT is no longer used as a generic history compressor.
2. **A concrete training and inference recipe for Residual Memory.** Visual features from the frozen encoder are written into fast weights via an inner-loop gradient step (with a residual-parameterized write target for stability), read out as an address-conditioned difference between the updated and episode-initial fast-weight states, and fed to the action expert through a lightweight attention adapter, supervised by a combined action + residual loss.
3. **Modularity across memory designs.** The method is demonstrated on top of two Explicit Memory mechanisms (TokenDrop and FrameSamp) and two integration architectures (memory-as-modulator and memory-as-expert), plus a three-stage training pipeline (decoder training, warm-up of new components, full fine-tuning).
4. **Empirical validation in simulation and on a real robot,** including a three-minute, eight-stage stowing task, with consistent improvements over EM baselines and over standalone TTT variants.

## Main Findings

- **Standalone TTT is inconsistent.** On RoboMME, TTT with the *Modul* integration raised average success from 18.4% (Base) to 21.9%, while TTT with the *Expert* integration underperformed the Base policy at 17.5%. The authors conclude that adding a fast-weight state does not by itself improve history-dependent control.
- **Explicit Memory is the strong baseline.** EM variants all beat Base substantially; the best EM configuration, FrameSamp w/ Modul, reached 42.8% average on RoboMME, and MemER (a dual-system VLM baseline) reached 42.4%.
- **TTT-RM improves every configuration.** Average gains over the corresponding EM baseline range from 2.2 to 7.1 percentage points, and TTT-RM beats its EM baseline in all 16 configuration–suite comparisons. The best configuration, FrameSamp w/ Modul, goes from 42.8% to 45.4%; the largest average gain is TokenDrop w/ Modul, from 30.9% to 38.0%.
- **Gains on RMBench.** TTT-RM reaches 36.5% on M(1) versus 30.5% for EM (a 6% improvement as stated) and 15.8% on M(n) versus 10.8% for EM (a 5% improvement), while Base scores 15.6% and 8.8% and standalone TTT scores 11.2% and 10.3%.
- **Real-world progress gains.** Mean task progress is 65.5% versus 55.5% for the strongest baseline on *Pen to drawer*, 73.5% versus 47.0% on *Pick N pens*, and 77.0% versus 50.5% on *Stow objects*. The abstract summarizes this as a 10% to 26.5% improvement in task progress.
- **Residual supervision matters.** Disabling it (λ_res = 0) improves TokenDrop but degrades FrameSamp relative to EM; moderate values give consistent gains, and larger weights give no further benefit and can slightly reduce performance.
- **Naive EM+TTT stacking does not work.** Adding TTT to an EM policy without residual supervision yields limited or no improvement, and starting from standalone TTT and adding TokenDrop or FrameSamp under the Expert integration raises average success only from 17.5% to 18.1%.
- **All three training stages help.** Stage 1 changes no rollout behavior (it only trains the decoder); Stage 2 or Stage 3 alone improves performance; and their sequential combination is best for both EM mechanisms.

## Methodology in Plain English

The starting point is an existing robot policy that already has an Explicit Memory bank — a fixed-budget store of selected past visual tokens or frames that the policy can look up. The question is what to do with the leftover information that did not fit in the bank.

The authors first train a separate "history decoder" network whose job is to guess what a past visual feature looked like, given only the current observation, the retrieved memory, the language instruction, the past location/time, and how old that past moment is. Since this decoder has limited capacity, it can only recover the parts of history that are genuinely inferable from context. Its mistakes — the difference between the true past feature and the decoder's reconstruction — define exactly what is missing. The decoder is then frozen and used as a fixed referee for the rest of training.

Next, the Test-Time Training module is wired up so its fast weights are trained to reproduce those mistakes. At each policy step, current visual features are turned into keys and written into the fast weights with an inner-loop gradient step; the read operation queries the updated weights at a past time-and-location and subtracts the readout produced by the episode's initial weights, isolating what was learned *during this episode*. That difference is the Residual Memory. A training loss pushes it toward the frozen decoder's residual, while the standard action loss trains the policy; a small attention adapter lets each action block consult these residual readouts.

Training proceeds in three stages: train and freeze the decoder, then train only the new Residual Memory parts with the pretrained policy frozen, then fine-tune everything together. At deployment the decoder is thrown away, the fast weights reset at the start of each episode, and they are updated once per policy call — held fixed across all flow-integration steps within a call — so no extra encoder or VLM forward passes are needed.

## Why This Matters

**Impact on research.** The paper reframes the design question for memory-augmented policies from "how much history can we store?" to "which history is *not already recoverable*?" That gives TTT a principled role alongside retrieval rather than as a competitor, and it offers a diagnostic (residual reconstruction) that other memory architectures could reuse. The negative results — standalone TTT underperforming Base, naive EM+TTT stacking barely helping — are as informative as the positive ones.

**Real-world applications:**

- Multi-stage household or kitchen tasks where an object is moved into a cabinet or drawer and must be recalled later (the paper's *Pen to drawer* and *Stow objects* tasks).
- Instruction-following with counting or quantity requirements, such as placing exactly N items in a container (*Pick N pens*).
- Warehouse order stowing and packing, where episodes run for minutes and success depends on tracking which subgoals are complete.
- Any deployed manipulation policy with a fixed on-robot memory budget, since Residual Memory adds a constant-size state rather than growing storage with episode length.

**Industry relevance.** The method is deliberately modular and reuses the visual stream already computed for Explicit Memory, adding no extra encoder or VLM forward passes — an attractive property for latency- and compute-constrained robot deployments. It plugs into existing memory designs and a shared π0.5 backbone, which lowers integration cost for teams already running retrieval-based policies.

## Future Directions

- **Choosing the residual budget.** The paper shows λ_res needs tuning and that the fast-weight state has limited representational capacity; how to size and allocate that capacity relative to the EM budget is left open.
- **Beyond visual residuals.** The history decoder reconstructs projected visual features; whether residual targets should include proprioceptive, action, or semantic/subgoal history is unexplored.
- **Longer and harder horizons.** Gains grew with memory demand (largest on *Stow objects* and *Pick N pens*); scaling to substantially longer episodes and to tasks where residual reconstruction itself becomes unreliable is an open question.
- **Alternative residual estimators.** The decoder is a fixed, finite-capacity referee; a better-calibrated or iteratively updated estimator of "what is recoverable" could sharpen the residual target, and the paper reports no comparison against such alternatives.

## Target Audience

Robotics and embodied-AI researchers working on memory-augmented manipulation policies, especially those building on retrieval-based memory banks or Test-Time Training / fast-weight memory. It is also relevant to engineers deploying long-horizon manipulation systems under fixed memory and compute budgets, and to students with background in transformer policies and meta-learning who want a clear example of using a self-supervised reconstruction signal to decide *what* a parametric memory should store.

## Authors’ abstract

Memory is essential for long-horizon robotic manipulation, where successful actions may depend on past events that are no longer recoverable from the current observation. As episodes grow longer, however, retaining the full history becomes increasingly costly, creating a fundamental scalability challenge for memory-augmented policies. Existing approaches address this challenge by either storing selected past observations in a bounded memory bank or compressing interaction…

[The full abstract on arXiv](https://arxiv.org/abs/2610.04701)

[Read the original paper](https://arxiv.org/abs/2610.04701)

## Related papers

- [CoachSI: Self-Improvement of Robot Policies with a Language Coach](https://robotics.world/paper/coachsi-self-improvement-of-robot-policies-with-a-language-coach-2611.25529) 2026-11-19 · cs.RO · Also by Gengyu Zhang, Haoxuan Wang +1
- [ForeAct3D: Policy-Grounded Future World Modeling for VLA Policies](https://robotics.world/paper/foreact3d-policy-grounded-future-world-modeling-for-vla-policies-2610.04607) 2026-10-03 · cs.RO · Also by Gaowen Liu, Ramana Rao Kompella +1
- [PRISM: Primitive Routing via In-context Skill Mixing for Retentive VLA Adaptation](https://robotics.world/paper/prism-primitive-routing-via-in-context-skill-mixing-for-retentive-vla-2611.08917) 2026-11-06 · cs.RO · Also by Gengyu Zhang, Haoxuan Wang +1
- [Cue the Flow: Steering Flow-Matching Policies for Open-World Delivery Manipulation](https://robotics.world/paper/cue-the-flow-steering-flow-matching-policies-for-open-world-delivery-2609.38989) 2026-09-30 · cs.RO · Also by Haoxuan Wang, Yan Yan
- [T$^2$Mem: Learning Test-Time Memory for Robotics](https://robotics.world/paper/t-2-mem-learning-test-time-memory-for-robotics-2609.36720) 2026-09-29 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/test-time-training-as-residual-memory-for-robot-policies-2610.04701
