VPWEM: Non-Markovian Visuomotor Policy with Working and Episodic Memory

Yuheng Lei, Zhixuan Liang, Hongyuan Zhang, Ping Luo
3/5/2026
8 citations
cs.ROcs.AIcs.LG
diffusion-flowtransformer-attention

Official code: HarryLui98/code_vpwem (13 stars, Python, Apache-2.0, last commit 2026-03-05).

Abstract

Imitation learning from human demonstrations has achieved significant success in robotic control, yet most visuomotor policies still condition on single-step observations or short-context histories, making them struggle with non-Markovian tasks that require long-term memory. Simply enlarging the context window incurs substantial computational and memory costs and encourages overfitting to spurious correlations, leading to catastrophic failures under distribution shift and violating real-time constraints in robotic systems.

Show full abstract

By contrast, humans can compress important past experiences into long-term memories and exploit them to solve tasks throughout their lifetime. In this paper, we propose VPWEM, a non-Markovian visuomotor policy equipped with working and episodic memories. VPWEM retains a sliding window of recent observation embeddings as short-term working memory, and introduces a Transformer-based contextual memory compressor that recursively converts out-of-window observations into a fixed number of episodic memory embeddings. The compressor uses self-attention over a cache of past summary embeddings and cross-attention over a cache of historical observations, and is trained jointly with the policy. We instantiate VPWEM on diffusion policies to exploit both short-term and episode-wide information for action generation with nearly constant memory and computation per step. Experiments demonstrate that VPWEM outperforms state-of-the-art baselines including diffusion policies and vision-language-action (VLA) models by more than 20\% on the memory-intensive manipulation tasks in MIKASA and achieves an average 5\% improvement on the mobile manipulation benchmark MoMaRT. Code is available at https://github.com/HarryLui98/code_vpwem.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
132Python, ShellMar 5, 20269 months agoApache-2.0

Similar Papers

Cite this paper

@article{lei2026vpwem,
  title  = {VPWEM: Non-Markovian Visuomotor Policy with Working and Episodic Memory},
  author = {Yuheng Lei and Zhixuan Liang and Hongyuan Zhang and Ping Luo},
  year   = {2026},
  eprint = {2603.04910},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.04910v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.04910.svg)](https://codeofpaper.com/paper/2603.04910)

Discussion