CARLA Real Traffic Scenarios - novel training ground and benchmark for autonomous driving

Blazej Osinski, Piotr Milos, Adam Jakubowski, Pawel Ziecina, Michal Martyniak, Christopher Galias, Antonia Breuer, Silviu Homoceanu, Henryk MichalewskiarXiv 2020

Abstract

This work introduces interactive traffic scenarios in the CARLA simulator, which are based on real-world traffic. We concentrate on tactical tasks lasting several seconds, which are especially challenging for current control methods. The CARLA Real Traffic Scenarios (CRTS) is intended to be a training and testing ground for autonomous driving systems. To this end, we open-source the code under a permissive license and present a set of baseline policies. CRTS combines the realism of traffic scenarios and the flexibility of simulation. We use it to train agents using a reinforcement learning algorithm. We show how to obtain competitive policies and evaluate experimentally how observation types and reward schemes affect the training process and the resulting agent's behavior.

Introduction: The Tactical Planning Challenge

Autonomous driving is typically structured into three functional layers: low-level control (lane keeping), high-level navigation (routing), and the critical "middle layer" of tactical planning. This tactical layer—responsible for decisions such as when to merge into a lane or how to navigate a congested roundabout—remains a significant hurdle. These maneuvers require reacting to unpredictable human behavior over several-second horizons.

While simulation offers a safe environment for training, it often suffers from a "reality gap" where simulated traffic is too predictable. Conversely, real-world datasets are static and lack the interactivity required for closed-loop training. CARLA Real Traffic Scenarios (CRTS) addresses this by porting real-world traffic trajectories into a reactive simulation environment.

Methodology: The Real-to-Sim Pipeline

The researchers developed a robust pipeline to translate real-world observations into simulation-ready scenarios:

  1. Scenario Extraction: Real-world datasets were scanned for specific tactical events, such as lane changes and roundabout entries.
  2. Digital Twin Mapping: Nine custom maps were built to match the exact geometry of the real-world locations.
  3. Ego-Vehicle Replacement: The original vehicle from the dataset is replaced by an "ego" agent controlled by a Reinforcement Learning (RL) policy.
  4. Data Replay: Other vehicles follow their recorded trajectories. While they do not react to the ego vehicle, they provide a grounded, realistic background of human driving behavior.
Comparison between real-world drone footage of a roundabout and its digital twin in the CARLA simulator.

Datasets and Training

CRTS is built upon two major real-world sources:

  • NGSIM: Trajectories from US highways (US 101 and I-80) for lane-change scenarios.
  • openDD: Drone-recorded data of German roundabouts.

The resulting suite contains over 60,000 scenarios, split into training and validation sets to test the agent's ability to generalize to unseen traffic patterns. Agents were trained using the Proximal Policy Optimization (PPO) algorithm.

Key Insights: Perception and Reward Structures

The Superiority of Bird’s-Eye View (BEV)

A primary finding was that agents using a top-down semantic map (BEV) generalized significantly better than those relying on raw Camera or Lidar data. BEV provides a "pre-digested" version of the environment, allowing the RL agent to focus on tactical planning rather than the complexities of raw perception.

Semantic Bird's-Eye View (BEV) map used as input for the RL agent, highlighting road geometry and vehicle trajectories.

Causal Confusion and Reward Density

The study identified that providing a "frame stack" (previous video frames) actually hindered performance in roundabouts. This was attributed to "causal confusion," where the agent learned to maintain current speed based on previous frames rather than learning the underlying rules of the intersection. Furthermore, "dense" rewards (incremental points for progress) were found to be essential for successful training compared to sparse, end-of-goal rewards.

Results and Performance

The study established strong baseline success rates for the community:

  • Highway (NGSIM): Best models achieved a ~78-80% success rate.
  • Roundabouts (openDD): Success rates reached ~86-88%.

Qualitatively, RL-trained agents tended to drive more aggressively than the original human drivers, likely due to reward functions that prioritized goal completion speed over passenger comfort or minor traffic infractions.

Conclusion and Future Work

CRTS provides a high-fidelity bridge between static real-world data and interactive simulation. While currently limited by the non-reactivity of background vehicles, future iterations aim to implement multi-agent setups where all vehicles are AI-controlled. This would maintain real-world realism while allowing for full, closed-loop interaction and more complex scenarios like signalized intersections.

Summary updated

BibTeX
@misc{osinski2020carla,
  author = {Blazej Osinski and Piotr Milos and Adam Jakubowski and Pawel Ziecina and Michal Martyniak and Christopher Galias and Antonia Breuer and Silviu Homoceanu and Henryk Michalewski},
  title = {{CARLA Real Traffic Scenarios - novel training ground and benchmark for autonomous driving}},
  year = {2020},
  eprint = {2012.11329},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.11329},
}
Figure