Mem4Act
Mem4Act logo

Mem4Act

Learning Effective Latent Memory for Long-Horizon Robotic Manipulation

1UCLAUniversity of California, Los Angeles
2NC StateNorth Carolina State University

† Project leader. Corresponding author.

Mem4Act · Overview video

Mem4Act in under two minutes

Long-horizon manipulation hinges on memory.

A block's color seen early in a task may be hidden by the time the robot needs it, yet most vision-language-action (VLA) models act from the current observation alone.

Existing memory methods store raw history, compressed visual tokens, or language summaries, but they either burden the policy with an ever-growing context or discard the temporal, semantic, and perceptual details that matter later.

We introduce Mem4Act, which continuously distills past observations into a compact, fixed-size latent memory trained explicitly for control. Multi-granularity temporal attention structures this memory across time scales; semantic question answering and key-frame DINO feature reconstruction teach it to retain both task facts and fine visual detail; and memory-first two-stage training ensures the policy actually draws on memory instead of reacting only to what it currently sees.

29Memory-dependent tasks across two benchmarks and a real robot
49.88%RoboMME success rate (16 tasks)
61.0%RMBench success rate (9 tasks)
81.50%Real-world success rate (4 tasks)
Figure 1. (a) Full history, per-frame compression, and sparse keyframes each trade off context length against lost evidence; Mem4Act instead learns a fixed-size latent memory. (b) It organizes history at multiple granularities, defines memory content with semantic and perceptual supervision, and trains memory first so the policy relies on it. (c) Results on RoboMME, RMBench, and the real world.

Three questions for effective latent memory.

Effective latent memory must answer where to attend, what to retain, and how to make the policy use it. Mem4Act tackles each one directly.

01

Coverage

Where to attend

Multi-granularity temporal attention spreads a limited memory budget across time, merging local events into long-range context rather than repeatedly encoding similar moments.

FineMediumCoarse windows
02

Content

What to retain

Semantic question answering trains memory to keep task-relevant facts, and key-frame DINO feature reconstruction preserves fine visual detail from specific moments, signals that action supervision alone cannot provide.

History QAKeyframe DINO
03

Utilization

How the policy uses it

Memory-first training builds an informative memory with auxiliary supervision before jointly tuning memory and policy for control, so the policy learns to rely on history rather than the current frame alone.

Stage 1: memoryStage 2: policy
Figure 2. Mem4Act framework. (a) Past frames are encoded with SigLIP alongside state, phase, and relative-time tokens. (b) Learnable memory queries read the history through fine, broader, and coarse masked cross-attention windows, then global self-attention, forming the memory latent M. (c) Retrospective supervision reconstructs past-keyframe DINO features and answers semantic questions about the history. (d) The action expert reads M through memory modulation. (e) Training first learns memory, then adapts the policy to use it.

State of the art for memory-dependent control.

Mem4Act is evaluated across 29 tasks spanning RoboMME, RMBench, and four real-world setups, while keeping the policy's memory input a fixed size no matter how long the history grows.

Average success rate

Performance comparison

Success rate (%) as reported in the paper (selected baselines). The gain is measured over the strongest baseline shown. † Reimplemented from open-source code.

What makes latent memory effective?

Four questions from our ablation study on RoboMME. Each chart animates when it scrolls into view; press Replay to run it again, or expand the detailed results.

Q1
Coverage

How do memory capacity and temporal structure affect performance?

Memory capacityFixed 32→16→8 hierarchy · overall success (%)
Temporal structureFixed 512 memory tokens · overall success (%)
Finding

Structure matters more than size. Growing memory from 128 to 512 tokens lifts success from 40.13% to 49.88%, but 1024 tokens drops it to 42.75%. A structured 128-token memory already beats unmasked full-history attention with 512 tokens (33.25%), and the default 32→16→8 hierarchy beats both coarser and finer scales.

Show detailed results
ConfigurationTemporal windowsTokensCountingPermanenceReferenceImitationOverall
Temporal structure (fixed 512 tokens)
No temporal maskingFull history51259.0029.0023.5021.5033.25
Single-scale3251258.5021.5032.0032.0036.00
Repeated single-scale32→32→3251257.5027.0028.0035.0036.88
Two-level hierarchy32→851270.5025.0031.0046.0043.13
Coarser hierarchy16→8→451271.5022.5037.5049.0045.13
Default hierarchy32→16→851272.5031.5039.5056.0049.88
Finer hierarchy64→32→1651272.0028.0037.5050.5047.00
Memory capacity (fixed 32→16→8 hierarchy)
Very small memory32→16→812868.0021.5032.0039.0040.13
Small memory32→16→825670.5025.0036.0045.5044.25
Large memory32→16→8102470.0021.5037.5042.0042.75
Q2
Content

Do semantic and perceptual objectives complement each other?

Effect of memory supervisionSuccess (%) by RoboMME task group: memory of task state (semantic), visual detail (perceptual), or both
Finding

QA and DINO are complementary. QA supervision helps most on semantic tasks (58.80% vs. 55.60% for DINO), while key-frame DINO reconstruction helps most on perceptual tasks (50.67% vs. 45.33% for QA). Using both gives the best joint-task (37.60%) and overall (49.88%) success.

Show detailed results
SupervisionSemanticPerceptualBothOverall
Action (one-stage)46.8029.6718.4031.50
Action + QA58.8045.3325.2043.25
Action + DINO55.6050.6728.8045.38
Action + QA + DINO61.6050.3337.6049.88

Action-only uses one-stage training; all other rows use two-stage training.

Q3
Utilization

Does pretrained memory need to adapt for control?

Stage 2 memory updateAll two-stage variants share the same Stage 1 memory pretraining · overall success (%)
Finding

Adapt memory, but gently. Freezing the pretrained memory collapses success to 18.38%. Updating it at 0.1× the action learning rate works best (49.88%), ahead of full-rate adaptation (43.25%) and one-stage joint training (33.38%).

Q4
Utilization

Does two-stage training make the policy rely on memory?

History-swap testAt inference we replace the past with another rollout of the same task, keeping the current observation, state, and instruction. A larger drop means stronger reliance on memory.
Finding

Memory-first training makes the policy actually use history. Swapping in another rollout's past costs the 0.1× LR two-stage model 33.75 points, twice the drop of one-stage training (16.75). It is also the best model with the correct history, so it relies on rollout-specific memory rather than the current frame alone.

Show detailed results
ConfigurationCorrectMismatchDrop
One-stage (all losses)33.3816.6316.75
Two-stage, frozen18.386.7511.63
Two-stage, 0.1× LR49.8816.1333.75
Two-stage, 1.0× LR43.2519.6323.62

Rollouts across three evaluation settings.

Choose a task or suite independently in each panel. Real-world videos compare Mem4Act against a selected baseline on the same task.

Physical robot

Real world 4 tasks

Compare with
Simulation benchmark

RoboMME 16 tasks

Simulation benchmark

RMBench 9 tasks

Cite Mem4Act

If you find this work useful, please cite our paper.

@misc{zhang2026mem4act,
  title         = {Mem4Act: Learning Effective Latent Memory for Long-Horizon Robotic Manipulation},
  author        = {Yun Zhang and Zhiyu Huang and Tianhui Cai and Chen Tang and Wei Wang and Jiaqi Ma},
  year          = {2026},
  eprint        = {2610.22323},
  archivePrefix = {arXiv},
  primaryClass  = {cs.RO},
  url           = {https://arxiv.org/abs/2610.22323}
}