Abstract
Waymax is a JAX-based, hardware-accelerated simulator designed to bridge the gap between speed and realism in autonomous vehicle (AV) research. By executing entirely on GPUs and TPUs, Waymax eliminates the communication bottlenecks typical of CPU-based simulators, enabling training and evaluation throughput up to 500x faster than traditional alternatives. It integrates real-world data from the Waymo Open Motion Dataset (WOMD) with reactive agent models, providing a scalable platform for developing robust planning agents.
Introduction
Developing software for autonomous vehicles requires a delicate balance between simulation speed and physical realism. While high-fidelity simulators like CARLA offer realism, they are often slow and difficult to scale. Conversely, simple log-replay systems are fast but lack interactivity, leading to unrealistic "ghost" collisions when an agent deviates from the recorded path.
Waymax addresses these challenges by providing a simulator that is data-driven, interactive, and hardware-accelerated. By utilizing JAX, the entire simulation—including physics, map processing, and reward calculation—is Just-In-Time (JIT) compiled for execution on the same accelerators used for model training.
Methodology
Waymax's architecture is centered around JAX, allowing for "in-graph" simulation where the environment and the neural network reside on the same device. This removes the latency "tax" of moving data between CPU and GPU.
Key Technical Features
- Multi-Agent Dynamics: Waymax supports hundreds of simultaneous objects, including vehicles, pedestrians, and cyclists, using a kinematically feasible "Bicycle" dynamics model.
- Differentiability: The simulator is functionally pure, enabling gradient-based policy optimization directly through the simulator dynamics.
- Reactive Sim-Agents: To ensure realistic interactions, Waymax incorporates the Intelligent Driver Model (IDM). This rule-based system allows non-ego vehicles to react to the agent's actions, such as braking to avoid a collision.
Data and Benchmarking
Waymax is natively designed to ingest the Waymo Open Motion Dataset (WOMD), which provides over 250 hours of real-world urban driving data. The simulator uses these logs to initialize scenarios, including roadgraphs (map data) and initial object states. The authors provide baseline results using Imitation Learning (Behavior Cloning) and Reinforcement Learning (DQN) agents trained on this dataset.
Results and Performance
The hardware-accelerated nature of Waymax yields significant performance gains:
- Throughput: On a single NVIDIA V100 GPU, Waymax achieves a step rate of over 1000Hz for single scenarios and over 5000Hz with batching—approximately 500x faster than CPU-based simulators.
- Evaluation Efficiency: The entire WOMD evaluation set (44,000 scenarios) can be processed in under two minutes on an 8-GPU machine.
Discussion and Insights
Research conducted with Waymax revealed several critical insights:
- Route Guidance: Providing agents with high-level route information from the map significantly improves their ability to stay on the road and reach objectives.
- The RL Overfitting Trap: Agents can overfit to the "politeness" of rule-based reactive agents. If simulated cars always yield, the RL agent may learn dangerously aggressive behaviors. This underscores the need for diverse, learned behavior models for all agents.
Limitations and Future Work
Waymax focuses on planning and behavior, omitting sensor-level simulation (e.g., camera or LiDAR rendering). Consequently, it is not suitable for training perception systems. Future work aims to integrate more complex, learned behavior models to improve agent realism and further investigate the sim-to-real transfer gap.
Summary updated