Abstract
Reinforcement Learning (RL) agents often struggle with generalization, frequently failing when encountering "edge cases" outside their training distribution. This paper introduces FRARL (Falsification-Based Robust Adversarial Reinforcement Learning), a framework that replaces traditional, handcrafted adversarial reward functions with formal safety specifications. By utilizing temporal logic falsification to automatically discover critical scenarios during training, FRARL produces autonomous driving policies that demonstrate significantly higher robustness and fewer safety violations in unseen environments compared to standard adversarial methods.
The Challenge of Robustness in RL
While RL agents can achieve high performance in standard simulations, they are notorious for overfitting. In real-world applications like autonomous driving, encountering a distribution shift or an "edge case" can lead to catastrophic failure.
To address this, researchers previously proposed Robust Adversarial RL (RARL), which employs a second "adversary" network to stress-test the main agent. However, RARL relies heavily on complex reward engineering. Designing an adversary's reward function that effectively mimics realistic traffic violations is difficult; if the reward is poorly tuned, the training may fail to converge or produce an adversary that is too weak to be useful.
The FRARL Framework
FRARL addresses the bottleneck of reward engineering by swapping the neural-network adversary for a safety falsification method. The architecture is built on three core components:
- Metric Temporal Logic (MTL): Instead of scalar rewards, safety requirements (e.g., "never collide") are defined using MTL. This allows for the formal expression of complex, time-dependent rules.
- The Falsification Adversary: The framework uses falsification tools, such as the Cross-Entropy Method and S-Taliro, to search for initial conditions and input sequences that minimize the system's robustness metric. Essentially, the adversary becomes an optimization algorithm tasked with finding the exact scenarios that cause the RL agent to fail.
- The Training Loop: The agent is initially trained using standard Proximal Policy Optimization (PPO). Once a baseline is established, the falsifier begins identifying scenarios where the policy violates MTL specs, and the agent is fine-tuned in these high-stress environments.
Experimental Evaluation
The authors evaluated FRARL using the HighD Dataset (naturalistic vehicle trajectories) and synthetic random scenarios to test longitudinal control systems like Braking Assistance (BA) and Adaptive Cruise Control (ACC).
Key Results
- Safety Violations: In HighD testing, the FRARL-trained ACC system achieved a 0% collision rate, outperforming the RARL agent (0.17% violation rate) and the baseline PPO agent (0.24%).
- Impact of Falsification: As shown in the training curves, the introduction of the falsifier leads to a dramatic reduction in safe distance violations compared to both standard PPO and RARL.
- Generalization: FRARL maintained its superior safety record in completely random scenarios, indicating it learned general safety principles rather than memorizing specific dataset trajectories.
Conclusion and Future Work
FRARL demonstrates that formal logic is often superior to reward engineering for defining adversarial behavior. By treating the adversary's task as a direct optimization problem, the framework achieves greater computational stability and better generalization to worst-case scenarios. Future research will focus on expanding the framework to lateral control (lane changes) and integrating more complex traffic rules into the MTL specifications.
Summary updated