Proceedings

Rule-Guided Reinforcement Learning Policy Evaluation and Improvement

Download BibTeX Cite

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

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

Abstract

We consider the challenging problem of using domain knowledge to improve deep reinforcement learning policies. To this end, we propose LEGIBLE, a novel approach, following a multi-step process, which starts by mining rules from a deep RL policy, constituting a partially symbolic representation. These rules describe which decisions the RL policy makes and which it avoids making. In the second step, we generalize the mined rules using domain knowledge expressed as metamorphic relations. We adapt these relations from software testing to RL to specify expected changes of actions in response to changes in observations. The third step is evaluating generalized rules to determine which generalizations improve performance when enforced. These improvements show weaknesses in the policy, where it has not learned the general rules and thus can be improved by rule guidance. LEGIBLE supported by metamorphic relations provides a principled way of expressing and enforcing domain knowledge about RL environments. We show the efficacy of our approach by demonstrating that it effectively finds weaknesses, accompanied by explanations of these weaknesses, in eleven RL environments and by showcasing that guiding policy execution with rules improves performance w.r.t. gained reward.

  1. [Alshiekh et al., 2018] Mohammed Alshiekh, Roderick Bloem, Rüdiger Ehlers, Bettina Könighofer, Scott Niekum, and Ufuk Topcu. Safe reinforcement learning via shielding. In AAAI, pages 2669-2678. AAAI Press, 2018.
  2. [Apté and Weiss, 1997] Chidanand Apté and Sholom M. Weiss. Data mining with decision trees and decision rules. Future Gener. Comput. Syst., 13(2-3):197-210, 1997.
  3. [Bastani et al., 2018] Osbert Bastani, Yewen Pu, and Ar- mando Solar-Lezama. Verifiable reinforcement learning via policy extraction. In NeurIPS, pages 2499-2509, 2018.
  4. [Bewley and Lawry, 2021] Tom Bewley and Jonathan Lawry. Tripletree: A versatile interpretable representation of black box agents and their environments. In AAAI, pages 11415-11422. AAAI Press, 2021.
  5. [Biagiola and Tonella, 2024] Matteo Biagiola and Paolo Tonella. Testing of deep reinforcement learning agents with surrogate models. ACM Trans. Softw. Eng. Methodol., 33(3):73:1-73:33, 2024.
  6. [Chandak et al., 2021] Yash Chandak, Scott Niekum, Bruno C. da Silva, Erik G. Learned-Miller, Emma Brunskill, and Philip S. Thomas. Universal off-policy evaluation. In NeurIPS, pages 27475-27490, 2021.
  7. [Chaslot et al., 2008] Guillaume Chaslot, Sander Bakkes, Istvan Szita, and Pieter Spronck. Monte-carlo tree search: A new framework for game AI. In AIIDE. The AAAI Press, 2008.
  8. [Chen et al., 2018] Tsong Yueh Chen, Fei-Ching Kuo, Huai Liu, Pak-Lok Poon, Dave Towey, T. H. Tse, and Zhi Quan Zhou. Metamorphic testing: A review of challenges and opportunities. ACM Comput. Surv., 51(1):4:1-4:27, 2018.
  9. [Cohen, 1995] William W. Cohen. Fast effective rule induc- tion. In ICML, pages 115-123.
  10. Morgan Kaufmann, 1995.
  11. [Delfosse et al., 2023] Quentin Delfosse, Hikaru Shindo, Devendra Singh Dhami, and Kristian Kersting. In- terpretable and explainable logical policies via neurally guided symbolic abstraction. In NeurIPS, 2023.
  12. [DeNero and Klein, 2010] John DeNero and Dan Klein. Teaching introductory artificial intelligence with Pac-Man. Proceedings of the AAAI Conference on Artificial Intelli- gence, 24(3):1885-1889, July 2010.
  13. [Dong et al., 2019] Honghua Dong, Jiayuan Mao, Tian Lin, Chong Wang, Lihong Li, and Denny Zhou. Neural logic machines. In ICLR. OpenReview.net, 2019.
  14. [Dwarakanath et al., 2018] Anurag Dwarakanath, Manish Ahuja, Samarth Sikand, Raghotham M. Rao, R. P. Ja- gadeesh Chandra Bose, Neville Dubash, and Sanjay Pod- der. Identifying implementation bugs in machine learning based image classifiers using metamorphic testing. In IS- STA, pages 118-128. ACM, 2018.
  15. [Falcone, 2010] Yliès Falcone. You should better enforce than verify. In RV, volume 6418 of LNCS, pages 89-105. Springer, 2010.
  16. [Giacomo et al., 2020] Giuseppe De Giacomo, Luca Iocchi, Marco Favorito, and Fabio Patrizi. Restraining bolts for reinforcement learning agents. In AAAI, pages 13659- 13662. AAAI Press, 2020.
  17. [Guo and Wei, 2022] Wei Guo and Peng Wei. Explainable deep reinforcement learning for aircraft separation assur- ance. In DASC, pages 1-10, 2022.
  18. [Guo et al., 2020] Qianyu Guo, Xiaofei Xie, Yi Li, Xiaoyu Zhang, Yang Liu, Xiaohong Li, and Chao Shen. Audee: Automated testing for deep learning frameworks. In ASE, pages 486-498. IEEE, 2020.
  19. [Hussein et al., 2017] Ahmed Hussein, Mohamed Medhat Gaber, Eyad Elyan, and Chrisina Jayne. Imitation learn- ing: A survey of learning methods. ACM Comput. Surv., 50(2):21:1-21:35, 2017.
  20. [Jiang and Li, 2016] Nan Jiang and Lihong Li. Doubly ro- bust off-policy value evaluation for reinforcement learn- ing. In ICML, volume 48 of JMLR Workshop and Confer- ence Proceedings, pages 652-661. JMLR.org, 2016.
  21. [Jiang and Luo, 2019] Zhengyao Jiang and Shan Luo. Neu- ral logic reinforcement learning. In ICML, volume 97 of Proceedings of Machine Learning Research, pages 3110- 3119. PMLR, 2019.
  22. [Leurent, 2018] Edouard Leurent. An environment for au- tonomous driving decision-making. https://github.com/ eleurent/highway-env, 2018. Link
  23. [Li et al., 2023] Zhuo Li, Xiongfei Wu, Derui Zhu, Mingfei Cheng, Siyuan Chen, Fuyuan Zhang, Xiaofei Xie, Lei Ma, and Jianjun Zhao. Generative model-based testing on decision-making policies. In ASE, pages 243-254. IEEE, 2023.
  24. [Lundberg and Lee, 2017] Scott M. Lundberg and Su-In Lee. A unified approach to interpreting model predictions. In NeurIPS, pages 4765-4774, 2017.
  25. [Marco Tulio Ribeiro et al., 2021] Marco Tulio Ribeiro et al. Python implementation of LIME, 2021. Available at GitHub: https://github.com/marcotcr/lime. Link
  26. [Milani et al., 2022] Stephanie Milani, Zhicheng Zhang, Nicholay Topin, Zheyuan Ryan Shi, Charles A. Kamhoua, Evangelos E. Papalexakis, and Fei Fang. MAVIPER: learning decision tree policies for interpretable multi-agent reinforcement learning. In ECML PKDD, volume 13716 of LNCS, pages 251-266. Springer, 2022.
  27. [Milani et al., 2024] Stephanie Milani, Nicholay Topin, Manuela Veloso, and Fei Fang. Explainable reinforcement learning: A survey and comparative review. ACM Comput. Surv., 56(7):168:1-168:36, 2024.
  28. [Mnih et al., 2015] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Belle- mare, Alex Graves, Martin A. Riedmiller, Andreas Fid- jeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Has- sabis. Human-level control through deep reinforcement learning. Nat., 518(7540):529-533, 2015.
  29. [Molnar, 2022] Christoph Molnar. Interpretable Machine Learning. 2 edition, 2022.
  30. [Nielsen, 2019] Peter Heine Nielsen. The exciting im- pact of a game changer: When Magnus met AlphaZero, 2019. Appeared in New in Chess and published online at https://www.newinchess.com/media/wysiwyg/product pdf/872.pdf. Link
  31. [Odriozola-Olalde et al., 2023] Haritz Odriozola-Olalde, Maider Zamalloa, and Nestor Arana-Arexolaleiba. Shielded reinforcement learning: A review of reactive methods for safe learning. In SII, pages 1-8. IEEE, 2023.
  32. [Oriol Vinyals et al., 2019] Oriol Vinyals et al. Grandmaster level in StarCraft II using multi-agent reinforcement learn- ing. Nat., 575(7782):350-354, 2019.
  33. [Raffin et al., 2021] Antonin Raffin, Ashley Hill, Adam Gleave, Anssi Kanervisto, Maximilian Ernestus, and Noah Dormann. Stable-baselines3: Reliable reinforcement learning implementations. Journal of Machine Learning Research, 22(268):1-8, 2021.
  34. [Ribeiro et al., 2016] Marco Túlio Ribeiro, Sameer Singh, and Carlos Guestrin. "Why should I trust you?": Explain- ing the predictions of any classifier. In SIGKDD, pages 1135-1144. ACM, 2016.
  35. [Silver et al., 2016] David Silver, Aja Huang, Chris J. Mad- dison, Arthur Guez, Laurent Sifre, George van den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Ve- davyas Panneershelvam, Marc Lanctot, Sander Dieleman, Dominik Grewe, John Nham, Nal Kalchbrenner, Ilya Sutskever, Timothy P. Lillicrap, Madeleine Leach, Koray Kavukcuoglu, Thore Graepel, and Demis Hassabis. Mas- tering the game of Go with deep neural networks and tree search. Nat., 529(7587):484-489, 2016.
  36. [Silver et al., 2018] David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, Timothy Lillicrap, Karen Simonyan, and Demis Hassabis. A general reinforcement learning algo- rithm that masters chess, shogi, and Go through self-play. Science, 362(6419):1140-1144, 2018.
  37. [Tappler et al., 2022] Martin Tappler, Filip Cano Córdoba, Bernhard K. Aichernig, and Bettina Könighofer. Search- based testing of reinforcement learning. In IJCAI, pages 503-510. ijcai.org, 2022.
  38. [Tappler et al., 2024a] Martin Tappler, Edi Muskardin, Bern- hard K. Aichernig, and Bettina Könighofer. Learning en- vironment models with continuous stochastic dynamics - with an application to deep RL testing. In IEEE Con- ference on Software Testing, Verification and Validation, ICST 2024, pages 197-208. IEEE, 2024.
  39. [Tappler et al., 2024b] Martin Tappler, Andrea Pferscher, Bernhard K. Aichernig, and Bettina Könighofer. Learning and repair of deep reinforcement learning policies from fuzz-testing data. In ICSE, pages 6:1-6:13. ACM, 2024.
  40. [Torrey and Shavlik, 2010] Lisa Torrey and Jude Shavlik. Transfer learning. In Handbook of Research on Machine Learning Applications and Trends: Algorithms, Methods, and Techniques, pages 242-264. IGI Global, 2010.
  41. [Towers et al., 2024] Mark Towers, Ariel Kwiatkowski, Jor- dan Terry, John U. Balis, Gianluca De Cola, Tristan Deleu, Manuel Goulão, Andreas Kallinteris, Markus Krimmel, Arjun KG, Rodrigo Perez-Vicente, Andrea Pierré, Sander Schulhoff, Jun Jet Tai, Hannah Tan, and Omar G. Younis. Gymnasium: A standard interface for reinforcement learn- ing environments, 2024.
  42. [Uehara et al., 2022] Masatoshi Uehara, Chengchun Shi, and Nathan Kallus. A review of off-policy evaluation in reinforcement learning. CoRR, abs/2212.06355, 2022.
  43. [van Hasselt et al., 2016] Hado van Hasselt, Arthur Guez, and David Silver. Deep reinforcement learning with dou- ble Q-learning. In AAAI, pages 2094-2100. AAAI Press, 2016.
  44. [Watkins and Dayan, 1992] Christopher J. C. H. Watkins and Peter Dayan. Technical note Q-learning. Mach. Learn., 8:279-292, 1992.
  45. [Welch, 1947] B. L. Welch. The generalization of 'student's' problem when several different population variances are involved. Biometrika, 34(1/2):28-35, 1947.
  46. [Xie et al., 2011] Xiaoyuan Xie, Joshua Wing Kei Ho, Chris- tian Murphy, Gail E. Kaiser, Baowen Xu, and Tsong Yueh Chen. Testing and validating machine learning classifiers by metamorphic testing. J. Syst. Softw., 84(4):544-558, 2011.
  47. [Zambaldi et al., 2018] Vinícius Flores Zambaldi, David Ra- poso, Adam Santoro, Victor Bapst, Yujia Li, Igor Babuschkin, Karl Tuyls, David P. Reichert, Timothy P. Lillicrap, Edward Lockhart, Murray Shanahan, Victoria Langston, Razvan Pascanu, Matthew M. Botvinick, Oriol Vinyals, and Peter W. Battaglia. Relational deep reinforce- ment learning. CoRR, abs/1806.01830, 2018.
  48. [Zhang et al., 2022] Jie M. Zhang, Mark Harman, Lei Ma, and Yang Liu. Machine learning testing: Survey, land- scapes and horizons. IEEE Trans. Software Eng., 48(2):1- 36, 2022.
  49. [Zolfagharian et al., 2023] Amirhossein Zolfaghar- ian, Manel Abdellatif, Lionel C. Briand, Mojtaba Bagherzadeh, and Ramesh S. A search-based testing approach for deep reinforcement learning agents. IEEE Trans. Software Eng., 49(7):3715-3735, 2023.

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

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