GPUDrive: Data-driven, multi-agent driving simulation at 1 million FPS

Saman Kazemkhani, Aarav Pandya, Daphne Cornelisse, Brennan Shacklett, Eugene Vinitsky

Introduction

Multi-agent reinforcement learning (MARL) has achieved superhuman performance in complex games, yet it struggles to make a significant impact in autonomous driving. The primary bottleneck is experience: training effective driving policies requires billions of steps to cover the "long tail" of rare, complex human interactions. Existing CPU-bound simulators struggle to scale when hundreds of agents interact within complex road geometries, forcing researchers to rely on imitation learning or hand-tuned cost functions that often fail in dynamic, interactive scenarios.

GPUDrive bridges this gap. It is a high-performance, GPU-accelerated simulator capable of generating over one million multi-agent driving steps per second. By leveraging the Madrona Game Engine to parallelize simulation directly on hardware, GPUDrive enables researchers to train RL agents on thousands of real-world driving scenarios in hours rather than weeks.

Methods and Architecture

GPUDrive is built on the Madrona Game Engine, utilizing an Entity-Component-System (ECS) architecture designed specifically for high-throughput RL.

Global simulator state and local agent views in GPUDrive

Key technical innovations include:

  • Hardware-Native Logic: Observation, reward, and dynamics functions are written in C++ and lowered directly to CUDA. This keeps the entire simulation loop on the GPU, eliminating costly CPU-GPU data transfers.
  • Polyline Decimation: Real-world maps contain tens of thousands of points. GPUDrive uses the Visvalingham-Whyatt Algorithm to simplify road geometries by 10–15x without losing critical shape information, drastically reducing memory overhead.
  • Efficient Collisions: Instead of $O(N^2)$ checks, the simulator implements a Bounding Volume Hierarchy (BVH) to quickly prune candidate pairs for collision detection.
  • Pythonic Accessibility: Despite its low-level C++ core, GPUDrive is fully accessible via Python using nanobind and conforms to the standard gymnasium API, ensuring compatibility with popular RL libraries like PyTorch and JAX.

Datasets and Closed-Loop Simulation

The simulator primarily utilizes the Waymo Open Motion Dataset (WOMD), which contains over 100,000 multi-agent traffic scenarios. GPUDrive converts these static real-world logs and maps into a closed-loop environment. This allows agents to interact dynamically and explore "what if" scenarios—such as reacting to unexpected autonomous vehicle maneuvers—rather than simply replaying recorded motions.

Key Insights and Results

GPUDrive achieves a peak throughput of 2.3 million Agent Steps Per Second (ASPS), offering a 200-300x training speedup compared to leading CPU-based simulators like Nocturne. For example, GPUDrive can solve 10 scenarios in under 3 minutes, a task that takes Nocturne 10 hours.

  • The Scaling "Free Lunch": A surprising finding is that the amortized cost of training decreases as the dataset grows. Solving 1024 unique scenarios takes only 15 seconds per scenario, whereas solving 32 scenarios takes 2 minutes per scenario. Massive datasets actively improve the efficiency of the learning process in this architecture.
  • LIDAR is Faster than Simple Filters: Counter-intuitively, GPU-accelerated LIDAR observations are roughly 3x faster than a simple "radial filter" (which lists nearby objects). LIDAR rays can be cast in parallel across GPU cores much more efficiently than the linear scans required for distance-based filtering.
  • Performance at Scale: The authors successfully trained agents to achieve a 95% goal-reaching rate across 1,000 different scenarios in just 15 hours on a single consumer-grade GPU (RTX 4080).

Limitations and Future Work

While highly performant, GPUDrive has a few limitations. The current version lacks high-level map semantics (like lane connectivity), making it difficult to define rewards such as "stay in the center of the lane." Additionally, about 2% of goals in the Waymo dataset are technically unreachable due to mislabeled road edges.

Currently, the trained RL agents are highly effective at reaching goals but exhibit aggressive driving behaviors. Future work will focus on developing more diverse, human-like "sim-agents" to improve traffic flow realism. The team also plans to integrate other major datasets, such as NuPlan and NuScenes, to provide broader geographic diversity.

Summary updated

BibTeX
@inproceedings{kazemkhani2025gpudrive,
  author = {Saman Kazemkhani and Aarav Pandya and Daphne Cornelisse and Brennan Shacklett and Eugene Vinitsky},
  title = {{GPUDrive: Data-driven, multi-agent driving simulation at 1 million FPS}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=ERv8ptegFi},
}
Figure