Introduction
Training autonomous agents to navigate complex traffic requires a delicate balance between efficiency and safety. Traditional reinforcement learning (RL) approaches often struggle with the "timid agent" problem—where excessive collision penalties lead to overly cautious driving—or the "reckless agent" problem—where high speed rewards lead to frequent accidents. Furthermore, driving is inherently a partially observable task; a single frame of state data lacks the temporal context necessary to determine the velocity or intent of other vehicles. This paper introduces a robust framework using Recurrent Deterministic Policy Gradients (RDPG) and a specialized replay buffer system to address these challenges.
Methodology
Recurrent Deterministic Policy Gradients (RDPG)
To address partial observability, the authors replace standard feedforward layers with Long Short-Term Memory (LSTM) units in both the Actor and Critic networks. This architectural change allows the agent to maintain an internal state of temporal information, effectively "seeing" the acceleration and relative speeds of surrounding traffic.
Multi-Part Reward Function
The agent's behavior is shaped by a sophisticated reward function designed to provide continuous feedback:
- Lane-keeping: Encourages staying on the track and maintaining forward progress.
- Adaptive Reward: A sigmoid-based function tied to the distance to the vehicle ahead, encouraging the agent to match traffic speed without colliding.
- Overtaking Reward: Provides a bonus for passing other vehicles, with higher rewards for maintaining a safe margin during the maneuver.
Near and Far Replay Buffers
A common issue in RL for driving is "forgetting" or bias in the replay buffer. If an agent spends most of its time in heavy traffic, it may lose the ability to drive efficiently on open roads. The authors implement a dual-buffer system: a "Near" buffer for close-proximity interactions and a "Far" buffer for open-road scenarios. Sampling equally from both ensures a balanced training distribution.
Experimental Setup
The framework was evaluated using The Open Racing Car Simulator (TORCS). The agent's state space includes 19 track sensors, 36 opponent sensors (simulating LiDAR), and internal vehicle metrics (RPM, wheel spin). Training involved 16 traffic cars with varying velocities to simulate realistic, dynamic road conditions.
Results and Discussion
Training Efficiency
The dual-buffer system significantly improved sample efficiency. As shown in the performance metrics, the "Near and Far" buffer configuration allowed the agent to converge to a high reward in approximately 400 episodes, whereas a standard single-buffer system required over 1,200 episodes to achieve comparable performance.
Safety and Generalization
The RDPG agent demonstrated superior safety, achieving 50-60% fewer collisions than a standard DDPG baseline across various test tracks (CG1, CG2, Street1). Notably, the policy generalized well; agents trained in traffic moving at 25–35 km/hr successfully adapted to test environments with traffic speeds up to 105 km/hr.
Conclusion
By integrating recurrence into the DDPG architecture and employing a balanced replay strategy, this research demonstrates a path toward more natural and adaptive autonomous driving. Future work will focus on bridging the sim-to-real gap by incorporating raw visual data and testing against more complex, intelligent traffic behaviors.
Summary updated