Proceedings

Search-Based Testing of Reinforcement Learning

Video #1 Video #2 Download BibTeX Cite

Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence. Main Track. Pages 503-510.

https://doi.org/10.24963/ijcai.2022/72

Abstract

Evaluation of deep reinforcement learning (RL) is inherently challenging. Especially the opaqueness of learned policies and the stochastic nature of both agents and environments make testing the behavior of deep RL agents difficult. We present a search-based testing framework that enables a wide range of novel analysis capabilities for evaluating the safety and performance of deep RL agents. For safety testing, our framework utilizes a search algorithm that searches for a reference trace that solves the RL task. The backtracking states of the search, called boundary states, pose safety-critical situations. We create safety test-suites that evaluate how well the RL agent escapes safety-critical situations near these boundary states. For robust performance testing, we create a diverse set of traces via fuzz testing. These fuzz traces are used to bring the agent into a wide variety of potentially unknown states from which the average performance of the agent is compared to the average performance of the fuzz traces. We apply our search-based testing approach on RL for Nintendo's Super Mario Bros.

  1. [Achiam and Amodei, 2019] Joshua Achiam and Dario Amodei. Benchmarking safe exploration in deep reinforcement learning. Preprint. Under review, 2019.
  2. [Agarwal et al., 2021] Rishabh Agarwal, Max Schwarzer, Pablo Samuel Castro, Aaron C Courville, and Marc Belle- mare. Deep reinforcement learning at the edge of the sta- tistical precipice. In NeurIPS, volume 34, pages 29304- 29320, 2021.
  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. In AAAI-18, pages 2669-2678, 2018.
  4. [Aschermann et al., 2020] Cornelius Aschermann, Sergej Schumilo, Ali Abbasi, and Thorsten Holz. Ijon: Explor- ing deep state spaces via fuzzing. In IEEE SP 2020, pages 1597-1612, 2020.
  5. [Bellemare et al., 2013] Marc G. Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. J. Artif. Intell. Res., 47:253-279, 2013.
  6. [Böttinger et al., 2018] Konstantin Böttinger, Patrice Gode- froid, and Rishabh Singh. Deep reinforcement fuzzing. In IEEE SP Workshops 2018, pages 116-122, 2018.
  7. [Brockman et al., 2016] Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. OpenAI gym. arXiv preprint arXiv:1606.01540, 2016.
  8. [Corsi et al., 2021] Davide Corsi, Enrico Marchesini, and Alessandro Farinelli. Formal verification of neural net- works for safety-critical tasks in deep reinforcement learn- ing. In UAI, volume 161 of Proceedings of Machine Learning Research, pages 333-343, 2021.
  9. [Drozd and Wagner, 2018] William Drozd and Michael D. Wagner. FuzzerGym: A competitive framework for fuzzing and learning. CoRR, abs/1807.07490, 2018.
  10. [Ehlers, 2017] Rüdiger Ehlers. Formal verification of piece- wise linear feed-forward neural networks. In ATVA 2017, volume 10482 of LNCS, pages 269-286, 2017.
  11. [Feng et al., 2020] Yuansong Feng, Suraj Subramanian, Howard Wang, and Steven Guo. Train a mario-playing RL agent. https://pytorch.org/tutorials/intermediate/mario rl tutorial.html, 2020. A PyTorch tutorial [online], accessed: 2022, January 07. Link
  12. [Garcıa and Fernández, 2015] Javier Garcıa and Fernando Fernández. A comprehensive survey on safe reinforce- ment learning. Journal of Machine Learning Research, 16(1):1437-1480, 2015.
  13. [Harel-Canada et al., 2020] Fabrice Harel-Canada, Lingx- iao Wang, Muhammad Ali Gulzar, Quanquan Gu, and Miryung Kim. Is neuron coverage a meaningful measure for testing deep neural networks? In ESEC/FSE, pages 851-862. ACM, 2020.
  14. [Karakovskiy and Togelius, 2012] Sergey Karakovskiy and Julian Togelius. The mario AI benchmark and competi- tions. IEEE T-CIAIG, 4(1):55-67, 2012.
  15. [Khalili and Tacchella, 2014] Ali Khalili and Armando Tac- chella. Learning nondeterministic Mealy machines. In ICGI 2014, volume 34 of JMLR Workshop and Conference Proceedings, pages 109-123, 2014.
  16. [Kiran et al., 2022] B Ravi Kiran, Ibrahim Sobh, Victor Tal- paert, Patrick Mannion, Ahmad A Al Sallab, Senthil Yoga- mani, and Patrick Pérez. Deep reinforcement learning for autonomous driving: A survey. IEEE Transactions on In- telligent Transportation Systems, 23(6):4909-4926, 2022.
  17. [Küttler et al., 2020] Heinrich Küttler, Nantas Nardelli, Alexander H. Miller, Roberta Raileanu, Marco Selvatici, Edward Grefenstette, and Tim Rocktäschel. The NetHack Learning Environment. In NeurIPS, pages 7671-7684, 2020.
  18. [Ma et al., 2018] Lei Ma, Felix Juefei-Xu, Fuyuan Zhang, Jiyuan Sun, Minhui Xue, Bo Li, Chunyang Chen, Ting Su, Li Li, Yang Liu, Jianjun Zhao, and Yadong Wang. Deep- Gauge: multi-granularity testing criteria for deep learning systems. In ASE, pages 120-131. ACM, 2018.
  19. [Pathak et al., 2017] Shashank Pathak, Luca Pulina, and Ar- mando Tacchella. Verification and repair of control poli- cies for safe reinforcement learning. Applied Intelligence, 48:886-908, 2017.
  20. [Pei et al., 2019] Kexin Pei, Yinzhi Cao, Junfeng Yang, and Suman Jana. DeepXplore: automated whitebox testing of deep learning systems. Commun. ACM, 62(11):137-145, 2019.
  21. [Pezzè and Young, 2007] Mauro Pezzè and Michal Young. Software testing and analysis -process, principles and techniques. Wiley, 2007.
  22. [Pranger et al., 2021] Stefan Pranger, Bettina Könighofer, Martin Tappler, Martin Deixelberger, Nils Jansen, and Roderick Bloem. Adaptive shielding under uncertainty. In ACC, pages 3467-3474, 2021.
  23. [Schrittwieser et al., 2020] Julian Schrittwieser, Ioannis Antonoglou, Thomas Hubert, Karen Simonyan, Laurent Sifre, Simon Schmitt, Arthur Guez, Edward Lockhart, Demis Hassabis, Thore Graepel, et al. Mastering atari, go, chess and shogi by planning with a learned model. Nature, 588(7839):604-609, 2020.
  24. [Schumilo et al., 2022] Sergej Schumilo, Cornelius Ascher- mann, Andrea Jemmett, Ali Abbasi, and Thorsten Holz. Nyx-net: network fuzzing with incremental snapshots. In EuroSys, pages 166-180, 2022.
  25. [Scott et al., 2021] Joseph Scott, Trishal Sudula, Hammad Rehman, Federico Mora, and Vijay Ganesh. Bandit- fuzz: Fuzzing SMT solvers with multi-agent reinforce- ment learning. In FM, volume 13047 of LNCS, pages 103- 121, 2021.
  26. [Silver et al., 2016] David Silver, Aja Huang, Chris J Maddi- son, Arthur Guez, Laurent Sifre, George Van Den Driess- che, Julian Schrittwieser, Ioannis Antonoglou, Veda Pan- neershelvam, Marc Lanctot, et al. Mastering the game of Go with deep neural networks and tree search. Nature, 529(7587):484-489, 2016.
  27. [Sutton and Barto, 1998] Richard S. Sutton and Andrew G. Barto. Reinforcement learning -an introduction. Adaptive computation and machine learning. MIT Press, 1998.
  28. [Tassa et al., 2018] Yuval Tassa, Yotam Doron, Alistair Muldal, Tom Erez, Yazhe Li, Diego de Las Casas, David Budden, Abbas Abdolmaleki, Josh Merel, Andrew Lefrancq, et al. DeepMind control suite. arXiv preprint arXiv:1801.00690, 2018.
  29. [Tian et al., 2018] Yuchi Tian, Kexin Pei, Suman Jana, and Baishakhi Ray. DeepTest: automated testing of deep- neural-network-driven autonomous cars. In ICSE, pages 303-314. ACM, 2018.
  30. [Trujillo et al., 2020] Miller Trujillo, Mario Linares- Vásquez, Camilo Escobar-Velásquez, Ivana Dusparic, and Nicolás Cardozo. Does neuron coverage matter for deep reinforcement learning?: A preliminary study. In ICSE '20 Workshops, pages 215-220, 2020.
  31. [Wang et al., 2021] Daimeng Wang, Zheng Zhang, Hang Zhang, Zhiyun Qian, Srikanth V. Krishnamurthy, and Nael B. Abu-Ghazaleh. Syzvegas: Beating kernel fuzzing odds with reinforcement learning. In USENIX Security, pages 2741-2758, 2021.
  32. [Zeller et al., 2021] Andreas Zeller, Rahul Gopinath, Mar- cel Böhme, Gordon Fraser, and Christian Holler. The fuzzing book. https://www.fuzzingbook.org/, 2021. ac- cessed: 2022, January 07. Link
  33. [Zhang et al., 2018] Mengshi Zhang, Yuqun Zhang, Ling- ming Zhang, Cong Liu, and Sarfraz Khurshid. Deep- Road: GAN-based metamorphic testing and input valida- tion framework for autonomous driving systems. In ASE, pages 132-142. ACM, 2018.

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

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