Abstract
Graph neural networks (GNNs) have gained widespread application in various real-world scenarios due to their powerful ability to handle graph-structured data. However, the computational power and logical expressiveness of GNNs are still not fully understood. This work explores the logical expressiveness of GNNs from a theoretical view and establishes a connection between them and the fragment of first-order logic, known as \(\mathcal {C}_2\), which servers as a logical language for graph data modeling. A recent study proposes a type of GNNs called ACR-GNN, demonstrating that GNNs can mimic the evaluation of unary \(\mathcal {C}_2\) formulas. Working upon this, we give a variant of GNN architectures capable of handling general \(\mathcal {C}_2\) formulas. To achieve this, we leverage a mechanism known as message passing to reconstruct GNNs. The proposed GNN variants enable the simultaneous updating of node and node pair features, allowing for the handling of both unary and binary predicates in \(\mathcal {C}_2\) formulas. We prove that the proposed models possess the same expressiveness as \(\mathcal {C}_2\). Through experiments conducted on synthetic and real datasets, we validate that our proposed models outperform both ACR-GNN and a widely-used model, GIN, in the tasks of evaluating \(\mathcal {C}_2\) formulas.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
A variable x is free if it is not qualified by \(\exists \) and \(\forall \). See the formula \(\exists y.\varphi (x,y)\), where variable x is free and variable y is not.
References
Yongji, W., Lian, D., Yiheng, X., Le, W., Chen, E.: Graph convolutional networks with Markov random field reasoning for social spammer detection. Proc. AAAI Conf. Artif. Intell. 34, 1054–1061 (2020)
Sun, M., Zhao, S., Gilvary, C., Elemento, O., Zhou, J., Wang, F.: Graph convolutional networks for computational drug development and discovery. Brief. Bioinform. 21(3), 919–935 (2020)
Hamaguchi, T., Oiwa, H., Shimbo, M., Matsumoto, Y.: Knowledge transfer for out-of-knowledge-base entities: a graph neural network approach. arXiv preprint arXiv:1706.05674 (2017)
Ji, S., Pan, S., Cambria, E., Marttinen, P., Philip, S.Y.: A survey on knowledge graphs: representation, acquisition, and applications. IEEE Trans. Neural Networks Learn. Syst. 33(2), 494–514 (2021)
Xu, K., Hu, W., Leskovec, J., Jegelka, S.: How powerful are graph neural networks? arXiv preprint arXiv:1810.00826 (2018)
Chen, T., Bian, S., Sun, Y.: Are powerful graph neural nets necessary? a dissection on graph classification. arXiv preprint arXiv:1905.04579 (2019)
Liu, H., Ning, R., Teng, Z., Liu, J., Zhou, Q., Zhang, Y.: Evaluating the logical reasoning ability of ChatGPT and GPT-4. arXiv preprint arXiv:2304.03439 (2023)
Sato, R.: A survey on the expressive power of graph neural networks. arXiv preprint arXiv:2003.04078 (2020)
Morris, C., et al.: Weisfeiler and leman go neural: higher-order graph neural networks. Proc. AAAI Conf. Artif. Intell. 33, 4602–4609 (2019)
Barceló, P., Kostylev, E.V., Monet, M., Pérez, J., Reutter, J., Silva, J.-P.: The logical expressiveness of graph neural networks. In: 8th International Conference on Learning Representations (ICLR 2020) (2020)
Grohe, M.: The logic of graph neural networks. In: 2021 36th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), pp. 1–17. IEEE (2021)
Immerman, N., Lander, E.: Describing graphs: a first-order approach to graph canonization. In: Complexity theory retrospective, pp. 59–81. Springer (1990). https://doi.org/10.1007/978-1-4612-4478-3_5
Cai, J.-Y., Fürer, M., Immerman, N.: An optimal lower bound on the number of variables for graph identification. Combinatorica 12(4), 389–410 (1992)
Kipf, T.N., Welling, M.: Semi-supervised classification with graph convolutional networks. CoRR, abs/1609.02907 (2016)
Scarselli, F., Gori, M., Tsoi, A.C., Hagenbuchner, M., Monfardini, G.: The graph neural network model. IEEE Trans. Neural Networks 20(1), 61–80 (2008)
Kearnes, S., McCloskey, K., Berndl, M., Pande, V., Riley, P.: Molecular graph convolutions: moving beyond fingerprints. J. Comput. Aided Mol. Des. 30(8), 595–608 (2016). https://doi.org/10.1007/s10822-016-9938-8
Gilmer, J., Schoenholz, S.S., Riley, P.F., Vinyals, O., Dahl, G.E.: Neural message passing for quantum chemistry. In: International Conference on Machine Learning, pp. 1263–1272. PMLR (2017)
Langr, D., Tvrdik, P.: Evaluation criteria for sparse matrix storage formats. IEEE Trans. Parallel Distrib. Syst. 27(2), 428–440 (2015)
Zhou, Z., Huang, J., Xu, J., Tang, Y.: Two-phase jointly optimal strategies and winning regions of the capture-the-flag game. In: IECON 2021–47th Annual Conference of the IEEE Industrial Electronics Society, pp. 1–6. IEEE (2021)
Dong, H., Mao, J., Lin, T., Wang, C., Li, L., Zhou, D.: Neural logic machines. arXiv preprint arXiv:1904.11694 (2019)
Yang, Z., Cohen, W., Salakhudinov, R.: Revisiting semi-supervised learning with graph embeddings. In: International Conference on Machine Learning, pp. 40–48. PMLR (2016)
Zitnik, M., Leskovec, J.: Predicting multicellular function through multi-layer tissue networks. Bioinformatics 33(14), i190–i198 (2017)
Acknowledgement
Zhangquan Zhou and Shijiao Tang were supported by The Natural Science Foundation of the Jiangsu Higher Education Institutions of China under grant 22KJB520003. Qianqian Zhang was supported by the same foundation under grant 22KJD510009.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Zhou, Z., Yang, C., Zhang, Q., Tang, S. (2023). Exploring the Logical Expressiveness of Graph Neural Networks by Establishing a Connection with \(\mathcal {C}_2\). In: Wang, H., Han, X., Liu, M., Cheng, G., Liu, Y., Zhang, N. (eds) Knowledge Graph and Semantic Computing: Knowledge Graph Empowers Artificial General Intelligence. CCKS 2023. Communications in Computer and Information Science, vol 1923. Springer, Singapore. https://doi.org/10.1007/978-981-99-7224-1_3
Download citation
DOI: https://doi.org/10.1007/978-981-99-7224-1_3
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-99-7223-4
Online ISBN: 978-981-99-7224-1
eBook Packages: Computer ScienceComputer Science (R0)