TL;DR
Large Language Models (LLMs) excel at autonomous vehicle motion planning by treating trajectory prediction as a language generation task, but their massive size makes onboard deployment impractical. This paper demonstrates that On-Policy Generalized Knowledge Distillation (GKD) can successfully compress an 8-billion parameter driving LLM into a 1.7-billion parameter model. The resulting student model retains near-teacher performance—suffering only a 5-6% drop in accuracy—while vastly outperforming traditional reinforcement learning baselines.
What Problem Does This Paper Address?
Recent breakthroughs have shown that LLMs can act as highly effective motion planners for self-driving cars. By converting sensor data and vehicle states into natural language prompts, frameworks like GPT-Driver train LLMs to output safe coordinate trajectories alongside human-readable "chain-of-thought" reasoning.
However, running an 8B or larger parameter model in real-time on automotive edge hardware is a massive computational bottleneck. While knowledge distillation (training a smaller "student" model to mimic a larger "teacher" model) is the standard solution, autoregressive language models suffer from a severe train-inference distribution mismatch (exposure bias).
During standard training, a student model learns using perfect, ground-truth history. But at inference time, the student generates text token-by-token based on its own previous outputs. If it makes a tiny coordinate error early in a trajectory, that error compounds rapidly, causing the vehicle's planned path to drift catastrophically.
Methods
To solve the compounding error problem, the authors explore training the student model on its own on-policy rollouts (sequences it generates itself), comparing two distinct paradigms:
- On-Policy Generalized Knowledge Distillation (GKD): The student generates its own trajectory. The teacher model then evaluates these student-generated tokens and provides feedback across the entire vocabulary distribution. The student is trained to minimize the Generalized Jensen-Shannon Divergence (JSD) between its token probabilities and the teacher's.
- Dense-Feedback Reinforcement Learning (RL) Baseline: Using a policy gradient framework (REINFORCE), the student receives a scalar reward based on the teacher's log-probability of the specific token the student sampled, rather than looking at the full vocabulary distribution.
By comparing these two, the authors isolate whether full-distribution matching (GKD) is superior to single-token reward shaping (RL) for highly structured numerical outputs like spatial coordinates.
Datasets
The models were trained and evaluated using the nuScenes autonomous driving dataset, specifically preprocessed via the GPT-Driver pipeline. The dataset consists of 1,000 complex driving scenarios, and the models were benchmarked across 5,119 validation frames.
Key Insights and Ideas
- Full-Distribution Feedback is Crucial for Coordinates: GKD vastly outperformed the RL baseline. When generating numbers for coordinates, telling a student model that "3" and "4" are both highly plausible next digits (representing nearby spatial points) while "9" is terrible provides a much richer learning signal than a simple scalar RL reward that only scores the single token the student happened to guess.
- Superior Training Stability: Policy gradient methods in language models are notoriously unstable and prone to overfitting. The RL baseline peaked at epoch 1 and then degraded. In contrast, the GKD student improved steadily, making it a much more reliable choice for safety-critical engineering workflows.
- Flawless Formatting: Impressively, both distillation methods taught the 1.7B student model to maintain 100% perfect structural formatting (zero parsing errors), actually beating the 8B teacher model which suffered from a 0.08% format error rate.
Key Results
The paper's evaluation metrics focused on L2 displacement error (how far the plan is from the ground truth) and collision rates across a 3-second horizon.
- 5$\times$ Model Compression: The Qwen3-1.7B GKD student achieved an average L2 error of 0.373 m (under the STP-3 convention), closely approaching the Qwen3-8B teacher's 0.355 m.
- RL Baseline Failure: The RL student lagged far behind, yielding an average L2 error of 0.579 m (55% worse than GKD).
- Safety Metrics: The GKD student maintained a low collision rate of 0.138% (compared to the teacher's 0.101%), whereas the RL baseline's collision rate spiked to 0.363% (a 2.6$\times$ increase in risk over GKD).
Limitations and Future Work
While promising, the authors note a few limitations that pave the way for future research:
- Open-Loop Evaluation: The current benchmark evaluates predictions statically against a dataset. Testing the distilled model in a closed-loop simulator—where the vehicle's actions actively change the future state of the environment—is essential.
- Prompt Modality: The prompt currently relies on natural language descriptions of objects from upstream perception systems. Integrating vectorized maps and raw sensor tokens directly into the LLM could yield more robust planning.
- Explicit Safety Constraints: Future work will explore baking explicit collision-avoidance and safety objectives directly into the distillation loss function rather than relying solely on mimicking the teacher.
Summary updated