TerraZero: Procedural Driving Simulation for Zero-Demonstration Self-Play at Scale

Zhouchonghao Wu, Akshay Rangesh, Weixin Li, Wei-Jer Chang, Zachary Lee, Saeed Bonab, Tim Wang, Wei Zhan

TL;DR

TerraZero is a high-throughput, feature-rich procedural driving simulator and self-play training stack that trains autonomous driving policies from scratch with zero human demonstrations. By decoupling real-world map geometry from logged trajectories and using aggressive domain randomization, it achieves up to 2.8 million agent-steps per second while outperforming state-of-the-art planners on both standard and long-tail interactive benchmarks.

What Problem Does This Paper Address?

Training robust autonomous driving (AD) agents requires exposing them to safety-critical, "long-tail" scenarios like aggressive cut-ins, near-misses, and sudden construction zones. However, real-world logged driving data is overwhelmingly dominated by mundane, routine lane-following. This makes standard imitation learning highly data-starved for rare, dangerous events.

While simulation offers a safe alternative to collect these scenarios, existing simulators suffer from a strict throughput-fidelity trade-off. Fast, object-level simulators typically strip away crucial complexities like traffic signals, pedestrians, or diverse vehicle dynamics. Conversely, high-fidelity, pixel-level simulators (like CARLA) are far too computationally expensive for reinforcement learning (RL) at scale, where billions of environment steps are routinely required. TerraZero is designed to bridge this exact gap.

Methods

TerraZero achieves both massive scale and high scenario fidelity through three core architectural pillars:

  1. High-Performance C Engine: The core simulation loop—including object-level dynamics, traffic light logic, and reward computations—is written entirely in C. Policy inference and learning run in PyTorch on the GPU. The two sides communicate via a fully zero-copy data path using shared NumPy buffers, eliminating the serialization bottlenecks that plague Python-based simulators.
  2. Procedural Scenario Generation: Instead of treating logged driving data as a fixed training distribution, TerraZero uses logs only as a source of real-world map geometry. It then procedurally populates these maps with a highly randomized cast of rule-based non-player characters (NPCs), traffic signal controllers, construction zones, and jaywalkers.
  3. Tabula Rasa Self-Play Recipe: Policies are trained completely from scratch using Proximal Policy Optimization (PPO) enhanced with V-trace off-policy corrections and PopArt value normalization. To prevent the policy from falling into degenerate, perfectly symmetric self-play traps, TerraZero implements population play (mixing learning agents with rule-based traffic) and randomizes agent dynamics, bounding-box sizes, and reward weights at the start of every episode.
TerraZero System Architecture

Datasets

TerraZero ingests and standardizes map geometries across multiple public datasets into a unified binary format (terrabin):

  • nuPlan: Provides real-world map geometry across four distinct cities, capturing diverse intersection layouts and both right- and left-hand traffic conventions. Used for ego-planner benchmarks.
  • Waymo Open Motion Dataset (WOMD): The largest source corpus used in the paper, providing nearly half a million scenarios for training and evaluating sim-agent realism.
  • CARLA: Five synthetic towns used to supplement map diversity and evaluate zero-shot cross-dataset generalization.

Key Insights and Ideas

  • Compute Efficiency Over Sample Efficiency: When simulation is incredibly cheap, sample efficiency becomes a secondary metric. TerraZero intentionally discards low-value, near-zero-advantage trajectory segments via saliency-prioritized sampling, trading sample efficiency for high gradient quality per unit of compute.
  • Maps as Seeds, Not Tracks: By treating real-world logs as geometric canvases rather than rigid trajectories to mimic, a single map can seed an effectively infinite variety of complex, interactive training scenarios.
  • Emergent Left-Hand Driving: Because the training recipe heavily relies on kinematic domain randomization and reward-conditioned inputs, the learned policies focus on underlying lane topology rather than memorizing a specific side of the road. As a result, a policy trained exclusively on right-hand traffic (US cities) successfully generalized zero-shot to left-hand traffic (Singapore) without any explicit supervision.

Key Results

  • Simulation Throughput: TerraZero sustains 1.3 million agent-steps per second (SPS) on a single server-grade GPU and scales to 2.8 million SPS on an 8-GPU node. This is significantly faster than existing object-level simulators while maintaining multi-agent, multi-dynamics, and traffic-signal fidelity.
Comparison of object-level driving simulators
  • Ego-Planner Performance: A single learned checkpoint topped the standard nuPlan val14 closed-loop reactive benchmark with a score of 94.19, outperforming leading rule-based planners (like PDM-Closed) and hybrid models. The exact same checkpoint also led the interactive, long-tail InterPlan benchmark with a score of 70.87, demonstrating that procedural long-tail training translates directly to robust out-of-distribution performance.
  • Sim Agent Realism: Evaluated on the Waymo Open Sim Agents Challenge (WOSAC), TerraZero's demonstration-free recipe yielded a unified heterogeneous policy (controlling vehicles, pedestrians, and cyclists simultaneously) that outperformed all other demonstration-free baselines and matched the realism of heavily anchored reference models.

Limitations and Future Work

  • HD Map Dependency: TerraZero relies entirely on highly detailed, high-definition maps containing lane-level topology and traffic signal phase data. It cannot generate scenarios for unmapped or poorly annotated regions.
  • Abstraction of Perception: As an object-level simulator, it operates on ground-truth bounding boxes and structured states rather than raw camera or LiDAR data. It cannot be used to train end-to-end perception-to-control pipelines directly.
  • Sim-to-Real Dynamics Gap: While domain randomization mitigates this, highly complex vehicle physics (e.g., suspension articulation, tire degradation, aerodynamics) are simplified, leaving an open challenge for direct physical deployment.
  • Future Work: The authors point toward extending the engine to support city-scale simulation (moving past intersection-level episodes), expanding the agent roster to include emergency vehicles and e-scooters, and integrating learned visual representations to bridge the perception gap.

Summary updated

BibTeX
@misc{wu2026terrazero,
  author = {Zhouchonghao Wu and Akshay Rangesh and Weixin Li and Wei-Jer Chang and Zachary Lee and Saeed Bonab and Tim Wang and Wei Zhan},
  title = {{TerraZero: Procedural Driving Simulation for Zero-Demonstration Self-Play at Scale}},
  year = {2026},
  eprint = {2607.13028},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.13028},
}
Figure