Learning from Simulation, Racing in Reality

Eugenio Chisari, Alexander Liniger, Alisa Rupenyan, Luc Van Gool, John Lygeros · DOI

Abstract

We present a reinforcement learning-based solution to autonomously race on a miniature race car platform. We show that a policy that is trained purely in simulation using a relatively simple vehicle model, including model randomization, can be successfully transferred to the real robotic setup. We achieve this by using a novel policy output regularization approach and a lifted action space which enables smooth actions but still aggressive race car driving. We show that this regularized policy does outperform the Soft Actor Critic (SAC) baseline method, both in simulation and on the real car, but it is still outperformed by a Model Predictive Controller (MPC) state of the art method. The refinement of the policy with three hours of real-world interaction data allows the reinforcement learning policy to achieve lap times similar to the MPC controller while reducing track constraint violations by 50%.

Introduction

Autonomous racing represents a "limit-handling" challenge where vehicles must operate at the absolute edge of their physical capabilities. In this regime, vehicle dynamics are highly non-linear and unforgiving. While Model Predictive Control (MPC) is currently the gold standard for this task, it relies heavily on highly accurate mathematical models of the vehicle and track environment.

Reinforcement Learning (RL) offers a promising alternative by learning from experience. However, RL faces two significant hurdles in robotics: the sim-to-real gap, where policies fail due to unmodeled physics like tire slip, and jittery control, where agents produce high-frequency signals that can damage hardware and are difficult to model accurately.

Methods

To address these challenges, we utilize the Soft Actor-Critic (SAC) algorithm with three key modifications:

  1. Lifted Action Space: Instead of controlling steering and throttle directly, the agent controls the rate of change of these inputs, naturally encouraging smoother transitions.
  2. Policy Output Regularization: This core contribution adds a quadratic penalty on actions directly into the policy gradient update. Unlike reward shaping, which can hinder exploration, this method ensures smooth control without slowing down the initial learning process.
  3. Model Randomization: During simulation, we apply multiplicative uncertainty to velocity states, forcing the agent to remain robust to a wide range of physical behaviors.
Comparison of control signals (duty cycle $d$ and steering angle $\delta$) across different methods, highlighting the smoothness achieved by the proposed regularization.

Following simulation, the policy is refined on a physical 1:43 scale Kyosho dNaNo miniature race car. Using SAC’s off-policy nature, we update the policy using real-world interaction data while the car is driving, bridging the final gap between simulation and reality.

Key Results

The regularized policy was the only RL method capable of completing laps immediately upon transfer to the real car without crashing. After three hours of real-world refinement, the RL policy achieved an average lap time of 11.01s.

Trade-off between lap time and track constraint violations. The regularized SAC policy (black crosses) demonstrates superior consistency compared to the MPC baseline (green circles).

While the MPC's peak lap time was faster (10.57s), the RL agent proved significantly more reliable. As shown in the performance analysis, the RL agent reduced the time spent out of track constraints by 71% compared to the MPC, demonstrating a more consistent and robust racing strategy.

Discussion and Future Work

Our findings suggest that the location of regularization matters; penalizing actions in the policy update step rather than the reward function allows for smooth control without sacrificing learning speed. We also found that including roughly 80% of the recorded real-world error distribution in simulation provided the optimal balance between robustness and performance.

While our RL agent is more consistent, it has not yet surpassed the peak speed of a perfectly tuned MPC. Future work will focus on moving toward "vision-to-action" policies using on-board sensors rather than external overhead cameras, and exploring these techniques in complex, multi-agent racing scenarios.

Summary updated

BibTeX
@inproceedings{chisari2020learning,
  author = {Eugenio Chisari and Alexander Liniger and Alisa Rupenyan and Luc Van Gool and John Lygeros},
  title = {{Learning from Simulation, Racing in Reality}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2020},
  doi = {10.1109/icra48506.2021.9562079},
}
Figure