On the Correspondence Between Monotonic Max-Sum GNNs and Datalog (2305.18015v3)
Abstract: Although there has been significant interest in applying machine learning techniques to structured data, the expressivity (i.e., a description of what can be learned) of such techniques is still poorly understood. In this paper, we study data transformations based on graph neural networks (GNNs). First, we note that the choice of how a dataset is encoded into a numeric form processable by a GNN can obscure the characterisation of a model's expressivity, and we argue that a canonical encoding provides an appropriate basis. Second, we study the expressivity of monotonic max-sum GNNs, which cover a subclass of GNNs with max and sum aggregation functions. We show that, for each such GNN, one can compute a Datalog program such that applying the GNN to any dataset produces the same facts as a single round of application of the program's rules to the dataset. Monotonic max-sum GNNs can sum an unbounded number of feature vectors which can result in arbitrarily large feature values, whereas rule application requires only a bounded number of constants. Hence, our result shows that the unbounded summation of monotonic max-sum GNNs does not increase their expressive power. Third, we sharpen our result to the subclass of monotonic max GNNs, which use only the max aggregation function, and identify a corresponding class of Datalog programs.
- 1995. Foundations of Databases. Addison Wesley.
- 2007. The Description Logic Handbook: Theory, Implementation and Applications. Cambridge University Press, 2nd edition.
- 2007. A Fully Connectionist Model Generator for Covered First-Order Logic Programs. In Proc. IJCAI, 666–671.
- 2005. Computing First-Order Logic Programs by Fibring Artificial Neural Networks. In Proc. FLAIRS, 314–319. AAAI Press.
- 2020. The Logical Expressiveness of Graph Neural Networks. In Proc. ICLR.
- 2018. Logical rule induction and theory learning using neural theorem proving. CoRR abs/1809.02193.
- 2001. Complexity and expressive power of logic programming. ACM Comput. Surv. 33(3):374–425.
- 2019. Neural Logic Machines (Poster). In Proc. ICLR.
- 1999. Approximating the Semantics of Logic Programs by Recurrent Neural Networks. Applied Intelligence 11(1):45–58.
- 2023. A theory of link prediction via relational weisfeiler-leman. CoRR abs/2302.02209.
- 2019. A recurrent graph neural network for multi-relational data. In Proc. ICASSP, 8157–8161. IEEE.
- 2017. Semi-supervised classification with graph convolutional networks. In Proc. ICLR.
- 2021. INDIGO: gnn-based inductive knowledge graph completion using pair-wise encoding. In Proc. NeurIPS, 2034–2045.
- 2019. Weisfeiler and Leman Go Neural: Higher-Order Graph Neural Networks. In Proc. AAAI, 4602–4609. AAAI Press.
- 2012. OWL 2 Web Ontology Language: Profiles (2nd Edition). World Wide Web Consortium.
- 2009. Semantics and complexity of SPARQL. ACM Trans. Database Syst. 34(3):16:1–16:45.
- 2022. GNNQ: A neuro-symbolic approach to query answering over incomplete knowledge graphs. In Proc. ISWC, volume 13489 of Lecture Notes in Computer Science, 481–497. Springer.
- 2019. GMNN: graph markov neural networks. In Proc. ICML, volume 97 of Proceedings of Machine Learning Research, 5241–5250.
- 2017. End-to-end Differentiable Proving. In Proc. NeurIPS, 3788–3800.
- 2019. DRUM: End-To-End Differentiable Rule Mining On Knowledge Graphs. In Proc. NeurIPS, 15321–15331.
- 2018. Modeling relational data with graph convolutional networks. In Proc. ESWC, volume 10843 of LNCS, 593–607. Springer.
- 2021. Beyond graph neural networks with lifted relational neural networks. Mach. Learn. 110(7):1695–1738.
- 2022. Explainable GNN-Based Models over Knowledge Graphs. In Proc. ICLR.
- 2022. Faithful Approaches to Rule Learning. In Proc. KR, 484–493.
- 2020. Inductive relation prediction by subgraph reasoning. In Proc. ICML, volume 119 of Proceedings of Machine Learning Research, 9448–9457. PMLR.
- 2016. Revisiting semi-supervised learning with graph embeddings. In Proc. ICML, volume 48 of JMLR Workshop and Conference Proceedings, 40–48.
- 2017. Differentiable Learning of Logical Rules for Knowledge Base Reasoning. In Proc. NeurIPS, 2319–2328.
- 2018. Link prediction based on graph neural networks. In Proc. NeurIPS, 5171–5181.