Episodic Vector-Retrieval Memory for Long-Horizon Motion Context
Integrate a keyframe vector-retrieval module into the local attention path to retrieve specific distant past actions without incurring unbounded cache memory growth.
Time
Compute level
Resources
What the paper used
Prerequisites
Scope
The Gap
In Section 4.3 and 4.4, historical context is maintained via a bounded local sliding cache of size W and a fixed-size Persistent Content Memory (PCM) slot bank. The paper notes that because state summaries and PCM slots have bounded fixed dimensions, the memory is intrinsically lossy and cannot guarantee the retention or exact retrieval of arbitrarily distant past motion details.
“The fixed-size recurrent state, cache, and PCM slots bound stored context without guaranteeing retention of every detail from arbitrarily distant motion.”
Limitation
The fixed-capacity recurrent state and slot memory compress past information lossily, causing the model to lose fine-grained details of past events when referenced after extended execution intervals.
Proposed Solution
Augment the persistent content memory with an external keyframe vector store that saves normalized motion/action embeddings after each accepted window. Modify the attention block's K/V projection to query top-k relevant historical keyframes from the vector store whenever textual or spatial prompts refer back to earlier sub-goals.
Why This Matters
Enabling explicit episodic retrieval will allow humanoid control agents to accurately recall and repeat earlier complex movement patterns across multi-minute operational sessions.
How to Get Started
How to test it: Test if adding top-k keyframe vector retrieval improves R@3 text retrieval and command-matching score on multi-phase, 40-second long-horizon prompt sequences where early actions are repeated. Stop if latency per window exceeds 350 ms.
- Set up a vector index to cache normalized text-motion token embeddings from accepted windows.
- Implement a cross-attention readout layer inside the sequence mixer to attend over retrieved top-k keyframes.
- Construct a long-horizon benchmark dataset containing explicit past-action references (e.g., 'repeat the gesture performed 30 seconds ago').
- Compare command matching accuracy against the standard Motion Mamba 2.0 model on 40-second evaluation sequences.
Suggested by AI. Adapt it to your setup.
Has This Been Done?
The listed works do not present an external keyframe vector store for motion diffusion attention blocks that queries historical keyframes for long-horizon motion context. Papers like "DreamRunner: Fine-Grained Compositional Story-to-Video Generation with Retrieval-Augmented Motion Adaptation" touch on retrieval-augmented motion adaptation, but not via the specific episodic vector-retrieval memory mechanism proposed.
- DreamRunner: Fine-Grained Compositional Story-to-Video Generation with Retrieval-Augmented Motion Adaptation · 2026 · 23 citations
We searched OpenAlex and arXiv for “keyframe retrieval vector database motion diffusion long context attention” and “Episodic Vector-Retrieval Memory for Long-Horizon Motion Context” and an AI compared the idea with the top 10 results. A small search can miss relevant work.
Source Paper
Motion Mamba 2.0: Autoregressive Diffusion Mamba for Long-Horizon Humanoid ControlYue Huang, Tianshan Zhang, Zeyu Zhang +5 more · 2026
This paper presents Motion Mamba 2.0, an autoregressive root-body diffusion architecture for long-horizon, real-time controllable motion generation for humanoid robots such as the Unitree G1. The framework combines local self-attention, resumable Mamba-3 recurrence, and Persistent Content Memory (PCM) to balance bounded context storage with long-term instruction adherence. Optimized via CUDA Graph replay and custom kernel fusion, the model achieves a 6.14x speedup (276.14 ms per 52-frame window on an RTX 4090) and demonstrates interactive, real-world locomotion and text-guided action composition.
Related Ideas
- Recurrent Visual Memory for Infinite-Context TrajectoriesMobile-Agent-v3: Foundamental Agents for GUI Automation🔴Hard
- Compressed Long-Term Scene Memory for Multi-Minute Streaming Video DepthDepth Pro 2: Sharp and Temporally Consistent Metric Monocular Depth🟠Medium
- Appearance-Invariant Object-Centric Episodic Memory for Generalist VLAsMind2Act World: A Diagnostic Benchmark for Embodied Mind, Physical Action, and Mind-Action Composition in Robotic Manipulation🟠Medium
- Neural Explicit Memory for Consistent Multi-Agent World SimulationSolaris: Building a Multiplayer Video World Model in Minecraft🟠Medium
- Hierarchical Dynamic Memory Aggregation for Long-Form Video ReasoningV-JEPA-LM: Video-Language Models That Read Dynamics Beyond Static, Text-Aligned Representations🟠Medium