Abstract
Despite the availability of international prize-money competitions, scaled vehicles, and simulation environments, research on autonomous racing and the control of sports cars operating close to the limit of handling has been limited by the high costs of vehicle acquisition and management, as well as the limited physics accuracy of open-source simulators. In this paper, we propose a racing simulation platform based on the simulator Assetto Corsa to test, validate, and benchmark autonomous driving algorithms, including reinforcement learning (RL) and classical Model Predictive Control (MPC), in realistic and challenging scenarios. Our contributions include the development of this simulation platform, several state-of-the-art algorithms tailored to the racing environment, and a comprehensive dataset collected from human drivers. Additionally, we evaluate algorithms in the offline RL setting. All the necessary code (including environment and benchmarks), working examples, datasets, and videos are publicly released.
Introduction
Autonomous driving at the "physical limit"—where tires are at the edge of adhesion and vehicle dynamics are highly non-linear—presents a unique challenge distinct from standard urban driving. While simulators like CARLA address urban navigation and platforms like F1Tenth offer scaled racing, they often lack the complex physics required to accurately model high-speed vehicle dynamics. Testing on real tracks is prohibitively expensive and dangerous. This paper introduces a high-fidelity middle ground: a Gym-compliant interface for Assetto Corsa, a simulator renowned for its physics accuracy, paired with a large-scale dataset of human demonstrations to facilitate research into high-performance control.
Methods
The proposed platform connects Assetto Corsa to standard machine learning frameworks via Gym and ROS2 interfaces. The researchers evaluated three primary algorithmic approaches:
- Classical Control (MPC): A Model Predictive Control approach that plans paths based on mathematical vehicle models. While precise, it requires significant manual tuning for each car-track combination.
- Model-Free RL (Soft Actor-Critic - SAC): Specifically, the "fD" (from Demonstrations) variant was used. By initializing the agent with human data, the researchers bypassed the inefficient early stages of random exploration.
- Model-Based RL (TD-MPC2): This algorithm learns a latent "world model" of vehicle dynamics, enabling tests of few-shot transfer where agents adapt to unseen tracks with minimal additional training.
Datasets and Human Data Collection
A core contribution of this work is a comprehensive dataset released on HuggingFace, designed to support offline RL and imitation learning research:
- Human Data: 2.3 million steps (over 900 laps) collected from 15 drivers, ranging from novices to professional e-sports racers.
- RL Replay Data: 64 million steps recorded during the training of benchmark agents.
- Diversity: The data encompasses three distinct vehicles (Mazda Miata, Dallara F317, and BMW Z4 GT3) across four iconic tracks (Indianapolis, Barcelona, Red Bull Ring, and Monza).
Key Results and Insights
The experimental results highlight several critical findings for the autonomous racing community:
- Human Scaffolding: Learning to race from scratch is difficult due to sparse rewards. Agents using human demonstrations (SAC-fD) learned the optimal racing line significantly faster than those starting from scratch, which often failed to complete a single lap.
- Expert-Level Performance: On the Barcelona circuit with the Dallara F317, the SAC-fD agent achieved a lap time of 97.54s, matching the best human expert (97.52s) and outperforming the built-in game AI (99.74s).
- Generalization and Safety: Agents pre-trained on multiple tracks using TD-MPC2 demonstrated the ability to adapt to new tracks in just a few episodes. These pre-trained agents also exhibited significantly fewer crashes during the adaptation phase compared to agents trained from scratch, suggesting they learned fundamental physics rather than just track geometry.
Limitations and Future Work
A significant hurdle is that Assetto Corsa is a real-time simulator, meaning training cannot be accelerated beyond real-world time. This necessitated running multiple parallel instances across several workstations. Additionally, current agents rely on telemetry data (velocities, slip angles) rather than raw visual input. Future work will explore vision-based observations and multi-car "wheel-to-wheel" racing to incorporate competitive strategy and collision avoidance into the benchmark.
Summary updated