Proceedings

PNAct: Crafting Backdoor Attacks in Safe Reinforcement Learning

Download BibTeX Cite

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

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

Abstract

Reinforcement Learning (RL) is widely used in tasks where agents interact with an environment to maximize rewards. Building on this foundation, Safe Reinforcement Learning (Safe RL) incorporates a cost metric alongside the reward metric, ensuring that agents adhere to safety constraints during decision-making. In this paper, we identify that Safe RL is vulnerable to backdoor attacks, which can manipulate agents into performing unsafe actions. First, we introduce the relevant concepts and evaluation metrics for backdoor attacks in Safe RL. It is the first attack framework in the Safe RL field that involves both Positive and Negative Action sample (PNAct) is to implant backdoors, where positive action samples provide reference actions and negative action samples indicate actions to be avoided. We theoretically point out the properties of PNAct and design an attack algorithm. Finally, we conduct experiments to evaluate the effectiveness of our proposed backdoor attack framework, evaluating it with the established metrics. This paper highlights the potential risks associated with Safe RL and underscores the feasibility of such attacks. Our code and supplementary material are available at https://github.com/azure-123/PNAct.

  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. [Altman, 1998] Eitan Altman. Constrained markov decision processes with total cost criteria: Lagrangian approach and dual linear program. Mathematical methods of operations research, 48:387-417, 1998.
  3. [As et al., 2022] Yarden As, Ilnura Usmanova, Sebastian Curi, and Andreas Krause. Constrained policy optimiza- tion via bayesian world models. In International Confer- ence on Learning Representations, 2022.
  4. [Bhatnagar and Lakshmanan, 2012] Shalabh Bhatnagar and K Lakshmanan. An online actor-critic algorithm with function approximation for constrained markov decision processes. Journal of Optimization Theory and Applica- tions, 153:688-708, 2012.
  5. [Borkar, 2005] V.S. Borkar. An actor-critic algorithm for constrained markov decision processes. Systems & Con- trol Letters, 54(3):207-213, 2005.
  6. [Chen et al., 2021] Baiming Chen, Zuxin Liu, Jiacheng Zhu, Mengdi Xu, Wenhao Ding, Liang Li, and Ding Zhao. Context-aware safe reinforcement learning for non- stationary environments. In 2021 IEEE International Conference on Robotics and Automation (ICRA), pages 10689-10695, 2021.
  7. [Chen et al., 2023a] Xuan Chen, Wenbo Guo, Guanhong Tao, Xiangyu Zhang, and Dawn Song. Bird: Generaliz- able backdoor detection and removal for deep reinforce- ment learning. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, editors, Advances in Neural Information Processing Systems, volume 36, pages 40786-40798.
  8. Curran Associates, Inc., 2023.
  9. [Chen et al., 2023b] Yanjiao Chen, Zhicong Zheng, and Xueluan Gong. Marnet: Backdoor attacks against cooper- ative multi-agent reinforcement learning. IEEE Transac- tions on Dependable and Secure Computing, 20(5):4188- 4198, 2023.
  10. [Chen et al., 2024] Shutong Chen, Guanjun Liu, Ziyuan Zhou, Kaiwen Zhang, and Jiacun Wang. Robust multi- agent reinforcement learning method based on adversar- ial domain randomization for real-world dual-uav co- operation. IEEE Transactions on Intelligent Vehicles, 9(1):1615-1627, 2024.
  11. [Chow et al., 2018] Yinlam Chow, Mohammad Ghavamzadeh, Lucas Janson, and Marco Pavone. Risk-constrained reinforcement learning with percentile risk criteria. Journal of Machine Learning Research, 18(167):1-51, 2018.
  12. [Cui et al., 2024] Jing Cui, Yufei Han, Yuzhe Ma, Jianbin Jiao, and Junge Zhang. Badrl: Sparse targeted backdoor attack against reinforcement learning. Proceedings of the AAAI Conference on Artificial Intelligence, 38(10):11687- 11694, Mar. 2024.
  13. [Fujimoto et al., 2019] Scott Fujimoto, Edoardo Conti, Mo- hammad Ghavamzadeh, and Joelle Pineau. Benchmark- ing batch deep reinforcement learning algorithms. CoRR, abs/1910.01708, 2019.
  14. [Goodfellow et al., 2015] Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In Yoshua Bengio and Yann LeCun, editors, 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015.
  15. [Guo et al., 2023] Junfeng Guo, Ang Li, Lixu Wang, and Cong Liu. Policycleanse: Backdoor detection and mitiga- tion for competitive reinforcement learning. In Proceed- ings of the IEEE/CVF International Conference on Com- puter Vision (ICCV), pages 4699-4708, October 2023.
  16. [Guo et al., 2024] Weiran Guo, Guanjun Liu, Ziyuan Zhou, Ling Wang, and Jiacun Wang. Enhancing the robustness of qmix against state-adversarial attacks. Neurocomputing, 572:127191, 2024.
  17. [Guo et al., 2025] Weiran Guo, Guanjun Liu, Ziyuan Zhou, Jiacun Wang, Ying Tang, and Miaomiao Wang. Robust training in multiagent deep reinforcement learning against optimal adversary. IEEE Transactions on Systems, Man, and Cybernetics: Systems, pages 1-12, 2025.
  18. [Heger, 1994] Matthias Heger. Consideration of risk in re- inforcement learning. In William W. Cohen and Haym Hirsh, editors, Machine Learning Proceedings 1994, pages 105-111.
  19. Morgan Kaufmann, San Francisco (CA), 1994.
  20. [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 A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, editors, Advances in Neural Information Processing Systems, volume 36, pages 18964-18993.
  21. [Jiang et al., 2024] Shixiong Jiang, Mengyu Liu, and Fanxin Kong. Backdoor attacks on safe reinforcement learning- enabled cyber-physical systems. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Sys- tems, 43(11):4093-4104, 2024.
  22. [Kiourti et al., 2020] Panagiota Kiourti, Kacper Wardega, Susmit Jha, and Wenchao Li. Trojdrl: Evaluation of back- door attacks on deep reinforcement learning. In 2020 57th ACM/IEEE Design Automation Conference (DAC), pages 1-6, 2020.
  23. [Liang et al., 2018] Qingkai Liang, Fanyu Que, and Eytan H. Modiano. Accelerated primal-dual policy optimization for safe reinforcement learning. CoRR, abs/1802.06480, 2018.
  24. [Liu et al., 2022] Zuxin Liu, Zhepeng Cen, Vladislav Isen- baev, Wei Liu, Steven Wu, Bo Li, and Ding Zhao. Con- strained variational policy optimization for safe reinforce- ment learning. In Kamalika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepesvari, Gang Niu, and Sivan Sabato, editors, Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Ma- chine Learning Research, pages 13644-13668. PMLR, 17-23 Jul 2022.
  25. [Liu et al., 2023a] Zuxin Liu, Zijian Guo, Zhepeng Cen, Huan Zhang, Jie Tan, Bo Li, and Ding Zhao. On the robustness of safe reinforcement learning under observa- tional perturbations. In The Eleventh International Con- ference on Learning Representations, 2023.
  26. [Liu et al., 2023b] Zuxin Liu, Zijian Guo, Zhepeng Cen, Huan Zhang, Yihang Yao, Hanjiang Hu, and Ding Zhao. Towards robust and safe reinforcement learning with be- nign off-policy data. In Andreas Krause, Emma Brun- skill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett, editors, Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 21586-21610. PMLR, 23-29 Jul 2023.
  27. [Madry et al., 2018] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations, 2018.
  28. [Shi et al., 2023] Haoran Shi, Guanjun Liu, Kaiwen Zhang, Ziyuan Zhou, and Jiacun Wang. Marl sim2real transfer: Merging physical reality with digital virtuality in meta- verse. IEEE Transactions on Systems, Man, and Cyber- netics: Systems, 53(4):2107-2117, 2023.
  29. [Stooke et al., 2020] Adam Stooke, Joshua Achiam, and Pieter Abbeel. Responsive safety in reinforcement learn- ing by PID lagrangian methods. In Hal Daumé III and Aarti Singh, editors, Proceedings of the 37th Interna- tional Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 9133- 9143. PMLR, 13-18 Jul 2020.
  30. [Tessler et al., 2019] Chen Tessler, Daniel J. Mankowitz, and Shie Mannor. Reward constrained policy optimization. In International Conference on Learning Representations, 2019.
  31. [Wang et al., 2021] Lun Wang, Zaynah Javed, Xian Wu, Wenbo Guo, Xinyu Xing, and Dawn Song. Backdoorl: Backdoor attack against competitive reinforcement learn- ing. In Zhi-Hua Zhou, editor, Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI-21, pages 3699-3705. International Joint Confer- ences on Artificial Intelligence Organization, 8 2021. Main Track. IJCAI
  32. [Yang et al., 2020] Tsung-Yen Yang, Justinian Rosca, Karthik Narasimhan, and Peter J. Ramadge. Projection- based constrained policy optimization. CoRR, abs/2010.03152, 2020.
  33. [Yang et al., 2023] Min Yang, Guanjun Liu, Ziyuan Zhou, and Jiacun Wang. Partially observable mean field multi- agent reinforcement learning based on graph attention net- work for uav swarms. Drones, 7(7), 2023.
  34. [Zhang et al., 2020] Yiming Zhang, Quan Vuong, and Keith Ross. First order constrained optimization in policy space. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin, editors, Advances in Neural Information Pro- cessing Systems, volume 33, pages 15338-15349.
  35. Curran Associates, Inc., 2020.
  36. [Zhou et al., 2024a] Ziyuan Zhou, Guanjun Liu, Weiran Guo, and MengChu Zhou. Adversarial attacks on multi- agent deep reinforcement learning models in continuous action space. IEEE Transactions on Systems, Man, and Cybernetics: Systems, 54(12):7633-7646, 2024.
  37. [Zhou et al., 2024b] Ziyuan Zhou, Guanjun Liu, and Mengchu Zhou. A robust mean-field actor-critic rein- forcement learning against adversarial perturbations on agent states. IEEE Transactions on Neural Networks and Learning Systems, 35(10):14370-14381, 2024.

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

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