Calibrate and Boost Logical Expressiveness of GNN Over Multi-Relational and Temporal Graphs
Yeyuan Chen, Dingmin Wang
Abstract
As a powerful framework for graph representation learning, Graph Neural Networks (GNNs) have garnered significant attention in recent years. However, to the best of our knowledge, there has been no formal analysis of the logical expressiveness of GNNs as Boolean node classifiers over multi-relational graphs, where each edge carries a specific relation type. In this paper, we investigate F OC 2 , a fragment of first-order logic with two variables and counting quantifiers. On the negative side, we demonstrate that the R 2 -GNN architecture, which extends the local message passing GNN by incorporating global readout, fails to capture F OC 2 classifiers in the general case. Nevertheless, on the positive side, we establish that R 2 -GNN models are equivalent to F OC 2 classifiers under certain restricted yet reasonable scenarios. To address the limitations of R 2 -GNN regarding expressiveness, we propose a simple graph transformation technique, akin to a preprocessing step, which can be executed in linear time. This transformation enables R 2 -GNN to effectively capture any F OC 2 classifiers when applied to the "transformed" input graph. Moreover, we extend our analysis of expressiveness and graph transformation to temporal graphs, exploring several temporal GNN architectures and providing an expressiveness hierarchy for them. To validate our findings, we implement R 2 -GNN and the graph transformation technique and conduct empirical tests in node classification tasks against various well-known GNN architectures that support multi-relational or temporal graphs. Our experimental results consistently demonstrate that R 2 -GNN with the graph transformation outperform the baseline methods on both synthetic and real-world datasets. The code is available at https://github.com/hdmmblz/multi-graph . * Equal contribution, listed in alphabetical order. 37th Conference on Neural Information Processing Systems (NeurIPS 2023).
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 0e8a94f9-bdf8-4cd9-8090-4e5f3b1d206dCited by top-tier papers2
- Expressive Power of Temporal Message PassingPrzemyslaw Andrzej Walega, Michael RawsonAAAI 2025 · 5 citations
- The Logical Expressiveness of Temporal GNNs via Two-Dimensional Product LogicsMarco Sälzer, Przemyslaw Andrzej Walega, Martin LangeNeurIPS 2025 · 3 citations
Builds on8
- Principal Neighbourhood Aggregation for Graph NetsGabriele Corso, Luca Cavalleri, Dominique Beaini, Pietro Liò et al.NeurIPS 2020 · 914 citations
- GemNet: Universal Directional Graph Neural Networks for MoleculesJohannes Gasteiger, Florian Becker, Stephan GünnemannNeurIPS 2021 · 665 citations
- Few-Shot Graph Learning for Molecular Property PredictionZhichun Guo, Chuxu Zhang, Wenhao Yu, John Herr et al.WWW 2021 · 213 citations
- ASGN: An Active Semi-supervised Graph Neural Network for Molecular Property PredictionZhongkai Hao, Chengqiang Lu, Zhenya Huang, Hao Wang et al.KDD 2020 · 112 citations
- Expressiveness and Approximation Properties of Graph Neural NetworksFloris Geerts, Juan L. ReutterICLR 2022 · 78 citations
Related papers
- The Logical Expressiveness of Graph Neural NetworksPablo Barceló, Egor V. Kostylev, Mikaël Monet, Jorge Pérez et al.ICLR 2020 · 17 citations
- The Correspondence Between Bounded Graph Neural Networks and Fragments of First-Order LogicBernardo Cuenca Grau, Eva Feng, Przemyslaw Andrzej WalegaAAAI 2026 · 4 citations
- Aggregate-Combine-Readout GNNs Can Express Logical Classifiers Beyond the Logic C2Stan P. Hauke, Przemyslaw Andrzej WalegaAAAI 2026 · 3 citations
- Learning More Expressive General Policies for Classical Planning DomainsSimon Ståhlberg, Blai Bonet, Hector GeffnerAAAI 2025
- Are Targeted Messages More Effective?Martin Grohe, Eran RosenbluthLICS 2024
