Abstract
Simulating human driving behavior is a complex challenge due to the inherent multi-modality and temporal consistency of human "styles." Traditional imitation learning methods often suffer from the "averaging effect," leading to unrealistic and unsafe trajectories. This paper presents Discrete Style Diffusion Policy (DSDP), a framework that combines unsupervised contrastive learning, Lookup-Free Quantization (LFQ), and conditional diffusion models to capture and replicate diverse driving personalities. Evaluated on the NGSIM dataset, DSDP demonstrates superior performance in safety and human-likeness, reducing crash rates by over 35% compared to standard diffusion-based baselines.
Introduction
Autonomous driving simulation requires agents that do more than just follow a single optimal path; they must reflect the diverse behaviors of human drivers, ranging from aggressive to cautious. Standard Behavior Cloning (BC) using Mean Squared Error (MSE) often fails in these scenarios because it attempts to average these distinct modes, resulting in trajectories that do not represent any real-world driver. While Diffusion Models have emerged as a powerful tool for capturing complex distributions, they often lack the mechanism to maintain a consistent style over a long horizon.
DSDP addresses this by learning a discrete "dictionary" of driving styles from unlabeled trajectory data. By conditioning a diffusion policy on these learned styles, the framework ensures that generated actions are not only realistic in the short term but also consistent with a specific driving personality over time.
Methodology
The DSDP framework is structured into three integrated components designed to extract, discretize, and deploy driving styles.
1. Unsupervised Style Extraction
To identify driving styles without manual labeling, the model employs contrastive learning via the InfoNCE loss. The core intuition is that different segments of the same driving trajectory should share a similar style representation. The model treats two segments from the same trajectory as a "positive pair" and segments from different drivers as "negative pairs." This allows the encoder to learn a latent space where stylistic similarities are clustered.
2. Lookup-Free Quantization (LFQ)
To transform continuous latent representations into a usable format for simulation, DSDP utilizes Lookup-Free Quantization (LFQ). Unlike traditional Vector Quantized-Variational Autoencoders (VQ-VAEs), which can be unstable during training due to codebook collapse, LFQ maps vectors to binary codes using a simplified mathematical approach. This creates a discrete bottleneck that forces the model to ignore low-level sensor noise and focus on high-level, persistent behavioral patterns.
3. Conditional Diffusion Policy
The action generation engine is a Denoising Diffusion Probabilistic Model (DDPM). During inference, a prior network analyzes a short history of the agent's actions to identify the most likely driving style from the LFQ codebook. The diffusion model then generates the next action sequence, conditioned on both the current environmental state and the identified style. This conditioning prevents the agent from "jittering" between different driving personalities, ensuring temporal consistency.
Experimental Setup
The authors evaluated DSDP using the Next Generation Simulation (NGSIM) dataset, which contains high-fidelity vehicle trajectories from major U.S. highways (US 101, I-80) and urban arterials (Lankershim Boulevard, Peachtree Street). For closed-loop testing, the highway-env simulator was used, where the ego-vehicle interacts with other agents controlled by an Intelligent Driver Model (IDM).
Results and Discussion
DSDP was benchmarked against several baselines, including standard Diffusion-BC and various parametric models.
- Safety and Reliability: DSDP achieved an overall crash rate of 4.0%, significantly lower than the 6.3% reported for the next best learning-based baseline (Diffusion-BC). In highway scenarios like US 101, the crash rate was reduced to a near-negligible 0.2%.
- Human-Likeness: The model's ability to cover the real distribution of human behavior was measured using an F1 score. DSDP achieved a score of 0.404, outperforming all other tested models and demonstrating its ability to replicate diverse driving modes.
- Ablation and Robustness: Studies indicated that the use of InfoNCE loss was critical; alternative contrastive losses like Barlow Twins did not yield the same level of performance. Furthermore, the model proved robust across various codebook sizes and sub-trajectory lengths.
Limitations and Future Work
Despite its success, DSDP faces challenges in complex urban environments like Peachtree Street. The current "tabular" state representation (distances and speeds) may be insufficient to capture nuanced environmental factors like traffic light states. Additionally, the model currently assumes perfect perception of surrounding vehicles.
Future research will focus on scaling DSDP to handle high-dimensional visual inputs (e.g., camera and LiDAR data) and expanding the framework to include interactions with vulnerable road users, such as pedestrians and cyclists, to further enhance realism in dense urban settings.
Conclusion
DSDP represents a significant step forward in realistic driving simulation. By combining the generative power of diffusion models with the structural consistency of discrete contrastive learning, the framework provides a robust solution for modeling the complex, multi-modal nature of human driving behavior.
Summary updated