LongContextVLA: Scaling Robot Memory to Hundreds of Images via Reasoning

Ji Woong Kim, Ke Wang, Ajay Sridhar, Aneesh Muppidi, Marcel Torne, Chelsea FinnarXiv 2026

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.

Figure 1: LongContextVLA overview. LongContextVLA is a vision-language-action model that reasons over hundreds of images in real time. The model supports up to one million visual tokens (13.9k images) with 0.82 s inference latency on a single H100 GPU, enabled by cached inference and parallel decoding of reasoning and actions. We evaluate the model on three memory-intensive tasks: tracking a hidden object in a shell game, returning objects to drawers based on their usage history, and sorting objects by following a human video demonstration.

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:

  1. 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.
  2. 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:

Figure 2: Architecture of LongContextVLA. The model receives a history of top-down images from the start of the episode, together with the current wrist images, task instruction, and robot state. Only top-down images are retained in the visual history; past wrist images are not included. Cached visual features and model states are reused across decisions, so only newly received observations are encoded. The model generates timestamped reasoning over its visual history by decoding all reasoning tokens in parallel in a single forward pass. The policy then predicts the current subtask and generates action tokens in groups, conditioned on the reasoning representations.
  • 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.
Figure 3: Reusing the visual history across decisions. (1) We append the current top-down image to the cached history, save the convolution and recurrent states, and record the key–value (KV) cache length. (2) We append the remaining inputs (current wrist images, proprioception, and any additional instruction) along with the reasoning slots, then generate the subtask and actions. These additions are temporary and are not retained in the history. (3) We restore the saved states and discard the KV entries added during step 2, retaining only the prompt and top-down visual history. (4) We append the next top-down image and repeat the cycle. Blue blocks indicate persistent context; purple blocks indicate temporary decision-specific computation.

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

BibTeX
@misc{kim2026longcontextvla,
  author = {Ji Woong Kim and Ke Wang and Ajay Sridhar and Aneesh Muppidi and Marcel Torne and Chelsea Finn},
  title = {{LongContextVLA: Scaling Robot Memory to Hundreds of Images via Reasoning}},
  year = {2026},
  eprint = {2612.03534},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.03534},
}
Figure