Introduction
Autonomous driving has made significant strides in lane following, yet executing safe and efficient lane changes in dense traffic remains a complex challenge. This task is inherently multi-scale, requiring high-level strategic reasoning to determine safety and timing alongside low-level tactical precision for steering and acceleration. Standard Deep Reinforcement Learning (DRL) approaches often struggle with this complexity, typically employing flat policies that fail to distinguish between strategic decisions and execution. Furthermore, these models often process visual input uniformly, leading to "noisy" learning from irrelevant environmental details.
This paper proposes a hierarchical DRL framework that integrates a structured action space with temporal and spatial attention mechanisms. By bridging the gap between high-level decision-making and low-level control, the model focuses on critical road features and historical context to outperform standard baselines.
Methodology
The proposed architecture is built upon the Deep Deterministic Policy Gradient (DDPG) actor-critic framework, enhanced by three core innovations: a hierarchical action space, spatial attention, and temporal attention.
Hierarchical Action Space
To manage the multi-scale nature of driving, the "Actor" network is designed with a hierarchical structure. Instead of a single flat output, the model selects from three discrete high-level actions: Left Lane Change, Lane Following, and Right Lane Change. Each high-level choice is associated with continuous low-level parameters for Steering Angle and Acceleration/Brake Rate. This decomposition allows the network to develop specialized sub-policies for distinct maneuvers, simplifying the learning process.
Attention Mechanisms
To improve focus and handle the partially observable nature of driving, the model incorporates dual attention mechanisms:
- Spatial Attention: A "soft" attention mask is applied over CNN feature maps, forcing the agent to prioritize relevant regions—such as lead vehicles and lane markings—while ignoring background noise like the sky.
- Temporal Attention: Utilizing an LSTM network, the model processes a sequence of past frames. The temporal attention mechanism weights these frames to identify critical historical moments, such as a vehicle entering a blind spot, which are essential for inferring velocity and intent.
The entire system is end-to-end trainable, ensuring that strategic decisions and tactical execution are optimized in tandem.
Experimental Evaluation
The framework was evaluated using TORCS (The Open Racing Car Simulator) across five diverse tracks featuring varying lane counts, curves, and lighting conditions. To simulate realistic complexity, AI-controlled vehicles with randomized aggressive and conservative behaviors were introduced. The agent processed a 320x240 pixel front-view camera feed at 5Hz.
Key Results
The combined hierarchical and attention-based approach (referred to as "Comb") demonstrated significant performance gains over the baseline DDPG:
- Efficiency: Average speed increased from 16.7 m/s to 23.2 m/s.
- Maneuverability: Successful lane changes per episode rose from 13.2 to 17.2.
- Reliability: The overall success rate for completing track loops improved from 67.2% to 73.5%.
- Safety: Despite higher speeds, the model achieved higher total rewards with fewer collisions, indicating a more robust policy.
Discussion and Conclusion
A key insight from this research is that hierarchy simplifies learning; by separating "what to do" from "how to do it," the model maintains stable lane-following while refining complex overtaking maneuvers. Additionally, the attention maps provide a degree of explainability, showing the model "looking" at lead vehicles and lane markers in a manner similar to human drivers.
However, limitations remain. Failures often occurred during high-speed sharp turns or when visibility was occluded. Future work will focus on bridging the simulation-to-reality gap and exploring multi-agent interactions where surrounding vehicles are also adaptive learning agents.
Summary updated