Planning-aligned Token Compression for Long-Context Autonomous Driving

Zhixuan Liang, Yuxiao Chen, Yurong You, Peter Karkus, Wenhao Ding, Boyi Li, Alexander Popov, Yan Wang, Maximilian Igl, Yiming Li, Danfei Xu, Nikolai Smolyanskiy, Boris Ivanovic, Ping Luo, Marco PavonearXiv 2026

TL;DR

COMPACT-VA introduces a planning-aligned token compression framework that enables autonomous driving models to efficiently process long temporal contexts. By coupling token compression with a learned driving intent via a conditional VQ-VAE, it retains decision-critical historical information while delivering a 3.3× inference speedup and a 2.7× memory reduction over uncompressed baselines.

What Problem Does This Paper Address?

Monolithic vision-action (VA) and vision-language-action (VLA) models are the current frontier in autonomous driving, mapping raw sensor inputs directly to vehicle trajectories. To navigate complex scenarios like all-way stops or unprotected left turns, these models require an extended temporal history (5–10 seconds).

However, feeding a long history of multi-camera video into a transformer backbone creates a massive sequence of visual tokens. Because transformer attention costs scale quadratically ($O(N^2)$), this token explosion quickly violates the strict real-time computational and memory budgets required for deployment on physical autonomous vehicles.

Existing token compression methods rely on hand-crafted heuristics like temporal decay—keeping recent frames and aggressively discarding or downsampling older ones. The problem? Driving decisions often hinge on subtle cues from several seconds ago (e.g., "Which car arrived first at this four-way stop?"). Standard compression techniques are decoupled from the planning objective and blindly discard these critical cues, leading to dangerous failures like failing to yield or rolling through stop signs.

Fig. 1: From limited context to planning-aligned memory. At an all-way sign intersection, determining right-of-way requires observing traffic over extended periods. Rule-based temporal decay with a default 2s window discards distant observations, losing information about which vehicle arrived first (happended at t=-3s) and causing incorrect go decisions (62% success). Our planning-aligned compression retains decision-critical cues through coupling with driving intent, preserving arrival order information for correct behavior (68.3% success).

Methods

The authors propose COMPACT-VA (COMpression via Planning-Aligned Context Token framework), an end-to-end architecture that learns what historical information to keep based on downstream planning needs.

The framework consists of three main components:

  1. Hierarchical Buffer Structure: Input history is organized into layers. The most recent frames retain full token resolution, while older frames are progressively and aggressively compressed, providing a structured inductive bias for temporal decay.
  2. Learned Q-former Compression: For each layer, a Q-former module uses learnable query tokens to selectively aggregate task-relevant visual features via bidirectional self-attention.
  3. Planning-Aligned Variational Coupling: This is the core novelty. Built as a conditional variational autoencoder (cVAE) with Vector Quantization (VQ), it uses two encoders during training:
  4. A posterior encoder distills a compact, discrete "driving intent latent" from the future ground-truth trajectory.
  5. A prior encoder attempts to predict this exact same intent latent using only the compressed past observations from the Q-former.

By optimizing a joint loss function (trajectory cross-entropy + KL divergence + VQ commitment loss), the Q-former is forced to retain any historical information necessary to accurately predict future driving intent. At inference time, only the prior pathway is active.

Overall architecture of COMPACT-VA.

Datasets

  • Alpamayo Physical AI Dataset: Used for open-loop evaluation. The authors curated a specific memory-dependent subset of 20,000 clips (20 seconds each at 10Hz) focusing on scenarios where vehicles decelerate, stop, and then safely proceed.
  • Physical AI AV NuRec Dataset (in Alpasim): A state-of-the-art neural-reconstruction-based end-to-end simulator used to conduct closed-loop evaluations across 910 diverse nominal driving scenarios.

Key Insights and Ideas

  • More Tokens $\neq$ Better Performance: Surprisingly, a baseline model given full, uncompressed dense history (6,400 tokens) performed worse (61.9% Go Success Rate) than a short-context baseline (63.8%). The abundance of raw tokens creates redundancy that distracts the transformer backbone, making it harder to isolate decision-critical cues.
  • Task-Awareness is Mandatory: Token compression cannot be agnostic to the agent's task. By framing compression as a variational information bottleneck tied to future intent, the network implicitly learns semantic concepts (like arrival order at intersections) without explicit human labeling.
  • Inference-Time Interventions Prove Intent: By manually shuffling, randomizing, or removing the discrete intent token (z_skill) at test time, the authors proved the policy actively exploits the semantic information carried by the compressed latent rather than bypassing it.

Key Results

  • Behavioral Metrics: COMPACT-VA achieved a 68.3% Go Success Rate, outperforming the standard short-context baseline (+4.5% absolute improvement) and compression without planning alignment (+2.7%).
  • Safety Improvements: The framework achieved a 22% relative reduction in safety-critical roll-through rates (7.0% vs 9.0% for the baseline) and minimized stop position errors.
  • Computational Efficiency: In closed-loop Alpasim testing, COMPACT-VA delivered a 3.3× inference speedup and a 2.7× memory reduction compared to uncompressed long-context processing, while maintaining on-par general driving competence.

Limitations and Future Work

The authors note that their fine-tuning approach is somewhat constrained by the base model's pretraining distribution; the model's performance slightly degrades if forced to evaluate history lengths it wasn't exposed to during initial pretraining.

For future work, the authors suggest extending this planning-aligned compression framework to handle higher-complexity scenarios (such as severe occlusions or intersections with multiple competing vehicles) and exploring its integration with alternative long-context architectures like state-space models (SSMs) or recurrent memory mechanisms.

Summary updated

BibTeX
@misc{liang2026planning,
  author = {Zhixuan Liang and Yuxiao Chen and Yurong You and Peter Karkus and Wenhao Ding and Boyi Li and Alexander Popov and Yan Wang and Maximilian Igl and Yiming Li and Danfei Xu and Nikolai Smolyanskiy and Boris Ivanovic and Ping Luo and Marco Pavone},
  title = {{Planning-aligned Token Compression for Long-Context Autonomous Driving}},
  year = {2026},
  eprint = {2606.07464},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.07464},
}
Figure