T4CT: Learning to Act from Test-Time Associative Memory

arXiv Code (coming soon) Model (coming soon)

Motivation

Vision-language-action policies can retain past cues yet fail to use them when selecting actions.

T4CT trains test-time associative memory to guide action selection. The steps follow one real-robot trial of Recall the Hidden Color.

The gripper holds the purple cube. The inset shows the original purple cue.
Recall the Hidden Color · Real robot, 2× playback Play full clip

Overview

Summary

01Problem
A policy can retain a past cue in memory without acting on it. For memory-conditioned FM, a baseline with the backbone and memory of T4CT that is trained with the flow-matching (FM) loss alone, a linear probe decodes the cue color from the memory read with 97% accuracy on RememberColor5, whereas 39% of its actions reach the cued cube (chance level: 20%).
02Analysis
In flow-matching training, the action expert receives the demonstrated action chunk interpolated with noise. Except at high noise levels, this interpolant reveals the intended choice, which reduces the incentive to learn how action selection depends on memory. We refer to this as the interpolant shortcut.
03Method
T4CT trains test-time associative memory through an action readout: a lightweight decoder predicts the action chunk from the current observation and the retrieved memory, without access to the noised action. Flow generation is then initialized from the readout, and the action expert refines it into the executed chunk.
Abstract

Vision-language-action policies can retain past cues yet fail to use them when selecting actions. Our analysis identifies one source of this gap: partially noised training actions can reveal the intended choice during flow-matching training, reducing the incentive to learn how action selection depends on memory. We propose T4CT, which trains test-time associative memory through an action readout and uses this readout to initialize flow generation. An action readout predicts a chunk from the current observation and retrieved memory without access to the noised training action. Our analysis indicates that direct readout supervision drives cue-guided action selection, while initializing the flow from the readout pairs that choice with continuous refinement to improve over starting from a Gaussian source. Across MIKASA-Robo-VLA and RMBench, T4CT achieves competitive or higher average success than prior memory-augmented baselines, and we further evaluate it on real-world non-Markovian manipulation tasks.

Analysis

When memory goes unused

Two signals available during flow-matching training can reveal a history-dependent choice without memory: the noised action given to the action expert, and the current observation once the motion has begun.

The interpolant shortcut

Flow-matching training interpolates the demonstrated chunk a* with Gaussian noise, xτ = (1 − τ) a* + τε, and gives this interpolant to the action expert. On RememberColor5, a classifier that receives only the interpolant identifies the target cube with 81% accuracy at τ = 0.5 (chance level: 20%).

Show moreShow less

The flow time τ sets the noise level, and the interpolant is pure noise only at τ = 1. At every smaller τ, it retains part of the demonstrated action. In RememberColor5, a color cue disappears and five cubes are rearranged, so at the frame where the cubes appear only memory indicates which cube to reach. Because the interpolant already reveals the target at moderate noise, the training loss can decrease with little reliance on the cue in memory.

What the current observation reveals

The current observation can also reveal the choice once the robot begins to act on it. A linear probe on the current image and robot state identifies the selected cube at chance level (20%) when the cubes appear, and reaches 97% accuracy two frames later.

Show moreShow less

As the arm approaches a cube, its configuration indicates which cube the demonstrator selected. Predicting the continuation of an ongoing movement may therefore rely less on memory than deciding which movement to initiate.

Memory gain per action coordinate Darker cells indicate a larger reduction of the training loss from knowing the target. Drag the point, or use the arrow keys.
00.18
Gain 0.068 Flow time 0.5, frame 0
Noised action xτAction chunks at the selected flow time and frame, with two noise draws per demonstration. Dot colors denote the position of the target cube, not its color.

81%of targets named from xτ alone

Each point is one noised action chunk in a t-SNE projection computed for the selected flow time and frame. The percentage is the cross-validated accuracy of identifying the target from the noised action alone.

Show moreShow less

At high noise, this accuracy approaches 29%, the share of the most common target position. Frame 0 reproduces the values reported in the paper, and frames 1 to 6 are computed in the same way.

Current observationTop and wrist views at the selected frame in one RememberColor5 demonstration. Its target is the lime cube.
Top camera view at frame 0
Top camera
Wrist camera view at frame 0
Wrist camera

20%of targets named from the current image and robot state

The percentage is the accuracy of a linear probe on the top and wrist images and robot state at that frame, cross-validated over the demonstrations. Chance is 20%.

Narrow decision window

Memory can reduce the training loss only by the information that the interpolant and the current observation do not already provide. The map shows this quantity, the memory gain. It concentrates within a narrow decision window, at high noise and in the first frames of a movement. Under the flow-time distribution of π0.5, the base policy of T4CT, an estimated 8 to 13% of training samples fall where the cue can reduce the loss.

Estimating the memory gain

G(τ) = R0(τ) − Rm(τ) = τ−2 𝔼‖μm − μ0‖2

R0, Rm: best achievable loss without and with memory. μ0, μm: the corresponding best estimates of the demonstrated action.

Show moreShow less
  1. The target position is treated as an oracle memory. At each frame, the demonstrated action chunks are modeled as a mixture of five Gaussians, one per target position, for which the optimal flow-matching loss can be computed directly.
  2. The gain at flow time τ is the difference between two optimal flow-matching losses: that of a predictor given only the noised action, which must infer the target, and that of a predictor that is also given the target.
  3. The current observation enters through the probe of the panel above. Its output at each frame serves as the belief of the first predictor about the target before it receives the noised action, so the gain decreases as the observation reveals the target.

Method

T4CT: test-time training to act

T4CT separates memory supervision from flow-based trajectory refinement.

The readout decoder does not receive the noised action, so the interpolant shortcut is unavailable to it. At the frames where the choice is made, its loss can decrease only if the memory carries the cue. Flow generation then starts from the readout and refines it into the executed motion.

Base policy
π0.5
Memory
Adds about 0.5% to the parameter count.
Training
Each policy on a single H100 or H200 GPU.
Overview of T4CT: (a) test-time associative memory with fast weights written by key-value regression, (b) a readout decoder that predicts an action chunk from the current observation and memory, (c) a flow that starts from the readout and refines it.
Architecture of T4CT. Fast weights inside the VLM store past observations, an action readout supervises retrieval without seeing the noised action, and flow generation starts from the readout.Enlarge figure

Stage (a)

Test-time regression

Each VLM layer maintains fast weights that serve as an associative memory. At every policy call, they are updated by closed-form key–value regression on the current frame, and they are reset at the start of each episode. Scene-conditioned queries read the memory before the current frame is written, so each read contains only past information.

St = argminS ‖KtS − Vt‖2Λ + ‖S − γtSt−1‖2

K, V: keys and values of the current frame. Λ: weight per token. γ: how much of the old memory is kept.

Stage (b)

Learning to act via deterministic readout

A three-layer transformer decoder predicts the action chunk from the current observation and the memory read, without the noised action. The readout loss is backpropagated through the reads and the earlier writes across consecutive policy calls, which supervises what the memory stores and retrieves.

ât = Dψ(ot, mt),   ℒreadout = ‖ât − a*t‖2

o: current observation. m: memory read. a*: demonstrated chunk.

Stage (c)

Memory-initialized flow (MIF)

Flow generation starts from the readout with small Gaussian noise rather than from a standard Gaussian source. The action expert refines the selected action into the executed chunk, which retains the expressiveness of flow matching for contact and timing.

x1 = sg(ât) + σε,   σ = 0.1

x1: where the flow starts. sg stops the gradient. ε: Gaussian noise. σ: its scale.

Experimental results

Evaluation on simulation benchmarks

T4CT attains an average success rate of 85.6% on MIKASA-Robo-VLA, comparable to the regression-based μVLA (84.0%), and 78.4% on RMBench, compared with 67.9% for EventVLA.

Show moreShow less

On MIKASA-Robo-VLA, the flow-matching baselines range from 36.4% to 51.4%. The largest differences appear on RememberColor5 and RememberShapeAndColor3x3, which require matching an earlier visual cue to objects after rearrangement. On these two tasks, T4CT attains 96% and 84%, whereas the other flow-matching memory policies attain at most 24% and 16%.

On RMBench, T4CT and EventVLA, an explicit keyframe baseline, perform similarly on the tasks that require one past observation (81.6% and 79.0%) and differ more on the tasks that depend on the outcomes of several earlier steps (74.5% and 54.0%).

MIKASA-Robo-VLA
One policy trained on five tasks whose cue is visible only early in the episode.
RMBench
One policy per task on nine bimanual tasks. Five need one past observation, M(1), and four need the outcome of several earlier steps, M(n).
Protocol
Success rate in %, over 50 evaluation episodes per task.

Does memory guide action selection?

On RememberColor5, we trace the cue from the stored memory to the executed action for T4CT and for memory-conditioned FM. As a counterfactual intervention, we also replace the memory of a policy with that of an episode with a different cue.

Memory-cond. FMT4CT
Cue color decoded from the memory read97%100%
Actions that reach the cued cube chance 20%39%96%
Actions that follow a swapped-in memory16%95%
Target cube changes with a new noise draw56%1%
Target cube changes with a new memory11%99%

Both policies retain the cue in memory. For the baseline, the selected target depends more on the initial noise than on the memory, whereas for T4CT it depends on the memory.

Show moreShow less

For the baseline, resampling the noise changes the target cube in 56% of cases, and replacing the memory changes it in 11%. For T4CT, the corresponding rates are 1% and 99%.

Resetting the memory of T4CT before every call, at evaluation only, lowers success from 85.6% to 33.2% on MIKASA-Robo-VLA and from 78.4% to 1.3% on RMBench, which suggests that its performance relies on the accumulated memory.

Memory-to-action analysis on RC5: linear discriminant projections of fast weights and memory reads, the cube each memory's actions reach, and how often the target changes when the noise or the memory is replaced.
Memory-to-action analysis on RememberColor5. (a, b) Projections of the fast weights and the memory reads, colored by cue. (c) The cube each memory's actions reach, with open markers for swapped-in memories. (d) How often the target changes when the noise or the memory is replaced.Enlarge

Ablation studies

MIKASA-Robo-VLARC5RSCSGPTIBIMAvg.
T4CT full, gradient through 2 calls968498985285.6
no associative memory reset every call, in training too16634863836.0
no readout loss202290904252.8
no memory-initialized flow968098904080.8
gradient through 1 call883698903669.6
gradient through 4 calls9274100964681.6
gradient through 8 calls946896862674.0
memory-conditioned FM81898843648.8

Without the readout loss, the memory is trained by flow matching alone, and average success decreases from 85.6% to 52.8%.

Show moreShow less

Because the readout reads the memory before the current write, supervising that write requires backpropagation through at least two calls. Extending the window from one call to two raises success from 69.6% to 85.6%, while windows of four and eight calls yield lower success than two.

Flow refinement and initialization

With readout supervision and a Gaussian source (the “no memory-initialized flow” row), the policy attains 80.8% on MIKASA-Robo-VLA. The difference is larger on RMBench, where longer action chunks are executed.

The chart compares T4CT with the same policy trained and evaluated from a Gaussian source.

Show moreShow less

Executing the readout directly, without flow refinement, attains 30.9% over the nine RMBench tasks. Ten flow steps from the readout attain 78.4% on the same checkpoints, compared with 35.3% from a Gaussian source. With two flow steps, T4CT already exceeds the Gaussian source with ten.

Real robot

Real-world manipulation

On three tasks in which the cue disappears before the arms move, T4CT succeeds in 23 of 24, 13 of 18, and 19 of 20 trials. Memory-free π0.5 and MemBodied remain near chance level.

Show moreShow less

EventVLA performs well on Restore, where keyframes can preserve the return locations, and is at chance level on Recall, where the remembered cue must be matched to a shuffled location. In Press, a policy must track the presses already made to determine when to stop, and the baselines sometimes press an incorrect number of times or continue pressing.

Robot and inputs
Dual-arm AgileX Cobot Magic. Each policy receives the three camera images, the joint state, and the instruction.
Policies
T4CT, π0.5, MemBodied, and EventVLA, all starting from the same π0.5 checkpoint. MemBodied and EventVLA add their memory to π0.5 as described in their papers.
Training data
The same teleoperated demonstrations for all four, 96, 45, and 48 for the three tasks.

Out-of-distribution trials

We additionally run T4CT under conditions absent from the demonstrations, without further training, including unseen cube colors, dim or side lighting, additional objects, and a different cover. Each condition was run only a few times, so the clips are qualitative examples rather than success rates.

Failure cases

Restore with the cubes initially placed beside the taped slots. Only the red cube is returned.
Recall under dim lighting. The arm grasps the purple cube adjacent to the cued red cube.

Limitations

Cube positions off the slots and dim lighting are not covered by the demonstrations. More broadly, our evaluation is limited to static tabletop tasks in which the cue is clearly presented early in the episode.

Show moreShow less

Under a moving camera, or with cues that are partial, noisy, or unavailable until the robot actively seeks them, a single remembered estimate may be brittle. We leave these settings to future work.

Citation

BibTeX

@article{na2026t4ct,
  title   = {{T4CT}: Learning to Act from Test-Time Associative Memory},
  author  = {Na, Youngju and Lee, Sangmin and Yang, Taegeun and Kim, Taeyeon and
             Lee, Sebin and Lee, Jumin and Cho, Yoonki and Yoon, Sung-Eui},
  journal = {arXiv preprint arXiv:2611.40505},
  year    = {2026}
}