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 $\mathcal{FOC}_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 $\mathcal{FOC}_2$ classifiers in the general case. Nevertheless, on the positive side, we establish that R$^2$-GNNs models are equivalent to $\mathcal{FOC}_2$ classifiers under certain restricted yet reasonable scenarios. To address the limitations of R$^2$-GNNs 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$-GNNs to effectively capture any $\mathcal{FOC}_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$-GNNs 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 outperforms the baseline methods on both synthetic and real-world datasets
Institute for Mathematical and Computational Engineering, PUC Chile(智利天主教大学数学与计算工程研究所);IMFD Chile(智利数据基础研究所);CENIA Chile(智利国家人工智能中心);Mila Quebec AI Institute(魁北克人工智能研究所Mila);McGill University(麦吉尔大学);RWTH Aachen University(亚琛工业大学);Universidad Adolfo Ibáñez(阿道夫·伊瓦涅斯大学)
On the Computational Capability of Graph Neural Networks: A Circuit Complexity Bound Perspective
The University of Hong Kong(香港大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);The Simons Institute for the Theory of Computing at UC Berkeley(加州大学伯克利分校西蒙斯理论计算研究所);UC Berkeley(加州大学伯克利分校)
Representing Prior Knowledge Using Randomly, Weighted Feature Networks for Visual Relationship Detection
School of Computing and Augmented Intelligence, Arizona State University(亚利桑那州立大学计算与增强智能学院);School of Sustainability, Arizona State University(亚利桑那州立大学可持续发展学院);School of Complex Adaptive Systems, Arizona State University(亚利桑那州立大学复杂适应系统学院);School of Life Sciences, Arizona State University(亚利桑那州立大学生命科学学院)