F1tenth Autonomous Racing With Offline Reinforcement Learning Methods

Prajwal Koirala, Cody H. Fleming

Abstract

Autonomous racing presents a significant challenge for traditional online reinforcement learning (RL) due to the high cost of exploration and frequent collisions. This paper investigates the efficacy of offline RL methods using the F1tenth simulator. We compare a novel tree-based policy, Return-Conditioned Decision Tree Policy (RCDTP), against sequence models like Decision Transformers and Diffusion Policies, as well as standard Q-learning variants. Results indicate that while RCDTP offers exceptional training speed and single-track performance, generative sequence models provide superior robustness and generalization across diverse racing environments.

Introduction

Training an autonomous racecar to navigate a track at high speeds is a complex task. Traditional online RL methods, which rely on trial-and-error, are often inefficient in such environments. In the F1tenth simulator, agents using state-of-the-art online algorithms like SAC and PPO frequently fail to surpass 35% progress on challenging tracks because they cannot learn quickly enough to avoid constant collisions. Furthermore, rule-based controllers like Pure Pursuit require manual tuning, and Model Predictive Control (MPC) is computationally demanding.

This study explores Offline Reinforcement Learning as a solution. By learning from a pre-collected dataset of expert driving, agents can bypass the costly exploration phase. We evaluate various architectures to determine which methods best balance training efficiency, racing performance, and the ability to generalize to unseen tracks.

Methodology

The research evaluates several offline RL architectures using a dataset of 100 successful laps collected via a waypoint-based suboptimal controller. The primary methods include:

  1. Return-Conditioned Decision Tree Policy (RCDTP): The authors' proposed method, which utilizes extreme gradient-boosted trees (XGBoost). It maps current observations, timesteps, and a target "Return-to-Go" (desired reward) directly to control actions.
  2. Sequence Models: The Decision Transformer (DT), which frames the control task as a conditional sequence modeling problem, and the Diffusion Policy (DP), which uses a denoising process to generate action sequences.
  3. Q-Learning Baselines: Standard offline neural network-based methods, including IQL, CQL, AWAC, PLAS, and TD3+BC.

Experimental Setup

The experiments were conducted using the F1tenth Gym API, a high-fidelity simulator based on the PyBullet physics engine. The agents were trained and tested on several tracks:

  • Training/Evaluation: Austria (high difficulty), Barcelona, and Treitlstrasse.
  • Generalization: Berlin, Torino, and Columbia.
  • Robustness: The Columbia track was used to test performance under varying lateral friction coefficients, simulating adverse weather conditions like rain or snow.

Results and Discussion

Training Efficiency

A standout finding is the extreme efficiency of the RCDTP model. It achieved competitive performance with a training time of approximately 57 seconds on a CPU. In contrast, the Decision Transformer required 33 minutes on an NVIDIA RTX 4090, and the Diffusion Policy took 3.8 hours. This makes RCDTP an ideal candidate for rapid prototyping and deployment on resource-constrained hardware.

Performance and Generalization

While RCDTP excelled on the specific tracks it was trained on, it showed a tendency to overfit. The Decision Transformer emerged as the superior "generalist." When trained on multi-track datasets, DT achieved near 100% completion rates across diverse environments, demonstrating a robust understanding of racing physics rather than just memorizing a specific path. Furthermore, agents trained solely on the "Austria" track demonstrated successful "zero-shot" transfer to the "Columbia" track.

Robustness to Environmental Changes

In friction-testing scenarios, generative models (Diffusion Policy, DT, and PLAS) proved the most resilient. As the lateral friction coefficient decreased, these models maintained higher success rates than the tree-based or standard Q-learning methods. This suggests that the ability of generative models to represent complex action distributions allows them to adapt more effectively to changes in vehicle dynamics.

Conclusion

Offline RL effectively addresses the limitations of online learning in autonomous racing. While RCDTP provides a high-speed, efficient solution for specific tracks, sequence-based models like the Decision Transformer offer the best path toward generalizable and robust autonomous agents. Future work will focus on multi-agent racing scenarios, sim-to-real transfer on physical F1/10 scale cars, and the development of safety-aware reward functions to further enhance reliability.

Summary updated

BibTeX
@inproceedings{koirala2024f,
  author = {Prajwal Koirala and Cody H. Fleming},
  title = {{F1tenth Autonomous Racing With Offline Reinforcement Learning Methods}},
  booktitle = {ITSC},
  year = {2024},
  doi = {10.1109/itsc58415.2024.10920216},
}
Figure