Provable Traffic Rule Compliance in Safe Reinforcement Learning on the Open Sea
Hanna Krasowski, Matthias Althoff
TL;DR
This work tackles the challenge of enforcing traffic-rule compliance in reinforcement learning for autonomous vessels operating on the open sea. It introduces a provably safe RL framework that integrates temporal-logic formalizations of COLREGS into an online safety verifier, realized through a rule-compliant statechart and an emergency controller. Actions are restricted to a verified set $\mathcal{A}_s$ via action masking, ensuring that learned policies produce trajectories that satisfy the rulebook $\langle \Phi, \leq \rangle$. Experimental results demonstrate that the safe agent achieves zero collisions and zero rule violations in both handcrafted and recorded traffic scenarios, while baseline and rule-informed agents suffer from safety violations when verification is active, underscoring the practical impact of provable safety in maritime RL.
Abstract
For safe operation, autonomous vehicles have to obey traffic rules that are set forth in legal documents formulated in natural language. Temporal logic is a suitable concept to formalize such traffic rules. Still, temporal logic rules often result in constraints that are hard to solve using optimization-based motion planners. Reinforcement learning (RL) is a promising method to find motion plans for autonomous vehicles. However, vanilla RL algorithms are based on random exploration and do not automatically comply with traffic rules. Our approach accomplishes guaranteed rule-compliance by integrating temporal logic specifications into RL. Specifically, we consider the application of vessels on the open sea, which must adhere to the Convention on the International Regulations for Preventing Collisions at Sea (COLREGS). To efficiently synthesize rule-compliant actions, we combine predicates based on set-based prediction with a statechart representing our formalized rules and their priorities. Action masking then restricts the RL agent to this set of verified rule-compliant actions. In numerical evaluations on critical maritime traffic situations, our agent always complies with the formalized legal rules and never collides while achieving a high goal-reaching rate during training and deployment. In contrast, vanilla and traffic rule-informed RL agents frequently violate traffic rules and collide even after training.
