Safe Reinforcement Learning via Probabilistic Logic Shields

Abstract

Safe Reinforcement learning (Safe RL) aims at learning optimal policies while staying safe. A popular solution to Safe RL is shielding, which uses a logical safety specification to prevent an RL agent from taking unsafe actions. However, traditional shielding techniques are difficult to integrate with continuous, end-to-end deep RL methods. To this end, we introduce Probabilistic Logic Policy Gradient (PLPG). PLPG is a model-based Safe RL technique that uses probabilistic logic programming to model logical safety constraints as differentiable functions. Therefore, PLPG can be seamlessly applied to any policy gradient algorithm while still providing the same convergence guarantees. In our experiments, we show that PLPG learns safer and more rewarding policies compared to other state-of-the-art shielding techniques.

Cite

Text

Yang et al. "Safe Reinforcement Learning via Probabilistic Logic Shields." International Joint Conference on Artificial Intelligence, 2023. doi:10.24963/IJCAI.2023/637

Markdown

[Yang et al. "Safe Reinforcement Learning via Probabilistic Logic Shields." International Joint Conference on Artificial Intelligence, 2023.](https://mlanthology.org/ijcai/2023/yang2023ijcai-safe/) doi:10.24963/IJCAI.2023/637

BibTeX

@inproceedings{yang2023ijcai-safe,
  title     = {{Safe Reinforcement Learning via Probabilistic Logic Shields}},
  author    = {Yang, Wen-Chi and Marra, Giuseppe and Rens, Gavin and De Raedt, Luc},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year      = {2023},
  pages     = {5739-5749},
  doi       = {10.24963/IJCAI.2023/637},
  url       = {https://mlanthology.org/ijcai/2023/yang2023ijcai-safe/}
}