Gradient-based Trajectory Optimization with Parallelized Differentiable Traffic Simulation
Sanghyun Son, Laura Zheng, Brian Clipp, Connor Greenwell, Sujin Philip, Ming C. Lin
TL;DR
This work introduces a parallelized, differentiable traffic simulator based on the Intelligent Driver Model (IDM) that can handle up to 2 million vehicles in real time on CPU or GPU. It adds differentiable IDM components and safety bounds to ensure physically plausible vehicle dynamics, enabling gradient-based trajectory optimization for filtering, reconstruction, and prediction. The authors validate the approach on large-scale datasets (e.g., NGSIM, Waymo Open Motion Dataset), showing improvements in physical realism and providing a training-free baseline for trajectory forecasting. The framework offers a scalable computational core for integrating traffic dynamics with learning-based methods, with public code available to facilitate adoption and extension.
Abstract
We present a parallelized differentiable traffic simulator based on the Intelligent Driver Model (IDM), a car-following framework that incorporates driver behavior as key variables. Our vehicle simulator efficiently models vehicle motion, generating trajectories that can be supervised to fit real-world data. By leveraging its differentiable nature, IDM parameters are optimized using gradient-based methods. With the capability to simulate up to 2 million vehicles in real time, the system is scalable for large-scale trajectory optimization. We show that we can use the simulator to filter noise in the input trajectories (trajectory filtering), reconstruct dense trajectories from sparse ones (trajectory reconstruction), and predict future trajectories (trajectory prediction), with all generated trajectories adhering to physical laws. We validate our simulator and algorithm on several datasets including NGSIM and Waymo Open Dataset. The code is publicly available at: https://github.com/SonSang/diffidm.
