Lune

NeurIPS2023Top-tier venue

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 .

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.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

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
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Expressive Power of Temporal Message PassingPrzemyslaw Andrzej Walega, Michael RawsonAAAI 2025 · 5 citations
  2. The Logical Expressiveness of Temporal GNNs via Two-Dimensional Product LogicsMarco Sälzer, Przemyslaw Andrzej Walega, Martin LangeNeurIPS 2025 · 3 citations

Builds on8

  1. Principal Neighbourhood Aggregation for Graph NetsGabriele Corso, Luca Cavalleri, Dominique Beaini, Pietro Liò et al.NeurIPS 2020 · 914 citations
  2. GemNet: Universal Directional Graph Neural Networks for MoleculesJohannes Gasteiger, Florian Becker, Stephan GünnemannNeurIPS 2021 · 665 citations
  3. Few-Shot Graph Learning for Molecular Property PredictionZhichun Guo, Chuxu Zhang, Wenhao Yu, John Herr et al.WWW 2021 · 213 citations
  4. 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
  5. Expressiveness and Approximation Properties of Graph Neural NetworksFloris Geerts, Juan L. ReutterICLR 2022 · 78 citations

Related papers

  1. The Logical Expressiveness of Graph Neural NetworksPablo Barceló, Egor V. Kostylev, Mikaël Monet, Jorge Pérez et al.ICLR 2020 · 17 citations
  2. The Correspondence Between Bounded Graph Neural Networks and Fragments of First-Order LogicBernardo Cuenca Grau, Eva Feng, Przemyslaw Andrzej WalegaAAAI 2026 · 4 citations
  3. Aggregate-Combine-Readout GNNs Can Express Logical Classifiers Beyond the Logic C2Stan P. Hauke, Przemyslaw Andrzej WalegaAAAI 2026 · 3 citations
  4. Are Targeted Messages More Effective?Martin Grohe, Eran RosenbluthLICS 2024
  5. Learning More Expressive General Policies for Classical Planning DomainsSimon Ståhlberg, Blai Bonet, Hector GeffnerAAAI 2025
Dusk over the sea between two cliffs drawn in fine vertical lines