On Explainability of Reinforcement Learning-Based Machine Learning Agents Trained with Proximal Policy Optimization That Utilizes Visual Sensor Data
Source abstract
Abstract
In this paper, we address the issues of the explainability of reinforcement learning-based machine learning agents trained with Proximal Policy Optimization (PPO) that utilizes visual sensor data. We propose an algorithm that allows an effective and intuitive approximation of the PPO-trained neural network (NN). We conduct several experiments to confirm our method’s effectiveness. Our proposed method works well for scenarios where semantic clustering of the scene is possible. Our approach is based on the solid theoretical foundation of Gradient-weighted Class Activation Mapping (GradCAM) and Classification and Regression Tree with additional proxy geometry heuristics. It excels in the explanation process in a virtual simulation system based on a video system with relatively low resolution. Depending on the convolutional feature extractor of the PPO-trained neural network, our method obtains 0.945 to 0.968 accuracy of approximation of the black-box model. The proposed method has important application aspects. Through its use, it is possible to estimate the causes of specific decisions made by the neural network due to the current state of the observed environment. This estimation makes it possible to determine whether the network makes decisions as expected (decision-making is related to the model’s observation of objects belonging to different semantic classes in the environment) and to detect unexpected, seemingly chaotic behavior that might be, for example, the result of data bias, bad design of the reward function or insufficient generalization abilities of the model. We publish all source codes so our experiments can be reproduced.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Explainable Artificial Intelligence (XAI) · Adversarial Robustness in Machine Learning · Anomaly Detection Techniques and Applications
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Faculty of Electrical Engineering, Automatics, Computer Science and Biomedical Engineering, AGH University of Krakow, Al. Mickiewicza 30, 30-059 Krakow, Poland
References (64)
Show source-provided references
1. Explainability of artificial intelligence methods, applications and challenges: A comprehensive survey10.1016/j.ins.2022.10.013 ↗
2. Gilpin, L.H., Bau, D., Yuan, B.Z., Bajwa, A., Specter, M., and Kagal, L. (2018, January 1–3). Explaining explanations: An overview of interpretability of machine learning. Proceedings of the 2018 IEEE 5th International Conference on Data Science and Advanced Analytics (DSAA), Turin, Italy.10.1109/DSAA.2018.00018 ↗
3. Holzinger, A., Saranti, A., Molnar, C., Biecek, P., and Samek, W. Explainable AI methods—A brief overview. Proceedings of the International Workshop on Extending Explainable AI Beyond Deep Models and Classifiers.
4. Lin, Y.S., Lee, W.C., and Celik, Z.B. (2021, January 14–18). What do you see? Evaluation of explainable artificial intelligence (XAI) interpretability through neural backdoors. Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, Singapore.10.1145/3447548.3467213 ↗
5. Towards human-centered explainable ai: A survey of user studies for model explanations10.1109/TPAMI.2023.3331846 ↗
6. Artificial intelligence explainability: The technical and ethical dimensions10.1098/rsta.2020.0363 ↗
7. Spartalis, C.N., Semertzidis, T., and Daras, P. (2023, January 25–29). Balancing XAI with Privacy and Security Considerations. Proceedings of the European Symposium on Research in Computer Security, The Hague, The Netherlands.10.1007/978-3-031-54129-2_7 ↗
8. Akhtar, M.A.K., Kumar, M., and Nayyar, A. (2024). Privacy and Security Considerations in Explainable AI. Towards Ethical and Socially Responsible Explainable AI: Challenges and Opportunities, Springer.10.1007/978-3-031-66489-2 ↗
9. Linardatos, P., Papastefanopoulos, V., and Kotsiantis, S. (2020). Explainable AI: A review of machine learning interpretability methods. Entropy, 23.10.3390/e23010018 ↗
10. Interpretable artificial intelligence: Why and when10.2214/AJR.19.22145 ↗
11. Hastie, T., Tibshirani, R., Friedman, J.H., and Friedman, J.H. (2009). The Elements of Statistical Learning: Data Mining, Inference, and Prediction, Springer.10.1007/978-0-387-84858-7 ↗
12. Interpretable and explainable machine learning: A methods-centric overview with concrete examples10.1002/widm.1493 ↗
13. Recent advances in trustworthy explainable artificial intelligence: Status, challenges, and perspectives10.1109/TAI.2021.3133846 ↗
14. Minh, D., Wang, H.X., Li, Y.F., and Nguyen, T.N. (2022). Explainable artificial intelligence: A comprehensive review. Artificial Intelligence Review, Springer.10.1007/s10462-021-10088-y ↗
15. Speith, T. (2022, January 21–24). A review of taxonomies of explainable artificial intelligence (XAI) methods. Proceedings of the 2022 ACM Conference on Fairness, Accountability, and Transparency, Seoul, Republic of Korea.10.1145/3531146.3534639 ↗
16. Explainable AI (XAI): Core ideas, techniques, and solutions10.1145/3561048 ↗
17. Gianfagna, L., and Di Cecco, A. (2021). Model-agnostic methods for XAI. Explainable AI with Python, Springer.10.1007/978-3-030-68640-6 ↗
18. Darias, J.M., Díaz-Agudo, B., and Recio-Garcia, J.A. (2021, January 13–16). A Systematic Review on Model-agnostic XAI Libraries. Proceedings of the ICCBR Workshops, Salamanca, Spain.
19. Explainable AI (XAI): A systematic meta-survey of current challenges and future opportunities10.1016/j.knosys.2023.110273 ↗
20. Survey on explainable ai: Techniques, challenges and open issues10.1016/j.eswa.2024.124710 ↗
21. Le, T.T.H., Prihatno, A.T., Oktian, Y.E., Kang, H., and Kim, H. (2023). Exploring local explanation of practical industrial AI applications: A systematic literature review. Appl. Sci., 13.10.3390/app13095809 ↗
22. Aechtner, J., Cabrera, L., Katwal, D., Onghena, P., Valenzuela, D.P., and Wilbik, A. (2022, January 18–23). Comparing user perception of explanations developed with XAI methods. Proceedings of the 2022 IEEE International Conference on Fuzzy Systems (FUZZ-IEEE), Padua, Italy.10.1109/FUZZ-IEEE55066.2022.9882743 ↗
23. Explaining deep neural networks: A survey on the global interpretation methods10.1016/j.neucom.2022.09.129 ↗
24. Ribeiro, M.T., Singh, S., and Guestrin, C. (2016, January 13–17). “ Why should i trust you?” Explaining the predictions of any classifier. . Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA.10.1145/2939672.2939778 ↗
25. Lundberg, S. (2017). A unified approach to interpreting model predictions. arXiv.
26. Ribeiro, M.T., Singh, S., and Guestrin, C. (2018, January 2–7). Anchors: High-precision model-agnostic explanations. Proceedings of the AAAI Conference on Artificial Intelligence, New Orleans, LO, USA.10.1609/aaai.v32i1.11491 ↗
27. Greedy function approximation: A gradient boosting machine10.1214/aos/1013203451 ↗
28. Peeking inside the black box: Visualizing statistical learning with plots of individual conditional expectation10.1080/10618600.2014.907095 ↗
29. Random forests10.1023/A:1010933404324 ↗
30. Freedman, D.A. (2009). Statistical Models: Theory and Practice, Cambridge University Press.10.1017/CBO9780511815867 ↗
31. Counterfactual explanations without opening the black box: Automated decisions and the GDPR
32. Simonyan, K. (2013). Deep inside convolutional networks: Visualising image classification models and saliency maps. arXiv.
33. Selvaraju, R.R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., and Batra, D. (2017, January 22–29). Grad-CAM: Visual Explanations From Deep Networks via Gradient-Based Localization. Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy.10.1109/ICCV.2017.74 ↗
34. Sutton, R.S. (2018). Reinforcement learning: An introduction. A Bradford Book, MIT Press.
35. Human-level control through deep reinforcement learning10.1038/nature14236 ↗
36. Tesauro, G. (1995). Td-gammon: A self-teaching backgammon program. Applications of Neural Networks, Springer.10.1007/978-1-4757-2379-3_11 ↗
37. Mastering the game of Go with deep neural networks and tree search10.1038/nature16961 ↗
38. Policy gradient methods for reinforcement learning with function approximation
39. Fuzzy decision tree function approximation in reinforcement learning
40. Silva, A., Gombolay, M., Killian, T., Jimenez, I., and Son, S.H. (2020, January 26–28). Optimization methods for interpretable differentiable decision trees applied to reinforcement learning. Proceedings of the International Conference on Artificial Intelligence and Statistics, PMLR, Online.
41. Wang, C., and Aouf, N. (2024). Explainable Deep Adversarial Reinforcement Learning Approach for Robust Autonomous Driving. IEEE Trans. Intell. Veh., 1–13.10.1109/TIV.2024.3379367 ↗
42. Shukla, I., Dozier, H.R., and Henslee, A.C. (2024, January 22–26). Learning behavior of offline reinforcement learning agents. Proceedings of the Artificial Intelligence and Machine Learning for Multi-Domain Operations Applications VI, National Harbor, MD, USA.10.1117/12.3014099 ↗
43. He, L., Nabil, A., and Song, B. (2020). Explainable deep reinforcement learning for UAV autonomous navigation. arXiv.10.1016/j.ast.2021.107052 ↗
44. Sarkar, S., Babu, A.R., Mousavi, S., Ghorbanpour, S., Gundecha, V., Guillen, A., Luna, R., and Naug, A. (2023, January 17–24). Rl-cam: Visual explanations for convolutional networks using reinforcement learning. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada.10.1109/CVPRW59228.2023.00400 ↗
45. Visitor: Visual interactive state sequence exploration for reinforcement learning10.1111/cgf.14839 ↗
46. Hatano, T., Tsuneda, T., Suzuki, Y., Imade, K., Shesimo, K., and Yamane, S. (2021, January 7–9). GBDT modeling of deep reinforcement learning agents using distillation. Proceedings of the 2021 IEEE International Conference on Mechatronics (ICM), Kashiwa, Japan.10.1109/ICM46511.2021.9385636 ↗
47. Explainability in deep reinforcement learning: A review into current methods and applications10.1145/3623377 ↗
48. Puiutta, E., and Veith, E.M. (2020, January 25–28). Explainable reinforcement learning: A survey. Proceedings of the International Cross-Domain Conference for Machine Learning and Knowledge Extraction, Dublin, Ireland.10.1007/978-3-030-57321-8_5 ↗
49. Wells, L., and Bednarz, T. (2021). Explainable ai and reinforcement learning—A systematic review of current approaches and trends. Front. Artif. Intell., 4.10.3389/frai.2021.550030 ↗
50. Explainable reinforcement learning: A survey and comparative review10.1145/3616864 ↗
51. Simple statistical gradient-following algorithms for connectionist reinforcement learning10.1007/BF00992696 ↗
52. Feng, Q., Xiao, G., Liang, Y., Zhang, H., Yan, L., and Yi, X. (2022, January 28–30). Proximal Policy Optimization for Explainable Recommended Systems. Proceedings of the 2022 4th International Conference on Data-driven Optimization of Complex Systems (DOCS), Chengdu, China.10.1109/DOCS55193.2022.9967709 ↗
53. Holzinger, A., Kieseberg, P., Tjoa, A.M., and Weippl, E. (2019, January 26–29). Machine Learning Explainability Through Comprehensible Decision Trees. Proceedings of the Machine Learning and Knowledge Extraction, Canterbury, UK.10.1007/978-3-030-29726-8 ↗
54. Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and Klimov, O. (2017). Proximal policy optimization algorithms. arXiv.
55. Niu, Y.-F., Gao, Y., Zhang, Y.-T., Xue, C.-Q., and Yang, L.-X. (2019). Improving eye–computer interaction interface design: Ergonomic investigations of the optimum target size and gaze-triggering dwell time. J. Eye Mov. Res., 12.10.16910/jemr.12.3.8 ↗
56. Deep semantic segmentation of natural and medical images: A review10.1007/s10462-020-09854-1 ↗
57. Recent progress in semantic image segmentation10.1007/s10462-018-9641-3 ↗
58. Deep neural architectures for medical image semantic segmentation10.1109/ACCESS.2021.3086530 ↗
59. Hachaj, T., and Piekarczyk, M. (2023). High-Level Hessian-Based Image Processing with the Frangi Neuron. Electronics, 12.10.3390/electronics12194159 ↗
60. Sankar, K., Pooransingh, A., and Ramroop, S. (2023, January 24–27). Synthetic Data Generation: An Evaluation of the Saving Images Pipeline in Unity. Proceedings of the 2023 Congress in Computer Science, Computer Engineering, & Applied Computing (CSCE), Las Vegas, NV, USA.10.1109/CSCE60160.2023.00330 ↗
61. Tremblay, J., Prakash, A., Acuna, D., Brophy, M., Jampani, V., Anil, C., To, T., Cameracci, E., Boochoon, S., and Birchfield, S. (2018, January 18–22). Training deep networks with synthetic data: Bridging the reality gap by domain randomization. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, Salt Lake City, UT, USA.10.1109/CVPRW.2018.00143 ↗
62. Breiman, L. (2017). Classification and Regression Trees, Routledge.10.1201/9781315139470 ↗
63. Deep reinforcement learning in computer vision: A comprehensive survey10.1007/s10462-021-10061-9 ↗
64. Ranaweera, M., and Mahmoud, Q.H. (2021). Virtual to Real-World Transfer Learning: A Systematic Review. Electronics, 10.10.3390/electronics10121491 ↗