RAPDrive: Shared-Latent Hybrid Decoding for Reasoning and Planning in Autonomous Driving

Yuheng Liu, Le Hui, Ziyue Zhu, Yigong Zhang, Jin Xie, jian YangNeurIPS 2026

TL;DR

Language flows word-by-word, left-to-right, while driving trajectories are geometric shapes that need global consistency across future time steps. RAPDrive bridges this structural mismatch in autonomous driving by placing natural-language reasoning and future motion planning inside a single shared transformer—using standard autoregressive decoding for text and iterative masked "fill-in-the-blank" refinement for driving trajectories.

What Problem Does This Paper Address?

Vision-Language-Action (VLA) models aim to give self-driving cars both a "voice" to reason through complex traffic scenes and a "wheel" to plan physical trajectories. However, language and physical motion have fundamentally different structures. Text is naturally sequential, making standard left-to-right (autoregressive) generation a great fit. A driving trajectory, on the other hand, is a continuous geometric curve where where you want to be in four seconds dictates how you steer right now.

Figure 1: Comparison of reasoning-and-planning paradigms for driving VLA. (a) Autoregressive action-token VLA generates reasoning and action tokens sequentially. (b) VLM-based planning uses semantic representations to condition an external planner. (c) RAPDrive integrates reasoning tokens and future planning slots within a shared transformer, employing autoregressive text generation and iterative masked motion-token refinement.

Existing driving VLAs usually compromise in one of two ways: either they force physical actions into discrete tokens and generate them left-to-right just like words (which ignores holistic trajectory geometry), or they bolt an external diffusion planner onto a vision-language model (separating the reasoning brain from the planning brain). The authors ask: How can language reasoning and trajectory planning deeply interact inside one unified model without forcing motion to behave like text?

Methods

Built on an InternVL3-2B multimodal backbone, RAPDrive processes multi-view camera images, vehicle status, motion history, reasoning text, and 8 future planning slots (covering a 4-second horizon) in one unified token sequence.

Figure 2: RAPDrive shared-latent hybrid-decoding architecture. Visual, ego-state, motion-history, and text embeddings are processed together with future planning slots under a hybrid attention mask. Reasoning text is generated autoregressively, while motion tokens are refined through iterative masked denoising in a dedicated endpoint-contour codebook space. Refined planning-slot states are decoded into continuous local motion deltas and integrated into the final trajectory.

What is novel here is how RAPDrive keeps distinct vocabularies and generation rules for text and motion while letting them mingle in the same hidden latent space:

  • Hybrid Attention Mask: Within the single transformer, visual/history context uses bidirectional attention, reasoning text uses causal (left-to-right) attention, and future planning slots attend bidirectionally to everything—context, reasoning text, and each other.
  • Endpoint-Contour Motion Tokenizer: Instead of raw $(x, y, \theta)$ coordinates, each 0.5-second motion segment is represented by the 2D positions of the car's four physical corners (an 8D feature), clustered via K-means into a 2048-token motion codebook.
  • Iterative Masked Refinement & Continuous Realization: Inspired by MaskGIT (discrete diffusion), inference starts after reasoning text is generated, with all 8 planning slots masked out. Over 4 rounds, the transformer predicts motion tokens for all unresolved slots simultaneously and locks in the 2 most confident slots per round. Finally, the refined hidden states pass through a continuous local-delta decoder and are integrated into a smooth physical trajectory.
Figure 3: RAPDrive motion-token interface. (a) Endpoint-contour motion tokenizer: each local segment is represented by endpoint vehicle-footprint corners and assigned to a K-means motion codeword. (b) Iterative masked motion-token refinement: future planning slots are initialized as masked categorical tokens and denoised with confidence-based commitment.

After supervised training, the authors also apply an optional reinforcement learning stage using GRPO (Group Relative Policy Optimization, a standard policy refinement method from DeepSeekMath) rewarded directly by driving simulator scores.

Datasets

No new datasets are introduced, though the authors generate offline reasoning supervision on training splits using Qwen2.5-VL-72B. Evaluation is conducted on two established autonomous driving benchmarks:

  • NAVSIM: Evaluates open-loop trajectory planning on real-world nuPlan-derived scenarios using planner-centric safety and progress metrics.
  • Bench2Drive: Evaluates closed-loop driving inside the CARLA simulator, measuring driving score, route success rate, efficiency, and comfort.

Key Insights and Ideas

  • Bidirectional refinement beats left-to-right action rollouts: Ablations confirm that resolving the most confident trajectory segments first and letting future slots attend to one another outperforms both left-to-right autoregressive motion decoding and single-pass prediction.
  • Discrete-to-continuous synergy: Purely discrete tokens suffer from quantization limits, while pure continuous regression struggles with multimodal choices. Using discrete footprint tokens as an intermediate reasoning-to-planning interface—before decoding continuous local deltas—gives the best of both worlds, provided rollout-level pose supervision is maintained.
  • Reasoning pays off when traffic gets messy: Conditioning motion on generated reasoning text and sharing latent states yields minimal changes in simple lane-following, but provides noticeable gains in complex scenarios like intersections, turns, dense traffic, and traffic lights.

Key Results

  • NAVSIM (Supervised): Using camera-only inputs, RAPDrive achieves 86.9 PDMS (Predictive Driver Model Score), outperforming base driving VLA baselines including AutoVLA (80.5), AdaThinkDrive (86.2), and ReCogDrive (86.5).
  • NAVSIM (Post-Trained): Adding GRPO post-training boosts RAPDrive to 90.3 PDMS, surpassing post-trained AutoVLA (89.1) and AutoDrive-R2 (89.1), though trailing world-model-augmented DynVLA (91.7) and ReCogDrive (90.8).
  • Bench2Drive: RAPDrive reaches a 79.82 Driving Score, beating AutoVLA (78.84) and ReCogDrive (71.36). However, gains are uneven in closed-loop simulation: its route success rate (49.55%) trails AutoVLA (57.73%), and DynVLA leads overall (88.34 Driving Score).

Limitations and Future Work

  • Inference Latency: Generating full autoregressive reasoning text before running four rounds of motion refinement takes an average of 8.512 seconds per scene—far too slow for real-time driving. Speeding up or compressing the reasoning phase is a major priority.
  • Camera-Only Inputs: RAPDrive currently only uses RGB cameras and vehicle state; integrating LiDAR, radar, HD maps, or 3D occupancy grids remains future work.
  • No World-Model Supervision: Unlike top-performing world-model VLAs (like DynVLA), RAPDrive does not yet predict dense future visual states alongside its planning slots.

Summary updated

Abstract

Driving vision-language-action (VLA) models seek to integrate reasoning with trajectory planning, but language and motion exhibit different generation structures: reasoning text is typically generated sequentially, whereas trajectory planning requires modeling dependencies across multiple future time steps. We present RAPDrive, a shared-latent hybrid-decoding framework that jointly processes visual context, ego state, motion history, reasoning tokens, and future planning slots within a single transformer. By combining autoregressive text generation with iterative masked motion-token refinement and continuous trajectory decoding, RAPDrive enables reasoning and planning to interact through shared latent representations while retaining modality-specific generation mechanisms. Training combines supervised reasoning-and-planning objectives, with GRPO-based post-training providing additional improvements. Experiments on NAVSIM and Bench2Drive show that RAPDrive outperforms existing base driving VLA baselines under supervised training. Ablation studies further validate the effectiveness of the proposed components.
BibTeX
@inproceedings{liu2026rapdrive,
  author = {Yuheng Liu and Le Hui and Ziyue Zhu and Yigong Zhang and Jin Xie and jian Yang},
  title = {{RAPDrive: Shared-Latent Hybrid Decoding for Reasoning and Planning in Autonomous Driving}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=vw3QZXzTta},
}
Figure