GPD-1: Generative Pre-training for Driving

Zixun Xie, Sicheng Zuo, Wenzhao Zheng, Yunpeng Zhang, Dalong Du, Jie Zhou, Jiwen Lu, Shanghang ZhangarXiv 2024 · DOI

Abstract

GPD-1 (Generative Pre-training for Driving) is a unified, GPT-style autoregressive model that treats autonomous driving simulation and planning as a single token-generation problem. By discretizing both map elements and agent trajectories into a unified token space, GPD-1 can perform scene generation, traffic simulation, and motion planning zero-shot, simply by altering the input prompts. Evaluated on the large-scale nuPlan dataset, GPD-1 achieves state-of-the-art performance in closed-loop metrics, demonstrating the power of generative pre-training in the autonomous driving domain.

Introduction

Modern autonomous driving systems rely heavily on simulators to safely test and validate software. However, building these simulators usually requires stitching together highly specialized, isolated models for road network generation, agent behavior prediction, and ego-vehicle trajectory planning. While recent generative models have shown promise in synthesizing driving environments, they often lack the temporal consistency and control interfaces needed for holistic, reactive simulation.

GPD-1 addresses this gap by proposing a unified framework that simultaneously models the temporal evolution of a scene, the interactions between dynamic agents, and static map elements. By formulating driving as a token-generation problem, GPD-1 can be "prompted" like a language model to perform various downstream tasks without task-specific fine-tuning.

Methodology

GPD-1 adapts the standard autoregressive Transformer architecture to the autonomous driving domain using three key innovations:

1. 2D Map Scene Tokenizer

Instead of predicting complex continuous map coordinates, vector map lines are rasterized into a 2D Bird's Eye View (BEV) canvas. A Vector-Quantized Autoencoder (VQ-VAE) is then trained to compress these semantic maps into a compact set of discrete tokens.

2. Hierarchical Agent Tokenizer

To represent dynamic agents and the ego vehicle, GPD-1 utilizes a multi-level quantization scheme. Continuous coordinates (x, y, heading) are quantized at a coarse level, and the residuals are quantized at progressively finer levels. These discrete values are mapped to sinusoidal positional embeddings, which significantly reduces noise in the feature space compared to direct continuous regression.

3. Scene-Level Attention Mask

Standard autoregressive models predict tokens strictly causally. However, in a driving scene, all agents interacting in the same time step must be aware of one another. GPD-1 employs a custom attention mask that allows full bi-directional interaction among all map and agent tokens within a single frame, while strictly blocking information from future frames.

Overview of the GPD-1 architecture, showing the map and agent encoders, the transformer decoder with scene-level masking, and the task-specific token requirements.

Experimental Results

The model is pre-trained and evaluated on the nuPlan dataset, utilizing the 100M-scene split.

Performance on nuPlan

GPD-1 achieves state-of-the-art results on the nuPlan motion planning challenge. With minimal fine-tuning, it surpasses the highly specialized PlanTF model in closed-loop metrics on the Test14-random benchmark.

Performance comparison of GPD-1 against the PlanTF baseline on nuPlan Test14 benchmarks.

Key insights from the evaluation include:

  • Zero-Shot Generalization: Without any fine-tuning, GPD-1 successfully performs scene generation, traffic simulation, and map prediction.
  • Impact of Quantization: Ablation studies show the agent tokenizer is highly effective, reducing the Average Displacement Error (ADE) of the ego vehicle from 0.20m to 0.06m.
  • Pre-training Efficacy: The significant performance gap between the "wo/ pretrain" and "w/ pretrain" configurations (e.g., NR-CLS jumping from 13.46 to 63.45) underscores the value of the generative pre-training stage.

Discussion and Future Work

Despite its success, GPD-1 faces limitations typical of autoregressive models, such as compounding errors over extended prediction horizons. Additionally, the model currently struggles to anticipate new vehicles entering the field of view if they were absent from the input history.

Future work will explore scaling up model parameters, integrating raw sensor data (like cameras or LiDAR) directly into the token space, and developing mechanisms to better handle boundary conditions, such as agents entering or leaving the scene.

Summary updated

BibTeX
@misc{xie2024gpd,
  author = {Zixun Xie and Sicheng Zuo and Wenzhao Zheng and Yunpeng Zhang and Dalong Du and Jie Zhou and Jiwen Lu and Shanghang Zhang},
  title = {{GPD-1: Generative Pre-training for Driving}},
  year = {2024},
  eprint = {2412.08643},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.08643},
}
Figure