Learning to Drive using Inverse Reinforcement Learning and Deep Q-Networks

Sahand Sharifzadeh, Ioannis Chiotellis, Rudolph Triebel, Daniel CremersarXiv 2016

Abstract

Autonomous driving requires navigating complex environments with human-like "naturalness," a task difficult to achieve through manual rule-coding or pure supervised learning. This paper presents a framework combining Inverse Reinforcement Learning (IRL) with Deep Q-Networks (DQN) to extract reward functions from expert human demonstrations. By leveraging the high-dimensional state processing capabilities of DQNs within a projection-based IRL loop, the system learns to perform smooth lane changes and obstacle avoidance. Experimental results in a highway simulator demonstrate that the agent successfully mimics human driving comfort and safety preferences.

Introduction

Defining a "good driver" involves balancing safety, speed, and comfort—subjective qualities that are mathematically complex to define manually. Traditional hand-coded reward functions are often brittle, while end-to-end supervised learning struggles with generalization. Inverse Reinforcement Learning (IRL) offers a solution by inferring the underlying reward function from expert behavior. However, classical IRL methods suffer from the "curse of dimensionality." This work addresses this limitation by integrating Deep Q-Networks (DQN) into the IRL framework to handle large state spaces.

Methodology

The authors utilize a projection-based IRL framework, which iteratively refines a reward function by comparing the feature expectations of an agent's policy against those of an expert. The core innovation is the use of a DQN to solve the reinforcement learning (RL) subproblem.

DQN architecture for IRL, showing binary feature inputs from sensors mapping to Q-values for steering actions.

The state space is represented by 13 distance sensors, each discretized into 16 binary "bins," resulting in 208 binary features ($\phi$). This discretization allows the model to capture nonlinear sensitivities to distance, which is critical for safety and comfort. As shown in the architecture, the DQN processes these features through fully connected (FC) layers to estimate action-values ($Q(s, a)$) for three steering actions: left, right, and straight.

Experimental Setup

The system was evaluated in a custom highway driving simulator. Expert data consisted of 90 human driving demonstrations. The agent, a "red car" using a single-track vehicle dynamics model, was trained over multiple IRL iterations. Each iteration involved 3,000 DQN inner-loop steps to optimize the policy for the current reward estimate.

Results and Discussion

After six IRL iterations, the agent achieved 100% obstacle avoidance in test scenarios. Beyond safety, the agent exhibited human-like "jerk" values, indicating a learned preference for passenger comfort without explicit programming.

Learned reward weights across different sensors and distance measures, showing peaks at distances corresponding to lane-centering.

An analysis of the extracted weights ($w$) reveals that the agent learned intuitive driving norms. As shown in the weight distribution across sensors, the reward peaks at specific distances that correspond to being centered in a lane. This demonstrates that the IRL process successfully captured the "intentions" of the human expert, such as lane-keeping and maintaining safe buffers from other vehicles.

Conclusion

The combination of IRL and DQN provides a robust method for learning complex robotic tasks from human demonstrations. By learning the "why" (reward function) rather than just the "what" (actions), the agent achieves better generalization. Future work will explore Deep IRL for non-linear reward combinations and testing in more chaotic urban environments involving intersections and pedestrians.

Summary updated

BibTeX
@misc{sharifzadeh2016learning,
  author = {Sahand Sharifzadeh and Ioannis Chiotellis and Rudolph Triebel and Daniel Cremers},
  title = {{Learning to Drive using Inverse Reinforcement Learning and Deep Q-Networks}},
  year = {2016},
  eprint = {1612.03653},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1612.03653},
}
Figure