Abstract
We demonstrate the first application of deep reinforcement learning to autonomous driving. From randomly initialised parameters, our model is able to learn a policy for lane following in a handful of training episodes using a single monocular image as input. We provide a general and easy to obtain reward: the distance travelled by the vehicle without the safety driver taking control. We use a continuous, model-free deep reinforcement learning algorithm, with all exploration and optimisation performed on-vehicle. This demonstrates a new framework for autonomous driving which moves away from reliance on defined logical rules, mapping, and direct supervision. We discuss the challenges and opportunities to scale this approach to a broader range of autonomous driving tasks.
Introduction
Most modern autonomous driving systems rely on a "modular" pipeline: high-definition 3D maps, complex hand-coded logical rules, and extensive sensor suites. While effective in specific geofenced areas, this approach is difficult to scale to the "long tail" of diverse global driving conditions. An alternative is Imitation Learning, where a model learns by watching a human; however, this requires massive amounts of expert data and often struggles when the vehicle encounters novel situations.
This paper presents the first successful application of deep reinforcement learning (RL) to a real-world autonomous vehicle. By using a simple reward based on distance traveled and a monocular camera, we demonstrate that a car can learn to follow a lane from scratch in under 30 minutes of on-vehicle training.
Methodology
We formulated driving as a Markov Decision Process (MDP) and employed the Deep Deterministic Policy Gradient (DDPG) algorithm. DDPG is a model-free, off-policy actor-critic algorithm designed for continuous action spaces, which allows for smooth steering and speed control rather than jerky discrete movements.
State Representation and Reward
The system takes a single monocular camera image as input, along with the vehicle's current speed and steering angle. We compared learning from raw pixels against using a Variational Autoencoder (VAE) to compress the image into a low-dimensional latent vector. To keep the system general, we used a "sparse" reward: the distance traveled by the vehicle until a human safety driver had to intervene.
On-Vehicle Training Architecture
We developed a "Stateful Trainer" that allows a safety driver to manage the training process. Crucially, we included an "Undo" command, allowing the driver to discard an episode if an external factor (like another car or a pedestrian) interfered with the learning process. For exploration, we used the Ornstein-Uhlenbeck process to add temporally correlated noise to the actions, ensuring the exploration was smooth enough for a physical vehicle.
Key Results
The primary evaluation took place on a 250-meter stretch of private road in the UK using a modified Renault Twizy. The model learned entirely from the data it collected during the training episodes, with no pre-existing labeled datasets.
Our results show a remarkable leap in efficiency:
- Learning Speed: The VAE-enhanced RL model successfully learned to navigate the 250m route in just 11 episodes, totaling about 15 minutes of training.
- Pixel-based Learning: Learning directly from raw pixels was also successful but took 35 episodes (~37 minutes).
- Performance: After training, the RL agent was able to drive the entire 250m stretch without a single intervention. In contrast, a "Random Policy" failed almost immediately, averaging only 7.35m.
Discussion and Future Work
While successful, this approach faces challenges as it scales. As the agent improves, interventions become rarer, making the reward signal "sparser," which can slow down learning in more complex environments like urban intersections. Furthermore, the system currently requires a human safety driver to provide the "failure" signal.
Future research will explore moving toward model-based RL, where the agent learns a "world model" to imagine future scenarios. This could further improve data efficiency and safety by allowing the system to predict its own uncertainty without requiring constant human intervention.
Summary updated