TL;DR
While autonomous driving (AD) trajectory generation closely resembles language modeling on the surface, directly transplanting Large Language Model (LLM) techniques often fails. This paper systematically evaluates five foundational LLM modules—tokenizers, positional encodings, pre-training scaling laws, post-training alignment, and test-time compute—showing that while core paradigms transfer well, they require domain-specific adaptations to account for continuous geometry, spatial symmetries, and multi-agent dynamics.
What Problem Does This Paper Address?
Recent autonomous driving systems have increasingly adopted Transformer-based autoregressive architectures, treating trajectory forecasting and planning much like next-token language prediction. However, most prior research imports isolated LLM components ad-hoc.
This paper asks a fundamental question: Which LLM modules truly generalize to autonomous driving motion generation, which ones fail, and why? The authors conduct a holistic, system-level diagnosis across the entire pipeline—from tokenization to inference-time search—identifying where the language analogy breaks down and how to adapt each module for real-world driving.
Methods
The authors systematically analyze and adapt five core LLM building blocks within an autoregressive motion generation model evaluated on the Waymo Sim Agents benchmark:
- Tokenizer Design: Comparing data-driven tokenizers (e.g., $k$-disk clustering in SMART) against model-driven kinematic tokenizers (Verlet integration). The authors propose Verlet-Agent, which normalizes trajectories into an agent-centric reference frame prior to tokenization, generating a compact 169-token action vocabulary.
- Positional Embedding: Testing standard 1D sinusoidal embeddings, Rotary Position Embeddings (RoPE), and Directional RoPE (DRoPE). They introduce Global-DRoPE, preserving global coordinates for static map features to prevent semantic collapse while injecting relative spatial-temporal relationships during attention.
- Pre-training & Scaling: Using a GPT-style decoder across temporal self-attention, agent self-attention, and map cross-attention. They employ an 8-fold multi-anchor trajectory augmentation strategy to test scaling laws across parameter counts (0.8M to 11.6M) and data volumes.
- Post-Training Alignment: Evaluating Supervised Fine-Tuning (SFT) on safety-critical edge cases against Reinforcement Learning approaches (REINFORCE, A2C, and Group Relative Policy Optimization [GRPO]). GRPO uses group-relative advantage normalization with temporal-max KL regularization to avoid value networks and prevent policy collapse.
- Test-Time Computing: Parallel rollout generation coupled with post-generation safety search (rule-based collision/off-road filters) and $K$-Medoids trajectory clustering.
Datasets
The authors train and evaluate on the Waymo Open Motion Dataset (WOMD) and benchmark against the Waymo Open Sim Agents Challenge (WOSAC). The task requires generating 32 diverse 8-second future trajectories for multiple interacting agents (2 to 8 vehicles/pedestrians) given a 1-second history.
Key Insights and Ideas
- Model-driven beats data-driven tokenization: Data-driven clustering requires large vocabularies ($2048+$ tokens) that suffer from out-of-distribution drift. Compact, kinematics-based tokenizers (169 tokens) achieve higher token classification accuracy and physical consistency.
- 1D position encodings harm performance: Unlike natural language, spatial relations in driving are continuous, 2D, and permutation-invariant across agents. While standard 1D PE degrades performance (ADE 3.15 vs. 3.13 with No PE), relative directional embeddings (Global-DRoPE) substantially cut off-road violations (0.175 vs. 0.198).
- Local coordinate normalization causes "semantic blindness": In standard RoPE, rotating map vectors into local frames makes distinct lane segments appear identical, starving the attention mechanism of semantic distinction. Keeping global context before applying relative attention solves this.
- RL fine-tuning causes conservative mode collapse without KL constraints: Vanilla REINFORCE and A2C drastically reduce collision rates but decimate realism scores by collapsing trajectory distributions. GRPO, combined with a temporal maximum KL constraint, balances safety with human-like behavioral diversity.
- Test-time search mirrors LLM "best-of-$N$": Parallel sampling of candidate futures combined with fast GPU-based collision filtering significantly cuts collision rates without modifying base weights.
Key Results
- Tokenization: Verlet-Agent achieved an 8-second ADE of 3.13m and 46.0% accuracy on full data, outperforming SMART’s data-driven tokenizer (3.53m ADE, 40.5% accuracy).
- Positional Embedding: Global-DRoPE lowered the off-road rate from 0.198 (No PE) and 0.208 (Vanilla PE) down to 0.175, yielding the lowest minADE (1.45m).
- Post-Training: GRPO achieved the highest realism score (0.728) and lowest minADE (1.46m), outperforming standard SFT (0.726) and unconstrained A2C (0.703).
- Test-Time Search: Rollouts + Search + Clustering boosted the realism score to 0.759 and dropped the off-road rate from 0.153 to 0.054.
- Leaderboard: Integrating all ablated components produced a competitive realism score of 0.778 on the official Waymo Sim Agents leaderboard (Kinematics: 0.487, Interactive: 0.805, Map: 0.911).
Limitations and Future Work
- Benchmark Metric Artifacts: The WOSAC likelihood metric penalizes models that are "too safe" if ground-truth human demonstrations contain perception noise or apparent collisions (~6% of dataset scenarios).
- Scalability to Dense Traffic: To maintain high data quality, the model only autoregressively rolls out 2–8 prioritized agents; background agents are processed via non-autoregressive MLPs due to sensor noise in peripheral tracks.
- Failure Modes & Hallucinations: Rare LLM-like failure modes still occur (<0.5% of cases), such as looping "token repetition" (e.g., repeatedly generating token
<84>, repeating the prior action) leading to out-of-distribution drift and crashes. - Future Directions: Incorporating raw multimodal sensor inputs (cameras/LiDAR), studying Mixture-of-Experts (MoE) architectures, and scaling beyond 11.6M parameters on larger datasets like nuPlan and Argoverse 2.
Summary updated