Proceedings

SPoRt - Safe Policy Ratio: Certified Training and Deployment of Task Policies in Model-Free RL

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 4976-4984.

https://doi.org/10.24963/ijcai.2025/554

Abstract

To apply reinforcement learning to safety-critical applications, we ought to provide safety guarantees during both policy training and deployment. In this work we present novel theoretical results that provide a bound on the probability of violating a safety property for a new task-specific policy in a model-free, episodic setup: the bound, based on a 'maximum policy ratio' that is computed with respect to a 'safe' base policy, can also be more generally applied to temporally-extended properties (beyond safety) and to robust control problems. We thus present SPoRt, which also provides a data-driven approach for obtaining such a bound for the base policy, based on scenario theory, and which includes Projected PPO, a new projection-based approach for training the task-specific policy while maintaining a user-specified bound on property violation. Hence, SPoRt enables the user to trade off safety guarantees in exchange for task-specific performance. Accordingly, we present experimental results demonstrating this trade-off, as well as a comparison of the theoretical bound to posterior bounds based on empirical violation rates.

  1. [Achiam et al., 2017] Joshua Achiam, David Held, Aviv Tamar, and Pieter Abbeel. Constrained policy optimiza- tion. In Proceedings of the 34th International Confer- ence on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 22-31. PMLR, 06-11 Aug 2017.
  2. [Agrawal et al., 2018] Akshay Agrawal, Robin Verschueren, Steven Diamond, and Stephen Boyd. A rewriting system for convex optimization problems. Journal of Control and Decision, 5(1):42-60, 2018.
  3. [Alshiekh et al., 2018] Mohammed Alshiekh, Roderick Bloem, Rüdiger Ehlers, Bettina Könighofer, Scott Niekum, and Ufuk Topcu. Safe reinforcement learning via shielding. Proceedings of the AAAI Conference on Artificial Intelligence, 32(1), April 2018.
  4. [Altman, 2021] Eitan Altman. Constrained Markov Deci- sion Processes: Stochastic Modeling. Routledge, Boca Raton, 1 edition, December 2021.
  5. [Calafiore and Campi, 2006] G.C. Calafiore and M.C. Campi. The scenario approach to robust control design. IEEE Transactions on Automatic Control, 51(5):742-753, May 2006.
  6. [Campi and Garatti, 2008] M. C. Campi and S. Garatti. The exact feasibility of randomized solutions of uncer- tain convex programs. SIAM Journal on Optimization, 19(3):1211-1230, 2008.
  7. [Campi and Garatti, 2010] M. C. Campi and S. Garatti. A sampling-and-discarding approach to chance-constrained optimization: Feasibility and optimality. Journal of Opti- mization Theory and Applications, 148(2):257-280, Octo- ber 2010.
  8. [Campi and Garatti, 2018] Marco C Campi and Simone Garatti. Introduction to the Scenario Approach. Society for Industrial and Applied Mathematics, Philadelphia, PA, November 2018.
  9. [Chow et al., 2018] Yinlam Chow, Ofir Nachum, Edgar Duenez-Guzman, and Mohammad Ghavamzadeh. A Lyapunov-based Approach to Safe Reinforcement Learn- ing. In Advances in Neural Information Processing Sys- tems, volume 31.
  10. Curran Associates, Inc., 2018.
  11. [Chu et al., 2020] Tianshu Chu, Jie Wang, Lara Codeca, and Zhaojian Li. Multi-Agent Deep Reinforcement Learning for Large-Scale Traffic Signal Control. IEEE Transactions on Intelligent Transportation Systems, 21(3):1086-1095, March 2020.
  12. [Diamond and Boyd, 2016] Steven Diamond and Stephen Boyd. CVXPY: A Python-embedded modeling language for convex optimization. Journal of Machine Learning Re- search, 17(83):1-5, 2016.
  13. [Haarnoja et al., 2018] Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Proceedings of the 35th Inter- national Conference on Machine Learning, ICML 2018, Stockholmsmässan, Stockholm, Sweden, July 10-15, 2018, volume 80 of Proceedings of Machine Learning Research, pages 1856-1865. PMLR, 2018.
  14. [Hasanbeig et al., 2023] Hosein Hasanbeig, Daniel Kroen- ing, and Alessandro Abate. Certified reinforcement learning with logic guidance. Artificial Intelligence, 322:103949, September 2023.
  15. [Hsu et al., 2024] Kai-Chieh Hsu, Haimin Hu, and Jaime F. Fisac. The safety filter: A unified view of safety-critical control in autonomous systems. Annual Review of Con- trol, Robotics, and Autonomous Systems, 7(1):47-72, July 2024.
  16. [Hwangbo et al., 2019] Jemin Hwangbo, Joonho Lee, Alexey Dosovitskiy, Dario Bellicoso, Vassilios Tsounis, Vladlen Koltun, and Marco Hutter. Learning agile and dynamic motor skills for legged robots. Science Robotics, 4(26):eaau5872, January 2019.
  17. [Isele et al., 2018] David Isele, Alireza Nakhaei, and Kikuo Fujimura. Safe Reinforcement Learning on Autonomous Vehicles. In 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 1-6, Madrid, October 2018. IEEE.
  18. [Ji et al., 2023] Jiaming Ji, Borong Zhang, Jiayi Zhou, Xue- hai Pan, Weidong Huang, Ruiyang Sun, Yiran Geng, Yi- fan Zhong, Josef Dai, and Yaodong Yang. Safety gymna- sium: A unified safe reinforcement learning benchmark. In Thirty-seventh Conference on Neural Information Pro- cessing Systems Datasets and Benchmarks Track, 2023.
  19. [Kober and Peters, 2014] Jens Kober and Jan Peters. Rein- forcement Learning in Robotics: A Survey, volume 97 of Springer Tracts in Advanced Robotics, page 9-67. Springer International Publishing, Cham, 2014.
  20. [Konighofer et al., 2023] Bettina Konighofer, Julian Rudolf, Alexander Palmisano, Martin Tappler, and Roderick Bloem. Online shielding for reinforcement learn- ing. Innovations in Systems and Software Engineering, 19(4):379-394, December 2023.
  21. [Lee et al., 2023] Hyosun Lee, Yohee Han, and Youngchan Kim. Reinforcement learning for traffic signal control: In- corporating a virtual mesoscopic model for depicting over- saturated traffic conditions. Engineering Applications of Artificial Intelligence, 126:107005, November 2023.
  22. [Li et al., 2022] Guofa Li, Yifan Yang, Shen Li, Xingda Qu, Nengchao Lyu, and Shengbo Eben Li. Decision making of autonomous vehicles in lane change scenarios: Deep reinforcement learning approaches with risk awareness. Transportation Research Part C: Emerging Technologies, 134:103452, January 2022.
  23. [Ma et al., 2021] Xiaobai Ma, Jiachen Li, Mykel J. Kochen- derfer, David Isele, and Kikuo Fujimura. Reinforce- ment Learning for Autonomous Driving with Latent State Inference and Spatial-Temporal Relationships. In 2021 IEEE International Conference on Robotics and Automa- tion (ICRA), pages 6064-6071, Xi'an, China, May 2021. IEEE.
  24. [Mason and Grijalva, 2019] Karl Mason and Santiago Gri- jalva. A review of reinforcement learning for autonomous building energy management. Computers & Electrical En- gineering, 78:300-312, 2019.
  25. [Milosevic et al., 2024] Nikola Milosevic, Johannes Müller, and Nico Scherf. Embedding Safety into RL: A New Take on Trust Region Methods. arXiv, November 2024.
  26. [Pnueli, 1977] Amir Pnueli. The temporal logic of programs. In 18th Annual Symposium on Foundations of Computer Science (sfcs 1977), page 46-57, Providence, RI, USA, September 1977. IEEE.
  27. [Schulman et al., 2015] John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In Proceedings of the 32nd In- ternational Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages 1889-1897, Lille, France, 07-09 Jul 2015. PMLR.
  28. [Schulman et al., 2017] John Schulman, Filip Wolski, Pra- fulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv, 2017.
  29. [Singh et al., 2022] Bharat Singh, Rajesh Kumar, and Vinay Pratap Singh. Reinforcement learning in robotic ap- plications: a comprehensive survey. Artificial Intelligence Review, 55(2):945-990, February 2022.
  30. [Soudjani and Abate, 2012] S. Esmaeil Zadeh Soudjani and A. Abate. Higher order approximations for verification of stochastic hybrid systems. In Proceedings of ATVA12, LNCS 7561, pages 416-434. Springer Verlag, 2012.
  31. [Soudjani and Abate, 2013] Sadegh Esmaeil Zadeh Soudjani and Alessandro Abate. Adaptive and sequential gridding procedures for the abstraction and verification of stochas- tic processes. SIAM Journal on Applied Dynamical Sys- tems, 12(2):921-956, January 2013.
  32. [Soudjani and Abate, 2015] Sadegh Esmaeil Zadeh Soudjani and Alessandro Abate. Quantitative approximation of the probability distribution of a markov process by formal ab- stractions. Logical Methods in Computer Science, Volume 11, Issue 3:1584, September 2015.
  33. [Sutton and Barto, 2014] Richard S. Sutton and Andrew Barto. Reinforcement learning: an introduction. Adap- tive computation and machine learning. The MIT Press, Cambridge, Massachusetts, nachdruck edition, 2014.
  34. [Tempo et al., 2005] R Tempo, Giuseppe Calafiore, and Fab- rizio Dabbene. Randomized algorithms for analysis and control of uncertain systems. Communications and con- trol engineering series. Springer, London, 2005.
  35. [Vertovec and Margellos, 2023] Nikolaus Vertovec and Kostas Margellos. State Aggregation for Distributed Value Iteration in Dynamic Programming. IEEE Control Systems Letters, 7:2269-2274, 2023.
  36. [Vertovec et al., 2024] Nikolaus Vertovec, Kostas Margellos, and Maria Prandini. Finite sample learning of moving tar- gets. arXiv, August 2024.
  37. [Vidyasagar, 2003] M. Vidyasagar. Learning and Generali- sation. Springer London, 2003.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards