TL;DR
Most robot policies have the memory of a goldfish—they only look at the current camera frame or a tiny sliver of the recent past. LongContextVLA changes that by letting a vision-language-action (VLA) model ingest hundreds (and even thousands) of past images in real time. By caching past visual features and teaching the robot to "think" in parallel about its history before acting, it achieves a 74.4% success rate on memory-heavy real-world tasks while running in under a second on a single H100 GPU.
What Problem Does This Paper Address?
Imagine asking a robot to put away tools it saw you use an hour ago, or to track a ball hidden under a cup through five rapid swaps. To succeed, the robot needs dense, long-term visual memory.
Yet most modern VLAs avoid long-term memory altogether for two reasons:
- Compute bottlenecks: Processing hundreds of high-resolution images at every timestep is brutally slow, and robots need to act in real time to move smoothly.
- Weak learning signals: Simply training a policy end-to-end to predict the next action from a massive pile of video frames is hard—the model easily gets drowned in pixels.
Previous attempts worked around this by keeping only a few sparse keyframes or compressing history into text summaries. But keyframes can miss fast, critical motions (like cup swaps), and text summaries risk throwing away visual details you didn't know you would need later.
Methods
Built on Qwen3.5-4B (a vision-language model that natively supports 262K tokens and can scale to 1M), LongContextVLA tackles both the learning and latency problems with three key ideas:
- Reasoning Supervision: Instead of jumping straight from pixels to actions, the model is trained to generate timestamped reasoning over its visual history (e.g., "At 2 s, the ball is placed under the middle cup. At 5 s, the middle and right cups swap...") before predicting the next subtask and action.
- Parallel Reasoning & Grouped Actions: Generating a long paragraph of reasoning token-by-token at test time would destroy real-time speed. To avoid this, LongContextVLA appends a fixed block of reserved "reasoning slots" ($P_K$) and decodes all reasoning tokens in parallel in a single forward pass. Similarly, continuous actions are converted into discrete tokens using an Ordered Action Tokenizer (OAT) and predicted in parallel groups.
- Streaming Visual Cache: Because consecutive decisions share almost all of the same past frames, the model places the top-down image history first in its input and caches its key–value (KV) states and recurrent/convolution states. At each step, it only encodes the newly arrived top-down frame, temporarily appends current wrist images and reasoning slots to generate actions, and then restores the cache—discarding the temporary decision tokens.
Datasets
The authors evaluate LongContextVLA on three real-world memory tasks and one simulation benchmark:
- Cup Shell Game (Real-world): Track a red block hidden under one of three cups through 5 swaps (and generalize to unseen 6-swap sequences) over ~15 seconds.
- Drawer Put-Away (Real-world): Remember which of 6 drawers each object came from, track how many times each item is picked up, and return items based on usage-count queries.
- Video-Prompted Sorting (Real-world): Watch a 10-second human demonstration video kept in the memory context and sort 3 (or unseen 5) objects into bins accordingly.
- RoboMME (Simulation): A 16-task benchmark designed to test memory in robotic generalist policies.
Key Insights and Ideas
- Parallel "latent" reasoning is the secret sauce: Training with autoregressive reasoning alone improved performance over a subtask-only baseline by a modest 2.2 percentage points. Adding parallel reasoning at inference time, however, boosted success by 23.3 percentage points. The extra parallel computation over those reserved slots appears to give the model the capacity it needs to actually interpret its visual history.
- Caching turns minutes into milliseconds: Without caching, processing 1 million visual tokens from scratch takes 370.6 seconds per decision. With the streaming cache, it takes 0.824 seconds—a ~450× speedup.
- Memory as a visual prompt: A policy trained to use visual memory can also treat a human demonstration video sitting in its context as a "visual prompt," generalizing sorting rules from 3 objects to 5 objects (including unseen ones).
Key Results
- Real-World Success: Across unseen shell-game and drawer configurations, LongContextVLA achieved an average success rate of 74.4% (76.7% on 5-mix shell game, 70.0% on 6-mix, and 76.7% on drawer put-away), outperforming SimpleMemVLA (44.4%), MemER (33.3%), and $\pi_{0.7}$ (24.4%).
- Inference Latency (single H100 GPU): 381 ms at 258k visual tokens (3,584 images, ~30 minutes of 2 Hz video) and 824 ms at 1M tokens (13,900 images, ~1.9 hours at 2 Hz).
- Video-Prompted Sorting: 100% success on 3 objects and 90% on 5 unseen objects (compared to $\pi_{0.7}$'s 70% and 20%).
- RoboMME Simulation: Scored 25.5% with tokenized actions, and 43.2% when paired with a continuous action expert (to avoid trajectory quantization errors on scripted paths)—the highest score among models trained strictly on the RoboMME dataset without a pretrained low-level policy.
Limitations and Future Work
- Jumbled reasoning text: Because parallel decoding predicts all reasoning tokens simultaneously without conditioning on previous ones, the resulting text can be grammatically jumbled—even though it still boosts task performance. Future work could refine this using block-wise or iterative parallel decoding.
- Short evaluation horizons: While the architecture can handle 1M tokens (roughly 4 hours at 1 Hz), the tasks tested only lasted seconds to a couple of minutes.
- Stationary setups: Extending LongContextVLA from stationary tabletops to mobile manipulation—where robots move through environments with much greater partial observability—remains an exciting next step.
Summary updated