Applied Intuition · Technical Report

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

A fast object-level traffic simulator, a procedural scenario generator, and a compute-efficient self-play recipe that trains driving policies from scratch — with zero human demonstrations — and transfers them across cities and datasets.

1 Applied Intuition  ·  2 UC Berkeley  ·  * equal contribution  ·  corresponding author

The arXiv link and blog post will be available on release.

Contributions

1

A Fast, Feature-Rich Driving Simulator

A configurable C engine built for reinforcement learning at scale — high throughput without giving up realism. It models vehicles, pedestrians, cyclists, and high-fidelity trucks together, with real traffic rules and maps in 3D.

2

Hard Scenarios, Generated on Demand

A procedural generator that treats logged data as a starting point, not a ceiling. From real maps it composes an effectively unbounded supply of training scenarios — randomized starts and goals, reactive road users, and varied traffic-signal timing.

3

Driving Policies Trained From Scratch

The Zero in TerraZero names the training stance: zero human demonstrations. A compute-efficient self-play recipe learns by reinforcement signal alone — no imitation, no logged trajectories — and every result we report is trained this way. The resulting policies transfer zero-shot across cities and datasets, picking up region-specific habits such as left-hand traffic on their own.

Interactive Demo

Few Maps, Infinite Scenarios

A handful of real maps becomes an effectively unbounded stream of long-tail scenarios. Compose one with the controls and watch TerraZero drive it: choose the agent type (car, truck, or heterogeneous†), set a traffic condition, drop in road users and hazards, optionally dial in a robustness setting, and pick a viewpoint (agent or top-down) — the simulator procedurally generates the rest, and the selectors narrow to whatever it has on hand.

† Heterogeneous agents controlled via a unified policy will be released in work in preparation, to appear on arXiv.

Simulator

Built for Speed

Large-scale reinforcement learning needs billions of environment steps. TerraZero is engineered for exactly that: a C simulation engine paired with GPU policy inference, delivering the throughput RL requires without trading away realism.

560K
steps/s · consumer GPU
1.3M
steps/s · server GPU
2.8M
steps/s · 8× server node

Agent steps per second, measured against object-level simulators that report comparable numbers. Hover a bar for the exact value.

Figure 1. Throughput across hardware tiers, in agent steps per second. Values marked with a dagger are reported by the original authors.

High-Fidelity Simulation

Speed never comes at the cost of realism. TerraZero models dynamics for pedestrians, cyclists, vehicles, and high-fidelity trucks; enforces real traffic rules including traffic lights and stop signs; and represents maps in 3D — so policies learn genuine compliance rather than workarounds for scripted flags.

Scenario Generation

The Situations That Matter Most

Real driving logs are overwhelmingly routine. The rare, high-stakes moments — dense merges, sudden cut-ins, near-miss crossings — are exactly what a driving policy most needs to practice, and exactly what logs contain least. TerraZero generates them on demand: from real maps it builds an effectively unlimited stream of challenging scenarios, with reactive traffic, hazards, and signal timing that change every episode.

Figure 2. Procedurally generated road users and hazards: construction and static obstacles, crossing and jaywalking pedestrians, and parked and collided vehicles.

Recipe & Results

State-of-the-Art Driving From Self-Play Alone

#1 on InterPlan long-tail scenarios

TerraZero trains driving policies entirely through self-play reinforcement learning — no human demonstrations, no logged trajectories. Because the simulator is so fast, the recipe trades sample efficiency for compute efficiency: it learns the hard cases from scratch, stays stable at scale, and runs a lightweight policy across many GPUs. The result is state-of-the-art closed-loop driving on the interactive long tail, competitive with strong baselines on standard benchmarks, that transfers to new cities and datasets out of the box.

InterPlan

State-of-the-Art on the Long Tail

On InterPlan's long-tail closed-loop suite — construction zones, accident sites, jaywalkers, nudging, overtaking, and dense lane changes — TerraZero leads every rule-based, imitation, and RL baseline, and tops even the LLM-based planners, using no rule-based planner and no language model at inference. Bars compare the overall closed-loop score against the top competitors.

Figure 3. InterPlan long-tail closed-loop reactive score (higher is better) on the official 80-scenario split, comparing the top contenders. TerraZero uses no rule-based planner or language model at inference. On the harder full 335-scenario set the same checkpoint scores 67.6.

nuPlan val14

Closed-Loop Driving Policy

Trained exclusively through self-play RL with zero human demonstrations, TerraZero is among the best fully learned planners on nuPlan val14 by composite score, and leads the field for safety — no-at-fault collision and time-to-collision.

Figure 4. Driving-policy evaluation on nuPlan val14 (closed-loop reactive), higher is better, comparing the top fully learned planners; rule-based and hybrid planners are omitted here. Radar axes run 0–100; an asterisk marks author-retrained variants. Among fully learned approaches TerraZero is among the best by composite score and leads the field for safety — no-at-fault collision and time-to-collision.

WOSAC

Sim-Agent Evaluation

As a sim agent, TerraZero is the strongest method that uses no demonstrations at all — no imitation and no reference policy — matching SPACeR and beating HR-PPO, which both derive from a reference policy trained on logged data. The demonstration-based CAT-K and the logged expert (dashed) are shown for reference.

WOSAC 2023

WOSAC 2024

TerraZero RL RL (Demonstration-derived) Demonstration-based
Figure 5. Sim-agent realism on the Waymo Open Sim Agents Challenge, evaluated zero-shot (higher is better). Solid RL bars use no demonstrations at all; shaded RL bars derive from a reference policy trained on logged data (SPACeR, HR-PPO); dashed bars are demonstration-based references (the logged Expert Demonstration and, on 2024, CAT-K). Left: the 2023 edition on the full Waymo validation split, against Gigaflow. Right: the 2024 edition on vehicles (shared 880-scenario subset). TerraZero uses no demonstrations and no reference policy, matching the realism of the demonstration-derived methods.

Terra Series

Empowering Physical AI Research

Learning to Drive Without Expert Demonstrations

TerraTransfer uses TerraZero's self-play planner as a teacher and distills its competence into an end-to-end camera policy — no human demonstrations required. It aligns the vision policy's latent space to the planner's vector representation, achieving 0.490 HD-Score on HUGSim and outperforming imitation baselines by +0.130.