MXI-MemICL: Towards In-Context Robot Manipulation through Self-Retrieved Interaction Memory

Jialong Peng, Shihao Zhou, Feng Yan, Wen Xiao, Haozheng Wang, Wenqi Ren, Wenyuan Sheng, Jian Qiao, Jiaxu Miao, Lin Ma, Chao YangarXiv 2026

TL;DR

Teaching a robot a new physical skill usually means collecting fresh data and running expensive gradient updates—or hoping you have enough compute and robot trajectories to brute-force GPT-style in-context learning. MXI-MemICL sidesteps both bottlenecks by turning past robot interactions and single human demonstrations into a searchable memory bank. By predicting what it needs to do next and querying this memory on the fly, a frozen robot policy can adapt to brand-new manipulation tasks in real time without updating a single weight.

What Problem Does This Paper Address?

Vision–Language–Action (VLA) models are great at general-purpose robot control, taking camera images and text instructions and outputting physical actions. Still, the physical world is endlessly varied. When a robot encounters a new bottle cap to twist or an unfamiliar kitchen appliance, how does it adapt?

Figure 1. Experience-guided adaptation with MXI-MemICL. (a) Post-training and test-time training update parameters, while ICL uses demonstrations. (b) MXI-MemICL uses predicted future intent to retrieve interaction or demonstration experience for a frozen VLA. (c) Success improves on RoboCasa365, RoboTwin 2.0, and real-robot tasks, with demonstrations further improving seen and unseen performance.

Traditionally, you have two choices: post-training (collect task-specific data and retrain) or test-time training (run gradient updates during deployment). Both require slow, costly optimization. In-context learning (ICL)—showing the model a single demonstration at test time with frozen weights—works wonders in LLMs, where internet-scale text makes ICL emerge naturally. In robotics, however, physical interaction data is scarce and expensive, limiting emergent ICL. Alternative robotic ICL methods rely on heavy semantic or motion annotations, yet still struggle to generalize to unseen tasks. The authors ask: can we build a structured memory interface on top of an existing VLA so it can learn from both its own ongoing trial-and-error and a single demonstration, zero parameter updates required?

Methods

MXI-MemICL wraps around a standard, frozen VLA base model ($\pi_{0.5}$) and equips it with an episodic memory system trained in three phases on existing robot trajectories.

Figure 2. Overall architecture of MXI-MemICL. Stage embeddings from observations and instructions combine with predicted intent for retrieval. A visual–action causal encoder encodes completed interactions and optional demonstrations into memory. Retrieved experience and recent context form n experience tokens that condition the shared backbone via prefixes and gated cross-attention, whose learned gates regulate injection strength. Backbone outputs support action generation and next-step intent prediction. The intention decoder and intention predictor use residual MLPs. Detailed diagrams of all modules are provided in the supplementary material.

Here is how the pipeline works at deployment:

  • Causal Memory Encoding: Using a standard three-stream visual–action causal encoder (adapted from BehaviorVLA), the system watches completed action chunks alongside observations before and after execution. It compresses what the robot did and what changed visually into compact key–value memory pairs.
  • Unified Short- and Long-Term Memory: Memories enter a bank of up to 64 pairs. What is neat here is how demonstrations are treated: a single external demonstration is encoded into the exact same memory format as the robot's own past steps. The latest $n=4$ steps of the current rollout act as short-term memory (tracking immediate progress), while older steps plus any supplied demonstration form long-term memory.
  • Intention-Guided Retrieval (Novel): Looking only at the current camera frame isn't enough to fetch the right memory—you need to know where the task is heading. An intention predictor forecasts the next stage's intent and blends it with the current observation's stage embedding to query long-term memory across $n$ soft-retrieval slots.
  • Two-Stream Experience Injection (Novel): Recent short-term context and retrieved long-term memories are fused into $n$ "experience tokens." These steer the frozen VLA backbone in two ways simultaneously: prepended as input token prefixes and injected into intermediate layers via gated cross-attention (initialized at zero so learned $\tanh(\gamma_l)$ gates smoothly dial in how much the model listens to memory).

Datasets

No new datasets are introduced, though the authors collect real-world episodes for physical evaluation. They evaluate across three established simulation benchmarks and one physical setup:

  • RoboTwin 2.0 (Hard): 22 bimanual multi-stage manipulation tasks with heavy scene randomization.
  • RoboCasa365: 13 kitchen manipulation tasks involving object placement and articulated appliances.
  • LIBERO: Diverse manipulation task suites (detailed in the paper's supplement).
  • Real-World ARX X5: A bimanual 6-DoF robot platform evaluated on 5 short- and long-horizon tasks (block induction, water pouring, clothes folding, bottle-cap twisting, and battery insertion), trained on 250 demonstrations per task, plus unseen variations (e.g., new bottles and clothes).

Key Insights and Ideas

  • Demonstrations are just someone else's memories: Because external demonstrations and online rollouts share the exact same causal action–effect representation, the robot doesn't need special prompt formatting or annotations for ICL. Even without a demonstration, self-retrieving its own earlier steps in a rollout boosts performance—especially on multi-stage tasks where a single camera frame can't tell you if you've already aligned a battery or folded a sleeve.
  • Query for the future, not just the present: Anticipating the next stage's intent allows the retriever to pull action–effect guidance for upcoming transitions rather than matching what has already happened.
  • Broad history, compact context: Ablations show performance climbs steadily as the long-term memory pool grows (up to 32 records), while the injected experience tokens peak sharply at $n=4$ before dropping off. Give the retriever a big library, but hand the policy a concise summary.
  • True adaptation, not trajectory replay: On unseen real-world tasks (like twisting a cap off a novel bottle), trajectories show the robot grasping and handing over objects along distinctly different spatial paths than the human demonstration—proving it extracts causal stage guidance rather than blindly parroting joint angles.

Key Results

Built on $\pi_{0.5}$, MXI-MemICL consistently outperforms base VLAs, world-action models, and prior robotic ICL baselines:

  • Simulation (without demonstrations): Achieves 51.9% mean success on RoboTwin 2.0 Hard (+14.4 points over $\pi_{0.5}$; e.g., jumping from 27% to 62% on Stack 2 Blocks) and 78.6% on RoboCasa365 (+8.2 points over $\pi_{0.5}$, and +3.4 points over reproduced ICL baseline Zeva).
  • Real-Robot Seen Tasks: Averages 69.0% without demonstrations (vs. 60.0% for $\pi_{0.5}$ and 43.0% for Xiaomi-Robotics-1). Adding a single demonstration pushes success to 74.0% (+5.0 points).
  • Real-Robot Unseen Tasks: Where base policies struggle (21.7% for $\pi_{0.5}$, 25.0% for MXI-MemICL without demos), providing one successful demonstration jumps success to 41.7% (+16.7 points)—lifting Block induction from 50% to 75% and Clothes folding from 25% to 40%.

Limitations and Future Work

Not explicitly discussed in a dedicated section of the main text. However, the experimental results show that challenging long-horizon unseen physical tasks remain difficult even with a demonstration (for instance, unseen Bottle-cap twisting rises from 0% to just 10% success), and the memory bank is currently bounded to a fixed capacity (up to 64 key–memory pairs, with retention policies deferred to the supplementary material).

Summary updated

Abstract

In-context learning (ICL) offers robots a way to acquire new skills from a single demonstration without parameter updates. However, existing robotic ICL methods either rely on large-scale pretraining constrained by scarce, costly robot interaction data or require additional annotations yet struggle to generalize across tasks. To bridge this gap, we propose MXI-MemICL, a framework for memory-guided ICL in vision-language-action (VLA) models. By treating demonstrations as retrievable memory, MXI-MemICL enables in-context manipulation without additional large-scale pretraining or specialized annotations. Specifically, a visual-action causal encoder turns actions and their observed effects in demonstrations and completed interactions into reusable memory to guide execution. To retrieve experience suited to upcoming execution, an intention predictor forecasts the next stage's intent and uses it to query memory. The retrieved experience conditions the language backbone through experience-token prefixes and gated cross-attention, guiding action generation with a learned gate that regulates its influence. MXI-MemICL improves success over the baseline by +8.2% and +14.4% on RoboCasa365 and RoboTwin 2.0. Real-robot experiments show a +9.0% gain, with demonstrations adding +5.0% on seen and +16.7% on unseen tasks. The code will be made publicly available.
BibTeX
@misc{peng2026mxi,
  author = {Jialong Peng and Shihao Zhou and Feng Yan and Wen Xiao and Haozheng Wang and Wenqi Ren and Wenyuan Sheng and Jian Qiao and Jiaxu Miao and Lin Ma and Chao Yang},
  title = {{MXI-MemICL: Towards In-Context Robot Manipulation through Self-Retrieved Interaction Memory}},
  year = {2026},
  eprint = {2611.32564},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32564},
}
Figure