Residual Policy Learning for Vehicle Control of Autonomous Racing Cars

Raphael Trumpp, Denis Hoornaert, Marco Caccamo

Abstract

Autonomous racing requires vehicles to operate at the absolute edge of their physical limits, where tire slip and complex dynamics make traditional control difficult. While classical controllers offer stability, they often lack the performance of Deep Reinforcement Learning (DRL) agents. Conversely, end-to-end DRL models struggle with generalization and safety. This paper presents a hybrid control system using Residual Policy Learning (RPL). By combining a classical Pure Pursuit controller with a DRL-based residual agent, the system achieves a 4.55% average reduction in lap times and demonstrates robust zero-shot generalization to unseen tracks without additional training.

1. Introduction

Autonomous racing is fundamentally a "limit-handling" problem. To achieve competitive lap times, a vehicle must navigate corners at speeds where tires begin to lose traction and standard linear models of vehicle dynamics break down.

Currently, the field is divided between two paradigms. Classical controllers, such as Pure Pursuit or PID, are predictable and stable but require extensive track-specific tuning and are often too conservative to exploit the car's full physical potential. On the other hand, end-to-end DRL agents can learn superhuman maneuvers through trial and error but are often treated as "black boxes." These models typically suffer from high sample complexity, poor performance in the "sim-to-real" transition, and a failure to generalize to novel track geometries.

This research proposes a middle ground: a controller that maintains the reliability of classical methods while incorporating the high-performance "intuition" of DRL through a residual architecture.

2. Methodology

The proposed system utilizes a dual-module architecture based on Residual Policy Learning (RPL). The control command is split into two distinct components:

2.1 The Base Controller

The system uses a classical Pure Pursuit controller as its foundation. This module calculates the necessary steering and velocity to follow a pre-planned racing line. While safe and reliable, it is inherently conservative and does not account for high-speed dynamics like tire slip.

2.2 The Residual Controller

The residual component is a DRL agent trained using Proximal Policy Optimization (PPO). Rather than controlling the vehicle from scratch, the agent observes the car's state—including Lidar data, velocity, and slip angle—and outputs a "residual" action. This action acts as a correction to the base controller's command.

2.3 Command Fusion

The final command sent to the vehicle is defined by the equation: $$a_{total} = a_{base} + a_{residual}$$

To ensure stability, the residual agent is constrained; it can only modify the steering by ±0.05 rad and the velocity by ±1.0 m/s. This constraint prevents the AI from overriding the stable base controller while providing enough latitude to optimize for speed and handling.

3. Experimental Setup

The study was conducted using the F1TENTH-gym simulator, a benchmark for 1/10th scale autonomous racing. The researchers utilized 12 replicated real-world racetracks, including iconic circuits like the Nürburgring, Monza, and Mexico City.

To evaluate the system's ability to generalize, the authors trained the agent on 9 tracks and reserved 3 (Sakhir, Catalunya, and Melbourne) for zero-shot testing. In these tests, the agent was required to race on completely unfamiliar tracks without any prior exposure or fine-tuning.

4. Key Insights and Results

4.1 Performance Improvements

Across all 12 tracks, the RPL approach reduced lap times by an average of 4.55%. The benefits were most pronounced on high-curvature tracks, such as Moscow, where the improvement reached 7.06%. Crucially, the agent maintained this performance on unseen tracks, outperforming the base controller by an average of 4% in zero-shot scenarios.

4.2 Exploiting Vehicle Dynamics

The RPL agent discovered high-performance behaviors that the classical controller could not achieve:

  • Optimized Slip Angles: While classical controllers attempt to minimize tire slip to maintain stability, the RPL agent learned that increasing the slip angle (up to 0.43 rad compared to the base's 0.27 rad) allowed for higher cornering speeds—effectively "drifting" to maintain momentum.
  • Counter-Steering: At high velocities, the agent learned to apply counter-steering. By providing inputs that occasionally opposed the base controller, the agent stabilized the vehicle in sections where the classical controller alone would have induced oscillations or spins.

4.3 Training Efficiency

Because the DRL agent begins with a base controller that already understands basic path-following, it does not need to learn how to drive from a "tabula rasa" state. This bootstrapping allows the agent to focus its learning entirely on the marginal gains required for competitive racing.

5. Conclusion and Future Work

The RPL framework successfully bridges the gap between classical control and reinforcement learning, providing a system that is both faster than traditional methods and more adaptable than end-to-end DRL.

However, limitations remain. The current study utilizes a kinematic single-track model which, while accounting for slip, ignores non-linear effects like weight transfer. Future research will focus on the "sim-to-real" gap by deploying the system on physical RC cars and investigating how the residual policy handles the noisy sensor data and varying tarmac conditions found in real-world racing environments.

Summary updated

BibTeX
@inproceedings{trumpp2023residual,
  author = {Raphael Trumpp and Denis Hoornaert and Marco Caccamo},
  title = {{Residual Policy Learning for Vehicle Control of Autonomous Racing Cars}},
  booktitle = {IV},
  year = {2023},
  doi = {10.1109/iv55152.2023.10186744},
}
Figure