TL;DR
MemoryWAM introduces a biologically inspired hybrid memory mechanism for World Action Models (WAMs), enabling robots to tackle long-horizon, non-Markovian tasks efficiently. By combining a high-fidelity short-term sliding window, event-boundary anchor frames, and compressed "gist" tokens, it reduces inference time and space complexity from $O(N)$ to $O(N/d)$. This allows MemoryWAM to outperform full-history baselines in manipulation success rates while maintaining drastically lower latency and GPU memory overhead.
What Problem Does This Paper Address?
Robotic manipulation in complex, open-world environments often requires a deep understanding of history. For instance, if an object becomes occluded or a task requires counting actions, a robot cannot rely solely on its immediate camera feed. World Action Models (WAMs) address this by jointly predicting future video frames and actions based on historical context.
However, existing WAMs face a strict efficiency trade-off:
- Sliding-Window Memory: Bounds the context to recent frames. This is highly efficient ($O(1)$ complexity) but suffers from "amnesia," failing tasks where crucial cues occurred in the distant past.
- Full-History KV Caching: Retains every past frame. While effective for long-term context, its computational and memory costs scale linearly ($O(N)$) with the trajectory length, leading to prohibitive inference latency and GPU memory bloat over long horizons.
MemoryWAM aims to break this trade-off by providing persistent long-term memory without the linear computational scaling.
Methods
Inspired by human cognitive psychology, the authors propose a hybrid memory mechanism that splits historical context into three distinct layers:
- Short-Term Memory: A sliding window that preserves the full visual tokens of the most recent frames ($N_{\text{recent}} = 4$) to ensure high-fidelity control for immediate actions.
- Event-Boundary Memory: Permanently retains full visual tokens of the very first frames ($N_{\text{init}} = 2$) at task onset. This ensures the robot never forgets the initial environment configuration or the overarching instruction.
- Gist Memory: For all intermediate history, the full key-value (KV) cache of the video frames is evicted. Instead, a small set of learnable gist tokens ($M=8$ per frame) summarizes the long-range history.
The model uses a Mixture-of-Transformers (MoT) architecture consisting of a video Diffusion Transformer (DiT) and an action DiT. During training, video prediction provides dense supervision to learn world dynamics, but at inference time, the expensive video generation steps are skipped. A tailored attention mask ensures that subsequent tokens only attend to the compressed gist tokens for older frames, reducing the long-term cache size by a compression factor of $d = 15\times$.
Datasets
The model was evaluated across both simulated and real-world environments:
- RMBench: A challenging simulation benchmark specifically designed for long-horizon, memory-dependent robotic manipulation. It features 9 dual-arm tasks (e.g., Observe and Pick Up, Rearrange Blocks, Cover Blocks) requiring different levels of temporal memory.
- Real-World Tasks: The authors designed two physical experiments using an ARX dual-arm robot setup:
- Shell Game: The robot must track a hidden cube after a human shuffles the cups.
- Look and Press: The robot reads two numbers on a table and presses left/right buttons a corresponding number of times.
Key Insights and Ideas
- More History $\neq$ Better Performance: Surprisingly, full-history attention can actually degrade performance compared to hybrid memory. Retaining every single historical token introduces dense redundancy, making it harder for the model to retrieve relevant information. Abstracting older history into gist tokens acts as a regularizer.
- Cognitive Architecture Translates to Transformers: The division of memory into immediate control (sliding window), salient landmarks (anchor frames), and compressed abstractions (gist tokens) maps cleanly onto transformer attention masks, providing a blueprint for efficient long-context architectures in robotics.
- Overcoming the Real-Time Latency Bottleneck: In real-world deployments, full-history models like Lingbot-VA suffer from high inference latency, causing them to completely miss fast environmental changes (like a human swapping cups in the Shell Game). MemoryWAM's near-constant latency makes real-time closed-loop control viable.
Key Results
MemoryWAM achieves state-of-the-art performance on RMBench while maintaining excellent computational efficiency:
- Task Success: On RMBench, MemoryWAM achieved an average success rate of 83.0%, outperforming the full-history baseline Lingbot-VA (78.2%) and decimating window-based models like FastWAM (5.9%) and $\pi_{0.5}$ (10.4%).
- Computational Efficiency: As sequence length scaled up to 1,600 frames, MemoryWAM maintained a near-flat inference latency ($\sim0.4$ ms per layer) and GPU memory cost ($\sim150$ MB per layer), whereas full attention scaled linearly up to nearly 2.0 ms and 800 MB.
- Real-World Execution: In physical trials, MemoryWAM achieved an 18/20 success rate on the Shell Game (vs. 13/20 for Lingbot-VA) and 15/20 on Look and Press (vs. 14/20 for Lingbot-VA).
Limitations and Future Work
While MemoryWAM significantly optimizes the memory footprint, it inherits the core limitations of underlying video diffusion models. Specifically, it still struggles with high-level semantic reasoning and abstract conceptual understanding over extremely long horizons. The authors suggest that future work could address this by combining MemoryWAM with dual-system architectures (separating fast reactive control from slow deliberate reasoning) or more unified multimodal pretraining frameworks.
Summary updated