TL;DR
This paper introduces a vision-based reinforcement learning agent that achieves champion-level performance in competitive racing within the Gran Turismo 7 simulator. Unlike previous approaches that relied on external localization data, this agent learns solely from onboard camera and sensor inputs, making it more practical for real-world applications.
What Problem Does This Paper Address?
Autonomous racing, especially at high speeds and in dynamic environments, is a significant challenge. Traditional methods require extensive manual engineering. While deep reinforcement learning (RL) has shown promise, existing RL agents for racing simulators like Gran Turismo 7 (GT7) often depend on global information (e.g., precise car location, track geometry) that is difficult to obtain in real-world scenarios. This reliance on external data limits the practical applicability of these agents. Furthermore, vision-based RL agents have struggled to achieve competitive performance, often failing to maintain optimal trajectories or colliding with obstacles, especially when opponents are present. This paper aims to bridge this gap by developing a vision-based RL agent capable of competitive racing without relying on external localization data.
Methods
The core of this work is an asymmetric actor-critic architecture trained using Quantile Regression Soft Actor-Critic (QR-SAC).
- Actor: This component processes only local, ego-centric information:
- Image Input: A down-scaled RGB camera view from the car's perspective.
- Proprioceptive Features: Data from onboard sensors like linear/rotational velocity, acceleration, current control inputs (steering, throttle, brake), and steering angle history.
- Crucially, the actor uses a recurrent neural network (RNN) to maintain a hidden state, allowing it to remember past observations and handle partial observability (e.g., opponents going off-screen).
- Critic: This component has access to both local features and global features (track points and opponent positions/velocities) during training only. This allows the critic to provide a more informed evaluation of actions, while the actor is forced to learn from local data for inference.
Key novelties in the method include:
- Vision-only inference: The agent relies solely on camera and onboard sensors during actual racing, eliminating the need for external localization.
- Asymmetric architecture: Separating local-only processing for the actor (inference) and local+global for the critic (training) is a key design choice.
- Recurrent module in the actor: Essential for handling the temporal nature of racing and partial observability.
- Regularization techniques:
- Network Reinitialization: Reinitializing networks after the replay buffer is full to prevent overfitting to early training data.
- Image Augmentation: Randomly shifting input images to improve generalization.
Datasets
The agent is trained and evaluated within the Gran Turismo 7 (GT7) simulator. The paper uses three distinct car-track scenarios:
- Tokyo Expressway: Central Clockwise, Audi TT Cup '16, Racing Hard tires.
- Circuit de Spa-Francorchamps: Alfa Romeo 4C Launch Edition '14, Sports Medium tires.
- 24 Heures du Mans (Sarthe): HYUNDAI N 2025 Vision Gran Turismo (Gr.1), Racing Medium tires.
The training involves a diverse range of scenarios, from solo runs to races with up to 19 AI opponents (BIAI - Built-in AI). Evaluation is conducted against GT7's BIAI drivers.
Key Insights and Ideas
- Vision is Sufficient for Champion-Level Racing: The most striking insight is that an agent can achieve world-class performance in a complex racing simulator using only visual and onboard sensor data, without needing explicit global localization. This significantly boosts the potential for real-world deployment.
- The Power of Recurrence for Partial Observability: The RNN in the actor is critical. It allows the agent to "remember" off-screen opponents and track features, enabling it to maintain performance even when direct visual information is temporarily unavailable. This is a key differentiator from simpler feedforward vision-based agents.
- Asymmetric Critic for Better Learning: Providing the critic with global information during training helps it guide the actor more effectively, even though the actor must operate without it during inference. This hybrid approach seems to offer the best of both worlds for learning.
- Regularization is Key for Stability and Generalization: Techniques like network reinitialization and image augmentation are not just minor tweaks; they are presented as crucial for preventing overfitting and ensuring the agent performs robustly across different situations.
Key Results
- Champion-Level Performance: The agent consistently achieves first place in all three tested scenarios, outperforming GT7's built-in AI (BIAI) and even surpassing human expert and champion baselines in several metrics.
- Superior Overtaking: On the Tokyo track, the vision-based agent demonstrates better gap perception and overtaking capabilities than GT Sophy (a previous state-of-the-art RL agent), likely due to its ability to infer opponent orientation from vision.
- Competitive with State-of-the-Art: The agent matches GT Sophy's performance on the Spa track and surpasses human champions, highlighting its strong racing line execution.
- Visual Analysis: Integrated Gradients show the agent focuses on relevant visual cues for overtaking (lower vehicle regions, shadows) and track localization (vanishing points, treelines), mirroring human driver attention patterns.
Limitations and Future Work
- Controlled Environment: The current evaluation is limited to a simulator with fixed weather conditions and specific car models. Real-world deployment will require generalization to more varied conditions.
- Head-to-Head with Top Humans: While outperforming human baselines, the paper suggests future work could involve more direct head-to-head races against top human drivers.
- Generalization Across Cars/Tracks: Expanding the agent's ability to generalize to a wider range of car models, tracks, and weather conditions is a key future direction.
- Sportsmanship Nuances: While collisions are penalized, the paper notes that GT7's inherent randomness can lead to unexpected collisions, and further work could explore more robust sportsmanship.
Summary updated