Accelerating Structured Chain-of-Thought in Autonomous Vehicles

Yi Gu, Yan Wang, Yuxiao Chen, Yurong You, Wenjie Luo, Yue Wang, Wenhao Ding, Boyi Li, Heng Yang, Boris Ivanovic, Marco Pavone · DOI

TL;DR

FastDriveCoT introduces a parallel decoding framework that slashes the latency of Chain-of-Thought (CoT) reasoning in autonomous vehicles. By structuring reasoning into a dependency graph and generating independent sub-tasks concurrently, the authors achieve a 3–4× speedup in reasoning generation, making high-level "thinking" practical for real-time, 10Hz driving systems.

What Problem Does This Paper Address?

Vision-Language-Action (VLA) models have recently brought "common-sense" reasoning to autonomous driving. By using Chain-of-Thought (CoT) prompting—where the model explains its reasoning (e.g., "I see a red light, therefore I should stop") before outputting a trajectory—driving performance improves significantly.

However, there is a massive catch: latency. Standard LLM decoding is autoregressive, meaning it generates one token at a time. A detailed reasoning trace can be hundreds of tokens long, taking seconds to generate. In autonomous driving, decisions must be updated at 10Hz or faster to ensure safety. You cannot wait two seconds for a model to "think" while the car is moving at 60 mph. FastDriveCoT aims to bridge this gap between deep reasoning and real-time execution.

Methods

The core innovation is treating reasoning not as a linear string of text, but as a structured dependency graph.

  1. Template-Structured CoT: Instead of free-form text, the authors define specific fields (e.g., Weather, Traffic Signs, Critical Objects).
  2. The Dependency Graph: They identify which fields are independent. For example, a model can analyze "Road Conditions" and "Traffic Signs" simultaneously, but it must finish both before it can generate a "Traffic Rule Summary."
  3. Parallel Decoding Algorithm: Using a Dynamic Programming approach, the system identifies "ready" fields and generates tokens for all of them in a single forward pass of the GPU.
  4. Custom Attention Masking: To make this work within a single transformer sequence, they designed a custom attention mask. This ensures that tokens in one field can only "see" tokens from their parent dependencies in the graph, preventing the model from hallucinating information from fields that haven't been fully generated yet.
  5. KV Cache Optimization: Unlike naive parallel methods that might recompute data, FastDriveCoT reuses the Key-Value (KV) cache across all parallel branches, minimizing memory overhead.

Datasets

The researchers utilized a massive internal NVIDIA dataset:

  • Scale: 20,000 hours of driving data across 2,500+ cities and 25 countries.
  • Labeling: They used a "teacher" model (Qwen2.5-VL-72B) to auto-label the data with structured CoT traces.
  • Split: 717,344 high-quality training samples and 950 test samples.
  • Evaluation: They tested across three base model scales: Qwen2-0.5B, Qwen3-1.7B, and Qwen2.5-VL-3B.

Key Insights and Ideas

  • Reasoning is a DAG, not a Line: The most important "aha" moment is that human-like driving reasoning is naturally parallel. We don't look at the weather then the lanes then the signs; we perceive these factors concurrently.
  • Latency is Bound by the Critical Path: In this framework, the time it takes to "think" is no longer determined by the total number of words, but by the longest chain of dependencies in the graph.
  • Zero Computational Overhead: Because the method packs tokens into the sequence length dimension rather than increasing the batch size, it introduces virtually no additional FLOPs compared to standard sequential decoding. It simply utilizes the GPU's parallel compute capabilities more effectively.

Key Results

  • Speedup: FastDriveCoT achieved a 3.1× to 4.1× speedup in CoT generation time compared to standard autoregressive decoding.
  • End-to-End Latency: Total system latency (from image input to final trajectory) was reduced by 1.9× to 3.1×.
  • Performance Preservation: Crucially, the parallel approach did not hurt driving accuracy. In many cases, it slightly improved Meta-Action IOU and Trajectory ADE (Average Displacement Error), likely because the structured template forced the model to adhere more strictly to logical reasoning steps.
  • Architecture Agnostic: The gains were consistent across different model sizes and types (both purely autoregressive and "transfusion" models).

Limitations and Future Work

  • Fixed Template Slots: The current implementation uses a fixed number of "slots" for objects (e.g., always space for 4 critical objects). If there are fewer objects, it uses "N/A" placeholders, which is slightly inefficient. The authors suggest dynamic template adjustment as a future step.
  • Template Design: The speedup is highly dependent on how the template is designed. A poorly designed template with a long linear dependency chain would negate the benefits of parallel decoding.
  • Hardware Kernels: The authors noted that their custom attention mask is slightly less efficient than standard kernels; further optimization of the CUDA kernels could squeeze out even more speed.

Summary updated

BibTeX
@misc{gu2026accelerating,
  author = {Yi Gu and Yan Wang and Yuxiao Chen and Yurong You and Wenjie Luo and Yue Wang and Wenhao Ding and Boyi Li and Heng Yang and Boris Ivanovic and Marco Pavone},
  title = {{Accelerating Structured Chain-of-Thought in Autonomous Vehicles}},
  year = {2026},
  eprint = {2602.02864},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.02864},
}
Figure