Calibrate and Boost Logical Expressiveness of GNN Over Multi-Relational and Temporal Graphs
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 .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
2 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- The Logical Expressiveness of Temporal GNNs via Two-Dimensional Product Logics cites Expressive Power of Temporal Message Passing
- Expressiveness and Approximation Properties of Graph Neural Networks cites Principal Neighbourhood Aggregation for Graph Nets
Cited by top-tier papers2
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
- Are Targeted Messages More Effective?Martin Grohe, Eran RosenbluthLICS 2024
- Learning More Expressive General Policies for Classical Planning DomainsSimon Ståhlberg, Blai Bonet, Hector GeffnerAAAI 2025
