Proceedings

PiShield: A PyTorch Package for Learning with Requirements

Download BibTeX Cite

Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence. Demo Track. Pages 8805-8809.

https://doi.org/10.24963/ijcai.2024/1037

Abstract

Deep learning models have shown their strengths in various application domains, however, they often struggle to meet safety requirements for their outputs. In this paper, we introduce PiShield, the first package ever allowing for the integration of the requirements into the neural networks' topology. PiShield guarantees compliance with these requirements, regardless of input. Additionally, it allows for integrating requirements both at inference and/or training time, depending on the practitioners' needs. Given the widespread application of deep learning, there is a growing need for frameworks allowing for the integration of the requirements across various domains. Here, we explore three application scenarios: functional genomics, autonomous driving, and tabular data generation.

  1. [Ahmed et al., 2022a] Kareem Ahmed, Tao Li, Thy Ton, Quan Guo, Kai-Wei Chang, Parisa Kordjamshidi, Vivek Srikumar, Guy Van den Broeck, and Sameer Singh. Py- lon: A PyTorch Framework for Learning with Constraints. In Proceedings of Neural Information Processing Systems 2021 Competitions and Demonstrations Track. PMLR, 2022.
  2. [Ahmed et al., 2022b] Kareem Ahmed, Stefano Teso, Kai- Wei Chang, Guy Van den Broeck, and Antonio Vergari. Semantic probabilistic layers for neuro-symbolic learning. In Proceedings of Neural Information Processing Systems, 2022.
  3. [Ahmed et al., 2022c] Kareem Ahmed, Eric Wang, Kai-Wei Chang, and Guy Van den Broeck. Neuro-symbolic entropy regularization. In Proceedings of the Conference on Un- certainty in Artificial Intelligence, 2022.
  4. [Badreddine et al., 2022] Samy Badreddine, Artur d'Avila Garcez, Luciano Serafini, and Michael Spranger. Logic tensor networks. Artificial Intelligence, 303, 2022.
  5. [Carraro, 2022] Tommaso Carraro. LTNtorch: PyTorch im- plementation of Logic Tensor Networks, 2022.
  6. [Clare, 2003] Amanda Clare. Machine Learning and Data Mining for Yeast Functional Genomics. PhD thesis, Uni- versity of Wales, 2003.
  7. ['Avila Garcez et al., 2019] Artur S. d'Avila Garcez, Marco Gori, Luís C. Lamb, Luciano Serafini, Michael Spranger, and Son N. Tran. Neural-symbolic computing: An effective methodology for principled integration of machine learning and reasoning. CoRR, abs/1905.06088, 2019.
  8. [Deng et al., 2009] Jia Deng, Wei Dong, Richard Socher, Li- Jia Li, Kai Li, and Fei-Fei Li. ImageNet: A large-scale hierarchical image database. In Proceedings of Conference on Computer Vision and Pattern Recognition, 2009.
  9. [Diligenti et al., 2012] Michelangelo Diligenti, Marco Gori, Marco Maggini, and Leonardo Rigutini. Bridging logic and kernel machines. Machine Learning, 2012.
  10. [Diligenti et al., 2017] Michelangelo Diligenti, Soumali Roychowdhury, and Marco Gori. Integrating prior knowl- edge into deep learning. In Proceedings of International Conference on Machine Learning and Applications, 2017.
  11. [Dimitrovski et al., 2008] Ivica Dimitrovski, Dragi Kocev, Suzana Loskovska, and Sašo Džeroski. Hierchical anno- tation of medical images. In Proc. of IS. IJS Ljubljana, 2008.
  12. [Donadello et al., 2017] Ivan Donadello, Luciano Serafini, and Artur d'Avila Garcez. Logic tensor networks for se- mantic image interpretation. In Proceedings of Interna- tional Joint Conference on Artificial Intelligence, 2017. IJCAI
  13. [Fischer et al., 2019] Marc Fischer, Mislav Balunovic, Dana Drachsler-Cohen, Timon Gehr, Ce Zhang, and Martin Vechev. DL2: Training and querying neural networks with logic. In Proceedings of International Conference on Ma- chine Learning, 2019.
  14. [Giunchiglia and Lukasiewicz, 2020] Eleonora Giunchiglia and Thomas Lukasiewicz. Coherent hierarchical multi- label classification networks. In Proceedings of Neural Information Processing Systems, 2020.
  15. [Giunchiglia and Lukasiewicz, 2021] Eleonora Giunchiglia and Thomas Lukasiewicz. Multi-label classification neural networks with hard logical constraints. Journal of Artifi- cial Intelligence Research, 72, 2021.
  16. [Giunchiglia et al., 2022] Eleonora Giunchiglia, Mi- haela Catalina Stoian, and Thomas Lukasiewicz. Deep learning with logical constraints. In Proceedings of International Joint Conference on Artificial Intelligence, 2022. IJCAI
  17. [Giunchiglia et al., 2023a] Eleonora Giunchiglia, Fergus Imrie, Mihaela van der Schaar, and Thomas Lukasiewicz. Machine Learning with Requirements: a Manifesto. CoRR, abs/2304.03674, 2023.
  18. [Giunchiglia et al., 2023b] Eleonora Giunchiglia, Mi- haela Cȃtȃlina Stoian, Salman Khan, Fabio Cuzzolin, and Thomas Lukasiewicz. ROAD-R: The autonomous driving dataset for learning with requirements. Machine Learning Journal, 2023.
  19. [Giunchiglia et al., 2024] Eleonora Giunchiglia, Alex Tatomir, Mihaela Catalina Stoian, and Thomas Lukasiewicz. CCN+: A neuro-symbolic framework for deep learning with requirements. International Journal of Approximate Reasoning, 2024. In press.
  20. [Hoernle et al., 2022] Nicholas Hoernle, Rafael-Michael Karampatsis, Vaishak Belle, and Kobi Gal. MultiplexNet: Towards fully satisfied logical constraints in neural net- works. In Proceedings of Association for the Advancement of Artificial Intelligence, 2022.
  21. [Klimt and Yang, 2004] Bryan Klimt and Yiming Yang. The Enron Corpus: A new dataset for email classification re- search. In Proceedings of European Conference on Ma- chine Learning, 2004.
  22. [Lewis et al., 2004] David D. Lewis, Yiming Yang, Tony G. Rose, and Fan Li. RCV1: A new benchmark collection for text categorization research. J. Mach. Learn. Res., 5, 2004.
  23. [Li et al., 2023] Zenan Li, Zehua Liu, Yuan Yao, Jingwei Xu, Taolue Chen, Xiaoxing Ma, and Jian Lü. Learning with logical constraints but without shortcut satisfaction. In Proceedings of International Conference on Learning Representations, 2023.
  24. [Manhaeve et al., 2018] Robin Manhaeve, Sebastijan Du- mancic, Angelika Kimmig, Thomas Demeester, and Luc De Raedt. DeepProbLog: Neural probabilistic logic pro- gramming. In Proceedings of Neural Information Process- ing Systems, 2018.
  25. [Nandwani et al., 2019] Yatin Nandwani, Abhishek Pathak, Mausam, and Parag Singla. A primal dual formulation for deep learning with constraints. In Proceedings of Neural Information Processing Systems, 2019.
  26. [Singh et al., 2023] Gurkirt Singh, Stephen Akrigg, Manuele Di Maio, Valentina Fontana, Reza Javan- mard Alitappeh, Salman Khan, Suman Saha, Kossar Jeddi Saravi, Farzad Yousefi, Jacob Culley, Tom Nicholson, Jordan Omokeowa, Stanislao Grazioso, Andrew Bradley, Giuseppe Di Gironimo, and Fabio Cuzzolin. ROAD: The ROad event Awareness Dataset for autonomous driving. IEEE Trans. Pattern Anal. Mach. Intell., 2023.
  27. [Stoian et al., 2023] Mihaela C. Stoian, Eleonora Giunchiglia, and Thomas Lukasiewicz. Exploiting T-norms for Deep Learning in Autonomous Driving. In Proceedings of International Workshop on Neural- Symbolic Learning and Reasoning, 2023.
  28. [Stoian et al., 2024] Mihaela C. Stoian, Salijona Dyrmishi, Maxime Cordy, Thomas Lukasiewicz, and Eleonora Giunchiglia. How Realistic Is Your Synthetic Data? Constraining Deep Generative Models for Tabular Data. In Proceedings of International Conference on Learning Representations, 2024.
  29. [van Krieken et al., 2023] Emile van Krieken, Thiviyan Thanapalasingam, Jakub M. Tomczak, Frank Van Harme- len, and Annette Ten Teije. A-neSI: A scalable approx- imate method for probabilistic neurosymbolic inference. In Proceedings of Neural Information Processing Systems, 2023.
  30. [Vens et al., 2008] Celine Vens, Jan Struyf, Leander Schiet- gat, Saso Dzeroski, and Hendrik Blockeel. Decision trees for hierarchical multi-label classification. Mach. Learn., 73(2), 2008.
  31. [Wehrmann et al., 2018] Jonatas Wehrmann, Ricardo Cerri, and Rodrigo Barros. Hierarchical multi-label classification networks. In Proceedings of International Conference on Machine Learning, 2018.
  32. [Xu et al., 2018] Jingyi Xu, Zilu Zhang, Tal Friedman, Yitao Liang, and Guy Van den Broeck. A semantic loss func- tion for deep learning with symbolic knowledge. In Pro- ceedings of International Conference on Machine Learn- ing, 2018.

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

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