Introduction
Autonomous vehicles (AVs) typically operate under the assumption that traffic rules are absolute. However, real-world driving frequently presents "anomaly" scenarios where strict adherence to rules leads to deadlocks. For instance, if a vehicle is stalled in a single-lane road with a solid line, an AV following a rigid "never cross solid lines" rule would remain stuck indefinitely. Navigating these situations requires the ability to safely execute rule exceptions—prioritizing progress and safety over minor traffic violations.
Standard Reinforcement Learning (RL) approaches struggle with these scenarios due to conflicting reward signals and the high complexity of mapping raw control inputs (steering, throttle) to multi-second maneuvers. This paper introduces Informed Reinforcement Learning, a framework designed to handle hierarchical rule exceptions by integrating machine-readable rulebooks and parametric trajectory generation.
The Informed RL Framework
The proposed architecture addresses the limitations of traditional RL through three primary pillars:
1. Hierarchical Rulebooks via Linear Temporal Logic (LTL)
Traffic rules are formalized using LTL, allowing them to be organized into a priority hierarchy (e.g., "Avoid Collisions" > "Stay in Lane"). A "situation awareness" module monitors for anomalies. When a blockage is detected, the framework dynamically adjusts the hierarchy coefficients ($\rho$) in the reward function. This "relaxes" lower-priority constraints, such as lane-keeping, to allow the agent to prioritize higher-level goals like collision avoidance and reaching the destination.
2. Trajectory Generation in Frenet Space
Instead of outputting low-level control commands, the RL agent selects parameters—velocity ($v$), lateral offset ($d$), and time ($t$)—to define a trajectory in Frenet coordinates (relative to the road's center line). This shift in the action space ensures that the agent's decisions result in physically feasible and smooth maneuvers, which are then executed by a downstream PID controller.
3. Curriculum Learning
Agents are trained in a two-stage process. They first master basic driving in nominal scenarios. Once a baseline of competence is established, they are introduced to anomaly scenarios where they must learn to balance rule-following with necessary exceptions.
Experimental Evaluation
The framework was evaluated in the CARLA simulation environment using a new benchmark of 1,000 anomaly scenarios. In these tests, the ego vehicle's path is blocked, necessitating a controlled crossing of a solid line into an oncoming lane. The agent processes high-dimensional sensory data via Bird’s-Eye View (BEV) RGB images.
The researchers compared several configurations, including a baseline using raw controls and versions utilizing only the rulebook or only trajectory generation. The results indicated that the combination of DreamerV3 (a model-based RL algorithm) with both the hierarchical rulebook and parametric trajectory generation achieved the highest performance metrics, specifically in "Arrived Distance" and "Finished Score."
Key Insights
- Parametric Actions: Moving from raw controls to trajectory parameters significantly simplifies the learning problem and produces more human-like, smooth behavior.
- Dynamic Rewards: A static reward function is insufficient for complex driving. By allowing the rulebook to "relax" constraints during detected anomalies, the agent learns that breaking a rule can be a strategic tool for progress.
- Model-Based Learning: The superiority of DreamerV3 suggests that an internal model of world dynamics is essential for planning the complex, multi-step maneuvers required for overtaking and lane-re-entry.
Conclusion and Future Directions
Informed Reinforcement Learning provides a robust path forward for AVs to handle the "messiness" of real-world traffic. While the current implementation relies on ground-truth data for situation awareness and uses a discrete action space for trajectories, future work aims to integrate vision-based perception and continuous action spaces. Expanding the rulebook to encompass the full complexity of real-world traffic laws remains a key challenge for scaling this approach.
Summary updated