北大开源 MomentMem:让机器人记住操作中的关键瞬间
Xbotics Talk第 34 期 | 北大开源 MomentMem——让机器人记住操作中的“关键瞬间”
北京大学团队提出分层框架 MomentMem,用基于 Qwen3-VL-4B 的记忆器逐帧挑选稀疏关键帧、π0.5 执行器据此预测动作,并构建视觉瞬间记忆基准 VMBench。
来源:Xbotics具身智能实验室 · 微信公众号 · mp.weixin.qq.com
分层记忆框架把记什么与怎么做拆开,并配套基准,便于定位长程操作失败出在记忆还是执行。
For a while now, we have been thinking about a question: getting a robot to "put the block back where it was" sounds simple enough; but once the block is moved away and its original location no longer appears in the frame, most of today's VLA policies do not know where to put it. The difficulty is not that the robot cannot grasp or cannot place, but that it has not remembered that location.
We are increasingly convinced that robot manipulation lacks not only a stronger action model, but also a kind of memory that can retain key moments exactly as they were. Based on this judgment, we propose MomentMem, a hierarchical framework that separates "what to remember" from "how to act," and we have also built VMBench, a benchmark specifically designed to evaluate visual moment memory. On VMBench, MomentMem achieves an average success rate of 49.9%, 31.7 percentage points higher than the strongest baseline.
Code:
github.com/PKU-VaLuE-Lab/MomentMem
Paper:
arxiv.2611.26745
Why study "visual moment memory"
Memory is becoming a key capability for multimodal models and embodied models. But in robot manipulation, existing approaches roughly fall into only two paths: either feed the complete observation history to the model, which is complete in information but full of redundancy once tasks get long; or summarize what happened in text, which is compact enough but loses visual details. "I have pressed the button twice" can be stated clearly in one sentence, but "put the block back where it was" is hard—where exactly is that "original place"? Text cannot give a precise answer.
We call this capability visual moment memory: remembering precise visual information at key moments, such as texture patterns, spatial relations, and specific locations, and continuing to use it to guide manipulation after it disappears from the frame. In existing memory benchmarks, many tasks can be solved with concise textual memory, which precisely fails to test this capability.
Core judgment: treat the raw frame itself as memory
The first key choice we made is to use sparse keyframes as the interface between memory and execution. Full history is too redundant, and text summaries are too coarse; keyframes lie in between: they retain only a few moments, but what is retained is the raw image, with unclear details such as color, texture, and location preserved exactly as they are.
The question then becomes: how does the robot know which frame is worth keeping? Key evidence often appears only briefly, and is gone once missed; the same piece of evidence also often appears continuously across several frames, where storing one is enough and storing more becomes redundancy. What MomentMem needs to learn is precisely to store only the frame that should be stored, at the right moment.
VMBench: making tasks solvable only by "having seen"
To study this problem, we first built a benchmark. The design principle of VMBench is clear: success must depend on whether precise visual information has been remembered, not merely on object identity or task progress. It contains 9 closed-loop manipulation tasks, divided into three categories according to the visual information that needs to be remembered:
Spatial location |
Spring Compression, Flash Beacon, Explore Cube. For example, in Flash Beacon, the beacon appears only briefly, and the robot must place the block at the location where it appeared.
Visual appearance |
Hidden Pattern, Drawer Match, Scroll Discovery. For example, in Scroll Discovery, the robot must first pull open the scroll and see the pattern clearly, and after the scroll rolls back, stack the two with the same pattern together.
Binding of appearance and location |
Placement Imitation, Mine Sweeper, Seal Checking. For example, in Mine Sweeper, when the detector sweeps over the "minefield," it briefly changes color at target points; the robot must remember where each color appears and then place the block of the corresponding color there.
Some evidence is actively shown by the environment, while some requires the robot to act itself to see it, such as pulling open a drawer or scanning with a detector, so VMBench evaluates both "remembering while looking" and "remembering while acting." All tasks are built on SAPIEN and ManiSkill3, using a Franka Panda robotic arm and scripted closed-loop experts; 100 successful demonstrations are collected per task, and the time intervals during which key evidence is visible are automatically annotated by simulation events. We also prepare visual OOD variants for each task: changing the room and tabletop appearance, lighting, and distractors outside the manipulation area, while keeping the task mechanics, memory events, and success conditions unchanged.
Why insist on separating memory and execution
The second key choice is not to let a single model be responsible for both "remembering" and "acting." When a task fails, success rate alone cannot tell whether the problem is failure to remember or failure to act well. Therefore, MomentMem adopts a hierarchical structure: a VLM-based memorizer streams through frames and, combining existing memory, recent observations, and the task instruction, decides frame by frame whether "this frame should be stored"; an executor then takes these temporally ordered keyframes, together with the current observation and robot state, to predict the next segment of actions.
Training also proceeds in two steps. First, the memorizer is trained with key-segment annotations, then frozen; it is run on action demonstrations to select keyframes, and the executor is trained with these selected memories. What the executor sees is not idealized annotated frames, but the results the memorizer would actually produce, including occasional misses and extra selections. In this way, memory and execution can be evaluated separately and adapted separately.
How to teach the model "which frame to remember"
Two details are most critical in training the memorizer.
First, segment-level supervision. A piece of evidence usually remains visible across consecutive frames; if only one of them is marked as the correct answer, the adjacent equally valid frames would be treated as errors. Our approach is to annotate a visible interval for each piece of evidence and randomly sample one frame from it as the "anchor" in each training round: the anchor is a positive example, frames before it are excluded from the loss, and frames after it become negative examples because the evidence has already been stored. Resampling across rounds lets the model learn to accept different representative frames of the same event; it is encouraged to capture evidence as early as possible, and if it misses, it can still make up for it within the same interval.
Second, scheduled sampling. Whether a frame should be stored depends on what is already in memory; at inference time, once there is a miss or an extra selection, the context for all subsequent decisions changes accordingly, and training only with histories constructed from ground truth means the model never sees such situations. So at the start of each round, we let the current model replay the training trajectories, construct memory histories by mixing its own decisions with ground truth, and gradually increase the proportion of model predictions used.
Overall, the components of MomentMem are divided as follows:
Module
Role in MomentMem
Why we designed it this way
VMBench tasks
9 closed-loop tasks where key evidence is only briefly visible
Make success depend on remembering precise visual information
Key segment annotation
Automatically mark the intervals where evidence is visible based on simulation events
Allow multiple valid frames instead of accepting only one
Memorizer (Qwen3-VL-4B)
Streams through the frames and decides frame by frame whether to store or not
Stores only sparse keyframes, preserving original image details
Anchor sampling
Samples one frame from each interval per round as a positive example
Encourages early capture, with recovery possible after a miss
Plan sampling
Constructs memory history using the model's own decisions
Lets the memorizer see situations after it has made mistakes
Executor (π0.5)
Predicts action chunks based on keyframes and the current observation
Memory and execution can be diagnosed and adapted separately
Visual OOD variants
Changes rooms, tabletops, lighting, and distractors
Separately tests the memorizer's generalization to new appearances
Improvements brought by MomentMem
We initialize the memorizer with Qwen3-VL-4B and the executor with π0.5, jointly train on the 9 tasks of VMBench, and test each task in closed loop on 100 unseen initial configurations. Baselines include π0.5 itself and three memory-based policies: Mem-0, NativeMEM, and EventVLA; all methods use the same demonstration data.
In terms of results, MomentMem achieves an average success rate of 49.9%, 31.7 percentage points higher than the strongest baseline EventVLA (18.2%). It is best on 5 tasks and tied for best on 1 more. π0.5 without memory averages only 7.0%, with a 0% success rate on 4 tasks. The following results are the most illustrative:
Case 1 | Mine Sweeper
The robot must remember where the detector changed color and what color it became. π0.5 can often place the block into the candidate region, but not at the exact point previously indicated—grasping and placing is not enough; it must also remember where to place it. MomentMem reaches 93% on this task, while no other method exceeds 1%.
Case 2 | Placement Imitation
Two blocks of different colors are moved one after another to unmarked target positions, then after a pause moved back to their original locations; the robot must return each of them to the position where it paused. MomentMem achieves a 99% success rate, while the best other method reaches only 6%.
Case 3 | Unseen appearances
The memorizer is trained only on standard appearances and is directly used to select frames in scenes with changed rooms, tabletops, and lighting, without any additional memory annotations. MomentMem achieves an average success rate of 55.2%, compared with 16.3% for the strongest baseline, and is best on 8 of the 9 tasks. (In this setting, the executor is still trained on demonstrations of the target appearance; only the memorizer faces unseen appearances.) On recorded demonstrations, the memorizer hits 95.8% of key segments under standard appearances and still 87.2% after changing appearances.
Case 4 | Unseen tasks
Holding out Flash Beacon, the memorizer is first trained on the other 8 tasks and then adapted using only 5 demonstrations with memory annotations. The final success rate is 43.7%, close to the 44.3% obtained by training with all 100 annotations, and 14.7 percentage points higher than the 29.0% obtained by adapting directly from pretrained Qwen3-VL with the same 5 data points.
Case 5|RMBench
Without changing any structure, we tested directly on the existing memory benchmark RMBench. MomentMem achieved an average success rate of 69.8%, 1.9 percentage points higher than EventVLA's 67.9%, and was best on 6 of the 9 tasks, with Observe and Pick Up outperforming the strongest baseline by 61 percentage points.
Case 6|Real robots
We built real-world versions of Placement Imitation and Explore Cube on a Franka Panda, collecting 51 and 54 demonstrations respectively, and manually annotated the key segments. With 30 trials per task, MomentMem succeeded 14 and 17 times respectively; across all 60 trials, it succeeded 17 more times than π0.5 and 15 more times than EventVLA. The largest improvement was on Placement Imitation: a human places the block at the target and then moves it away, and the robot must remember that location.
What we saw clearly after breaking it down
Ablation experiments show that both training details are indispensable: replacing segment-level supervision with point annotations that label only a single frame drops the average success rate by 43.0 percentage points; removing scheduled sampling and constructing history only from ground truth drops it by 30.9 percentage points. The former misjudges valid adjacent frames as negatives, while the latter leaves the model with no way to cope after an early mistake, especially on tasks that require remembering multiple events.
Another benefit of the hierarchical design is that memory itself can be inspected directly. On the validation set, the memorizer hit 95.8% of the key segments and stored no irrelevant frames in 84.4% of the demonstrations. Following the BPP approach, we also let a stronger frozen VLM (GPT-6-Astra) select key frames directly, and it hit only 69.5% of the key segments. General visual understanding does not automatically equal memory capability, and memory modeling deserves to be treated separately.
Breaking it down also revealed the executor's shortcomings. MomentMem did not outperform the strongest baseline on appearance-type tasks. We ran a diagnostic on Hidden Pattern: the memorizer stored the box patterns and the target card in every scenario examined; yet when a linear probe reads the executor's last-layer features, "which texture is this" can be read out with 99% accuracy, while "which box matches the card" reaches only 40%, barely above the 33% of random guessing. The evidence is already in memory, but the executor is not yet good at comparing textures across images.
How to view the boundaries of this line of work
We do not believe that MomentMem solves the problem of robot memory. The additional VLM memorizer incurs inference overhead; on RMBench it leads by only 1.9 percentage points on average, and the gains vary considerably across tasks; and the executor still struggles to use texture information to select targets. VMBench currently has only one robotic arm and a fixed camera configuration, and the effect of viewpoint changes has not been tested; when adapting to new tasks, the memorizer still requires a small amount of memory annotation.
What MomentMem does is first single out the question of "what to remember," get it right, and make it measurable: preserve evidence in raw frames, teach the model to select frames with segment-level supervision and scheduled sampling, and use a hierarchical structure to diagnose memory and execution problems separately. It may not make every task stronger immediately, but it lets us know clearly whether a failure lies in memory or in execution.
Why we chose open source
When reviewing related work, we noticed a phenomenon: more and more methods are beginning to handle long-horizon, history-dependent manipulation, but they store and use history in different ways—some compress it into recurrent states or memory tokens, some write it as text, and some select frames by preset rules; and many of the tasks used to evaluate them can be completed with textual memory alone. Memory for precise visual details still lacks a dedicated testbed and a set of methods that can diagnose memory in isolation.
So we are open-sourcing the MomentMem code, hoping that VMBench's task design and hierarchical evaluation approach can become a testing ground for everyone researching robot memory. Next, we also want to continue exploring: whether broader memory training can enable models to transfer to new tasks without any memory annotation at all.
In one sentence, MomentMem aims to make robots, like humans, remember only the few glances that truly matter and use them accurately when needed. The MomentMem code is now open source on GitHub, and we welcome anyone interested in robot memory, VLA, and long-horizon manipulation to exchange ideas and build together.
-END-
Click the card below to follow
【Xbotics Embodied Intelligence Lab】
Official Account
Everything you want is here~~
Ask Me Anything|Question Box
Confused about the article, or want to talk deeper?
Feel free to send us your questions:
technical solutions, hands-on pitfalls, courses and materials, project collaboration, career development
—you can ask about all of them.
How to ask
: leave a comment in the comment section, or send a private message to the official account
What we will do
: compile high-quality questions every week and reply publicly, invite authors or guests to answer key questions in depth; typical questions will be added to the knowledge base and continuously updated.
A tip for asking
: try to explain "your goal—current approach—expected output" and include the necessary information (hardware/software versions, data scale, etc.) to get useful answers faster.
Let's turn questions into knowledge and move the community forward
🚀