TL;DR
ContextVLA introduces an efficient framework that enables Vision-Language-Action (VLA) models to robustly leverage multi-frame video history for robotic control without the massive computational bottleneck. By compressing past observations into a single "global context token" at an intermediate layer of a pre-trained Vision-Language Model (VLM), it captures critical temporal context while delivering up to 5.5× faster training and 2.4× faster inference compared to uncompressed multi-frame models.
What Problem Does This Paper Address?
Many real-world robotic tasks are inherently non-Markovian: a robot cannot successfully operate based on the current camera frame alone. It needs historical context to handle objects that become temporarily occluded, track moving trajectories, or remember previous steps in a long-horizon task.
However, standard behavior cloning policies typically rely on a single frame. Historically, training traditional policies (like Diffusion Policy) on multi-frame inputs has led to highly inconsistent results or even performance degradation due to issues like causal confusion. While modern VLAs built on top of large, pre-trained VLMs are inherently better at understanding temporal sequences, processing high-dimensional video inputs through billion-parameter models introduces massive computational and memory overhead. This makes real-time deployment and training highly inefficient. ContextVLA bridges this gap by making multi-frame VLA processing practical and fast.
Methods
ContextVLA introduces an innovative token-compression strategy within the VLM backbone to efficiently ingest multi-frame visual observations ($o_{t-k:t}$):
- Initial Processing: The entire sequence of visual frames is passed through a vision encoder and processed by the first $n$ blocks of the VLM backbone.
- Context Amortization: At the $n$-th block, the hidden states corresponding to all past observations ($o_{t-k:t-1}$) are compressed into a single global context token ($m$) using average pooling.
- Downstream Processing: For the remaining $N-n$ blocks of the VLM, the long history of past tokens is replaced entirely by this single context token. The remaining layers only process this token alongside the current frame's tokens ($o_t$) and the text instruction tokens.
- Action Generation: The final VLM features are fed into an action decoder, which can be either autoregressive or diffusion-based, to output a chunk of future robot actions.
To maximize speed during deployment, the framework applies a causal mask to the first $n$ blocks and utilizes KV-caching, allowing the robot to pre-compute and cache historical frame tokens before the next timestep even begins.
Datasets
The authors evaluated ContextVLA across three popular simulation benchmarks and three custom real-world robotic tasks:
- Simulation:
- Libero: Evaluated across 4 sub-benchmarks (Spatial, Object, Goal, Long) containing 10 manipulation tasks each.
- Simpler-WidowX: A challenging real-to-sim benchmark using the Bridgev2 dataset for training.
- Robocasa: A large-scale kitchen simulation benchmark evaluating 24 distinct tasks.
- Real-World Humanoid/Arm Tasks:
- Clench/Unclench: A repetitive hand-movement task requiring the robot to track state history.
- Pick-and-Place Twice (PnP Twice): A long-horizon task moving a cube back and forth between plates.
- CoverNStack: A sequential task requiring the robot to cover a cube with a cup and stack a second cup on top.
Key Insights and Ideas
- VLMs are the Secret Sauce for Video Inputs: Traditional policy architectures degrade when fed multi-frame inputs, but architectures initialized with pre-trained VLMs robustly improve. The pre-training phase equips VLMs with an inherent temporal and semantic understanding that standard vision encoders lack.
- Information Amortization Prevents Redundancy: Compressing history into a single token does not hurt performance; it actually helps. Consecutive video frames contain massive spatial-temporal redundancy. Compressing them filters out the noise and summarizes the essential context (e.g., the overall motion of the robot).
- Shallow Compression is Optimal: Compressing tokens early in the network (specifically at block $n=2$) provides the best trade-off, maximizing computational savings while maintaining high task success rates.
Key Results
ContextVLA consistently outperformed single-frame baselines and matched or exceeded uncompressed multi-frame models across all tasks:
- Performance Boosts: On the Simpler-WidowX benchmark, ContextVLA improved the average success rate of the $\pi_0$ baseline from 41.8% to 56.2%. In the real-world PnP Twice task, it achieved a 65% full success rate compared to just 25% for the single-frame baseline.
- Efficiency Gains: ContextVLA achieved peak performance 5.5× faster in wall-clock training time compared to a naive multi-frame VLA on Libero.
- Inference Speed: The framework proved 2.4× faster during inference than uncompressed 8-frame models, with KV-caching shaving off an additional 33.6 ms of latency, making it highly suitable for real-time control loops.
Limitations and Future Work
While highly effective, the optimal depth for token compression ($n=2$) was determined empirically and may vary depending on the underlying VLM architecture used. Additionally, the current framework relies on simple average pooling for token compression. The authors suggest that exploring more sophisticated aggregation techniques—such as attention-based token merging or dynamic selection—could be a promising direction for future work to squeeze even more performance out of complex temporal contexts.
Summary updated