# UniMem: Unifying Visual and Textual Memory in VLAs for Non-Markovian Tasks

Robotics.world

> Standard VLA policies condition only on the current camera frame and task instruction, so they fail when the same view demands different actions at different moments — a failure the authors call…

**arXiv**: 2608.22869 · Preprint · not peer-reviewed

**Published**: 2026-08-24 · revised · 2026-10-21

**Authors**: Lars Osterberg, Maggie Wang, Mac Schwager

## In plain words

Standard VLA policies condition only on the current camera frame and task instruction, so they fail when the same view demands different actions at different moments — a failure the authors call perceptual aliasing (e.g., an arm moving forward versus backward along the same path looks identical in a single frame).

## AI summary

## Overview

**Research area:** Robot learning — specifically Vision-Language-Action (VLA) models and memory architectures for long-horizon, non-Markovian manipulation.

**Technical level:** Intermediate. The paper assumes familiarity with VLA architectures, transformers, and imitation learning, but its central idea (event-triggered memory rather than fixed-rate history) is explained with concrete task examples.

**Scope:** This paper proposes UniMem, a single-backbone framework that gives a VLA model direct, event-driven access to both textual and visual memory, and evaluates it on five simulated and four real-world memory-dependent manipulation tasks.

## What This Paper Is About

Standard VLA policies condition only on the current camera frame and task instruction, so they fail when the same view demands different actions at different moments — a failure the authors call *perceptual aliasing* (e.g., an arm moving forward versus backward along the same path looks identical in a single frame). Existing fixes either bolt on a separate high-level Vision-Language Model to summarize progress, which creates a memory bottleneck and a fractured training pipeline, or feed the policy frames at arbitrary fixed intervals, which can hurt performance. The goal is to unify visual and textual memory with low-level control in one model, updating that memory only when something task-relevant actually happens.

## Key Contributions

1. **Unified textual and visual memory conditioning.** UniMem conditions the VLA on both a textual history of discrete task events and a bank of cached visual keyframes, co-locating memory and control in one backbone so the system can be trained in a single stage.
2. **Event-driven architecture.** A lightweight MLP event classifier head probes the VLA backbone's final-layer latent and predicts over an event vocabulary plus a `null` class; only non-null detections trigger an update to textual memory and the keyframe cache, autoregressively building task-relevant history.
3. **Real-time inference via keyframe caching.** Keyframe hidden states are cached prior to positional embeddings and layer-normalizations, so historical frames are never re-encoded; this preserves roughly single-frame inference speed (~90 ms) and gives a 6× speedup over hierarchical memory baselines.
4. **Nine-task empirical study with modality ablations.** Five simulation tasks and four hardware tasks (25 and 15 trials respectively) comparing full UniMem against a fixed-interval video-encoder baseline, a hierarchical MemER baseline, and no-memory, text-only, and keyframe-only ablations.

## Main Findings

- **Simulation average:** UniMem reaches 93.4% average success versus 68.2% for the fixed-interval video-encoder baseline (π0.5 + V.E.), and versus 72.6% for the strongest ablation (keyframe-only).
- **Hardware average:** UniMem reaches 80.0% versus 43.5% for the hierarchical MemER baseline; the no-memory, text-only, and keyframe-only ablations average 5.0%, 21.8%, and 36.8% respectively.
- **Perceptual aliasing is resolved:** On UpDown, UniMem scores 100% while the no-memory policy scores 52%, showing the addition of history disambiguates pick-up versus put-down.
- **Text memory handles counting:** On UpDown3Times, text-only conditioning reaches 93% while keyframe-only fails at 23% because of its limited temporal reach; full UniMem reaches 96%.
- **Visual memory handles spatial recall:** On UpDownSpatial, text-only drops to 30%, the video baseline reaches 49%, keyframe-only 52%, and full UniMem 79%. On PlateRecall, text-only reaches 20% (roughly the 1-in-4 chance of guessing); keyframes, the video baseline, and full UniMem all reach 96%.
- **Keyframes can outperform text on some occlusion tasks:** In OccludedTap the keyframe ablation performs 12% better than the text ablation (100% vs. 88%), which the authors attribute to keyframes offering multiple memory pathways; full UniMem reaches 96%.
- **Hardware: simple tasks saturate, long tasks separate:** On HammerMeasure, UniMem and MemER tie at 87%. On BeanScoop, UniMem reaches 93% versus MemER's 67%, where MemER's planner sometimes issues a "place spoon" command before a third scoop. On TableClean, UniMem reaches 80% versus MemER's 13%, with misses off by no more than 10 cm. On TapScoopPour (eight cups), UniMem reaches 60% versus MemER's 7%.
- **Modalities are complementary:** No text-only or keyframe-only ablation matched full UniMem on any hardware task; failures were qualitatively different (e.g., keyframe-only misses in TapScoopPour landed on adjacent cups rather than at random).
- **Latency stays low:** On an RTX 4090, maintaining a 16-keyframe memory context across four camera streams adds only about 25 ms beyond the single-frame, two-camera base policy.

*Note:* The main table lists the keyframe-only ablation at 47% on TableClean, while the prose discussion of the same result cites 53%; both figures appear in the paper.

## Methodology in Plain English

The system is built on π0.5, an open-source VLA with a PaliGemma backbone and a Gemma action expert, using a SigLIP vision encoder.

**Detecting events.** An MLP is attached to the backbone's final-layer latent — the representation that would normally generate text — and trained to classify it into one of a predefined set of task milestones (for example "grabbed spoon") or a `null` class. Because this classifier shares the backbone with the action head, its loss acts as auxiliary supervision, coupling memory learning with control.

**Updating memory.** When a non-null event fires, the event phrase is appended as natural language to the textual history, and the current multi-view observation (wrist and external cameras) is appended to a keyframe history. Textual memory starts empty; visual memory starts with the initial scene image. Because the classifier reads a latent built by cross-attention over both memory forms, the loop is recursive: past milestones inform detection of new ones.

**Encoding keyframes cheaply.** The vision encoder is modified by interleaving causal temporal self-attention every few layers of the spatial attention stack, reusing that layer's own query/key/value and layer-norm weights. Only current-image tokens are passed to the backbone afterward, keeping token length fixed. Cached keyframe hidden states have their positional embeddings shifted rather than recomputed, so the current image alone forms the query for temporal attention.

**Labeling data without hand annotation.** Demonstrations are parsed by a script generated by prompting Claude Sonnet 5.0, which detects action signatures (gripper closing, robot pitching upward) and assigns event labels plus memory strings; a human checks a subset. The textual memory is only updated once an event's full window has passed, to prevent label leakage. At training time, the keyframe history is built by sampling one frame uniformly from each past event window plus the current frame.

**Training.** End-to-end fine-tuning with LoRA, combining the unchanged π0.5 flow-matching action-chunking loss with a class-weighted cross-entropy on the event head, weighted λ = 0.1. Null frames dominate the data, so they are downweighted to w_null = 0.02 rather than masked out, giving the head a safe default prediction. For BeanScoop and TapScoopPour, decisive moments were upweighted roughly 4× in the sampling distribution.

**Evaluation.** Five robosuite tasks with a 7-DoF Franka Panda and four hardware tasks on a UFactory xArm6, with wrist and external camera streams. Hardware uses real-time chunking and queries the model at about 10 Hz. History is capped at three keyframes for simulation and four for hardware. Demonstrations were collected at 10 Hz in simulation and 20 Hz on hardware. Success is judged as binary subtask success by a human observer, from saved video in simulation and in real time on hardware.

## Why This Matters

The paper argues that memory in VLA systems does not need to be a separate, slower, high-level module. By showing that a single backbone can carry both memory and control at ~90 ms latency, it offers a simpler training recipe and removes the failure mode where a planner's bad subtask command arrives too late for the low-level policy to recover — the pattern the authors identify in MemER's BeanScoop failures.

**Real-world applications:**

- Household and service robots doing multi-stage tidying, where surfaces are large and the target location of a wipe or placement is only known from prior observations (TableClean).
- Industrial or lab tasks requiring counting repeated cycles and precise tool interaction, such as measuring with a tape measure without the hook slipping (HammerMeasure).
- Human-robot collaboration where the initial cue is a transient gesture or tap that must be remembered after the human stops signalling (TapScoopPour).
- Bimanual manipulation, which the latency benchmark covers with a simulated four-camera-stream configuration.

**Industry relevance:** The two headline gains — no separate VLM memory manager and roughly real-time inference as context grows — speak directly to deployment cost and to the engineering overhead of maintaining multi-model pipelines. The single-stage training recipe and the automated labeling script reduce the labor needed to bring a new task online.

## Future Directions

- **Longer horizons.** The framework is demonstrated over multi-minute executions but has not been evaluated on tasks spanning tens of minutes or hours; extending it will likely require memory editing mechanisms such as pruning and consolidation.
- **Autonomous event discovery.** Event vocabularies are currently predefined and labels come from offline scripted detection. The authors point to unsupervised temporal clustering, reinforcement learning, or methods like RoboInter as ways to let the policy decide what is worth remembering.
- **Multiple timescales of memory.** UniMem maintains one temporal context; separating long-term from short-term memory, and even encoding memory into the policy's weights rather than only its input stream, is posed as a step toward more human-like memory.
- **Scaling context and embodiments.** The latency results suggest contexts beyond the four keyframes used in experiments, and four-camera bimanual setups, are feasible; the authors note training compute, not inference, would be the bottleneck.

## Target Audience

Robotics researchers and graduate students working on VLA models, imitation learning, and long-horizon manipulation; practitioners building robot foundation-model stacks who care about inference latency and training-pipeline simplicity; and readers interested in how event-driven, cognitively inspired memory designs compare with hierarchical VLM-planner architectures.

## Authors’ abstract

While Vision-Language-Action (VLA) models have leveraged internet-scale pretraining and task-specific finetuning to achieve strong performance on long-horizon tasks, they often struggle with non-Markovian tasks that require memory. Existing approaches to memory typically involve additional Vision-Language-Models (VLMs) for long-term memory management, introducing a memory bottleneck and a fractured training pipeline. Conditioning on multiple historical frames can provide the…

[The full abstract on arXiv](https://arxiv.org/abs/2608.22869)

[Read the original paper](https://arxiv.org/abs/2608.22869)

## Related papers

- [SteerAct: Unlocking Action Models through Few-Shot Temporal Steering](https://robotics.world/paper/steeract-unlocking-action-models-through-few-shot-temporal-steering-2610.25632) 2026-10-19 · cs.RO · Also by Mac Schwager, Maggie Wang
- [PRIMAL3: Pathfinding via Reinforcement and Imitation Multi-Agent Learning - Leveraging LaCAM3](https://robotics.world/paper/primal3-pathfinding-via-reinforcement-and-imitation-multi-agent-2608.04905) 2026-08-05 · cs.RO · Also by Mac Schwager
- [EmbodiedSWE: Coding Agents for Long Horizon Dexterous Robotics](https://robotics.world/paper/embodiedswe-coding-agents-for-long-horizon-dexterous-robotics-2609.27308) 2026-09-23 · cs.RO · Also by Mac Schwager
- [ScaffoldM3C: A Multimodal Sequential Monte Carlo Framework for Generative Stable Construction Planning](https://robotics.world/paper/scaffoldm3c-a-multimodal-sequential-monte-carlo-framework-for-2610.00487) 2026-09-30 · cs.RO · Also by Mac Schwager
- [Remember Smarter: Visual History Compressor and Hyperbolic Experience Space for Robotic Memory](https://robotics.world/paper/remember-smarter-visual-history-compressor-and-hyperbolic-experience-2608.15269) 2026-08-15 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/unimem-unifying-visual-and-textual-memory-in-vlas-for-non-markovian-2608.22869
