Skip to main content

Exploring the Logical Expressiveness of Graph Neural Networks by Establishing a Connection with \(\mathcal {C}_2\)

  • Conference paper
  • First Online:
Knowledge Graph and Semantic Computing: Knowledge Graph Empowers Artificial General Intelligence (CCKS 2023)

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 1923))

Included in the following conference series:

  • 588 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 64.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 84.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 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

  1. 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)

    Google Scholar 

  2. 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)

    Article  Google Scholar 

  3. 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)

  4. 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)

    Article  MathSciNet  Google Scholar 

  5. Xu, K., Hu, W., Leskovec, J., Jegelka, S.: How powerful are graph neural networks? arXiv preprint arXiv:1810.00826 (2018)

  6. Chen, T., Bian, S., Sun, Y.: Are powerful graph neural nets necessary? a dissection on graph classification. arXiv preprint arXiv:1905.04579 (2019)

  7. 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)

  8. Sato, R.: A survey on the expressive power of graph neural networks. arXiv preprint arXiv:2003.04078 (2020)

  9. Morris, C., et al.: Weisfeiler and leman go neural: higher-order graph neural networks. Proc. AAAI Conf. Artif. Intell. 33, 4602–4609 (2019)

    Google Scholar 

  10. 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)

    Google Scholar 

  11. 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)

    Google Scholar 

  12. 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

  13. 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)

    Article  MathSciNet  MATH  Google Scholar 

  14. Kipf, T.N., Welling, M.: Semi-supervised classification with graph convolutional networks. CoRR, abs/1609.02907 (2016)

    Google Scholar 

  15. 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)

    Article  Google Scholar 

  16. 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

    Article  Google Scholar 

  17. 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)

    Google Scholar 

  18. Langr, D., Tvrdik, P.: Evaluation criteria for sparse matrix storage formats. IEEE Trans. Parallel Distrib. Syst. 27(2), 428–440 (2015)

    Article  Google Scholar 

  19. 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)

    Google Scholar 

  20. Dong, H., Mao, J., Lin, T., Wang, C., Li, L., Zhou, D.: Neural logic machines. arXiv preprint arXiv:1904.11694 (2019)

  21. Yang, Z., Cohen, W., Salakhudinov, R.: Revisiting semi-supervised learning with graph embeddings. In: International Conference on Machine Learning, pp. 40–48. PMLR (2016)

    Google Scholar 

  22. Zitnik, M., Leskovec, J.: Predicting multicellular function through multi-layer tissue networks. Bioinformatics 33(14), i190–i198 (2017)

    Article  Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Zhangquan Zhou .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics