Trajectory Planning for Autonomous Vehicles Using Hierarchical Reinforcement Learning

Kaleb Ben Naveed, Zhiqian Qiao, John M. Dolan

Introduction

Trajectory planning for autonomous vehicles (AVs) remains a significant challenge due to the high dimensionality of dynamic urban environments and the inherent noise in perception systems. Traditional approaches often face critical trade-offs. Sampling-based planners like RRTs can be computationally expensive and produce jerky paths, while lattice planners may suffer from curvature discontinuities. Conversely, standard "flat" Reinforcement Learning (RL) often struggles with sample efficiency and stability when managing multiple sub-goals, such as waiting for a gap before executing a lane change.

To address these issues, this research proposes a hierarchical reinforcement learning (HRL) framework. This system seeks a middle ground by being sample-efficient, robust to sensor noise, and capable of guaranteeing smooth, human-like driving maneuvers through the integration of classical control theory.

Methodology

The core of the proposed solution is a hybrid architecture that combines deep learning with classical PID control. The task is decomposed into two distinct levels:

  1. Hierarchical Structure (hDDQN): A high-level meta-controller selects a strategic "option" (e.g., Lane Follow/Wait or Lane Change). Based on this choice, a low-level planner selects specific waypoints.
  2. PID Controller Integration: To avoid the erratic movements typical of RL agents that output raw control values, this agent outputs waypoints. A Proportional-Integral-Derivative (PID) controller then manages longitudinal and lateral control to follow these waypoints smoothly.
  3. Temporal Memory (LSTM): Long Short-Term Memory (LSTM) layers are integrated to handle "incomplete observations" caused by noisy sensor data. By analyzing a history of the last three time steps, the network makes more informed decisions.
The hierarchical architecture decomposes tasks into high-level strategic options and low-level waypoint tracking via a PID controller.

This "divide and conquer" approach allows the agent to learn sub-goals independently, leading to faster convergence. Furthermore, the modularity of the low-level planners enables policy reusability across different urban layouts.

Experimental Evaluation

The model was evaluated using the CARLA simulator, focusing on a challenging urban scenario where the "ego-car" must navigate around a stationary obstacle by merging into dynamic traffic. The training process spanned 2,000 episodes, utilizing 100 rule-based episodes to pre-populate the experience replay buffer and accelerate initial learning.

Results and Discussion

The hDDQN + PID + LSTM approach was compared against several baselines, demonstrating superior performance in both efficiency and safety.

Method Gaussian Noise Success Rate Collision Rate
Standard DDQN + PID No 92% 8%
hDDQN + PID (Proposed) No 100% 0%
hDDQN + PID Yes 93% 7%
hDDQN + PID + LSTM Yes 98% 2%

As shown in the training curves, the hierarchical approach converges to higher rewards significantly faster than flat DDQN. The addition of LSTM layers proved critical for robustness; while standard models faltered under Gaussian noise, the LSTM-equipped model maintained a 98% success rate.

Training reward curves demonstrate that the hierarchical hDDQN with LSTM and PID integration achieves faster convergence and higher total rewards.

Notably, the use of the PID controller for waypoint tracking resulted in 0% lane invasion, ensuring the vehicle remained within its intended path—a common failure point for pure RL agents.

Conclusion

This research demonstrates that hybridizing RL for high-level decision-making with PID control for low-level execution effectively bridges the gap between AI and classical engineering. While the current study focused on lane-change scenarios, future work will expand the library of options to include complex interactions like intersections and roundabouts. Additionally, replacing the PID controller with Model Predictive Control (MPC) could further enhance performance by better accounting for vehicle dynamics.

Summary updated

BibTeX
@inproceedings{naveed2021trajectory,
  author = {Kaleb Ben Naveed and Zhiqian Qiao and John M. Dolan},
  title = {{Trajectory Planning for Autonomous Vehicles Using Hierarchical Reinforcement Learning}},
  booktitle = {ITSC},
  year = {2021},
  doi = {10.1109/itsc48978.2021.9564634},
}
Figure