Proceedings

Evaluating Relaxations of Logic for Neural Networks: A Comprehensive Study

Download BibTeX Cite

Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence. Main Track. Pages 2812-2818.

https://doi.org/10.24963/ijcai.2021/387

Abstract

Symbolic knowledge can provide crucial inductive bias for training neural models, especially in low data regimes. A successful strategy for incorporating such knowledge involves relaxing logical statements into sub-differentiable losses for optimization. In this paper, we study the question of how best to relax logical expressions that represent labeled examples and knowledge about a problem; we focus on sub-differentiable t-norm relaxations of logic. We present theoretical and empirical criteria for characterizing which relaxation would perform best in various scenarios. In our theoretical study driven by the goal of preserving tautologies, the Lukasiewicz t-norm performs best. However, in our empirical analysis on the text chunking and digit recognition tasks, the product t-norm achieves best predictive performance. We analyze this apparent discrepancy, and conclude with a list of best practices for defining loss functions via logic.

  1. [Asai and Hajishirzi, 2020] Akari Asai and Hannaneh Ha- jishirzi. Logic-Guided Data Augmentation and Regular- ization for Consistent Question Answering. In ACL, 2020.
  2. [Bach et al., 2017] Stephen H Bach, Matthias Broecheler, Bert Huang, and Lise Getoor. Hinge-loss Markov Ran- dom Fields and Probabilistic Soft Logic. The Journal of Machine Learning Research, 18, 2017.
  3. [Donadello et al., 2017] Ivan Donadello, Luciano Serafini, and Artur d'Avila Garcez. Logic Tensor Networks for Se- mantic Image Interpretation. In Proceedings of the Twenty- Sixth International Joint Conference on Artificial Intelli- gence, IJCAI-17, 2017. IJCAI
  4. [Esteva et al., 2000] Francesc Esteva, Lluís Godo, Petr Hájek, and Mirko Navara. Residuated Fuzzy Logics with an Involutive Negation. Archive for Mathematical Logic, 39, 2000.
  5. [Evans and Grefenstette, 2018] Richard Evans and Edward Grefenstette. Learning Explanatory Rules from Noisy Data. Journal of Artificial Intelligence Research (JAIR), 61, 2018.
  6. [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 ICML, 2019.
  7. [Giannini et al., 2019] Francesco Giannini, Giuseppe Marra, Michelangelo Diligenti, Marco Maggini, and Marco Gori. On the Relation Between Loss Functions and T-Norms. In ILP, 2019.
  8. [Grefenstette, 2013] Edward Grefenstette. Towards a Formal Distributional Semantics: Simulating Logical Calculi with Tensors. In *SEM@NAACL, 2013.
  9. [Klement et al., 2013] Erich Peter Klement, Radko Mesiar, and Endre Pap. Triangular Norms, volume 8. Springer Science & Business Media, 2013.
  10. [LeCun, 1998] Yann LeCun. The MNIST Database of Hand- written Digits. http://yann.lecun.com/exdb/mnist/, 1998. Accessed: 2019-11-01. Link
  11. [Li and Srikumar, 2019] Tao Li and Vivek Srikumar. Aug- menting Neural Networks with First-order Logic. In ACL, 2019.
  12. [Li et al., 2019] Tao Li, Vivek Gupta, Maitrey Mehta, and Vivek Srikumar. A Logic-Driven Framework for Consis- tency of Neural Models. In EMNLP, 2019.
  13. [Li et al., 2020] Tao Li, Parth Anand Jawale, Martha Palmer, and Vivek Srikumar. Structured Tuning for Semantic Role Labeling. In ACL, 2020.
  14. [Manhaeve et al., 2018] Robin Manhaeve, Sebastijan Du- mancic, Angelika Kimmig, Thomas Demeester, and Luc De Raedt. DeepProbLog: Neural Probabilistic Logic Programming. In NIPS, 2018.
  15. [Menger, 1942] Karl Menger. Statistical Metrics. Proceed- ings of the National Academy of Sciences of the United States of America, 28, 1942.
  16. [Minervini et al., 2017] Pasquale Minervini, Thomas De- meester, Tim Rocktäschel, and Sebastian Riedel. Adver- sarial sets for regularising neural link predictors. In UAI, 2017.
  17. [Nandwani et al., 2019] Yatin Nandwani, Abhishek Pathak, and Parag Singla. A Primal-Dual Formulation for Deep Learning with Constraints. In NeurIPS, 2019.
  18. [Paszke et al., 2019] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. PyTorch: An Imperative Style, High- Performance Deep Learning Library. In NeurIPS, 2019.
  19. [Pennington et al., 2014] Jeffrey Pennington, Richard Socher, and Christopher D Manning. Glove: Global vectors for word representation. In EMNLP, 2014.
  20. [Rocktäschel et al., 2015] Tim Rocktäschel, Sameer Singh, and Sebastian Riedel. Injecting Logical Background Knowledge into Embeddings for Relation Extraction. In NAACL, 2015.
  21. [Russell and Whitehead, 1910] Bertrand Russell and Al- fred North Whitehead. Principia Mathematica Vol. I. Cambridge University Press, 1910.
  22. [Sang and Buchholz, 2000] Erik Tjong Kim Sang and Sabine Buchholz. Introduction to the CoNLL-2000 Shared Task Chunking. In CoNLL, 2000.
  23. [Sikka et al., 2020] Karan Sikka, Andrew Silberfarb, John Byrnes, Indranil Sur, Ed Chow, Ajay Divakaran, and Richard Rohwer. Deep Adaptive Semantic Logic (DASL): Compiling Declarative Knowledge into Deep Neural Net- works. arXiv preprint arXiv:2003.07344, 2020.
  24. [van Krieken et al., 2020] Emile van Krieken, Erman Acar, and Frank van Harmelen. Analyzing Differentiable Fuzzy Implications. In KR, 2020.
  25. [Wang et al., 2020] Haoyu Wang, Muhao Chen, Hongming Zhang, and Dan Roth. Joint Constrained Learning for Event-Event Relation Extraction. In EMNLP, 2020.
  26. [Xu et al., 2018] Jingyi Xu, Zilu Zhang, Tal Friedman, Yi- tao Liang, and Guy Van den Broeck. A Semantic Loss Function for Deep Learning with Symbolic Knowledge. In ICML, 2018.

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

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